blob: 1977e218dbb8c72990bc6d03dec043d1430938f8 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristydc0f0892009-12-29 02:21:55 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.5.9.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristydc0f0892009-12-29 02:21:55 +0000708PACKAGE_VERSION='6.5.9'
709PACKAGE_STRING='ImageMagick 6.5.9'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
807PrintDelegate
808ZipDelegate
809XPSDelegate
810WWWDecodeDelegate
811WMFDecodeDelegate
812TXTDelegate
813SCANDecodeDelegate
814RMDelegate
815RLEEncodeDelegate
816PSDelegate
817POVDelegate
818PGPDecodeDelegate
819PCLDelegate
820MVDelegate
821MPEGEncodeDelegate
822MPEGDecodeDelegate
823MANDelegate
824LaunchDelegate
825LZWEncodeDelegate
826LZWDecodeDelegate
827LPRDelegate
828LPDelegate
829ILBMEncodeDelegate
830ILBMDecodeDelegate
831HTMLDecodeDelegate
832HPGLDecodeDelegate
833HDRDecodeDelegate
834GnuplotDecodeDelegate
835MogrifyDelegate
836DisplayDelegate
837ConvertDelegate
838FIGDecodeDelegate
839EditorDelegate
840EchoDelegate
841DVIDecodeDelegate
842GVCDecodeDelegate
843DNGDecodeDelegate
844CatDelegate
845CGMDecodeDelegate
846BrowseDelegate
847BZIPDelegate
848BlenderDecodeDelegate
849AVIDecodeDelegate
850AutotraceDecodeDelegate
851SHARE_CONFIGURE_PATH
852SHARE_PATH
853DOCUMENTATION_PATH
854FILTER_PATH
855CODER_PATH
856CONFIGURE_PATH
857LIBRARY_PATH
858EXECUTABLE_PATH
859PERLMAINCC
860XML_LIBS
861XML_DELEGATE_FALSE
862XML_DELEGATE_TRUE
863xml2_config
864WMF_LIBS_DEPS
865WMF_LIBS
866WMF_DELEGATE_FALSE
867WMF_DELEGATE_TRUE
868TIFF_LIBS
869TIFF_DELEGATE_FALSE
870TIFF_DELEGATE_TRUE
871CAIRO_DELEGATE_FALSE
872CAIRO_DELEGATE_TRUE
873RSVG_DELEGATE_FALSE
874RSVG_DELEGATE_TRUE
875CAIRO_SVG_LIBS
876CAIRO_SVG_CFLAGS
877RSVG_LIBS
878RSVG_CFLAGS
879PNG_LIBS
880PNG_DELEGATE_FALSE
881PNG_DELEGATE_TRUE
882OPENEXR_DELEGATE_FALSE
883OPENEXR_DELEGATE_TRUE
884OPENEXR_LIBS
885OPENEXR_CFLAGS
886LQR_DELEGATE_FALSE
887LQR_DELEGATE_TRUE
888LQR_LIBS
889LQR_CFLAGS
890LCMS_LIBS
891LCMS_DELEGATE_FALSE
892LCMS_DELEGATE_TRUE
893JP2_LIBS
894JP2_DELEGATE_FALSE
895JP2_DELEGATE_TRUE
896JPEG_LIBS
897JPEG_DELEGATE_FALSE
898JPEG_DELEGATE_TRUE
899JBIG_LIBS
900JBIG_DELEGATE_FALSE
901JBIG_DELEGATE_TRUE
902GVC_DELEGATE_FALSE
903GVC_DELEGATE_TRUE
904GVC_LIBS
905GVC_CFLAGS
906GS_LIBS
907GS_DELEGATE_FALSE
908GS_DELEGATE_TRUE
909FREETYPE_LIBS
910FREETYPE_DELEGATE_FALSE
911FREETYPE_DELEGATE_TRUE
912freetype_config
913FONTCONFIG_DELEGATE_FALSE
914FONTCONFIG_DELEGATE_TRUE
915FONTCONFIG_LIBS
916FONTCONFIG_CFLAGS
917FPX_LIBS
918FPX_DELEGATE_FALSE
919FPX_DELEGATE_TRUE
920FFTW_LIBS
921FFTW_DELEGATE_FALSE
922FFTW_DELEGATE_TRUE
923DJVU_LIBS
924DJVU_DELEGATE_FALSE
925DJVU_DELEGATE_TRUE
926DPS_LIBS
927DPS_DELEGATE_FALSE
928DPS_DELEGATE_TRUE
929AUTOTRACE_DELEGATE_FALSE
930AUTOTRACE_DELEGATE_TRUE
931AUTOTRACE_LIBS
932AUTOTRACE_CFLAGS
933LIB_DL
934ZLIB_LIBS
935ZLIB_DELEGATE_FALSE
936ZLIB_DELEGATE_TRUE
937XEXT_LIBS
938X11_LIBS
939X11_DELEGATE_FALSE
940X11_DELEGATE_TRUE
941X_EXTRA_LIBS
942X_LIBS
943X_PRE_LIBS
944X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000945XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000946BZLIB_LIBS
947BZLIB_DELEGATE_FALSE
948BZLIB_DELEGATE_TRUE
949MATH_LIBS
950CCMALLOCDelegate
951UMEM_LIBS
952HasUMEM_FALSE
953HasUMEM_TRUE
954THREAD_LIBS
955GOMP_LIBS
956WITH_MAGICK_PLUS_PLUS_FALSE
957WITH_MAGICK_PLUS_PLUS_TRUE
958OPENMP_CXXFLAGS
959POW_LIB
960LIBOBJS
961UINTPTR_T
962UINTMAX_T
963UINT64_T
964INT64_T
965UINT32_T
966INT32_T
967UINT16_T
968INT16_T
969UINT8_T
970INT8_T
971LIBRARY_EXTRA_CPPFLAGS
972MODULE_EXTRA_CPPFLAGS
973LIBSTDCLDFLAGS
974PERL_MAKE_OPTIONS
975QUANTUM_DEPTH
976MAINT
977MAINTAINER_MODE_FALSE
978MAINTAINER_MODE_TRUE
979MAGICK_HDRI
980DLLDFLAGS
981WITH_LTDL_FALSE
982WITH_LTDL_TRUE
983WITH_MODULES_FALSE
984WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000985WITH_SHARED_LIBS_FALSE
986WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000987LTDLOPEN
988LT_CONFIG_H
989CONVENIENCE_LTDL_FALSE
990CONVENIENCE_LTDL_TRUE
991INSTALL_LTDL_FALSE
992INSTALL_LTDL_TRUE
993ARGZ_H
994sys_symbol_underscore
995LIBADD_DL
996LT_DLPREOPEN
997LIBADD_DLD_LINK
998LIBADD_SHL_LOAD
999LIBADD_DLOPEN
1000LT_DLLOADERS
1001INCLTDL
1002LTDLINCL
1003LTDLDEPS
1004LIBLTDL
1005LIBTOOL_DEPS
1006CXXCPP
1007OTOOL64
1008OTOOL
1009LIPO
1010NMEDIT
1011DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001012lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001013RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001014AR
1015NM
1016ac_ct_DUMPBIN
1017DUMPBIN
1018LIBTOOL
1019OBJDUMP
1020DLLTOOL
1021AS
1022LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001023CL_LIBS
1024CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001025OPENMP_CFLAGS
1026PTHREAD_CFLAGS
1027PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001028PTHREAD_CC
1029acx_pthread_config
1030WinPathScript
1031USING_CL_FALSE
1032USING_CL_TRUE
1033CYGWIN_BUILD_FALSE
1034CYGWIN_BUILD_TRUE
1035WIN32_NATIVE_BUILD_FALSE
1036WIN32_NATIVE_BUILD_TRUE
1037WINGDI32_DELEGATE_FALSE
1038WINGDI32_DELEGATE_TRUE
1039GDI32_LIBS
1040PKG_CONFIG
1041LN_S
cristy3ed852e2009-09-05 21:47:34 +00001042LD
1043FGREP
1044EGREP
1045GREP
1046SED
1047CPP
cristy95646052009-11-28 23:05:30 +00001048am__fastdepCXX_FALSE
1049am__fastdepCXX_TRUE
1050CXXDEPMODE
1051ac_ct_CXX
1052CXXFLAGS
1053CXX
cristy3ed852e2009-09-05 21:47:34 +00001054am__fastdepCC_FALSE
1055am__fastdepCC_TRUE
1056CCDEPMODE
1057AMDEPBACKSLASH
1058AMDEP_FALSE
1059AMDEP_TRUE
1060am__quote
1061am__include
1062DEPDIR
1063OBJEXT
1064EXEEXT
1065ac_ct_CC
1066CPPFLAGS
1067LDFLAGS
1068CFLAGS
1069CC
1070DIRSEP
1071MAGICK_FILTER_MODULE_PATH
1072MAGICK_CONFIGURE_BUILD_PATH
1073MAGICK_CONFIGURE_SRC_PATH
1074MAGICK_CODER_MODULE_PATH
1075MAN_DIR
1076INFO_DIR
1077PERSISTINCLUDE_DIR
1078INCLUDE_DIR
1079LIB_DIR
1080LOCALSTATE_DIR
1081SHAREDSTATE_DIR
1082SYSCONF_DIR
1083DATA_DIR
1084LIBEXEC_DIR
1085SBIN_DIR
1086BIN_DIR
1087EXEC_PREFIX_DIR
1088PREFIX_DIR
1089CONFIG_STATUS_DEPENDENCIES
1090MAGICK_LIB_VERSION_NUMBER
1091MAGICK_LIB_VERSION_TEXT
1092MAGICK_LIB_VERSION
1093AM_BACKSLASH
1094AM_DEFAULT_VERBOSITY
1095am__untar
1096am__tar
1097AMTAR
1098am__leading_dot
1099SET_MAKE
1100AWK
1101mkdir_p
1102MKDIR_P
1103INSTALL_STRIP_PROGRAM
1104STRIP
1105install_sh
1106MAKEINFO
1107AUTOHEADER
1108AUTOMAKE
1109AUTOCONF
1110ACLOCAL
1111VERSION
1112PACKAGE
1113CYGPATH_W
1114am__isrc
1115INSTALL_DATA
1116INSTALL_SCRIPT
1117INSTALL_PROGRAM
1118PACKAGE_LIB_SUBVERSION
1119PACKAGE_RELEASE_DATE
1120PACKAGE_LIB_VERSION_NUMBER
1121PACKAGE_LIB_VERSION
1122PACKAGE_CHANGE_DATE
1123PACKAGE_RELEASE
1124MAGICK_LIBRARY_AGE
1125MAGICK_LIBRARY_REVISION
1126MAGICK_LIBRARY_CURRENT
1127target_os
1128target_vendor
1129target_cpu
1130target
1131host_os
1132host_vendor
1133host_cpu
1134host
1135build_os
1136build_vendor
1137build_cpu
1138build
1139CONFIGURE_ARGS
1140DISTCHECK_CONFIG_FLAGS
1141target_alias
1142host_alias
1143build_alias
1144LIBS
1145ECHO_T
1146ECHO_N
1147ECHO_C
1148DEFS
1149mandir
1150localedir
1151libdir
1152psdir
1153pdfdir
1154dvidir
1155htmldir
1156infodir
1157docdir
1158oldincludedir
1159includedir
1160localstatedir
1161sharedstatedir
1162sysconfdir
1163datadir
1164datarootdir
1165libexecdir
1166sbindir
1167bindir
1168program_transform_name
1169prefix
1170exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001171PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001172PACKAGE_BUGREPORT
1173PACKAGE_STRING
1174PACKAGE_VERSION
1175PACKAGE_TARNAME
1176PACKAGE_NAME
1177PATH_SEPARATOR
1178SHELL'
1179ac_subst_files=''
1180ac_user_opts='
1181enable_option_checking
1182enable_silent_rules
1183enable_dependency_tracking
1184with_gnu_ld
1185with_maximum_compile_warnings
1186with_dmalloc
1187enable_bounds_checking
1188enable_osx_universal_binary
1189with_threads
1190enable_openmp
1191enable_largefile
1192enable_shared
1193enable_static
1194with_pic
1195enable_fast_install
1196enable_libtool_lock
1197with_included_ltdl
1198with_ltdl_include
1199with_ltdl_lib
1200enable_ltdl_install
1201with_modules
1202enable_delegate_build
1203enable_deprecated
1204enable_installed
1205enable_cipher
1206enable_embeddable
1207enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001208enable_assert
1209enable_maintainer_mode
1210enable_ccmalloc
1211enable_efence
1212enable_prof
1213enable_gprof
1214enable_gcov
1215with_method_prefix
1216with_quantum_depth
1217with_cache
1218with_frozenpaths
1219with_magick_plus_plus
1220with_perl
1221with_perl_options
1222with_umem
1223with_libstdc
1224with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001225with_x
cristy3ed852e2009-09-05 21:47:34 +00001226with_zlib
1227with_autotrace
1228with_dps
1229with_djvu
1230with_fftw
1231with_fpx
1232with_fontconfig
1233with_freetype
1234with_gslib
1235with_fontpath
1236with_gs_font_dir
1237with_gvc
1238with_jbig
1239with_jpeg
1240with_jp2
1241with_lcms
1242with_lqr
1243with_openexr
1244with_png
1245with_rsvg
1246with_tiff
1247with_windows_font_dir
1248with_wmf
1249with_xml
1250'
1251 ac_precious_vars='build_alias
1252host_alias
1253target_alias
1254CC
1255CFLAGS
1256LDFLAGS
1257LIBS
1258CPPFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001259CXX
1260CXXFLAGS
1261CCC
cristy95646052009-11-28 23:05:30 +00001262CPP
cristy3ed852e2009-09-05 21:47:34 +00001263PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001264CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001265XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001266AUTOTRACE_CFLAGS
1267AUTOTRACE_LIBS
1268FONTCONFIG_CFLAGS
1269FONTCONFIG_LIBS
1270GVC_CFLAGS
1271GVC_LIBS
1272LQR_CFLAGS
1273LQR_LIBS
1274OPENEXR_CFLAGS
1275OPENEXR_LIBS
1276RSVG_CFLAGS
1277RSVG_LIBS
1278CAIRO_SVG_CFLAGS
1279CAIRO_SVG_LIBS'
1280
1281
1282# Initialize some variables set by options.
1283ac_init_help=
1284ac_init_version=false
1285ac_unrecognized_opts=
1286ac_unrecognized_sep=
1287# The variables have the same names as the options, with
1288# dashes changed to underlines.
1289cache_file=/dev/null
1290exec_prefix=NONE
1291no_create=
1292no_recursion=
1293prefix=NONE
1294program_prefix=NONE
1295program_suffix=NONE
1296program_transform_name=s,x,x,
1297silent=
1298site=
1299srcdir=
1300verbose=
1301x_includes=NONE
1302x_libraries=NONE
1303
1304# Installation directory options.
1305# These are left unexpanded so users can "make install exec_prefix=/foo"
1306# and all the variables that are supposed to be based on exec_prefix
1307# by default will actually change.
1308# Use braces instead of parens because sh, perl, etc. also accept them.
1309# (The list follows the same order as the GNU Coding Standards.)
1310bindir='${exec_prefix}/bin'
1311sbindir='${exec_prefix}/sbin'
1312libexecdir='${exec_prefix}/libexec'
1313datarootdir='${prefix}/share'
1314datadir='${datarootdir}'
1315sysconfdir='${prefix}/etc'
1316sharedstatedir='${prefix}/com'
1317localstatedir='${prefix}/var'
1318includedir='${prefix}/include'
1319oldincludedir='/usr/include'
1320docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1321infodir='${datarootdir}/info'
1322htmldir='${docdir}'
1323dvidir='${docdir}'
1324pdfdir='${docdir}'
1325psdir='${docdir}'
1326libdir='${exec_prefix}/lib'
1327localedir='${datarootdir}/locale'
1328mandir='${datarootdir}/man'
1329
1330ac_prev=
1331ac_dashdash=
1332for ac_option
1333do
1334 # If the previous option needs an argument, assign it.
1335 if test -n "$ac_prev"; then
1336 eval $ac_prev=\$ac_option
1337 ac_prev=
1338 continue
1339 fi
1340
1341 case $ac_option in
1342 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1343 *) ac_optarg=yes ;;
1344 esac
1345
1346 # Accept the important Cygnus configure options, so we can diagnose typos.
1347
1348 case $ac_dashdash$ac_option in
1349 --)
1350 ac_dashdash=yes ;;
1351
1352 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1353 ac_prev=bindir ;;
1354 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1355 bindir=$ac_optarg ;;
1356
1357 -build | --build | --buil | --bui | --bu)
1358 ac_prev=build_alias ;;
1359 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1360 build_alias=$ac_optarg ;;
1361
1362 -cache-file | --cache-file | --cache-fil | --cache-fi \
1363 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1364 ac_prev=cache_file ;;
1365 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1366 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1367 cache_file=$ac_optarg ;;
1368
1369 --config-cache | -C)
1370 cache_file=config.cache ;;
1371
1372 -datadir | --datadir | --datadi | --datad)
1373 ac_prev=datadir ;;
1374 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1375 datadir=$ac_optarg ;;
1376
1377 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1378 | --dataroo | --dataro | --datar)
1379 ac_prev=datarootdir ;;
1380 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1381 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1382 datarootdir=$ac_optarg ;;
1383
1384 -disable-* | --disable-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001388 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393"enable_$ac_useropt"
1394"*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval enable_$ac_useropt=no ;;
1399
1400 -docdir | --docdir | --docdi | --doc | --do)
1401 ac_prev=docdir ;;
1402 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1403 docdir=$ac_optarg ;;
1404
1405 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1406 ac_prev=dvidir ;;
1407 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1408 dvidir=$ac_optarg ;;
1409
1410 -enable-* | --enable-*)
1411 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1412 # Reject names that are not valid shell variable names.
1413 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001414 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001415 ac_useropt_orig=$ac_useropt
1416 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1417 case $ac_user_opts in
1418 *"
1419"enable_$ac_useropt"
1420"*) ;;
1421 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1422 ac_unrecognized_sep=', ';;
1423 esac
1424 eval enable_$ac_useropt=\$ac_optarg ;;
1425
1426 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1427 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1428 | --exec | --exe | --ex)
1429 ac_prev=exec_prefix ;;
1430 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1431 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1432 | --exec=* | --exe=* | --ex=*)
1433 exec_prefix=$ac_optarg ;;
1434
1435 -gas | --gas | --ga | --g)
1436 # Obsolete; use --with-gas.
1437 with_gas=yes ;;
1438
1439 -help | --help | --hel | --he | -h)
1440 ac_init_help=long ;;
1441 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1442 ac_init_help=recursive ;;
1443 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1444 ac_init_help=short ;;
1445
1446 -host | --host | --hos | --ho)
1447 ac_prev=host_alias ;;
1448 -host=* | --host=* | --hos=* | --ho=*)
1449 host_alias=$ac_optarg ;;
1450
1451 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1452 ac_prev=htmldir ;;
1453 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1454 | --ht=*)
1455 htmldir=$ac_optarg ;;
1456
1457 -includedir | --includedir | --includedi | --included | --include \
1458 | --includ | --inclu | --incl | --inc)
1459 ac_prev=includedir ;;
1460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1461 | --includ=* | --inclu=* | --incl=* | --inc=*)
1462 includedir=$ac_optarg ;;
1463
1464 -infodir | --infodir | --infodi | --infod | --info | --inf)
1465 ac_prev=infodir ;;
1466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1467 infodir=$ac_optarg ;;
1468
1469 -libdir | --libdir | --libdi | --libd)
1470 ac_prev=libdir ;;
1471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1472 libdir=$ac_optarg ;;
1473
1474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1475 | --libexe | --libex | --libe)
1476 ac_prev=libexecdir ;;
1477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1478 | --libexe=* | --libex=* | --libe=*)
1479 libexecdir=$ac_optarg ;;
1480
1481 -localedir | --localedir | --localedi | --localed | --locale)
1482 ac_prev=localedir ;;
1483 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1484 localedir=$ac_optarg ;;
1485
1486 -localstatedir | --localstatedir | --localstatedi | --localstated \
1487 | --localstate | --localstat | --localsta | --localst | --locals)
1488 ac_prev=localstatedir ;;
1489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1490 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1491 localstatedir=$ac_optarg ;;
1492
1493 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1494 ac_prev=mandir ;;
1495 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1496 mandir=$ac_optarg ;;
1497
1498 -nfp | --nfp | --nf)
1499 # Obsolete; use --without-fp.
1500 with_fp=no ;;
1501
1502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1503 | --no-cr | --no-c | -n)
1504 no_create=yes ;;
1505
1506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1508 no_recursion=yes ;;
1509
1510 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1511 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1512 | --oldin | --oldi | --old | --ol | --o)
1513 ac_prev=oldincludedir ;;
1514 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1515 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1516 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1517 oldincludedir=$ac_optarg ;;
1518
1519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1520 ac_prev=prefix ;;
1521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1522 prefix=$ac_optarg ;;
1523
1524 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1525 | --program-pre | --program-pr | --program-p)
1526 ac_prev=program_prefix ;;
1527 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1528 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1529 program_prefix=$ac_optarg ;;
1530
1531 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1532 | --program-suf | --program-su | --program-s)
1533 ac_prev=program_suffix ;;
1534 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1535 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1536 program_suffix=$ac_optarg ;;
1537
1538 -program-transform-name | --program-transform-name \
1539 | --program-transform-nam | --program-transform-na \
1540 | --program-transform-n | --program-transform- \
1541 | --program-transform | --program-transfor \
1542 | --program-transfo | --program-transf \
1543 | --program-trans | --program-tran \
1544 | --progr-tra | --program-tr | --program-t)
1545 ac_prev=program_transform_name ;;
1546 -program-transform-name=* | --program-transform-name=* \
1547 | --program-transform-nam=* | --program-transform-na=* \
1548 | --program-transform-n=* | --program-transform-=* \
1549 | --program-transform=* | --program-transfor=* \
1550 | --program-transfo=* | --program-transf=* \
1551 | --program-trans=* | --program-tran=* \
1552 | --progr-tra=* | --program-tr=* | --program-t=*)
1553 program_transform_name=$ac_optarg ;;
1554
1555 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1556 ac_prev=pdfdir ;;
1557 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1558 pdfdir=$ac_optarg ;;
1559
1560 -psdir | --psdir | --psdi | --psd | --ps)
1561 ac_prev=psdir ;;
1562 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1563 psdir=$ac_optarg ;;
1564
1565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1566 | -silent | --silent | --silen | --sile | --sil)
1567 silent=yes ;;
1568
1569 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1570 ac_prev=sbindir ;;
1571 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1572 | --sbi=* | --sb=*)
1573 sbindir=$ac_optarg ;;
1574
1575 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1576 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1577 | --sharedst | --shareds | --shared | --share | --shar \
1578 | --sha | --sh)
1579 ac_prev=sharedstatedir ;;
1580 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1581 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1582 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1583 | --sha=* | --sh=*)
1584 sharedstatedir=$ac_optarg ;;
1585
1586 -site | --site | --sit)
1587 ac_prev=site ;;
1588 -site=* | --site=* | --sit=*)
1589 site=$ac_optarg ;;
1590
1591 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1592 ac_prev=srcdir ;;
1593 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1594 srcdir=$ac_optarg ;;
1595
1596 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1597 | --syscon | --sysco | --sysc | --sys | --sy)
1598 ac_prev=sysconfdir ;;
1599 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1600 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1601 sysconfdir=$ac_optarg ;;
1602
1603 -target | --target | --targe | --targ | --tar | --ta | --t)
1604 ac_prev=target_alias ;;
1605 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1606 target_alias=$ac_optarg ;;
1607
1608 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1609 verbose=yes ;;
1610
1611 -version | --version | --versio | --versi | --vers | -V)
1612 ac_init_version=: ;;
1613
1614 -with-* | --with-*)
1615 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1616 # Reject names that are not valid shell variable names.
1617 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001618 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001619 ac_useropt_orig=$ac_useropt
1620 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1621 case $ac_user_opts in
1622 *"
1623"with_$ac_useropt"
1624"*) ;;
1625 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1626 ac_unrecognized_sep=', ';;
1627 esac
1628 eval with_$ac_useropt=\$ac_optarg ;;
1629
1630 -without-* | --without-*)
1631 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1632 # Reject names that are not valid shell variable names.
1633 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001634 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001635 ac_useropt_orig=$ac_useropt
1636 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1637 case $ac_user_opts in
1638 *"
1639"with_$ac_useropt"
1640"*) ;;
1641 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1642 ac_unrecognized_sep=', ';;
1643 esac
1644 eval with_$ac_useropt=no ;;
1645
1646 --x)
1647 # Obsolete; use --with-x.
1648 with_x=yes ;;
1649
1650 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1651 | --x-incl | --x-inc | --x-in | --x-i)
1652 ac_prev=x_includes ;;
1653 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1654 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1655 x_includes=$ac_optarg ;;
1656
1657 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1658 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1659 ac_prev=x_libraries ;;
1660 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1661 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1662 x_libraries=$ac_optarg ;;
1663
cristy8b350f62009-11-15 23:12:43 +00001664 -*) as_fn_error "unrecognized option: \`$ac_option'
1665Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001666 ;;
1667
1668 *=*)
1669 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1670 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001671 case $ac_envvar in #(
1672 '' | [0-9]* | *[!_$as_cr_alnum]* )
1673 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1674 esac
cristy3ed852e2009-09-05 21:47:34 +00001675 eval $ac_envvar=\$ac_optarg
1676 export $ac_envvar ;;
1677
1678 *)
1679 # FIXME: should be removed in autoconf 3.0.
1680 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1681 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1682 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1683 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1684 ;;
1685
1686 esac
1687done
1688
1689if test -n "$ac_prev"; then
1690 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001691 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001692fi
1693
1694if test -n "$ac_unrecognized_opts"; then
1695 case $enable_option_checking in
1696 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001697 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001698 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1699 esac
1700fi
1701
1702# Check all directory arguments for consistency.
1703for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1704 datadir sysconfdir sharedstatedir localstatedir includedir \
1705 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1706 libdir localedir mandir
1707do
1708 eval ac_val=\$$ac_var
1709 # Remove trailing slashes.
1710 case $ac_val in
1711 */ )
1712 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1713 eval $ac_var=\$ac_val;;
1714 esac
1715 # Be sure to have absolute directory names.
1716 case $ac_val in
1717 [\\/$]* | ?:[\\/]* ) continue;;
1718 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1719 esac
cristy8b350f62009-11-15 23:12:43 +00001720 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001721done
1722
1723# There might be people who depend on the old broken behavior: `$host'
1724# used to hold the argument of --host etc.
1725# FIXME: To remove some day.
1726build=$build_alias
1727host=$host_alias
1728target=$target_alias
1729
1730# FIXME: To remove some day.
1731if test "x$host_alias" != x; then
1732 if test "x$build_alias" = x; then
1733 cross_compiling=maybe
1734 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1735 If a cross compiler is detected then cross compile mode will be used." >&2
1736 elif test "x$build_alias" != "x$host_alias"; then
1737 cross_compiling=yes
1738 fi
1739fi
1740
1741ac_tool_prefix=
1742test -n "$host_alias" && ac_tool_prefix=$host_alias-
1743
1744test "$silent" = yes && exec 6>/dev/null
1745
1746
1747ac_pwd=`pwd` && test -n "$ac_pwd" &&
1748ac_ls_di=`ls -di .` &&
1749ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001750 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001751test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001752 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001753
1754
1755# Find the source files, if location was not specified.
1756if test -z "$srcdir"; then
1757 ac_srcdir_defaulted=yes
1758 # Try the directory containing this script, then the parent directory.
1759 ac_confdir=`$as_dirname -- "$as_myself" ||
1760$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1761 X"$as_myself" : 'X\(//\)[^/]' \| \
1762 X"$as_myself" : 'X\(//\)$' \| \
1763 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1764$as_echo X"$as_myself" |
1765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1766 s//\1/
1767 q
1768 }
1769 /^X\(\/\/\)[^/].*/{
1770 s//\1/
1771 q
1772 }
1773 /^X\(\/\/\)$/{
1774 s//\1/
1775 q
1776 }
1777 /^X\(\/\).*/{
1778 s//\1/
1779 q
1780 }
1781 s/.*/./; q'`
1782 srcdir=$ac_confdir
1783 if test ! -r "$srcdir/$ac_unique_file"; then
1784 srcdir=..
1785 fi
1786else
1787 ac_srcdir_defaulted=no
1788fi
1789if test ! -r "$srcdir/$ac_unique_file"; then
1790 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001791 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001792fi
1793ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1794ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001795 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001796 pwd)`
1797# When building in place, set srcdir=.
1798if test "$ac_abs_confdir" = "$ac_pwd"; then
1799 srcdir=.
1800fi
1801# Remove unnecessary trailing slashes from srcdir.
1802# Double slashes in file names in object file debugging info
1803# mess up M-x gdb in Emacs.
1804case $srcdir in
1805*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1806esac
1807for ac_var in $ac_precious_vars; do
1808 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1809 eval ac_env_${ac_var}_value=\$${ac_var}
1810 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1811 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1812done
1813
1814#
1815# Report the --help message.
1816#
1817if test "$ac_init_help" = "long"; then
1818 # Omit some internal or obsolete options to make the list less imposing.
1819 # This message is too long to be a string in the A/UX 3.1 sh.
1820 cat <<_ACEOF
cristydc0f0892009-12-29 02:21:55 +00001821\`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001822
1823Usage: $0 [OPTION]... [VAR=VALUE]...
1824
1825To assign environment variables (e.g., CC, CFLAGS...), specify them as
1826VAR=VALUE. See below for descriptions of some of the useful variables.
1827
1828Defaults for the options are specified in brackets.
1829
1830Configuration:
1831 -h, --help display this help and exit
1832 --help=short display options specific to this package
1833 --help=recursive display the short help of all the included packages
1834 -V, --version display version information and exit
1835 -q, --quiet, --silent do not print \`checking...' messages
1836 --cache-file=FILE cache test results in FILE [disabled]
1837 -C, --config-cache alias for \`--cache-file=config.cache'
1838 -n, --no-create do not create output files
1839 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1840
1841Installation directories:
1842 --prefix=PREFIX install architecture-independent files in PREFIX
1843 [$ac_default_prefix]
1844 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1845 [PREFIX]
1846
1847By default, \`make install' will install all the files in
1848\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1849an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1850for instance \`--prefix=\$HOME'.
1851
1852For better control, use the options below.
1853
1854Fine tuning of the installation directories:
1855 --bindir=DIR user executables [EPREFIX/bin]
1856 --sbindir=DIR system admin executables [EPREFIX/sbin]
1857 --libexecdir=DIR program executables [EPREFIX/libexec]
1858 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1859 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1860 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1861 --libdir=DIR object code libraries [EPREFIX/lib]
1862 --includedir=DIR C header files [PREFIX/include]
1863 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1864 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1865 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1866 --infodir=DIR info documentation [DATAROOTDIR/info]
1867 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1868 --mandir=DIR man documentation [DATAROOTDIR/man]
1869 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1870 --htmldir=DIR html documentation [DOCDIR]
1871 --dvidir=DIR dvi documentation [DOCDIR]
1872 --pdfdir=DIR pdf documentation [DOCDIR]
1873 --psdir=DIR ps documentation [DOCDIR]
1874_ACEOF
1875
1876 cat <<\_ACEOF
1877
1878Program names:
1879 --program-prefix=PREFIX prepend PREFIX to installed program names
1880 --program-suffix=SUFFIX append SUFFIX to installed program names
1881 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1882
1883X features:
1884 --x-includes=DIR X include files are in DIR
1885 --x-libraries=DIR X library files are in DIR
1886
1887System types:
1888 --build=BUILD configure for building on BUILD [guessed]
1889 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1890 --target=TARGET configure for building compilers for TARGET [HOST]
1891_ACEOF
1892fi
1893
1894if test -n "$ac_init_help"; then
1895 case $ac_init_help in
cristydc0f0892009-12-29 02:21:55 +00001896 short | recursive ) echo "Configuration of ImageMagick 6.5.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001897 esac
1898 cat <<\_ACEOF
1899
1900Optional Features:
1901 --disable-option-checking ignore unrecognized --enable/--with options
1902 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1903 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1904 --enable-silent-rules less verbose build output (undo: `make V=1')
1905 --disable-silent-rules verbose build output (undo: `make V=0')
1906 --disable-dependency-tracking speeds up one-time build
1907 --enable-dependency-tracking do not reject slow dependency extractors
1908 --bounds-checking enable run-time bounds-checking
1909 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001910 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001911 --disable-openmp do not use OpenMP
1912 --disable-largefile omit support for large files
1913 --enable-shared[=PKGS] build shared libraries [default=yes]
1914 --enable-static[=PKGS] build static libraries [default=yes]
1915 --enable-fast-install[=PKGS]
1916 optimize for fast installation [default=yes]
1917 --disable-libtool-lock avoid locking (might break parallel builds)
1918 --enable-ltdl-install install libltdl
1919 --enable-delegate-build look for delegate libraries in build directory
1920 --disable-deprecated exclude deprecated methods in MagickCore and
1921 MagickWand API's
1922 --disable-installed Formally install ImageMagick under PREFIX
1923 --disable-cipher disable enciphering and deciphering image pixels
1924 --enable-embeddable enable self-contained, embeddable,
1925 zero-configuration ImageMagick
1926 --enable-hdri accurately represent the wide range of intensity
1927 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001928 --disable-assert disable assert() statements in build
1929 --enable-maintainer-mode enable make rules and dependencies not useful
1930 (and sometimes confusing) to the casual installer
1931 --enable-ccmalloc enable 'ccmalloc' memory debug support
1932 --enable-efence enable 'efence' memory debug support
1933 --enable-prof enable 'prof' profiling support
1934 --enable-gprof enable 'gprof' profiling support
1935 --enable-gcov enable 'gcov' profiling support
1936
1937Optional Packages:
1938 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1939 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1940 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1941 --without-maximum-compile-warnings
1942 Disable maximum warning verbosity
1943 --with-dmalloc use dmalloc, as in
1944 http://www.dmalloc.com/dmalloc.tar.gz
1945 --without-threads disable threads support
1946 --with-pic try to use only PIC/non-PIC objects [default=use
1947 both]
1948 --with-included-ltdl use the GNU ltdl sources included here
1949 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1950 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1951 --with-modules enable building dynamically loadable modules
1952 --with-method-prefix=PREFIX
1953 prefix MagickCore API methods
1954 --with-quantum-depth=DEPTH
1955 number of bits in a pixel quantum (default 16)
1956 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1957 memory)
1958 --with-frozenpaths freeze delegate paths
1959 --without-magick-plus-plus
1960 disable build/install of Magick++
1961 --with-perl enable build/install of PerlMagick
1962 --with-perl-options=OPTIONS
1963 options to pass on command-line when generating
1964 PerlMagick's build file
1965 --with-umem enable umem memory allocation library support
1966 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1967 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001968 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001969 --without-zlib disable ZLIB support
1970 --with-autotrace enable autotrace support
1971 --without-dps disable Display Postscript support
1972 --without-djvu disable DjVu support
1973 --without-fftw disable FFTW support
1974 --without-fpx disable FlashPIX support
1975 --without-fontconfig disable fontconfig support
1976 --without-freetype disable Freetype support
1977 --without-gslib enable Ghostscript library support
1978 --with-fontpath=DIR prepend to default font search path
1979 --with-gs-font-dir=DIR Ghostscript font directory
1980 --without-gvc disable GVC support
1981 --without-jbig disable JBIG support
1982 --without-jpeg disable JPEG support
1983 --without-jp2 disable JPEG-2000 support
1984 --without-lcms disable LCMS support
1985 --without-lqr disable Liquid Rescale support (experimental)
1986 --without-openexr disable OpenEXR support
1987 --without-png disable PNG support
1988 --without-rsvg disable RSVG support
1989 --without-tiff disable TIFF support
1990 --with-windows-font-dir=DIR
1991 directory containing MS-Windows fonts
1992 --without-wmf disable WMF support
1993 --without-xml disable XML support
1994
1995Some influential environment variables:
1996 CC C compiler command
1997 CFLAGS C compiler flags
1998 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1999 nonstandard directory <lib dir>
2000 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002001 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002002 you have headers in a nonstandard directory <include dir>
cristy3ed852e2009-09-05 21:47:34 +00002003 CXX C++ compiler command
2004 CXXFLAGS C++ compiler flags
cristy95646052009-11-28 23:05:30 +00002005 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002006 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002007 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002008 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002009 AUTOTRACE_CFLAGS
2010 C compiler flags for AUTOTRACE, overriding pkg-config
2011 AUTOTRACE_LIBS
2012 linker flags for AUTOTRACE, overriding pkg-config
2013 FONTCONFIG_CFLAGS
2014 C compiler flags for FONTCONFIG, overriding pkg-config
2015 FONTCONFIG_LIBS
2016 linker flags for FONTCONFIG, overriding pkg-config
2017 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2018 GVC_LIBS linker flags for GVC, overriding pkg-config
2019 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2020 LQR_LIBS linker flags for LQR, overriding pkg-config
2021 OPENEXR_CFLAGS
2022 C compiler flags for OPENEXR, overriding pkg-config
2023 OPENEXR_LIBS
2024 linker flags for OPENEXR, overriding pkg-config
2025 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2026 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2027 CAIRO_SVG_CFLAGS
2028 C compiler flags for CAIRO_SVG, overriding pkg-config
2029 CAIRO_SVG_LIBS
2030 linker flags for CAIRO_SVG, overriding pkg-config
2031
2032Use these variables to override the choices made by `configure' or to help
2033it to find libraries and programs with nonstandard names/locations.
2034
2035Report bugs to <http://www.imagemagick.org>.
2036_ACEOF
2037ac_status=$?
2038fi
2039
2040if test "$ac_init_help" = "recursive"; then
2041 # If there are subdirs, report their specific --help.
2042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2043 test -d "$ac_dir" ||
2044 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2045 continue
2046 ac_builddir=.
2047
2048case "$ac_dir" in
2049.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050*)
2051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2052 # A ".." for each directory in $ac_dir_suffix.
2053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2054 case $ac_top_builddir_sub in
2055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2057 esac ;;
2058esac
2059ac_abs_top_builddir=$ac_pwd
2060ac_abs_builddir=$ac_pwd$ac_dir_suffix
2061# for backward compatibility:
2062ac_top_builddir=$ac_top_build_prefix
2063
2064case $srcdir in
2065 .) # We are building in place.
2066 ac_srcdir=.
2067 ac_top_srcdir=$ac_top_builddir_sub
2068 ac_abs_top_srcdir=$ac_pwd ;;
2069 [\\/]* | ?:[\\/]* ) # Absolute name.
2070 ac_srcdir=$srcdir$ac_dir_suffix;
2071 ac_top_srcdir=$srcdir
2072 ac_abs_top_srcdir=$srcdir ;;
2073 *) # Relative name.
2074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2075 ac_top_srcdir=$ac_top_build_prefix$srcdir
2076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2077esac
2078ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2079
2080 cd "$ac_dir" || { ac_status=$?; continue; }
2081 # Check for guested configure.
2082 if test -f "$ac_srcdir/configure.gnu"; then
2083 echo &&
2084 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2085 elif test -f "$ac_srcdir/configure"; then
2086 echo &&
2087 $SHELL "$ac_srcdir/configure" --help=recursive
2088 else
2089 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090 fi || ac_status=$?
2091 cd "$ac_pwd" || { ac_status=$?; break; }
2092 done
2093fi
2094
2095test -n "$ac_init_help" && exit $ac_status
2096if $ac_init_version; then
2097 cat <<\_ACEOF
cristydc0f0892009-12-29 02:21:55 +00002098ImageMagick configure 6.5.9
cristycd4c5312009-11-22 01:19:08 +00002099generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002100
cristy8b350f62009-11-15 23:12:43 +00002101Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002102This configure script is free software; the Free Software Foundation
2103gives unlimited permission to copy, distribute and modify it.
2104_ACEOF
2105 exit
2106fi
cristy8b350f62009-11-15 23:12:43 +00002107
2108## ------------------------ ##
2109## Autoconf initialization. ##
2110## ------------------------ ##
2111
2112# ac_fn_c_try_compile LINENO
2113# --------------------------
2114# Try to compile conftest.$ac_ext, and return whether this succeeded.
2115ac_fn_c_try_compile ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 rm -f conftest.$ac_objext
2119 if { { ac_try="$ac_compile"
2120case "(($ac_try" in
2121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2123esac
2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125$as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_compile") 2>conftest.err
2127 ac_status=$?
2128 if test -s conftest.err; then
2129 grep -v '^ *+' conftest.err >conftest.er1
2130 cat conftest.er1 >&5
2131 mv -f conftest.er1 conftest.err
2132 fi
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } && {
2135 test -z "$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2137 } && test -s conftest.$ac_objext; then :
2138 ac_retval=0
2139else
2140 $as_echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143 ac_retval=1
2144fi
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002146 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002147
2148} # ac_fn_c_try_compile
2149
cristy8b350f62009-11-15 23:12:43 +00002150# ac_fn_cxx_try_compile LINENO
2151# ----------------------------
2152# Try to compile conftest.$ac_ext, and return whether this succeeded.
2153ac_fn_cxx_try_compile ()
2154{
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 rm -f conftest.$ac_objext
2157 if { { ac_try="$ac_compile"
2158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
2162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163$as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_compile") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2170 fi
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && {
2173 test -z "$ac_cxx_werror_flag" ||
2174 test ! -s conftest.err
2175 } && test -s conftest.$ac_objext; then :
2176 ac_retval=0
2177else
2178 $as_echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1
2182fi
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002184 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002185
2186} # ac_fn_cxx_try_compile
2187
cristy95646052009-11-28 23:05:30 +00002188# ac_fn_c_try_cpp LINENO
2189# ----------------------
2190# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2191ac_fn_c_try_cpp ()
2192{
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 if { { ac_try="$ac_cpp conftest.$ac_ext"
2195case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2202 ac_status=$?
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2207 fi
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } >/dev/null && {
2210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 }; then :
2213 ac_retval=0
2214else
2215 $as_echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=1
2219fi
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 as_fn_set_status $ac_retval
2222
2223} # ac_fn_c_try_cpp
2224
cristy8b350f62009-11-15 23:12:43 +00002225# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2226# -------------------------------------------------------
2227# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2228# the include files in INCLUDES and setting the cache variable VAR
2229# accordingly.
2230ac_fn_c_check_header_mongrel ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2237 $as_echo_n "(cached) " >&6
2238fi
2239eval ac_res=\$$3
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241$as_echo "$ac_res" >&6; }
2242else
2243 # Is the header compilable?
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2245$as_echo_n "checking $2 usability... " >&6; }
2246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247/* end confdefs.h. */
2248$4
2249#include <$2>
2250_ACEOF
2251if ac_fn_c_try_compile "$LINENO"; then :
2252 ac_header_compiler=yes
2253else
2254 ac_header_compiler=no
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2258$as_echo "$ac_header_compiler" >&6; }
2259
2260# Is the header present?
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2262$as_echo_n "checking $2 presence... " >&6; }
2263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264/* end confdefs.h. */
2265#include <$2>
2266_ACEOF
2267if ac_fn_c_try_cpp "$LINENO"; then :
2268 ac_header_preproc=yes
2269else
2270 ac_header_preproc=no
2271fi
2272rm -f conftest.err conftest.$ac_ext
2273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2274$as_echo "$ac_header_preproc" >&6; }
2275
2276# So? What about this header?
2277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2278 yes:no: )
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2280$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2282$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2283 ;;
2284 no:yes:* )
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2286$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2288$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2290$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2292$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295( cat <<\_ASBOX
2296## ----------------------------------------- ##
2297## Report this to http://www.imagemagick.org ##
2298## ----------------------------------------- ##
2299_ASBOX
2300 ) | sed "s/^/$as_me: WARNING: /" >&2
2301 ;;
2302esac
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2304$as_echo_n "checking for $2... " >&6; }
2305if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2306 $as_echo_n "(cached) " >&6
2307else
2308 eval "$3=\$ac_header_compiler"
2309fi
2310eval ac_res=\$$3
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312$as_echo "$ac_res" >&6; }
2313fi
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315
2316} # ac_fn_c_check_header_mongrel
2317
2318# ac_fn_c_try_run LINENO
2319# ----------------------
2320# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2321# that executables *can* be run.
2322ac_fn_c_try_run ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 if { { ac_try="$ac_link"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_link") 2>&5
2333 ac_status=$?
2334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2335 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2336 { { case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341$as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_try") 2>&5
2343 ac_status=$?
2344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2345 test $ac_status = 0; }; }; then :
2346 ac_retval=0
2347else
2348 $as_echo "$as_me: program exited with status $ac_status" >&5
2349 $as_echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 ac_retval=$ac_status
2353fi
2354 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002356 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002357
2358} # ac_fn_c_try_run
2359
2360# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2361# -------------------------------------------------------
2362# Tests whether HEADER exists and can be compiled using the include files in
2363# INCLUDES, setting the cache variable VAR accordingly.
2364ac_fn_c_check_header_compile ()
2365{
2366 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368$as_echo_n "checking for $2... " >&6; }
2369if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2370 $as_echo_n "(cached) " >&6
2371else
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373/* end confdefs.h. */
2374$4
2375#include <$2>
2376_ACEOF
2377if ac_fn_c_try_compile "$LINENO"; then :
2378 eval "$3=yes"
2379else
2380 eval "$3=no"
2381fi
2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383fi
2384eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386$as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388
2389} # ac_fn_c_check_header_compile
2390
2391# ac_fn_c_try_link LINENO
2392# -----------------------
2393# Try to link conftest.$ac_ext, and return whether this succeeded.
2394ac_fn_c_try_link ()
2395{
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2399case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402esac
2403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404$as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2411 fi
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest$ac_exeext
2419 }; then :
2420 ac_retval=0
2421else
2422 $as_echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_retval=1
2426fi
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002433 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002434
2435} # ac_fn_c_try_link
2436
2437# ac_fn_c_check_func LINENO FUNC VAR
2438# ----------------------------------
2439# Tests whether FUNC exists, setting the cache variable VAR accordingly
2440ac_fn_c_check_func ()
2441{
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444$as_echo_n "checking for $2... " >&6; }
2445if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2446 $as_echo_n "(cached) " >&6
2447else
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449/* end confdefs.h. */
2450/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2452#define $2 innocuous_$2
2453
2454/* System header to define __stub macros and hopefully few prototypes,
2455 which can conflict with char $2 (); below.
2456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2457 <limits.h> exists even on freestanding compilers. */
2458
2459#ifdef __STDC__
2460# include <limits.h>
2461#else
2462# include <assert.h>
2463#endif
2464
2465#undef $2
2466
2467/* Override any GCC internal prototype to avoid an error.
2468 Use char because int might match the return type of a GCC
2469 builtin and then its argument prototype would still apply. */
2470#ifdef __cplusplus
2471extern "C"
2472#endif
2473char $2 ();
2474/* The GNU C library defines this for functions which it implements
2475 to always fail with ENOSYS. Some functions are actually named
2476 something starting with __ and the normal name is an alias. */
2477#if defined __stub_$2 || defined __stub___$2
2478choke me
2479#endif
2480
2481int
2482main ()
2483{
2484return $2 ();
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489if ac_fn_c_try_link "$LINENO"; then :
2490 eval "$3=yes"
2491else
2492 eval "$3=no"
2493fi
2494rm -f core conftest.err conftest.$ac_objext \
2495 conftest$ac_exeext conftest.$ac_ext
2496fi
2497eval ac_res=\$$3
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2499$as_echo "$ac_res" >&6; }
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501
2502} # ac_fn_c_check_func
2503
2504# ac_fn_cxx_try_cpp LINENO
2505# ------------------------
2506# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2507ac_fn_cxx_try_cpp ()
2508{
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 if { { ac_try="$ac_cpp conftest.$ac_ext"
2511case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514esac
2515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516$as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2518 ac_status=$?
2519 if test -s conftest.err; then
2520 grep -v '^ *+' conftest.err >conftest.er1
2521 cat conftest.er1 >&5
2522 mv -f conftest.er1 conftest.err
2523 fi
2524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2525 test $ac_status = 0; } >/dev/null && {
2526 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2527 test ! -s conftest.err
2528 }; then :
2529 ac_retval=0
2530else
2531 $as_echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534 ac_retval=1
2535fi
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002537 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002538
2539} # ac_fn_cxx_try_cpp
2540
2541# ac_fn_cxx_try_link LINENO
2542# -------------------------
2543# Try to link conftest.$ac_ext, and return whether this succeeded.
2544ac_fn_cxx_try_link ()
2545{
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 rm -f conftest.$ac_objext conftest$ac_exeext
2548 if { { ac_try="$ac_link"
2549case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552esac
2553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554$as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_link") 2>conftest.err
2556 ac_status=$?
2557 if test -s conftest.err; then
2558 grep -v '^ *+' conftest.err >conftest.er1
2559 cat conftest.er1 >&5
2560 mv -f conftest.er1 conftest.err
2561 fi
2562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563 test $ac_status = 0; } && {
2564 test -z "$ac_cxx_werror_flag" ||
2565 test ! -s conftest.err
2566 } && test -s conftest$ac_exeext && {
2567 test "$cross_compiling" = yes ||
2568 $as_test_x conftest$ac_exeext
2569 }; then :
2570 ac_retval=0
2571else
2572 $as_echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575 ac_retval=1
2576fi
2577 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2578 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2579 # interfere with the next link command; also delete a directory that is
2580 # left behind by Apple's compiler. We do this before executing the actions.
2581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002583 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002584
2585} # ac_fn_cxx_try_link
2586
2587# ac_fn_c_check_decl LINENO SYMBOL VAR
2588# ------------------------------------
2589# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2590ac_fn_c_check_decl ()
2591{
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2594$as_echo_n "checking whether $2 is declared... " >&6; }
2595if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2596 $as_echo_n "(cached) " >&6
2597else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h. */
2600$4
2601int
2602main ()
2603{
2604#ifndef $2
2605 (void) $2;
2606#endif
2607
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$3=yes"
2614else
2615 eval "$3=no"
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619eval ac_res=\$$3
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621$as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623
2624} # ac_fn_c_check_decl
2625
2626# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2627# -------------------------------------------
2628# Tests whether TYPE exists after having included INCLUDES, setting cache
2629# variable VAR accordingly.
2630ac_fn_c_check_type ()
2631{
2632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2634$as_echo_n "checking for $2... " >&6; }
2635if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2636 $as_echo_n "(cached) " >&6
2637else
2638 eval "$3=no"
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640/* end confdefs.h. */
2641$4
2642int
2643main ()
2644{
2645if (sizeof ($2))
2646 return 0;
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651if ac_fn_c_try_compile "$LINENO"; then :
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$4
2655int
2656main ()
2657{
2658if (sizeof (($2)))
2659 return 0;
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664if ac_fn_c_try_compile "$LINENO"; then :
2665
2666else
2667 eval "$3=yes"
2668fi
2669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670fi
2671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672fi
2673eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675$as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677
2678} # ac_fn_c_check_type
2679
2680# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2681# --------------------------------------------
2682# Tries to find the compile-time value of EXPR in a program that includes
2683# INCLUDES, setting VAR accordingly. Returns whether the value could be
2684# computed
2685ac_fn_c_compute_int ()
2686{
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 if test "$cross_compiling" = yes; then
2689 # Depending upon the size, compute the lo and hi bounds.
2690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691/* end confdefs.h. */
2692$4
2693int
2694main ()
2695{
2696static int test_array [1 - 2 * !(($2) >= 0)];
2697test_array [0] = 0
2698
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703if ac_fn_c_try_compile "$LINENO"; then :
2704 ac_lo=0 ac_mid=0
2705 while :; do
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$4
2709int
2710main ()
2711{
2712static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2713test_array [0] = 0
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_compile "$LINENO"; then :
2720 ac_hi=$ac_mid; break
2721else
2722 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2723 if test $ac_lo -le $ac_mid; then
2724 ac_lo= ac_hi=
2725 break
2726 fi
2727 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2728fi
2729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731else
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733/* end confdefs.h. */
2734$4
2735int
2736main ()
2737{
2738static int test_array [1 - 2 * !(($2) < 0)];
2739test_array [0] = 0
2740
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745if ac_fn_c_try_compile "$LINENO"; then :
2746 ac_hi=-1 ac_mid=-1
2747 while :; do
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749/* end confdefs.h. */
2750$4
2751int
2752main ()
2753{
2754static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2755test_array [0] = 0
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761if ac_fn_c_try_compile "$LINENO"; then :
2762 ac_lo=$ac_mid; break
2763else
2764 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2765 if test $ac_mid -le $ac_hi; then
2766 ac_lo= ac_hi=
2767 break
2768 fi
2769 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 done
2773else
2774 ac_lo= ac_hi=
2775fi
2776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777fi
2778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779# Binary search between lo and hi bounds.
2780while test "x$ac_lo" != "x$ac_hi"; do
2781 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783/* end confdefs.h. */
2784$4
2785int
2786main ()
2787{
2788static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789test_array [0] = 0
2790
2791 ;
2792 return 0;
2793}
2794_ACEOF
2795if ac_fn_c_try_compile "$LINENO"; then :
2796 ac_hi=$ac_mid
2797else
2798 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2799fi
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801done
2802case $ac_lo in #((
2803?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2804'') ac_retval=1 ;;
2805esac
2806 else
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808/* end confdefs.h. */
2809$4
2810static long int longval () { return $2; }
2811static unsigned long int ulongval () { return $2; }
2812#include <stdio.h>
2813#include <stdlib.h>
2814int
2815main ()
2816{
2817
2818 FILE *f = fopen ("conftest.val", "w");
2819 if (! f)
2820 return 1;
2821 if (($2) < 0)
2822 {
2823 long int i = longval ();
2824 if (i != ($2))
2825 return 1;
2826 fprintf (f, "%ld", i);
2827 }
2828 else
2829 {
2830 unsigned long int i = ulongval ();
2831 if (i != ($2))
2832 return 1;
2833 fprintf (f, "%lu", i);
2834 }
2835 /* Do not output a trailing newline, as this causes \r\n confusion
2836 on some platforms. */
2837 return ferror (f) || fclose (f) != 0;
2838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_run "$LINENO"; then :
2844 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2845else
2846 ac_retval=1
2847fi
2848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2849 conftest.$ac_objext conftest.beam conftest.$ac_ext
2850rm -f conftest.val
2851
2852 fi
2853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002854 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002855
2856} # ac_fn_c_compute_int
2857
2858# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2859# ---------------------------------------------------------
2860# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2861# the include files in INCLUDES and setting the cache variable VAR
2862# accordingly.
2863ac_fn_cxx_check_header_mongrel ()
2864{
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2868$as_echo_n "checking for $2... " >&6; }
2869if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2870 $as_echo_n "(cached) " >&6
2871fi
2872eval ac_res=\$$3
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874$as_echo "$ac_res" >&6; }
2875else
2876 # Is the header compilable?
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2878$as_echo_n "checking $2 usability... " >&6; }
2879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880/* end confdefs.h. */
2881$4
2882#include <$2>
2883_ACEOF
2884if ac_fn_cxx_try_compile "$LINENO"; then :
2885 ac_header_compiler=yes
2886else
2887 ac_header_compiler=no
2888fi
2889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2891$as_echo "$ac_header_compiler" >&6; }
2892
2893# Is the header present?
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2895$as_echo_n "checking $2 presence... " >&6; }
2896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h. */
2898#include <$2>
2899_ACEOF
2900if ac_fn_cxx_try_cpp "$LINENO"; then :
2901 ac_header_preproc=yes
2902else
2903 ac_header_preproc=no
2904fi
2905rm -f conftest.err conftest.$ac_ext
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2907$as_echo "$ac_header_preproc" >&6; }
2908
2909# So? What about this header?
2910case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2911 yes:no: )
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2913$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2916 ;;
2917 no:yes:* )
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2919$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2921$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2923$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2925$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2928( cat <<\_ASBOX
2929## ----------------------------------------- ##
2930## Report this to http://www.imagemagick.org ##
2931## ----------------------------------------- ##
2932_ASBOX
2933 ) | sed "s/^/$as_me: WARNING: /" >&2
2934 ;;
2935esac
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2937$as_echo_n "checking for $2... " >&6; }
2938if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2939 $as_echo_n "(cached) " >&6
2940else
2941 eval "$3=\$ac_header_compiler"
2942fi
2943eval ac_res=\$$3
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945$as_echo "$ac_res" >&6; }
2946fi
2947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2948
2949} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002950cat >config.log <<_ACEOF
2951This file contains any messages produced by compilers while
2952running configure, to aid debugging if configure makes a mistake.
2953
cristydc0f0892009-12-29 02:21:55 +00002954It was created by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +00002955generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002956
2957 $ $0 $@
2958
2959_ACEOF
2960exec 5>>config.log
2961{
2962cat <<_ASUNAME
2963## --------- ##
2964## Platform. ##
2965## --------- ##
2966
2967hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2968uname -m = `(uname -m) 2>/dev/null || echo unknown`
2969uname -r = `(uname -r) 2>/dev/null || echo unknown`
2970uname -s = `(uname -s) 2>/dev/null || echo unknown`
2971uname -v = `(uname -v) 2>/dev/null || echo unknown`
2972
2973/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2974/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2975
2976/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2977/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2978/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2979/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2980/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2981/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2982/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2983
2984_ASUNAME
2985
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002991 $as_echo "PATH: $as_dir"
2992 done
cristy3ed852e2009-09-05 21:47:34 +00002993IFS=$as_save_IFS
2994
2995} >&5
2996
2997cat >&5 <<_ACEOF
2998
2999
3000## ----------- ##
3001## Core tests. ##
3002## ----------- ##
3003
3004_ACEOF
3005
3006
3007# Keep a trace of the command line.
3008# Strip out --no-create and --no-recursion so they do not pile up.
3009# Strip out --silent because we don't want to record it for future runs.
3010# Also quote any args containing shell meta-characters.
3011# Make two passes to allow for proper duplicate-argument suppression.
3012ac_configure_args=
3013ac_configure_args0=
3014ac_configure_args1=
3015ac_must_keep_next=false
3016for ac_pass in 1 2
3017do
3018 for ac_arg
3019 do
3020 case $ac_arg in
3021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3023 | -silent | --silent | --silen | --sile | --sil)
3024 continue ;;
3025 *\'*)
3026 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3027 esac
3028 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003029 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003030 2)
cristy8b350f62009-11-15 23:12:43 +00003031 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003032 if test $ac_must_keep_next = true; then
3033 ac_must_keep_next=false # Got value, back to normal.
3034 else
3035 case $ac_arg in
3036 *=* | --config-cache | -C | -disable-* | --disable-* \
3037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3039 | -with-* | --with-* | -without-* | --without-* | --x)
3040 case "$ac_configure_args0 " in
3041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3042 esac
3043 ;;
3044 -* ) ac_must_keep_next=true ;;
3045 esac
3046 fi
cristy8b350f62009-11-15 23:12:43 +00003047 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003048 ;;
3049 esac
3050 done
3051done
cristy8b350f62009-11-15 23:12:43 +00003052{ ac_configure_args0=; unset ac_configure_args0;}
3053{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003054
3055# When interrupted or exit'd, cleanup temporary files, and complete
3056# config.log. We remove comments because anyway the quotes in there
3057# would cause problems or look ugly.
3058# WARNING: Use '\'' to represent an apostrophe within the trap.
3059# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3060trap 'exit_status=$?
3061 # Save into config.log some information that might help in debugging.
3062 {
3063 echo
3064
3065 cat <<\_ASBOX
3066## ---------------- ##
3067## Cache variables. ##
3068## ---------------- ##
3069_ASBOX
3070 echo
3071 # The following way of writing the cache mishandles newlines in values,
3072(
3073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3074 eval ac_val=\$$ac_var
3075 case $ac_val in #(
3076 *${as_nl}*)
3077 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3080 esac
3081 case $ac_var in #(
3082 _ | IFS | as_nl) ;; #(
3083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003084 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003085 esac ;;
3086 esac
3087 done
3088 (set) 2>&1 |
3089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3090 *${as_nl}ac_space=\ *)
3091 sed -n \
3092 "s/'\''/'\''\\\\'\'''\''/g;
3093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3094 ;; #(
3095 *)
3096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3097 ;;
3098 esac |
3099 sort
3100)
3101 echo
3102
3103 cat <<\_ASBOX
3104## ----------------- ##
3105## Output variables. ##
3106## ----------------- ##
3107_ASBOX
3108 echo
3109 for ac_var in $ac_subst_vars
3110 do
3111 eval ac_val=\$$ac_var
3112 case $ac_val in
3113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 esac
3115 $as_echo "$ac_var='\''$ac_val'\''"
3116 done | sort
3117 echo
3118
3119 if test -n "$ac_subst_files"; then
3120 cat <<\_ASBOX
3121## ------------------- ##
3122## File substitutions. ##
3123## ------------------- ##
3124_ASBOX
3125 echo
3126 for ac_var in $ac_subst_files
3127 do
3128 eval ac_val=\$$ac_var
3129 case $ac_val in
3130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 esac
3132 $as_echo "$ac_var='\''$ac_val'\''"
3133 done | sort
3134 echo
3135 fi
3136
3137 if test -s confdefs.h; then
3138 cat <<\_ASBOX
3139## ----------- ##
3140## confdefs.h. ##
3141## ----------- ##
3142_ASBOX
3143 echo
3144 cat confdefs.h
3145 echo
3146 fi
3147 test "$ac_signal" != 0 &&
3148 $as_echo "$as_me: caught signal $ac_signal"
3149 $as_echo "$as_me: exit $exit_status"
3150 } >&5
3151 rm -f core *.core core.conftest.* &&
3152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3153 exit $exit_status
3154' 0
3155for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003157done
3158ac_signal=0
3159
3160# confdefs.h avoids OS command line length limits that DEFS can exceed.
3161rm -f -r conftest* confdefs.h
3162
cristy8b350f62009-11-15 23:12:43 +00003163$as_echo "/* confdefs.h */" > confdefs.h
3164
cristy3ed852e2009-09-05 21:47:34 +00003165# Predefined preprocessor variables.
3166
3167cat >>confdefs.h <<_ACEOF
3168#define PACKAGE_NAME "$PACKAGE_NAME"
3169_ACEOF
3170
cristy3ed852e2009-09-05 21:47:34 +00003171cat >>confdefs.h <<_ACEOF
3172#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3173_ACEOF
3174
cristy3ed852e2009-09-05 21:47:34 +00003175cat >>confdefs.h <<_ACEOF
3176#define PACKAGE_VERSION "$PACKAGE_VERSION"
3177_ACEOF
3178
cristy3ed852e2009-09-05 21:47:34 +00003179cat >>confdefs.h <<_ACEOF
3180#define PACKAGE_STRING "$PACKAGE_STRING"
3181_ACEOF
3182
cristy3ed852e2009-09-05 21:47:34 +00003183cat >>confdefs.h <<_ACEOF
3184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3185_ACEOF
3186
cristy8b350f62009-11-15 23:12:43 +00003187cat >>confdefs.h <<_ACEOF
3188#define PACKAGE_URL "$PACKAGE_URL"
3189_ACEOF
3190
cristy3ed852e2009-09-05 21:47:34 +00003191
3192# Let the site file select an alternate cache file if it wants to.
3193# Prefer an explicitly selected file to automatically selected ones.
3194ac_site_file1=NONE
3195ac_site_file2=NONE
3196if test -n "$CONFIG_SITE"; then
3197 ac_site_file1=$CONFIG_SITE
3198elif test "x$prefix" != xNONE; then
3199 ac_site_file1=$prefix/share/config.site
3200 ac_site_file2=$prefix/etc/config.site
3201else
3202 ac_site_file1=$ac_default_prefix/share/config.site
3203 ac_site_file2=$ac_default_prefix/etc/config.site
3204fi
3205for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3206do
3207 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003210$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3211 sed 's/^/| /' "$ac_site_file" >&5
3212 . "$ac_site_file"
3213 fi
3214done
3215
3216if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003217 # Some versions of bash will fail to source /dev/null (special files
3218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003221$as_echo "$as_me: loading cache $cache_file" >&6;}
3222 case $cache_file in
3223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3224 *) . "./$cache_file";;
3225 esac
3226 fi
3227else
cristy8b350f62009-11-15 23:12:43 +00003228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003229$as_echo "$as_me: creating cache $cache_file" >&6;}
3230 >$cache_file
3231fi
3232
cristycd4c5312009-11-22 01:19:08 +00003233as_fn_append ac_header_list " stdlib.h"
3234as_fn_append ac_header_list " unistd.h"
3235as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003236# Check that the precious variables saved in the cache have kept the same
3237# value.
3238ac_cache_corrupted=false
3239for ac_var in $ac_precious_vars; do
3240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3241 eval ac_new_set=\$ac_env_${ac_var}_set
3242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3243 eval ac_new_val=\$ac_env_${ac_var}_value
3244 case $ac_old_set,$ac_new_set in
3245 set,)
cristy8b350f62009-11-15 23:12:43 +00003246 { $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 +00003247$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3248 ac_cache_corrupted=: ;;
3249 ,set)
cristy8b350f62009-11-15 23:12:43 +00003250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003251$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3252 ac_cache_corrupted=: ;;
3253 ,);;
3254 *)
3255 if test "x$ac_old_val" != "x$ac_new_val"; then
3256 # differences in whitespace do not lead to failure.
3257 ac_old_val_w=`echo x $ac_old_val`
3258 ac_new_val_w=`echo x $ac_new_val`
3259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3262 ac_cache_corrupted=:
3263 else
cristy8b350f62009-11-15 23:12:43 +00003264 { $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 +00003265$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3266 eval $ac_var=\$ac_old_val
3267 fi
cristy8b350f62009-11-15 23:12:43 +00003268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003269$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003271$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3272 fi;;
3273 esac
3274 # Pass precious variables to config.status.
3275 if test "$ac_new_set" = set; then
3276 case $ac_new_val in
3277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3278 *) ac_arg=$ac_var=$ac_new_val ;;
3279 esac
3280 case " $ac_configure_args " in
3281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003283 esac
3284 fi
3285done
3286if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003290$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003291 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003292fi
cristy8b350f62009-11-15 23:12:43 +00003293## -------------------- ##
3294## Main body of script. ##
3295## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303
3304
3305ac_aux_dir=
3306for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003307 for ac_t in install-sh install.sh shtool; do
3308 if test -f "$ac_dir/$ac_t"; then
3309 ac_aux_dir=$ac_dir
3310 ac_install_sh="$ac_aux_dir/$ac_t -c"
3311 break 2
3312 fi
3313 done
cristy3ed852e2009-09-05 21:47:34 +00003314done
3315if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003316 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003317fi
3318
3319# These three variables are undocumented and unsupported,
3320# and are intended to be withdrawn in a future Autoconf release.
3321# They can cause serious problems if a builder's source tree is in a directory
3322# whose full name contains unusual characters.
3323ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3324ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3325ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3326
3327
3328
3329
3330ac_config_headers="$ac_config_headers config/config.h"
3331
3332ac_config_commands="$ac_config_commands magick/magick-config.h"
3333
3334ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3335
3336
3337#
3338# Save initial user-tunable values
3339#
3340USER_LIBS=$LIBS
3341for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3342 eval isset=\${$var+set}
3343 if test "$isset" = 'set'; then
3344 eval val=$`echo $var`
3345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3346 fi
3347done
3348
3349
3350CONFIGURE_ARGS="$0 ${ac_configure_args}"
3351
3352
3353# Source file containing package/library versioning information.
3354. ${srcdir}/version.sh
3355
3356echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3357# Make sure we can run config.sub.
3358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003359 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003360
cristy8b350f62009-11-15 23:12:43 +00003361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003363if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003364 $as_echo_n "(cached) " >&6
3365else
3366 ac_build_alias=$build_alias
3367test "x$ac_build_alias" = x &&
3368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3369test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003370 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003372 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003373
3374fi
cristy8b350f62009-11-15 23:12:43 +00003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003376$as_echo "$ac_cv_build" >&6; }
3377case $ac_cv_build in
3378*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003379*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003380esac
3381build=$ac_cv_build
3382ac_save_IFS=$IFS; IFS='-'
3383set x $ac_cv_build
3384shift
3385build_cpu=$1
3386build_vendor=$2
3387shift; shift
3388# Remember, the first character of IFS is used to create $*,
3389# except with old shells:
3390build_os=$*
3391IFS=$ac_save_IFS
3392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3393
3394
cristy8b350f62009-11-15 23:12:43 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003397if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003398 $as_echo_n "(cached) " >&6
3399else
3400 if test "x$host_alias" = x; then
3401 ac_cv_host=$ac_cv_build
3402else
3403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003404 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003405fi
3406
3407fi
cristy8b350f62009-11-15 23:12:43 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003409$as_echo "$ac_cv_host" >&6; }
3410case $ac_cv_host in
3411*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003412*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003413esac
3414host=$ac_cv_host
3415ac_save_IFS=$IFS; IFS='-'
3416set x $ac_cv_host
3417shift
3418host_cpu=$1
3419host_vendor=$2
3420shift; shift
3421# Remember, the first character of IFS is used to create $*,
3422# except with old shells:
3423host_os=$*
3424IFS=$ac_save_IFS
3425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3426
3427
cristy8b350f62009-11-15 23:12:43 +00003428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003429$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003430if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003431 $as_echo_n "(cached) " >&6
3432else
3433 if test "x$target_alias" = x; then
3434 ac_cv_target=$ac_cv_host
3435else
3436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003437 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003438fi
3439
3440fi
cristy8b350f62009-11-15 23:12:43 +00003441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003442$as_echo "$ac_cv_target" >&6; }
3443case $ac_cv_target in
3444*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003445*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003446esac
3447target=$ac_cv_target
3448ac_save_IFS=$IFS; IFS='-'
3449set x $ac_cv_target
3450shift
3451target_cpu=$1
3452target_vendor=$2
3453shift; shift
3454# Remember, the first character of IFS is used to create $*,
3455# except with old shells:
3456target_os=$*
3457IFS=$ac_save_IFS
3458case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3459
3460
3461# The aliases save the names the user supplied, while $host etc.
3462# will get canonicalized.
3463test -n "$target_alias" &&
3464 test "$program_prefix$program_suffix$program_transform_name" = \
3465 NONENONEs,x,x, &&
3466 program_prefix=${target_alias}-
3467
3468# Substitute library versioning
3469
3470
3471# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003473$as_echo_n "checking whether build environment is sane... " >&6; }
3474# Just in case
3475sleep 1
3476echo timestamp > conftest.file
3477# Reject unsafe characters in $srcdir or the absolute working directory
3478# name. Accept space and tab only in the latter.
3479am_lf='
3480'
3481case `pwd` in
3482 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003483 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003484esac
3485case $srcdir in
3486 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003487 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003488esac
3489
3490# Do `set' in a subshell so we don't clobber the current shell's
3491# arguments. Must try -L first in case configure is actually a
3492# symlink; some systems play weird games with the mod time of symlinks
3493# (eg FreeBSD returns the mod time of the symlink's containing
3494# directory).
3495if (
3496 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3497 if test "$*" = "X"; then
3498 # -L didn't work.
3499 set X `ls -t "$srcdir/configure" conftest.file`
3500 fi
3501 rm -f conftest.file
3502 if test "$*" != "X $srcdir/configure conftest.file" \
3503 && test "$*" != "X conftest.file $srcdir/configure"; then
3504
3505 # If neither matched, then we have a broken ls. This can happen
3506 # if, for instance, CONFIG_SHELL is bash and it inherits a
3507 # broken ls alias from the environment. This has actually
3508 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003509 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3510alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003511 fi
3512
3513 test "$2" = conftest.file
3514 )
3515then
3516 # Ok.
3517 :
3518else
cristy8b350f62009-11-15 23:12:43 +00003519 as_fn_error "newly created file is older than distributed files!
3520Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003521fi
cristy8b350f62009-11-15 23:12:43 +00003522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003523$as_echo "yes" >&6; }
3524
3525am__api_version='1.11'
3526
3527# Find a good install program. We prefer a C program (faster),
3528# so one script is as good as another. But avoid the broken or
3529# incompatible versions:
3530# SysV /etc/install, /usr/sbin/install
3531# SunOS /usr/etc/install
3532# IRIX /sbin/install
3533# AIX /bin/install
3534# AmigaOS /C/install, which installs bootblocks on floppy discs
3535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3536# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3538# OS/2's system install, which has a completely different semantic
3539# ./install, which can be erroneously created by make from ./install.sh.
3540# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003542$as_echo_n "checking for a BSD-compatible install... " >&6; }
3543if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003544if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003552 # Account for people who put trailing slashes in PATH elements.
3553case $as_dir/ in #((
3554 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003557 /usr/ucb/* ) ;;
3558 *)
3559 # OSF1 and SCO ODT 3.0 have their own names for install.
3560 # Don't use installbsd from OSF since it installs stuff as root
3561 # by default.
3562 for ac_prog in ginstall scoinst install; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3565 if test $ac_prog = install &&
3566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # AIX install. It has an incompatible calling convention.
3568 :
3569 elif test $ac_prog = install &&
3570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # program-specific install script used by HP pwplus--don't use.
3572 :
3573 else
3574 rm -rf conftest.one conftest.two conftest.dir
3575 echo one > conftest.one
3576 echo two > conftest.two
3577 mkdir conftest.dir
3578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3579 test -s conftest.one && test -s conftest.two &&
3580 test -s conftest.dir/conftest.one &&
3581 test -s conftest.dir/conftest.two
3582 then
3583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3584 break 3
3585 fi
3586 fi
3587 fi
3588 done
3589 done
3590 ;;
3591esac
3592
cristy8b350f62009-11-15 23:12:43 +00003593 done
cristy3ed852e2009-09-05 21:47:34 +00003594IFS=$as_save_IFS
3595
3596rm -rf conftest.one conftest.two conftest.dir
3597
3598fi
3599 if test "${ac_cv_path_install+set}" = set; then
3600 INSTALL=$ac_cv_path_install
3601 else
3602 # As a last resort, use the slow shell script. Don't cache a
3603 # value for INSTALL within a source directory, because that will
3604 # break other packages using the cache if that directory is
3605 # removed, or if the value is a relative name.
3606 INSTALL=$ac_install_sh
3607 fi
3608fi
cristy8b350f62009-11-15 23:12:43 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003610$as_echo "$INSTALL" >&6; }
3611
3612# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3613# It thinks the first close brace ends the variable substitution.
3614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615
3616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617
3618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619
3620test "$program_prefix" != NONE &&
3621 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3622# Use a double $ so make ignores it.
3623test "$program_suffix" != NONE &&
3624 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3625# Double any \ or $.
3626# By default was `s,x,x', remove it if useless.
3627ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3628program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3629
3630# expand $ac_aux_dir to an absolute path
3631am_aux_dir=`cd $ac_aux_dir && pwd`
3632
3633if test x"${MISSING+set}" != xset; then
3634 case $am_aux_dir in
3635 *\ * | *\ *)
3636 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3637 *)
3638 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3639 esac
3640fi
3641# Use eval to expand $SHELL
3642if eval "$MISSING --run true"; then
3643 am_missing_run="$MISSING --run "
3644else
3645 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003647$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3648fi
3649
3650if test x"${install_sh}" != xset; then
3651 case $am_aux_dir in
3652 *\ * | *\ *)
3653 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3654 *)
3655 install_sh="\${SHELL} $am_aux_dir/install-sh"
3656 esac
3657fi
3658
3659# Installed binaries are usually stripped using `strip' when the user
3660# run `make install-strip'. However `strip' might not be the right
3661# tool to use in cross-compilation environments, therefore Automake
3662# will honor the `STRIP' environment variable to overrule this program.
3663if test "$cross_compiling" != no; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3666set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003668$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003669if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$STRIP"; then
3673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003684 break 2
3685 fi
3686done
cristy8b350f62009-11-15 23:12:43 +00003687 done
cristy3ed852e2009-09-05 21:47:34 +00003688IFS=$as_save_IFS
3689
3690fi
3691fi
3692STRIP=$ac_cv_prog_STRIP
3693if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003695$as_echo "$STRIP" >&6; }
3696else
cristy8b350f62009-11-15 23:12:43 +00003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003698$as_echo "no" >&6; }
3699fi
3700
3701
3702fi
3703if test -z "$ac_cv_prog_STRIP"; then
3704 ac_ct_STRIP=$STRIP
3705 # Extract the first word of "strip", so it can be a program name with args.
3706set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003708$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003709if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003710 $as_echo_n "(cached) " >&6
3711else
3712 if test -n "$ac_ct_STRIP"; then
3713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3714else
3715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716for as_dir in $PATH
3717do
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003724 break 2
3725 fi
3726done
cristy8b350f62009-11-15 23:12:43 +00003727 done
cristy3ed852e2009-09-05 21:47:34 +00003728IFS=$as_save_IFS
3729
3730fi
3731fi
3732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3733if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003735$as_echo "$ac_ct_STRIP" >&6; }
3736else
cristy8b350f62009-11-15 23:12:43 +00003737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003738$as_echo "no" >&6; }
3739fi
3740
3741 if test "x$ac_ct_STRIP" = x; then
3742 STRIP=":"
3743 else
3744 case $cross_compiling:$ac_tool_warned in
3745yes:)
cristy8b350f62009-11-15 23:12:43 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3748ac_tool_warned=yes ;;
3749esac
3750 STRIP=$ac_ct_STRIP
3751 fi
3752else
3753 STRIP="$ac_cv_prog_STRIP"
3754fi
3755
3756fi
3757INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3758
cristy8b350f62009-11-15 23:12:43 +00003759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003760$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3761if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003762 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003763 $as_echo_n "(cached) " >&6
3764else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003770 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3773 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3774 'mkdir (GNU coreutils) '* | \
3775 'mkdir (coreutils) '* | \
3776 'mkdir (fileutils) '4.1*)
3777 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3778 break 3;;
3779 esac
3780 done
3781 done
cristy8b350f62009-11-15 23:12:43 +00003782 done
cristy3ed852e2009-09-05 21:47:34 +00003783IFS=$as_save_IFS
3784
3785fi
3786
cristycd4c5312009-11-22 01:19:08 +00003787 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003788 if test "${ac_cv_path_mkdir+set}" = set; then
3789 MKDIR_P="$ac_cv_path_mkdir -p"
3790 else
3791 # As a last resort, use the slow shell script. Don't cache a
3792 # value for MKDIR_P within a source directory, because that will
3793 # break other packages using the cache if that directory is
3794 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003795 MKDIR_P="$ac_install_sh -d"
3796 fi
3797fi
cristy8b350f62009-11-15 23:12:43 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003799$as_echo "$MKDIR_P" >&6; }
3800
3801mkdir_p="$MKDIR_P"
3802case $mkdir_p in
3803 [\\/$]* | ?:[\\/]*) ;;
3804 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3805esac
3806
3807for ac_prog in gawk mawk nawk awk
3808do
3809 # Extract the first word of "$ac_prog", so it can be a program name with args.
3810set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003812$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003813if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003814 $as_echo_n "(cached) " >&6
3815else
3816 if test -n "$AWK"; then
3817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3818else
3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003828 break 2
3829 fi
3830done
cristy8b350f62009-11-15 23:12:43 +00003831 done
cristy3ed852e2009-09-05 21:47:34 +00003832IFS=$as_save_IFS
3833
3834fi
3835fi
3836AWK=$ac_cv_prog_AWK
3837if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003839$as_echo "$AWK" >&6; }
3840else
cristy8b350f62009-11-15 23:12:43 +00003841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003842$as_echo "no" >&6; }
3843fi
3844
3845
3846 test -n "$AWK" && break
3847done
3848
cristy8b350f62009-11-15 23:12:43 +00003849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3851set x ${MAKE-make}
3852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003853if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003854 $as_echo_n "(cached) " >&6
3855else
3856 cat >conftest.make <<\_ACEOF
3857SHELL = /bin/sh
3858all:
3859 @echo '@@@%%%=$(MAKE)=@@@%%%'
3860_ACEOF
3861# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3862case `${MAKE-make} -f conftest.make 2>/dev/null` in
3863 *@@@%%%=?*=@@@%%%*)
3864 eval ac_cv_prog_make_${ac_make}_set=yes;;
3865 *)
3866 eval ac_cv_prog_make_${ac_make}_set=no;;
3867esac
3868rm -f conftest.make
3869fi
3870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003872$as_echo "yes" >&6; }
3873 SET_MAKE=
3874else
cristy8b350f62009-11-15 23:12:43 +00003875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003876$as_echo "no" >&6; }
3877 SET_MAKE="MAKE=${MAKE-make}"
3878fi
3879
3880rm -rf .tst 2>/dev/null
3881mkdir .tst 2>/dev/null
3882if test -d .tst; then
3883 am__leading_dot=.
3884else
3885 am__leading_dot=_
3886fi
3887rmdir .tst 2>/dev/null
3888
3889if test "`cd $srcdir && pwd`" != "`pwd`"; then
3890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3891 # is not polluted with repeated "-I."
3892 am__isrc=' -I$(srcdir)'
3893 # test to see if srcdir already configured
3894 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003895 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003896 fi
3897fi
3898
3899# test whether we have cygpath
3900if test -z "$CYGPATH_W"; then
3901 if (cygpath --version) >/dev/null 2>/dev/null; then
3902 CYGPATH_W='cygpath -w'
3903 else
3904 CYGPATH_W=echo
3905 fi
3906fi
3907
3908
3909# Define the identity of the package.
3910 PACKAGE=$PACKAGE_NAME
3911 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3912
3913
3914# Some tools Automake needs.
3915
3916ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3917
3918
3919AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3920
3921
3922AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3923
3924
3925AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3926
3927
3928MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3929
3930# We need awk for the "check" target. The system "awk" is bad on
3931# some platforms.
3932# Always define AMTAR for backward compatibility.
3933
3934AMTAR=${AMTAR-"${am_missing_run}tar"}
3935
3936am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3937
3938
3939
3940
3941
3942
3943# Enable support for silent build rules
3944# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003945if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003946 enableval=$enable_silent_rules;
3947fi
3948
3949case $enable_silent_rules in
3950yes) AM_DEFAULT_VERBOSITY=0;;
3951no) AM_DEFAULT_VERBOSITY=1;;
3952*) AM_DEFAULT_VERBOSITY=0;;
3953esac
3954AM_BACKSLASH='\'
3955
3956
3957MAGICK_LIB_VERSION="0x"
3958if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3959 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3960fi
3961MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3962if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3963 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3964fi
3965MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3966if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3967 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3968fi
3969MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3970
3971
3972# Definition used to define MagickLibVersionText in version.h
3973MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3974
3975
3976# Definition used to define MagickLibVersionNumber in version.h
3977MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3978
3979
3980# Regenerate config.status if ChangeLog or version.sh is updated.
3981CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3982
3983
3984PERLMAINCC=$CC
3985
3986MAGICK_CFLAGS=''
3987MAGICK_CPPFLAGS=$CPPFLAGS_USER
3988MAGICK_PCFLAGS=$CPPFLAGS_USER
3989MAGICK_LDFLAGS=''
3990MAGICK_LIBS=''
3991
3992#
3993# Evaluate shell variable equivalents to Makefile directory variables
3994#
3995if test "x$prefix" = xNONE; then
3996 prefix=$ac_default_prefix
3997fi
3998# Let make expand exec_prefix.
3999if test "x$exec_prefix" = xNONE; then
4000 exec_prefix='${prefix}'
4001fi
4002
4003#
4004eval "eval PREFIX_DIR=${prefix}"
4005
4006eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4007
4008eval "eval BIN_DIR=$bindir"
4009
4010eval "eval SBIN_DIR=$sbindir"
4011
4012eval "eval LIBEXEC_DIR=$libexecdir"
4013
4014eval "eval DATA_DIR=$datadir"
4015
4016eval "eval SYSCONF_DIR=$sysconfdir"
4017
4018eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4019
4020eval "eval LOCALSTATE_DIR=$localstatedir"
4021
4022eval "eval LIB_DIR=$libdir"
4023
4024eval "eval INCLUDE_DIR=$includedir"
4025
4026eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4027
4028eval "eval INFO_DIR=$infodir"
4029
4030eval "eval MAN_DIR=$mandir"
4031
4032
4033# Get full paths to source and build directories
4034srcdirfull="`cd $srcdir && pwd`"
4035builddir="`pwd`"
4036
4037#
4038# Compute variables useful for running uninstalled software.
4039#
4040MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4041MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4042MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4043MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4044DIRSEP=':'
4045case "${build_os}" in
4046 mingw* )
4047 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4048 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4049 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4050 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4051 DIRSEP=';'
4052 ;;
4053esac
4054case "${host_os}" in
4055 mingw* )
4056 DIRSEP=';'
4057 ;;
4058esac
4059
4060
4061
4062
4063
4064
4065# Check for programs
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4073set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004075$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004076if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004077 $as_echo_n "(cached) " >&6
4078else
4079 if test -n "$CC"; then
4080 ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004091 break 2
4092 fi
4093done
cristy8b350f62009-11-15 23:12:43 +00004094 done
cristy3ed852e2009-09-05 21:47:34 +00004095IFS=$as_save_IFS
4096
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004102$as_echo "$CC" >&6; }
4103else
cristy8b350f62009-11-15 23:12:43 +00004104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004105$as_echo "no" >&6; }
4106fi
4107
4108
4109fi
4110if test -z "$ac_cv_prog_CC"; then
4111 ac_ct_CC=$CC
4112 # Extract the first word of "gcc", so it can be a program name with args.
4113set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004115$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004117 $as_echo_n "(cached) " >&6
4118else
4119 if test -n "$ac_ct_CC"; then
4120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004131 break 2
4132 fi
4133done
cristy8b350f62009-11-15 23:12:43 +00004134 done
cristy3ed852e2009-09-05 21:47:34 +00004135IFS=$as_save_IFS
4136
4137fi
4138fi
4139ac_ct_CC=$ac_cv_prog_ac_ct_CC
4140if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004142$as_echo "$ac_ct_CC" >&6; }
4143else
cristy8b350f62009-11-15 23:12:43 +00004144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004145$as_echo "no" >&6; }
4146fi
4147
4148 if test "x$ac_ct_CC" = x; then
4149 CC=""
4150 else
4151 case $cross_compiling:$ac_tool_warned in
4152yes:)
cristy8b350f62009-11-15 23:12:43 +00004153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155ac_tool_warned=yes ;;
4156esac
4157 CC=$ac_ct_CC
4158 fi
4159else
4160 CC="$ac_cv_prog_CC"
4161fi
4162
4163if test -z "$CC"; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4166set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004168$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004169if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004170 $as_echo_n "(cached) " >&6
4171else
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004180 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004184 break 2
4185 fi
4186done
cristy8b350f62009-11-15 23:12:43 +00004187 done
cristy3ed852e2009-09-05 21:47:34 +00004188IFS=$as_save_IFS
4189
4190fi
4191fi
4192CC=$ac_cv_prog_CC
4193if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004195$as_echo "$CC" >&6; }
4196else
cristy8b350f62009-11-15 23:12:43 +00004197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004198$as_echo "no" >&6; }
4199fi
4200
4201
4202 fi
4203fi
4204if test -z "$CC"; then
4205 # Extract the first word of "cc", so it can be a program name with args.
4206set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004208$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004209if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004210 $as_echo_n "(cached) " >&6
4211else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214else
4215 ac_prog_rejected=no
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4224 ac_prog_rejected=yes
4225 continue
4226 fi
4227 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004229 break 2
4230 fi
4231done
cristy8b350f62009-11-15 23:12:43 +00004232 done
cristy3ed852e2009-09-05 21:47:34 +00004233IFS=$as_save_IFS
4234
4235if test $ac_prog_rejected = yes; then
4236 # We found a bogon in the path, so make sure we never use it.
4237 set dummy $ac_cv_prog_CC
4238 shift
4239 if test $# != 0; then
4240 # We chose a different compiler from the bogus one.
4241 # However, it has the same basename, so the bogon will be chosen
4242 # first if we set CC to just the basename; use the full file name.
4243 shift
4244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4245 fi
4246fi
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 "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
4262 for ac_prog in cl.exe
4263 do
4264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004268if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004283 break 2
4284 fi
4285done
cristy8b350f62009-11-15 23:12:43 +00004286 done
cristy3ed852e2009-09-05 21:47:34 +00004287IFS=$as_save_IFS
4288
4289fi
4290fi
4291CC=$ac_cv_prog_CC
4292if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004294$as_echo "$CC" >&6; }
4295else
cristy8b350f62009-11-15 23:12:43 +00004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004297$as_echo "no" >&6; }
4298fi
4299
4300
4301 test -n "$CC" && break
4302 done
4303fi
4304if test -z "$CC"; then
4305 ac_ct_CC=$CC
4306 for ac_prog in cl.exe
4307do
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004312if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$ac_ct_CC"; then
4316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327 break 2
4328 fi
4329done
cristy8b350f62009-11-15 23:12:43 +00004330 done
cristy3ed852e2009-09-05 21:47:34 +00004331IFS=$as_save_IFS
4332
4333fi
4334fi
4335ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo "$ac_ct_CC" >&6; }
4339else
cristy8b350f62009-11-15 23:12:43 +00004340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "no" >&6; }
4342fi
4343
4344
4345 test -n "$ac_ct_CC" && break
4346done
4347
4348 if test "x$ac_ct_CC" = x; then
4349 CC=""
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352yes:)
cristy8b350f62009-11-15 23:12:43 +00004353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357 CC=$ac_ct_CC
4358 fi
4359fi
4360
4361fi
4362
4363
cristy8b350f62009-11-15 23:12:43 +00004364test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004366as_fn_error "no acceptable C compiler found in \$PATH
4367See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004368
4369# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004370$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371set X $ac_compile
4372ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004373for ac_option in --version -v -V -qversion; do
4374 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
cristy8b350f62009-11-15 23:12:43 +00004379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004382 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004383 if test -s conftest.err; then
4384 sed '10a\
4385... rest of stderr output deleted ...
4386 10q' conftest.err >conftest.er1
4387 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004388 fi
cristycd4c5312009-11-22 01:19:08 +00004389 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }
4392done
cristy3ed852e2009-09-05 21:47:34 +00004393
cristy8b350f62009-11-15 23:12:43 +00004394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004395/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004396
cristy3ed852e2009-09-05 21:47:34 +00004397int
4398main ()
4399{
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004406ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004407# Try to create an executable without -o first, disregard a.out.
4408# It will help us diagnose broken compilers, and finding out an intuition
4409# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4411$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004412ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413
4414# The possible output files:
4415ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4416
4417ac_rmfiles=
4418for ac_file in $ac_files
4419do
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4423 esac
4424done
4425rm -f $ac_rmfiles
4426
cristy8b350f62009-11-15 23:12:43 +00004427if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004428case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
cristy8b350f62009-11-15 23:12:43 +00004432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004434 (eval "$ac_link_default") 2>&5
4435 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004438 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4439# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4440# in a Makefile. We should not override ac_cv_exeext if it was cached,
4441# so that the user can short-circuit this test for compilers unknown to
4442# Autoconf.
4443for ac_file in $ac_files ''
4444do
4445 test -f "$ac_file" || continue
4446 case $ac_file in
4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4448 ;;
4449 [ab].out )
4450 # We found the default executable, but exeext='' is most
4451 # certainly right.
4452 break;;
4453 *.* )
cristy8b350f62009-11-15 23:12:43 +00004454 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004455 then :; else
4456 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 fi
4458 # We set ac_cv_exeext here because the later test for it is not
4459 # safe: cross compilers may not add the suffix if given an `-o'
4460 # argument, so we may need to know it at that point already.
4461 # Even if this section looks crufty: it has the advantage of
4462 # actually working.
4463 break;;
4464 * )
4465 break;;
4466 esac
4467done
4468test "$ac_cv_exeext" = no && ac_cv_exeext=
4469
4470else
4471 ac_file=''
4472fi
cristy8b350f62009-11-15 23:12:43 +00004473if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475$as_echo "no" >&6; }
4476$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477sed 's/^/| /' conftest.$ac_ext >&5
4478
cristy8b350f62009-11-15 23:12:43 +00004479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004481{ as_fn_set_status 77
4482as_fn_error "C compiler cannot create executables
4483See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004484else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004487fi
cristycd4c5312009-11-22 01:19:08 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4489$as_echo_n "checking for C compiler default output file name... " >&6; }
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4491$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004492ac_exeext=$ac_cv_exeext
4493
cristycd4c5312009-11-22 01:19:08 +00004494rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004495ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004497$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004498if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004499case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502esac
cristy8b350f62009-11-15 23:12:43 +00004503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004505 (eval "$ac_link") 2>&5
4506 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4510# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4511# work properly (i.e., refer to `conftest.exe'), while it won't with
4512# `rm'.
4513for ac_file in conftest.exe conftest conftest.*; do
4514 test -f "$ac_file" || continue
4515 case $ac_file in
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4518 break;;
4519 * ) break;;
4520 esac
4521done
4522else
cristy8b350f62009-11-15 23:12:43 +00004523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004525as_fn_error "cannot compute suffix of executables: cannot compile and link
4526See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004527fi
cristycd4c5312009-11-22 01:19:08 +00004528rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004530$as_echo "$ac_cv_exeext" >&6; }
4531
4532rm -f conftest.$ac_ext
4533EXEEXT=$ac_cv_exeext
4534ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */
4537#include <stdio.h>
4538int
4539main ()
4540{
4541FILE *f = fopen ("conftest.out", "w");
4542 return ferror (f) || fclose (f) != 0;
4543
4544 ;
4545 return 0;
4546}
4547_ACEOF
4548ac_clean_files="$ac_clean_files conftest.out"
4549# Check that the compiler produces executables we can run. If not, either
4550# the compiler is broken, or we cross compile.
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4552$as_echo_n "checking whether we are cross compiling... " >&6; }
4553if test "$cross_compiling" != yes; then
4554 { { ac_try="$ac_link"
4555case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4560$as_echo "$ac_try_echo"; } >&5
4561 (eval "$ac_link") 2>&5
4562 ac_status=$?
4563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4564 test $ac_status = 0; }
4565 if { ac_try='./conftest$ac_cv_exeext'
4566 { { case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571$as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_try") 2>&5
4573 ac_status=$?
4574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575 test $ac_status = 0; }; }; then
4576 cross_compiling=no
4577 else
4578 if test "$cross_compiling" = maybe; then
4579 cross_compiling=yes
4580 else
4581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583as_fn_error "cannot run C compiled programs.
4584If you meant to cross compile, use \`--host'.
4585See \`config.log' for more details." "$LINENO" 5; }
4586 fi
4587 fi
4588fi
4589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4590$as_echo "$cross_compiling" >&6; }
4591
4592rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4593ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004595$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004596if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004597 $as_echo_n "(cached) " >&6
4598else
cristy8b350f62009-11-15 23:12:43 +00004599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004600/* end confdefs.h. */
4601
4602int
4603main ()
4604{
4605
4606 ;
4607 return 0;
4608}
4609_ACEOF
4610rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004611if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
cristy8b350f62009-11-15 23:12:43 +00004616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004618 (eval "$ac_compile") 2>&5
4619 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004622 for ac_file in conftest.o conftest.obj conftest.*; do
4623 test -f "$ac_file" || continue;
4624 case $ac_file in
4625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4627 break;;
4628 esac
4629done
4630else
4631 $as_echo "$as_me: failed program was:" >&5
4632sed 's/^/| /' conftest.$ac_ext >&5
4633
cristy8b350f62009-11-15 23:12:43 +00004634{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004636as_fn_error "cannot compute suffix of object files: cannot compile
4637See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004638fi
cristy3ed852e2009-09-05 21:47:34 +00004639rm -f conftest.$ac_cv_objext conftest.$ac_ext
4640fi
cristy8b350f62009-11-15 23:12:43 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004642$as_echo "$ac_cv_objext" >&6; }
4643OBJEXT=$ac_cv_objext
4644ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004646$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004647if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004648 $as_echo_n "(cached) " >&6
4649else
cristy8b350f62009-11-15 23:12:43 +00004650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004651/* end confdefs.h. */
4652
4653int
4654main ()
4655{
4656#ifndef __GNUC__
4657 choke me
4658#endif
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004664if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004665 ac_compiler_gnu=yes
4666else
cristy8b350f62009-11-15 23:12:43 +00004667 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004668fi
cristy3ed852e2009-09-05 21:47:34 +00004669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670ac_cv_c_compiler_gnu=$ac_compiler_gnu
4671
4672fi
cristy8b350f62009-11-15 23:12:43 +00004673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4675if test $ac_compiler_gnu = yes; then
4676 GCC=yes
4677else
4678 GCC=
4679fi
4680ac_test_CFLAGS=${CFLAGS+set}
4681ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004684if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004685 $as_echo_n "(cached) " >&6
4686else
4687 ac_save_c_werror_flag=$ac_c_werror_flag
4688 ac_c_werror_flag=yes
4689 ac_cv_prog_cc_g=no
4690 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004692/* end confdefs.h. */
4693
4694int
4695main ()
4696{
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004702if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004703 ac_cv_prog_cc_g=yes
4704else
cristy8b350f62009-11-15 23:12:43 +00004705 CFLAGS=""
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004707/* end confdefs.h. */
4708
4709int
4710main ()
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004717if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004718
cristy8b350f62009-11-15 23:12:43 +00004719else
4720 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004721 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004723/* end confdefs.h. */
4724
4725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004733if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004735fi
cristy3ed852e2009-09-05 21:47:34 +00004736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737fi
cristy3ed852e2009-09-05 21:47:34 +00004738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739fi
cristy3ed852e2009-09-05 21:47:34 +00004740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4742fi
cristy8b350f62009-11-15 23:12:43 +00004743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004744$as_echo "$ac_cv_prog_cc_g" >&6; }
4745if test "$ac_test_CFLAGS" = set; then
4746 CFLAGS=$ac_save_CFLAGS
4747elif test $ac_cv_prog_cc_g = yes; then
4748 if test "$GCC" = yes; then
4749 CFLAGS="-g -O2"
4750 else
4751 CFLAGS="-g"
4752 fi
4753else
4754 if test "$GCC" = yes; then
4755 CFLAGS="-O2"
4756 else
4757 CFLAGS=
4758 fi
4759fi
cristy8b350f62009-11-15 23:12:43 +00004760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004761$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004762if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004763 $as_echo_n "(cached) " >&6
4764else
4765 ac_cv_prog_cc_c89=no
4766ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004768/* end confdefs.h. */
4769#include <stdarg.h>
4770#include <stdio.h>
4771#include <sys/types.h>
4772#include <sys/stat.h>
4773/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4774struct buf { int x; };
4775FILE * (*rcsopen) (struct buf *, struct stat *, int);
4776static char *e (p, i)
4777 char **p;
4778 int i;
4779{
4780 return p[i];
4781}
4782static char *f (char * (*g) (char **, int), char **p, ...)
4783{
4784 char *s;
4785 va_list v;
4786 va_start (v,p);
4787 s = g (p, va_arg (v,int));
4788 va_end (v);
4789 return s;
4790}
4791
4792/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4793 function prototypes and stuff, but not '\xHH' hex character constants.
4794 These don't provoke an error unfortunately, instead are silently treated
4795 as 'x'. The following induces an error, until -std is added to get
4796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4797 array size at least. It's necessary to write '\x00'==0 to get something
4798 that's true only with -std. */
4799int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4800
4801/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4802 inside strings and character constants. */
4803#define FOO(x) 'x'
4804int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4805
4806int test (int i, double x);
4807struct s1 {int (*f) (int a);};
4808struct s2 {int (*f) (double a);};
4809int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4810int argc;
4811char **argv;
4812int
4813main ()
4814{
4815return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4822do
4823 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004824 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004825 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004826fi
cristy3ed852e2009-09-05 21:47:34 +00004827rm -f core conftest.err conftest.$ac_objext
4828 test "x$ac_cv_prog_cc_c89" != "xno" && break
4829done
4830rm -f conftest.$ac_ext
4831CC=$ac_save_CC
4832
4833fi
4834# AC_CACHE_VAL
4835case "x$ac_cv_prog_cc_c89" in
4836 x)
cristy8b350f62009-11-15 23:12:43 +00004837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004838$as_echo "none needed" >&6; } ;;
4839 xno)
cristy8b350f62009-11-15 23:12:43 +00004840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841$as_echo "unsupported" >&6; } ;;
4842 *)
4843 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4846esac
cristy8b350f62009-11-15 23:12:43 +00004847if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004848
cristy8b350f62009-11-15 23:12:43 +00004849fi
cristy3ed852e2009-09-05 21:47:34 +00004850
4851ac_ext=c
4852ac_cpp='$CPP $CPPFLAGS'
4853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856DEPDIR="${am__leading_dot}deps"
4857
4858ac_config_commands="$ac_config_commands depfiles"
4859
4860
4861am_make=${MAKE-make}
4862cat > confinc << 'END'
4863am__doit:
4864 @echo this is the am__doit target
4865.PHONY: am__doit
4866END
4867# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004869$as_echo_n "checking for style of include used by $am_make... " >&6; }
4870am__include="#"
4871am__quote=
4872_am_result=none
4873# First try GNU make style include.
4874echo "include confinc" > confmf
4875# Ignore all kinds of additional output from `make'.
4876case `$am_make -s -f confmf 2> /dev/null` in #(
4877*the\ am__doit\ target*)
4878 am__include=include
4879 am__quote=
4880 _am_result=GNU
4881 ;;
4882esac
4883# Now try BSD make style include.
4884if test "$am__include" = "#"; then
4885 echo '.include "confinc"' > confmf
4886 case `$am_make -s -f confmf 2> /dev/null` in #(
4887 *the\ am__doit\ target*)
4888 am__include=.include
4889 am__quote="\""
4890 _am_result=BSD
4891 ;;
4892 esac
4893fi
4894
4895
cristy8b350f62009-11-15 23:12:43 +00004896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004897$as_echo "$_am_result" >&6; }
4898rm -f confinc confmf
4899
4900# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004901if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004902 enableval=$enable_dependency_tracking;
4903fi
4904
4905if test "x$enable_dependency_tracking" != xno; then
4906 am_depcomp="$ac_aux_dir/depcomp"
4907 AMDEPBACKSLASH='\'
4908fi
4909 if test "x$enable_dependency_tracking" != xno; then
4910 AMDEP_TRUE=
4911 AMDEP_FALSE='#'
4912else
4913 AMDEP_TRUE='#'
4914 AMDEP_FALSE=
4915fi
4916
4917
4918
4919depcc="$CC" am_compiler_list=
4920
cristy8b350f62009-11-15 23:12:43 +00004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004922$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004923if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004924 $as_echo_n "(cached) " >&6
4925else
4926 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4927 # We make a subdir and do the tests there. Otherwise we can end up
4928 # making bogus files that we don't know about and never remove. For
4929 # instance it was reported that on HP-UX the gcc test will end up
4930 # making a dummy file named `D' -- because `-MD' means `put the output
4931 # in D'.
4932 mkdir conftest.dir
4933 # Copy depcomp to subdir because otherwise we won't find it if we're
4934 # using a relative directory.
4935 cp "$am_depcomp" conftest.dir
4936 cd conftest.dir
4937 # We will build objects and dependencies in a subdirectory because
4938 # it helps to detect inapplicable dependency modes. For instance
4939 # both Tru64's cc and ICC support -MD to output dependencies as a
4940 # side effect of compilation, but ICC will put the dependencies in
4941 # the current directory while Tru64 will put them in the object
4942 # directory.
4943 mkdir sub
4944
4945 am_cv_CC_dependencies_compiler_type=none
4946 if test "$am_compiler_list" = ""; then
4947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4948 fi
4949 am__universal=false
4950 case " $depcc " in #(
4951 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4952 esac
4953
4954 for depmode in $am_compiler_list; do
4955 # Setup a source with many dependencies, because some compilers
4956 # like to wrap large dependency lists on column 80 (with \), and
4957 # we should not choose a depcomp mode which is confused by this.
4958 #
4959 # We need to recreate these files for each test, as the compiler may
4960 # overwrite some of them when testing with obscure command lines.
4961 # This happens at least with the AIX C compiler.
4962 : > sub/conftest.c
4963 for i in 1 2 3 4 5 6; do
4964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4966 # Solaris 8's {/usr,}/bin/sh.
4967 touch sub/conftst$i.h
4968 done
4969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4970
4971 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4972 # mode. It turns out that the SunPro C++ compiler does not properly
4973 # handle `-M -o', and we need to detect this. Also, some Intel
4974 # versions had trouble with output in subdirs
4975 am__obj=sub/conftest.${OBJEXT-o}
4976 am__minus_obj="-o $am__obj"
4977 case $depmode in
4978 gcc)
4979 # This depmode causes a compiler race in universal mode.
4980 test "$am__universal" = false || continue
4981 ;;
4982 nosideeffect)
4983 # after this tag, mechanisms are not by side-effect, so they'll
4984 # only be used when explicitly requested
4985 if test "x$enable_dependency_tracking" = xyes; then
4986 continue
4987 else
4988 break
4989 fi
4990 ;;
4991 msvisualcpp | msvcmsys)
4992 # This compiler won't grok `-c -o', but also, the minuso test has
4993 # not run yet. These depmodes are late enough in the game, and
4994 # so weak that their functioning should not be impacted.
4995 am__obj=conftest.${OBJEXT-o}
4996 am__minus_obj=
4997 ;;
4998 none) break ;;
4999 esac
5000 if depmode=$depmode \
5001 source=sub/conftest.c object=$am__obj \
5002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5004 >/dev/null 2>conftest.err &&
5005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5009 # icc doesn't choke on unknown options, it will just issue warnings
5010 # or remarks (even with -Werror). So we grep stderr for any message
5011 # that says an option was ignored or not supported.
5012 # When given -MP, icc 7.0 and 7.1 complain thusly:
5013 # icc: Command line warning: ignoring option '-M'; no argument required
5014 # The diagnosis changed in icc 8.0:
5015 # icc: Command line remark: option '-MP' not supported
5016 if (grep 'ignoring option' conftest.err ||
5017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5018 am_cv_CC_dependencies_compiler_type=$depmode
5019 break
5020 fi
5021 fi
5022 done
5023
5024 cd ..
5025 rm -rf conftest.dir
5026else
5027 am_cv_CC_dependencies_compiler_type=none
5028fi
5029
5030fi
cristy8b350f62009-11-15 23:12:43 +00005031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5034
5035 if
5036 test "x$enable_dependency_tracking" != xno \
5037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5038 am__fastdepCC_TRUE=
5039 am__fastdepCC_FALSE='#'
5040else
5041 am__fastdepCC_TRUE='#'
5042 am__fastdepCC_FALSE=
5043fi
5044
5045
cristy95646052009-11-28 23:05:30 +00005046ac_ext=cpp
5047ac_cpp='$CXXCPP $CPPFLAGS'
5048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5051if test -z "$CXX"; then
5052 if test -n "$CCC"; then
5053 CXX=$CCC
5054 else
5055 if test -n "$ac_tool_prefix"; then
5056 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5057 do
5058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5059set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
5062if test "${ac_cv_prog_CXX+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064else
5065 if test -n "$CXX"; then
5066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5067else
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079done
5080 done
5081IFS=$as_save_IFS
5082
5083fi
5084fi
5085CXX=$ac_cv_prog_CXX
5086if test -n "$CXX"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5088$as_echo "$CXX" >&6; }
5089else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
5092fi
5093
5094
5095 test -n "$CXX" && break
5096 done
5097fi
5098if test -z "$CXX"; then
5099 ac_ct_CXX=$CXX
5100 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5101do
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103set dummy $ac_prog; ac_word=$2
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105$as_echo_n "checking for $ac_word... " >&6; }
5106if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108else
5109 if test -n "$ac_ct_CXX"; then
5110 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_ac_ct_CXX="$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124 done
5125IFS=$as_save_IFS
5126
5127fi
5128fi
5129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5130if test -n "$ac_ct_CXX"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5132$as_echo "$ac_ct_CXX" >&6; }
5133else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135$as_echo "no" >&6; }
5136fi
5137
5138
5139 test -n "$ac_ct_CXX" && break
5140done
5141
5142 if test "x$ac_ct_CXX" = x; then
5143 CXX="g++"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146yes:)
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151 CXX=$ac_ct_CXX
5152 fi
5153fi
5154
5155 fi
5156fi
5157# Provide some information about the compiler.
5158$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5159set X $ac_compile
5160ac_compiler=$2
5161for ac_option in --version -v -V -qversion; do
5162 { { ac_try="$ac_compiler $ac_option >&5"
5163case "(($ac_try" in
5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165 *) ac_try_echo=$ac_try;;
5166esac
5167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5168$as_echo "$ac_try_echo"; } >&5
5169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5170 ac_status=$?
5171 if test -s conftest.err; then
5172 sed '10a\
5173... rest of stderr output deleted ...
5174 10q' conftest.err >conftest.er1
5175 cat conftest.er1 >&5
5176 fi
5177 rm -f conftest.er1 conftest.err
5178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5179 test $ac_status = 0; }
5180done
5181
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5183$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5184if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186else
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h. */
5189
5190int
5191main ()
5192{
5193#ifndef __GNUC__
5194 choke me
5195#endif
5196
5197 ;
5198 return 0;
5199}
5200_ACEOF
5201if ac_fn_cxx_try_compile "$LINENO"; then :
5202 ac_compiler_gnu=yes
5203else
5204 ac_compiler_gnu=no
5205fi
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5208
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5211$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5212if test $ac_compiler_gnu = yes; then
5213 GXX=yes
5214else
5215 GXX=
5216fi
5217ac_test_CXXFLAGS=${CXXFLAGS+set}
5218ac_save_CXXFLAGS=$CXXFLAGS
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5220$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5221if test "${ac_cv_prog_cxx_g+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223else
5224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5225 ac_cxx_werror_flag=yes
5226 ac_cv_prog_cxx_g=no
5227 CXXFLAGS="-g"
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h. */
5230
5231int
5232main ()
5233{
5234
5235 ;
5236 return 0;
5237}
5238_ACEOF
5239if ac_fn_cxx_try_compile "$LINENO"; then :
5240 ac_cv_prog_cxx_g=yes
5241else
5242 CXXFLAGS=""
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h. */
5245
5246int
5247main ()
5248{
5249
5250 ;
5251 return 0;
5252}
5253_ACEOF
5254if ac_fn_cxx_try_compile "$LINENO"; then :
5255
5256else
5257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5258 CXXFLAGS="-g"
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h. */
5261
5262int
5263main ()
5264{
5265
5266 ;
5267 return 0;
5268}
5269_ACEOF
5270if ac_fn_cxx_try_compile "$LINENO"; then :
5271 ac_cv_prog_cxx_g=yes
5272fi
5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274fi
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5281$as_echo "$ac_cv_prog_cxx_g" >&6; }
5282if test "$ac_test_CXXFLAGS" = set; then
5283 CXXFLAGS=$ac_save_CXXFLAGS
5284elif test $ac_cv_prog_cxx_g = yes; then
5285 if test "$GXX" = yes; then
5286 CXXFLAGS="-g -O2"
5287 else
5288 CXXFLAGS="-g"
5289 fi
5290else
5291 if test "$GXX" = yes; then
5292 CXXFLAGS="-O2"
5293 else
5294 CXXFLAGS=
5295 fi
5296fi
5297ac_ext=c
5298ac_cpp='$CPP $CPPFLAGS'
5299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5301ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302
5303depcc="$CXX" am_compiler_list=
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5306$as_echo_n "checking dependency style of $depcc... " >&6; }
5307if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5308 $as_echo_n "(cached) " >&6
5309else
5310 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5311 # We make a subdir and do the tests there. Otherwise we can end up
5312 # making bogus files that we don't know about and never remove. For
5313 # instance it was reported that on HP-UX the gcc test will end up
5314 # making a dummy file named `D' -- because `-MD' means `put the output
5315 # in D'.
5316 mkdir conftest.dir
5317 # Copy depcomp to subdir because otherwise we won't find it if we're
5318 # using a relative directory.
5319 cp "$am_depcomp" conftest.dir
5320 cd conftest.dir
5321 # We will build objects and dependencies in a subdirectory because
5322 # it helps to detect inapplicable dependency modes. For instance
5323 # both Tru64's cc and ICC support -MD to output dependencies as a
5324 # side effect of compilation, but ICC will put the dependencies in
5325 # the current directory while Tru64 will put them in the object
5326 # directory.
5327 mkdir sub
5328
5329 am_cv_CXX_dependencies_compiler_type=none
5330 if test "$am_compiler_list" = ""; then
5331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5332 fi
5333 am__universal=false
5334 case " $depcc " in #(
5335 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5336 esac
5337
5338 for depmode in $am_compiler_list; do
5339 # Setup a source with many dependencies, because some compilers
5340 # like to wrap large dependency lists on column 80 (with \), and
5341 # we should not choose a depcomp mode which is confused by this.
5342 #
5343 # We need to recreate these files for each test, as the compiler may
5344 # overwrite some of them when testing with obscure command lines.
5345 # This happens at least with the AIX C compiler.
5346 : > sub/conftest.c
5347 for i in 1 2 3 4 5 6; do
5348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5350 # Solaris 8's {/usr,}/bin/sh.
5351 touch sub/conftst$i.h
5352 done
5353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354
5355 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5356 # mode. It turns out that the SunPro C++ compiler does not properly
5357 # handle `-M -o', and we need to detect this. Also, some Intel
5358 # versions had trouble with output in subdirs
5359 am__obj=sub/conftest.${OBJEXT-o}
5360 am__minus_obj="-o $am__obj"
5361 case $depmode in
5362 gcc)
5363 # This depmode causes a compiler race in universal mode.
5364 test "$am__universal" = false || continue
5365 ;;
5366 nosideeffect)
5367 # after this tag, mechanisms are not by side-effect, so they'll
5368 # only be used when explicitly requested
5369 if test "x$enable_dependency_tracking" = xyes; then
5370 continue
5371 else
5372 break
5373 fi
5374 ;;
5375 msvisualcpp | msvcmsys)
5376 # This compiler won't grok `-c -o', but also, the minuso test has
5377 # not run yet. These depmodes are late enough in the game, and
5378 # so weak that their functioning should not be impacted.
5379 am__obj=conftest.${OBJEXT-o}
5380 am__minus_obj=
5381 ;;
5382 none) break ;;
5383 esac
5384 if depmode=$depmode \
5385 source=sub/conftest.c object=$am__obj \
5386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5388 >/dev/null 2>conftest.err &&
5389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5393 # icc doesn't choke on unknown options, it will just issue warnings
5394 # or remarks (even with -Werror). So we grep stderr for any message
5395 # that says an option was ignored or not supported.
5396 # When given -MP, icc 7.0 and 7.1 complain thusly:
5397 # icc: Command line warning: ignoring option '-M'; no argument required
5398 # The diagnosis changed in icc 8.0:
5399 # icc: Command line remark: option '-MP' not supported
5400 if (grep 'ignoring option' conftest.err ||
5401 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5402 am_cv_CXX_dependencies_compiler_type=$depmode
5403 break
5404 fi
5405 fi
5406 done
5407
5408 cd ..
5409 rm -rf conftest.dir
5410else
5411 am_cv_CXX_dependencies_compiler_type=none
5412fi
5413
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5416$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5417CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5418
5419 if
5420 test "x$enable_dependency_tracking" != xno \
5421 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5422 am__fastdepCXX_TRUE=
5423 am__fastdepCXX_FALSE='#'
5424else
5425 am__fastdepCXX_TRUE='#'
5426 am__fastdepCXX_FALSE=
5427fi
5428
5429
cristy8b350f62009-11-15 23:12:43 +00005430 case $ac_cv_prog_cc_stdc in #(
5431 no) :
5432 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5433 *) :
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005435$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005436if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005437 $as_echo_n "(cached) " >&6
5438else
5439 ac_cv_prog_cc_c99=no
5440ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005442/* end confdefs.h. */
5443#include <stdarg.h>
5444#include <stdbool.h>
5445#include <stdlib.h>
5446#include <wchar.h>
5447#include <stdio.h>
5448
5449// Check varargs macros. These examples are taken from C99 6.10.3.5.
5450#define debug(...) fprintf (stderr, __VA_ARGS__)
5451#define showlist(...) puts (#__VA_ARGS__)
5452#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5453static void
5454test_varargs_macros (void)
5455{
5456 int x = 1234;
5457 int y = 5678;
5458 debug ("Flag");
5459 debug ("X = %d\n", x);
5460 showlist (The first, second, and third items.);
5461 report (x>y, "x is %d but y is %d", x, y);
5462}
5463
5464// Check long long types.
5465#define BIG64 18446744073709551615ull
5466#define BIG32 4294967295ul
5467#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5468#if !BIG_OK
5469 your preprocessor is broken;
5470#endif
5471#if BIG_OK
5472#else
5473 your preprocessor is broken;
5474#endif
5475static long long int bignum = -9223372036854775807LL;
5476static unsigned long long int ubignum = BIG64;
5477
5478struct incomplete_array
5479{
5480 int datasize;
5481 double data[];
5482};
5483
5484struct named_init {
5485 int number;
5486 const wchar_t *name;
5487 double average;
5488};
5489
5490typedef const char *ccp;
5491
5492static inline int
5493test_restrict (ccp restrict text)
5494{
5495 // See if C++-style comments work.
5496 // Iterate through items via the restricted pointer.
5497 // Also check for declarations in for loops.
5498 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5499 continue;
5500 return 0;
5501}
5502
5503// Check varargs and va_copy.
5504static void
5505test_varargs (const char *format, ...)
5506{
5507 va_list args;
5508 va_start (args, format);
5509 va_list args_copy;
5510 va_copy (args_copy, args);
5511
5512 const char *str;
5513 int number;
5514 float fnumber;
5515
5516 while (*format)
5517 {
5518 switch (*format++)
5519 {
5520 case 's': // string
5521 str = va_arg (args_copy, const char *);
5522 break;
5523 case 'd': // int
5524 number = va_arg (args_copy, int);
5525 break;
5526 case 'f': // float
5527 fnumber = va_arg (args_copy, double);
5528 break;
5529 default:
5530 break;
5531 }
5532 }
5533 va_end (args_copy);
5534 va_end (args);
5535}
5536
5537int
5538main ()
5539{
5540
5541 // Check bool.
5542 _Bool success = false;
5543
5544 // Check restrict.
5545 if (test_restrict ("String literal") == 0)
5546 success = true;
5547 char *restrict newvar = "Another string";
5548
5549 // Check varargs.
5550 test_varargs ("s, d' f .", "string", 65, 34.234);
5551 test_varargs_macros ();
5552
5553 // Check flexible array members.
5554 struct incomplete_array *ia =
5555 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5556 ia->datasize = 10;
5557 for (int i = 0; i < ia->datasize; ++i)
5558 ia->data[i] = i * 1.234;
5559
5560 // Check named initializers.
5561 struct named_init ni = {
5562 .number = 34,
5563 .name = L"Test wide string",
5564 .average = 543.34343,
5565 };
5566
5567 ni.number = 58;
5568
5569 int dynamic_array[ni.number];
5570 dynamic_array[ni.number - 1] = 543;
5571
5572 // work around unused variable warnings
5573 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5574 || dynamic_array[ni.number - 1] != 543);
5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5581do
5582 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005583 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005584 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005585fi
cristy3ed852e2009-09-05 21:47:34 +00005586rm -f core conftest.err conftest.$ac_objext
5587 test "x$ac_cv_prog_cc_c99" != "xno" && break
5588done
5589rm -f conftest.$ac_ext
5590CC=$ac_save_CC
5591
5592fi
5593# AC_CACHE_VAL
5594case "x$ac_cv_prog_cc_c99" in
5595 x)
cristy8b350f62009-11-15 23:12:43 +00005596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005597$as_echo "none needed" >&6; } ;;
5598 xno)
cristy8b350f62009-11-15 23:12:43 +00005599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005600$as_echo "unsupported" >&6; } ;;
5601 *)
5602 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005604$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5605esac
cristy8b350f62009-11-15 23:12:43 +00005606if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005607 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5608else
cristy8b350f62009-11-15 23:12:43 +00005609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005611if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005612 $as_echo_n "(cached) " >&6
5613else
5614 ac_cv_prog_cc_c89=no
5615ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005617/* end confdefs.h. */
5618#include <stdarg.h>
5619#include <stdio.h>
5620#include <sys/types.h>
5621#include <sys/stat.h>
5622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5623struct buf { int x; };
5624FILE * (*rcsopen) (struct buf *, struct stat *, int);
5625static char *e (p, i)
5626 char **p;
5627 int i;
5628{
5629 return p[i];
5630}
5631static char *f (char * (*g) (char **, int), char **p, ...)
5632{
5633 char *s;
5634 va_list v;
5635 va_start (v,p);
5636 s = g (p, va_arg (v,int));
5637 va_end (v);
5638 return s;
5639}
5640
5641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5642 function prototypes and stuff, but not '\xHH' hex character constants.
5643 These don't provoke an error unfortunately, instead are silently treated
5644 as 'x'. The following induces an error, until -std is added to get
5645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5646 array size at least. It's necessary to write '\x00'==0 to get something
5647 that's true only with -std. */
5648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5649
5650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5651 inside strings and character constants. */
5652#define FOO(x) 'x'
5653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5654
5655int test (int i, double x);
5656struct s1 {int (*f) (int a);};
5657struct s2 {int (*f) (double a);};
5658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5659int argc;
5660char **argv;
5661int
5662main ()
5663{
5664return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5665 ;
5666 return 0;
5667}
5668_ACEOF
5669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5671do
5672 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005673 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005674 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005675fi
cristy3ed852e2009-09-05 21:47:34 +00005676rm -f core conftest.err conftest.$ac_objext
5677 test "x$ac_cv_prog_cc_c89" != "xno" && break
5678done
5679rm -f conftest.$ac_ext
5680CC=$ac_save_CC
5681
5682fi
5683# AC_CACHE_VAL
5684case "x$ac_cv_prog_cc_c89" in
5685 x)
cristy8b350f62009-11-15 23:12:43 +00005686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005687$as_echo "none needed" >&6; } ;;
5688 xno)
cristy8b350f62009-11-15 23:12:43 +00005689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005690$as_echo "unsupported" >&6; } ;;
5691 *)
5692 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005694$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5695esac
cristy8b350f62009-11-15 23:12:43 +00005696if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5698else
5699 ac_cv_prog_cc_stdc=no
5700fi
5701
cristy3ed852e2009-09-05 21:47:34 +00005702fi
cristy3ed852e2009-09-05 21:47:34 +00005703 ;;
5704esac
cristy8b350f62009-11-15 23:12:43 +00005705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005706$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005707 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005708 $as_echo_n "(cached) " >&6
5709fi
5710
cristy8b350f62009-11-15 23:12:43 +00005711 case $ac_cv_prog_cc_stdc in #(
5712 no) :
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5714$as_echo "unsupported" >&6; } ;; #(
5715 '') :
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5717$as_echo "none needed" >&6; } ;; #(
5718 *) :
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005720$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5721esac
5722
cristy3ed852e2009-09-05 21:47:34 +00005723ac_ext=c
5724ac_cpp='$CPP $CPPFLAGS'
5725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005729$as_echo_n "checking how to run the C preprocessor... " >&6; }
5730# On Suns, sometimes $CPP names a directory.
5731if test -n "$CPP" && test -d "$CPP"; then
5732 CPP=
5733fi
5734if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005735 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005736 $as_echo_n "(cached) " >&6
5737else
5738 # Double quotes because CPP needs to be expanded
5739 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5740 do
5741 ac_preproc_ok=false
5742for ac_c_preproc_warn_flag in '' yes
5743do
5744 # Use a header file that comes with gcc, so configuring glibc
5745 # with a fresh cross-compiler works.
5746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5747 # <limits.h> exists even on freestanding compilers.
5748 # On the NeXT, cc -E runs the code through the compiler's parser,
5749 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005751/* end confdefs.h. */
5752#ifdef __STDC__
5753# include <limits.h>
5754#else
5755# include <assert.h>
5756#endif
5757 Syntax error
5758_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005759if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005760
cristy8b350f62009-11-15 23:12:43 +00005761else
cristy3ed852e2009-09-05 21:47:34 +00005762 # Broken: fails on valid input.
5763continue
5764fi
cristy3ed852e2009-09-05 21:47:34 +00005765rm -f conftest.err conftest.$ac_ext
5766
5767 # OK, works on sane cases. Now check whether nonexistent headers
5768 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005770/* end confdefs.h. */
5771#include <ac_nonexistent.h>
5772_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005773if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005774 # Broken: success on invalid input.
5775continue
5776else
cristy3ed852e2009-09-05 21:47:34 +00005777 # Passes both tests.
5778ac_preproc_ok=:
5779break
5780fi
cristy3ed852e2009-09-05 21:47:34 +00005781rm -f conftest.err conftest.$ac_ext
5782
5783done
5784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5785rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005786if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005787 break
5788fi
5789
5790 done
5791 ac_cv_prog_CPP=$CPP
5792
5793fi
5794 CPP=$ac_cv_prog_CPP
5795else
5796 ac_cv_prog_CPP=$CPP
5797fi
cristy8b350f62009-11-15 23:12:43 +00005798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005799$as_echo "$CPP" >&6; }
5800ac_preproc_ok=false
5801for ac_c_preproc_warn_flag in '' yes
5802do
5803 # Use a header file that comes with gcc, so configuring glibc
5804 # with a fresh cross-compiler works.
5805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5806 # <limits.h> exists even on freestanding compilers.
5807 # On the NeXT, cc -E runs the code through the compiler's parser,
5808 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005810/* end confdefs.h. */
5811#ifdef __STDC__
5812# include <limits.h>
5813#else
5814# include <assert.h>
5815#endif
5816 Syntax error
5817_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005818if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005819
cristy8b350f62009-11-15 23:12:43 +00005820else
cristy3ed852e2009-09-05 21:47:34 +00005821 # Broken: fails on valid input.
5822continue
5823fi
cristy3ed852e2009-09-05 21:47:34 +00005824rm -f conftest.err conftest.$ac_ext
5825
5826 # OK, works on sane cases. Now check whether nonexistent headers
5827 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005829/* end confdefs.h. */
5830#include <ac_nonexistent.h>
5831_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005832if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005833 # Broken: success on invalid input.
5834continue
5835else
cristy3ed852e2009-09-05 21:47:34 +00005836 # Passes both tests.
5837ac_preproc_ok=:
5838break
5839fi
cristy3ed852e2009-09-05 21:47:34 +00005840rm -f conftest.err conftest.$ac_ext
5841
5842done
5843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005845if $ac_preproc_ok; then :
5846
cristy3ed852e2009-09-05 21:47:34 +00005847else
cristy8b350f62009-11-15 23:12:43 +00005848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005850as_fn_error "C preprocessor \"$CPP\" fails sanity check
5851See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005852fi
5853
5854ac_ext=c
5855ac_cpp='$CPP $CPPFLAGS'
5856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859
cristy8b350f62009-11-15 23:12:43 +00005860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005861$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005862if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005863 $as_echo_n "(cached) " >&6
5864else
5865 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5866 for ac_i in 1 2 3 4 5 6 7; do
5867 ac_script="$ac_script$as_nl$ac_script"
5868 done
5869 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005870 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005871 if test -z "$SED"; then
5872 ac_path_SED_found=false
5873 # Loop through the user's path and test for each of PROGNAME-LIST
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005879 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5882 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5883# Check for GNU ac_path_SED and select it if it is found.
5884 # Check for GNU $ac_path_SED
5885case `"$ac_path_SED" --version 2>&1` in
5886*GNU*)
5887 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5888*)
5889 ac_count=0
5890 $as_echo_n 0123456789 >"conftest.in"
5891 while :
5892 do
5893 cat "conftest.in" "conftest.in" >"conftest.tmp"
5894 mv "conftest.tmp" "conftest.in"
5895 cp "conftest.in" "conftest.nl"
5896 $as_echo '' >> "conftest.nl"
5897 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005899 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005900 if test $ac_count -gt ${ac_path_SED_max-0}; then
5901 # Best one so far, save it but keep looking for a better one
5902 ac_cv_path_SED="$ac_path_SED"
5903 ac_path_SED_max=$ac_count
5904 fi
5905 # 10*(2^10) chars as input seems more than enough
5906 test $ac_count -gt 10 && break
5907 done
5908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5909esac
5910
5911 $ac_path_SED_found && break 3
5912 done
5913 done
cristy8b350f62009-11-15 23:12:43 +00005914 done
cristy3ed852e2009-09-05 21:47:34 +00005915IFS=$as_save_IFS
5916 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005917 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005918 fi
5919else
5920 ac_cv_path_SED=$SED
5921fi
5922
5923fi
cristy8b350f62009-11-15 23:12:43 +00005924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005925$as_echo "$ac_cv_path_SED" >&6; }
5926 SED="$ac_cv_path_SED"
5927 rm -f conftest.sed
5928
5929test -z "$SED" && SED=sed
5930Xsed="$SED -e 1s/^X//"
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
cristy8b350f62009-11-15 23:12:43 +00005942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005943$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005944if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005945 $as_echo_n "(cached) " >&6
5946else
5947 if test -z "$GREP"; then
5948 ac_path_GREP_found=false
5949 # Loop through the user's path and test for each of PROGNAME-LIST
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005955 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5958 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5959# Check for GNU ac_path_GREP and select it if it is found.
5960 # Check for GNU $ac_path_GREP
5961case `"$ac_path_GREP" --version 2>&1` in
5962*GNU*)
5963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5964*)
5965 ac_count=0
5966 $as_echo_n 0123456789 >"conftest.in"
5967 while :
5968 do
5969 cat "conftest.in" "conftest.in" >"conftest.tmp"
5970 mv "conftest.tmp" "conftest.in"
5971 cp "conftest.in" "conftest.nl"
5972 $as_echo 'GREP' >> "conftest.nl"
5973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005975 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005976 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5977 # Best one so far, save it but keep looking for a better one
5978 ac_cv_path_GREP="$ac_path_GREP"
5979 ac_path_GREP_max=$ac_count
5980 fi
5981 # 10*(2^10) chars as input seems more than enough
5982 test $ac_count -gt 10 && break
5983 done
5984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985esac
5986
5987 $ac_path_GREP_found && break 3
5988 done
5989 done
cristy8b350f62009-11-15 23:12:43 +00005990 done
cristy3ed852e2009-09-05 21:47:34 +00005991IFS=$as_save_IFS
5992 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005993 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005994 fi
5995else
5996 ac_cv_path_GREP=$GREP
5997fi
5998
5999fi
cristy8b350f62009-11-15 23:12:43 +00006000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006001$as_echo "$ac_cv_path_GREP" >&6; }
6002 GREP="$ac_cv_path_GREP"
6003
6004
cristy8b350f62009-11-15 23:12:43 +00006005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006006$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006007if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006008 $as_echo_n "(cached) " >&6
6009else
6010 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6011 then ac_cv_path_EGREP="$GREP -E"
6012 else
6013 if test -z "$EGREP"; then
6014 ac_path_EGREP_found=false
6015 # Loop through the user's path and test for each of PROGNAME-LIST
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006021 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6024 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6025# Check for GNU ac_path_EGREP and select it if it is found.
6026 # Check for GNU $ac_path_EGREP
6027case `"$ac_path_EGREP" --version 2>&1` in
6028*GNU*)
6029 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6030*)
6031 ac_count=0
6032 $as_echo_n 0123456789 >"conftest.in"
6033 while :
6034 do
6035 cat "conftest.in" "conftest.in" >"conftest.tmp"
6036 mv "conftest.tmp" "conftest.in"
6037 cp "conftest.in" "conftest.nl"
6038 $as_echo 'EGREP' >> "conftest.nl"
6039 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006041 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006042 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6043 # Best one so far, save it but keep looking for a better one
6044 ac_cv_path_EGREP="$ac_path_EGREP"
6045 ac_path_EGREP_max=$ac_count
6046 fi
6047 # 10*(2^10) chars as input seems more than enough
6048 test $ac_count -gt 10 && break
6049 done
6050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6051esac
6052
6053 $ac_path_EGREP_found && break 3
6054 done
6055 done
cristy8b350f62009-11-15 23:12:43 +00006056 done
cristy3ed852e2009-09-05 21:47:34 +00006057IFS=$as_save_IFS
6058 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006059 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006060 fi
6061else
6062 ac_cv_path_EGREP=$EGREP
6063fi
6064
6065 fi
6066fi
cristy8b350f62009-11-15 23:12:43 +00006067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006068$as_echo "$ac_cv_path_EGREP" >&6; }
6069 EGREP="$ac_cv_path_EGREP"
6070
6071
cristy8b350f62009-11-15 23:12:43 +00006072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006073$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006074if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006075 $as_echo_n "(cached) " >&6
6076else
6077 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6078 then ac_cv_path_FGREP="$GREP -F"
6079 else
6080 if test -z "$FGREP"; then
6081 ac_path_FGREP_found=false
6082 # Loop through the user's path and test for each of PROGNAME-LIST
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006088 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6091 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6092# Check for GNU ac_path_FGREP and select it if it is found.
6093 # Check for GNU $ac_path_FGREP
6094case `"$ac_path_FGREP" --version 2>&1` in
6095*GNU*)
6096 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6097*)
6098 ac_count=0
6099 $as_echo_n 0123456789 >"conftest.in"
6100 while :
6101 do
6102 cat "conftest.in" "conftest.in" >"conftest.tmp"
6103 mv "conftest.tmp" "conftest.in"
6104 cp "conftest.in" "conftest.nl"
6105 $as_echo 'FGREP' >> "conftest.nl"
6106 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006108 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006109 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6110 # Best one so far, save it but keep looking for a better one
6111 ac_cv_path_FGREP="$ac_path_FGREP"
6112 ac_path_FGREP_max=$ac_count
6113 fi
6114 # 10*(2^10) chars as input seems more than enough
6115 test $ac_count -gt 10 && break
6116 done
6117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6118esac
6119
6120 $ac_path_FGREP_found && break 3
6121 done
6122 done
cristy8b350f62009-11-15 23:12:43 +00006123 done
cristy3ed852e2009-09-05 21:47:34 +00006124IFS=$as_save_IFS
6125 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006126 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006127 fi
6128else
6129 ac_cv_path_FGREP=$FGREP
6130fi
6131
6132 fi
6133fi
cristy8b350f62009-11-15 23:12:43 +00006134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006135$as_echo "$ac_cv_path_FGREP" >&6; }
6136 FGREP="$ac_cv_path_FGREP"
6137
6138
6139test -z "$GREP" && GREP=grep
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006160if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6162else
6163 with_gnu_ld=no
6164fi
6165
6166ac_prog=ld
6167if test "$GCC" = yes; then
6168 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006170$as_echo_n "checking for ld used by $CC... " >&6; }
6171 case $host in
6172 *-*-mingw*)
6173 # gcc leaves a trailing carriage return which upsets mingw
6174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6175 *)
6176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6177 esac
6178 case $ac_prog in
6179 # Accept absolute paths.
6180 [\\/]* | ?:[\\/]*)
6181 re_direlt='/[^/][^/]*/\.\./'
6182 # Canonicalize the pathname of ld
6183 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6186 done
6187 test -z "$LD" && LD="$ac_prog"
6188 ;;
6189 "")
6190 # If it fails, then pretend we aren't using GCC.
6191 ac_prog=ld
6192 ;;
6193 *)
6194 # If it is relative, then search for the first ld in PATH.
6195 with_gnu_ld=unknown
6196 ;;
6197 esac
6198elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006200$as_echo_n "checking for GNU ld... " >&6; }
6201else
cristy8b350f62009-11-15 23:12:43 +00006202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006203$as_echo_n "checking for non-GNU ld... " >&6; }
6204fi
cristy8b350f62009-11-15 23:12:43 +00006205if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006206 $as_echo_n "(cached) " >&6
6207else
6208 if test -z "$LD"; then
6209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6210 for ac_dir in $PATH; do
6211 IFS="$lt_save_ifs"
6212 test -z "$ac_dir" && ac_dir=.
6213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6214 lt_cv_path_LD="$ac_dir/$ac_prog"
6215 # Check to see if the program is GNU ld. I'd rather use --version,
6216 # but apparently some variants of GNU ld only accept -v.
6217 # Break only if it was the GNU/non-GNU ld that we prefer.
6218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6219 *GNU* | *'with BFD'*)
6220 test "$with_gnu_ld" != no && break
6221 ;;
6222 *)
6223 test "$with_gnu_ld" != yes && break
6224 ;;
6225 esac
6226 fi
6227 done
6228 IFS="$lt_save_ifs"
6229else
6230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6231fi
6232fi
6233
6234LD="$lt_cv_path_LD"
6235if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006237$as_echo "$LD" >&6; }
6238else
cristy8b350f62009-11-15 23:12:43 +00006239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006240$as_echo "no" >&6; }
6241fi
cristy8b350f62009-11-15 23:12:43 +00006242test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006244$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006245if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006246 $as_echo_n "(cached) " >&6
6247else
6248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6249case `$LD -v 2>&1 </dev/null` in
6250*GNU* | *'with BFD'*)
6251 lt_cv_prog_gnu_ld=yes
6252 ;;
6253*)
6254 lt_cv_prog_gnu_ld=no
6255 ;;
6256esac
6257fi
cristy8b350f62009-11-15 23:12:43 +00006258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006259$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6260with_gnu_ld=$lt_cv_prog_gnu_ld
6261
6262
6263
6264
6265
6266
6267
6268
6269
cristy3ed852e2009-09-05 21:47:34 +00006270
6271if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006273$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6274else
cristy8b350f62009-11-15 23:12:43 +00006275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006276$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6277fi
6278set dummy $CC; ac_cc=`$as_echo "$2" |
6279 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006280if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006281 $as_echo_n "(cached) " >&6
6282else
cristy8b350f62009-11-15 23:12:43 +00006283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006284/* end confdefs.h. */
6285
6286int
6287main ()
6288{
6289
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294# Make sure it works both with $CC and with simple cc.
6295# We do the test twice because some compilers refuse to overwrite an
6296# existing .o file with -o, though they will create one.
6297ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6298rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006299if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
cristy8b350f62009-11-15 23:12:43 +00006303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6304$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006305 (eval "$ac_try") 2>&5
6306 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; } &&
6309 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
cristy8b350f62009-11-15 23:12:43 +00006313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6314$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006315 (eval "$ac_try") 2>&5
6316 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006319then
6320 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6321 if test "x$CC" != xcc; then
6322 # Test first that cc exists at all.
6323 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006324 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
cristy8b350f62009-11-15 23:12:43 +00006328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006330 (eval "$ac_try") 2>&5
6331 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6333 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006334 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6335 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006336 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
cristy8b350f62009-11-15 23:12:43 +00006340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6341$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006342 (eval "$ac_try") 2>&5
6343 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345 test $ac_status = 0; } &&
6346 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349esac
cristy8b350f62009-11-15 23:12:43 +00006350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6351$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006352 (eval "$ac_try") 2>&5
6353 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006356 then
6357 # cc works too.
6358 :
6359 else
6360 # cc exists but doesn't like -o.
6361 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6362 fi
6363 fi
6364 fi
6365else
6366 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6367fi
6368rm -f core conftest*
6369
6370fi
6371if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006373$as_echo "yes" >&6; }
6374else
cristy8b350f62009-11-15 23:12:43 +00006375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006376$as_echo "no" >&6; }
6377
cristy8b350f62009-11-15 23:12:43 +00006378$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006379
6380fi
6381
6382# FIXME: we rely on the cache variable name because
6383# there is no other way.
6384set dummy $CC
6385am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6386eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6387if test "$am_t" != yes; then
6388 # Losing compiler, so override with the script.
6389 # FIXME: It is wrong to rewrite CC.
6390 # But if we don't then we get into trouble of one sort or another.
6391 # A longer-term fix would be to have automake use am__CC in this case,
6392 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6393 CC="$am_aux_dir/compile $CC"
6394fi
6395
6396
cristy3ed852e2009-09-05 21:47:34 +00006397
cristy8b350f62009-11-15 23:12:43 +00006398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006399$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6400set x ${MAKE-make}
6401ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006402if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006403 $as_echo_n "(cached) " >&6
6404else
6405 cat >conftest.make <<\_ACEOF
6406SHELL = /bin/sh
6407all:
6408 @echo '@@@%%%=$(MAKE)=@@@%%%'
6409_ACEOF
6410# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6411case `${MAKE-make} -f conftest.make 2>/dev/null` in
6412 *@@@%%%=?*=@@@%%%*)
6413 eval ac_cv_prog_make_${ac_make}_set=yes;;
6414 *)
6415 eval ac_cv_prog_make_${ac_make}_set=no;;
6416esac
6417rm -f conftest.make
6418fi
6419if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006421$as_echo "yes" >&6; }
6422 SET_MAKE=
6423else
cristy8b350f62009-11-15 23:12:43 +00006424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006425$as_echo "no" >&6; }
6426 SET_MAKE="MAKE=${MAKE-make}"
6427fi
6428
cristy3ed852e2009-09-05 21:47:34 +00006429
cristy8b350f62009-11-15 23:12:43 +00006430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006431$as_echo_n "checking maximum warning verbosity option... " >&6; }
6432
6433
6434
6435
6436# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006437if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006438 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6439else
6440 ac_compile_warnings_on=""
6441fi
6442
6443
6444 if test x"$ac_compile_warnings_on" = xno
6445 then
6446 ac_compile_warnings_msg=no
6447 else
6448 if test -n "$CXX"
6449 then
6450 if test "$GXX" = "yes"
6451 then
6452 ac_compile_warnings_opt='-Wall -W'
6453 fi
6454 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6455 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6456 fi
6457
6458 if test -n "$CC"
6459 then
6460 if test "$GCC" = "yes"
6461 then
6462 ac_compile_warnings_opt='-Wall -W'
6463 fi
6464 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6465 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6466 fi
6467 fi
cristy8b350f62009-11-15 23:12:43 +00006468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006469$as_echo "$ac_compile_warnings_msg" >&6; }
6470 unset ac_compile_warnings_msg
6471 unset ac_compile_warnings_opt
6472
cristy8b350f62009-11-15 23:12:43 +00006473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006474$as_echo_n "checking whether ln -s works... " >&6; }
6475LN_S=$as_ln_s
6476if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006478$as_echo "yes" >&6; }
6479else
cristy8b350f62009-11-15 23:12:43 +00006480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006481$as_echo "no, using $LN_S" >&6; }
6482fi
6483
cristy8b350f62009-11-15 23:12:43 +00006484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006485$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6486
6487# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006488if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006489 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006491$as_echo "yes" >&6; }
6492
cristy8b350f62009-11-15 23:12:43 +00006493$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006494
6495 LIBS="$LIBS -ldmalloc"
6496 LDFLAGS="$LDFLAGS -g"
6497else
cristy8b350f62009-11-15 23:12:43 +00006498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006499$as_echo "no" >&6; }
6500fi
6501else
cristy8b350f62009-11-15 23:12:43 +00006502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006503$as_echo "no" >&6; }
6504fi
6505
6506
6507
6508
6509if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6512set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006514$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006515if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006516 $as_echo_n "(cached) " >&6
6517else
6518 case $PKG_CONFIG in
6519 [\\/]* | ?:[\\/]*)
6520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6521 ;;
6522 *)
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006532 break 2
6533 fi
6534done
cristy8b350f62009-11-15 23:12:43 +00006535 done
cristy3ed852e2009-09-05 21:47:34 +00006536IFS=$as_save_IFS
6537
6538 ;;
6539esac
6540fi
6541PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6542if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006544$as_echo "$PKG_CONFIG" >&6; }
6545else
cristy8b350f62009-11-15 23:12:43 +00006546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006547$as_echo "no" >&6; }
6548fi
6549
6550
6551fi
6552if test -z "$ac_cv_path_PKG_CONFIG"; then
6553 ac_pt_PKG_CONFIG=$PKG_CONFIG
6554 # Extract the first word of "pkg-config", so it can be a program name with args.
6555set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006558if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006559 $as_echo_n "(cached) " >&6
6560else
6561 case $ac_pt_PKG_CONFIG in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006575 break 2
6576 fi
6577done
cristy8b350f62009-11-15 23:12:43 +00006578 done
cristy3ed852e2009-09-05 21:47:34 +00006579IFS=$as_save_IFS
6580
6581 ;;
6582esac
6583fi
6584ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6585if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006587$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6588else
cristy8b350f62009-11-15 23:12:43 +00006589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006590$as_echo "no" >&6; }
6591fi
6592
6593 if test "x$ac_pt_PKG_CONFIG" = x; then
6594 PKG_CONFIG=""
6595 else
6596 case $cross_compiling:$ac_tool_warned in
6597yes:)
cristy8b350f62009-11-15 23:12:43 +00006598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600ac_tool_warned=yes ;;
6601esac
6602 PKG_CONFIG=$ac_pt_PKG_CONFIG
6603 fi
6604else
6605 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6606fi
6607
6608fi
6609if test -n "$PKG_CONFIG"; then
6610 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006612$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6613 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006615$as_echo "yes" >&6; }
6616 else
cristy8b350f62009-11-15 23:12:43 +00006617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006618$as_echo "no" >&6; }
6619 PKG_CONFIG=""
6620 fi
6621
6622fi
6623
6624#
6625# Enable OS features.
6626#
6627
6628
cristy8b350f62009-11-15 23:12:43 +00006629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006630$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006631if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006632 $as_echo_n "(cached) " >&6
6633else
cristy8b350f62009-11-15 23:12:43 +00006634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006635/* end confdefs.h. */
6636#include <stdlib.h>
6637#include <stdarg.h>
6638#include <string.h>
6639#include <float.h>
6640
6641int
6642main ()
6643{
6644
6645 ;
6646 return 0;
6647}
6648_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006649if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006650 ac_cv_header_stdc=yes
6651else
cristy8b350f62009-11-15 23:12:43 +00006652 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006653fi
cristy3ed852e2009-09-05 21:47:34 +00006654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655
6656if test $ac_cv_header_stdc = yes; then
6657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006659/* end confdefs.h. */
6660#include <string.h>
6661
6662_ACEOF
6663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006664 $EGREP "memchr" >/dev/null 2>&1; then :
6665
cristy3ed852e2009-09-05 21:47:34 +00006666else
6667 ac_cv_header_stdc=no
6668fi
6669rm -f conftest*
6670
6671fi
6672
6673if test $ac_cv_header_stdc = yes; then
6674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006676/* end confdefs.h. */
6677#include <stdlib.h>
6678
6679_ACEOF
6680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006681 $EGREP "free" >/dev/null 2>&1; then :
6682
cristy3ed852e2009-09-05 21:47:34 +00006683else
6684 ac_cv_header_stdc=no
6685fi
6686rm -f conftest*
6687
6688fi
6689
6690if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006692 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006693 :
6694else
cristy8b350f62009-11-15 23:12:43 +00006695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006696/* end confdefs.h. */
6697#include <ctype.h>
6698#include <stdlib.h>
6699#if ((' ' & 0x0FF) == 0x020)
6700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6702#else
6703# define ISLOWER(c) \
6704 (('a' <= (c) && (c) <= 'i') \
6705 || ('j' <= (c) && (c) <= 'r') \
6706 || ('s' <= (c) && (c) <= 'z'))
6707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6708#endif
6709
6710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6711int
6712main ()
6713{
6714 int i;
6715 for (i = 0; i < 256; i++)
6716 if (XOR (islower (i), ISLOWER (i))
6717 || toupper (i) != TOUPPER (i))
6718 return 2;
6719 return 0;
6720}
6721_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006722if ac_fn_c_try_run "$LINENO"; then :
6723
cristy3ed852e2009-09-05 21:47:34 +00006724else
cristy8b350f62009-11-15 23:12:43 +00006725 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006726fi
cristy8b350f62009-11-15 23:12:43 +00006727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6728 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006729fi
6730
cristy3ed852e2009-09-05 21:47:34 +00006731fi
6732fi
cristy8b350f62009-11-15 23:12:43 +00006733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006734$as_echo "$ac_cv_header_stdc" >&6; }
6735if test $ac_cv_header_stdc = yes; then
6736
cristy8b350f62009-11-15 23:12:43 +00006737$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006738
6739fi
6740
6741# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006742for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6743 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006744do :
6745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6746ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6747"
6748eval as_val=\$$as_ac_Header
6749 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006750 cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755
6756done
6757
6758
6759
cristy8b350f62009-11-15 23:12:43 +00006760 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6761if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006762 MINIX=yes
6763else
6764 MINIX=
6765fi
6766
6767
6768 if test "$MINIX" = yes; then
6769
cristy8b350f62009-11-15 23:12:43 +00006770$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006771
6772
cristy8b350f62009-11-15 23:12:43 +00006773$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006774
6775
cristy8b350f62009-11-15 23:12:43 +00006776$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006777
6778 fi
6779
6780
cristy8b350f62009-11-15 23:12:43 +00006781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006782$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006783if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006784 $as_echo_n "(cached) " >&6
6785else
cristy8b350f62009-11-15 23:12:43 +00006786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006787/* end confdefs.h. */
6788
6789# define __EXTENSIONS__ 1
6790 $ac_includes_default
6791int
6792main ()
6793{
6794
6795 ;
6796 return 0;
6797}
6798_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006799if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006800 ac_cv_safe_to_define___extensions__=yes
6801else
cristy8b350f62009-11-15 23:12:43 +00006802 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006803fi
cristy3ed852e2009-09-05 21:47:34 +00006804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805fi
cristy8b350f62009-11-15 23:12:43 +00006806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006807$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6808 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006809 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006810
cristy8b350f62009-11-15 23:12:43 +00006811 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006812
cristy8b350f62009-11-15 23:12:43 +00006813 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006814
cristy8b350f62009-11-15 23:12:43 +00006815 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006816
cristy8b350f62009-11-15 23:12:43 +00006817 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6818
cristy3ed852e2009-09-05 21:47:34 +00006819
6820
cristy3ed852e2009-09-05 21:47:34 +00006821#
6822# Enable run-time checking.
6823#
6824# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006825if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006826 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6827else
6828 enable_bounds_checking='no'
6829fi
6830
6831
6832if test "$enable_bounds_checking" = yes; then
6833
cristy8b350f62009-11-15 23:12:43 +00006834$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006835
6836fi
6837
6838#
6839# Tests for Windows
6840#
6841
6842
6843
6844GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00006845native_win32_build='no'
6846cygwin_build='no'
6847case "${host_os}" in
6848 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00006849 cygwin_build='yes'
6850 GDI32_LIBS='-lgdi32'
6851 ;;
6852 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00006853 native_win32_build='yes'
6854 GDI32_LIBS='-lgdi32'
6855 ;;
6856esac
6857if test "${GDI32_LIBS}x" != 'x'; then
6858
cristy8b350f62009-11-15 23:12:43 +00006859$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006860
6861fi
6862
6863 if test "${GDI32_LIBS}x" != 'x' ; then
6864 WINGDI32_DELEGATE_TRUE=
6865 WINGDI32_DELEGATE_FALSE='#'
6866else
6867 WINGDI32_DELEGATE_TRUE='#'
6868 WINGDI32_DELEGATE_FALSE=
6869fi
6870
6871 if test "${native_win32_build}" = 'yes' ; then
6872 WIN32_NATIVE_BUILD_TRUE=
6873 WIN32_NATIVE_BUILD_FALSE='#'
6874else
6875 WIN32_NATIVE_BUILD_TRUE='#'
6876 WIN32_NATIVE_BUILD_FALSE=
6877fi
6878
6879 if test "${cygwin_build}" = 'yes' ; then
6880 CYGWIN_BUILD_TRUE=
6881 CYGWIN_BUILD_FALSE='#'
6882else
6883 CYGWIN_BUILD_TRUE='#'
6884 CYGWIN_BUILD_FALSE=
6885fi
6886
6887 if test "x${CC}" = 'xcl.exe' ; then
6888 USING_CL_TRUE=
6889 USING_CL_FALSE='#'
6890else
6891 USING_CL_TRUE='#'
6892 USING_CL_FALSE=
6893fi
6894
6895
6896WinPathScript="${srcdirfull}/winpath.sh"
6897
6898
6899#
6900# Compiler flags tweaks
6901#
6902if test "${GCC}" != "yes"; then
6903 case "${host}" in
6904 *-*-hpux* )
6905 # aCC: HP ANSI C++ B3910B A.03.34
6906 CFLAGS="${CFLAGS} -Wp,-H30000"
6907 if test -n "${CXXFLAGS}"; then
6908 CXXFLAGS='-AA'
6909 else
6910 CXXFLAGS="${CXXFLAGS} -AA"
6911 fi
6912 ;;
6913 *-dec-osf5.* )
6914 # Compaq alphaev68-dec-osf5.1 compiler
6915 if test -n "${CXXFLAGS}"; then
6916 CXXFLAGS='-std strict_ansi -noimplicit_include'
6917 else
6918 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6919 fi
6920 esac
6921fi
6922
6923# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006925$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006926if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006927 $as_echo_n "(cached) " >&6
6928else
6929
6930im_cv_ld_lazyload='none'
6931case "${host}" in
6932 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6933 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6934 im_cv_ld_lazyload='-Wl,-zlazyload'
6935 fi
6936 ;;
6937esac
6938
6939fi
cristy8b350f62009-11-15 23:12:43 +00006940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00006941$as_echo "$im_cv_ld_lazyload" >&6; }
6942if test "${im_cv_ld_lazyload}" != 'none' ; then
6943 if test -z "${LDFLAGS}" ; then
6944 LDFLAGS="${im_cv_ld_lazyload}"
6945 else
6946 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
6947 fi
6948fi
6949
6950case "$host" in
6951*darwin* | *-macos10*)
6952 if test -d /opt/local ; then
6953 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
6954 LDFLAGS="$LDFLAGS -L/opt/local/lib"
6955 elif test -d /sw ; then
6956 CPPFLAGS="$CPPFLAGS -I/sw/include"
6957 LDFLAGS="$LDFLAGS -L/sw/lib"
6958 fi
6959 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00006960if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006961 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
6962else
6963 build_osxuniversal=no
6964fi
6965
6966
6967 if test "${build_osxuniversal}" != no ; then
6968 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00006969 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00006970Please re-run configure with these options:
6971 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00006972 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006973 fi
6974 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6975 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6976 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6977 fi
6978 ;;
6979esac
6980
6981# Enable support for threads
6982
6983# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00006984if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006985 withval=$with_threads; with_threads=$withval
6986else
6987 with_threads='yes'
6988fi
6989
6990
6991have_threads=no
6992if test "$with_threads" != 'no'; then
6993
6994
6995
6996ac_ext=c
6997ac_cpp='$CPP $CPPFLAGS'
6998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002acx_pthread_ok=no
7003
7004# We used to check for pthread.h first, but this fails if pthread.h
7005# requires special compiler flags (e.g. on True64 or Sequent).
7006# It gets checked for in the link test anyway.
7007
7008# First of all, check if the user has set any of the PTHREAD_LIBS,
7009# etcetera environment variables, and if threads linking works using
7010# them:
7011if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7012 save_CFLAGS="$CFLAGS"
7013 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7014 save_LIBS="$LIBS"
7015 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007016 { $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 +00007017$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007019/* end confdefs.h. */
7020
7021/* Override any GCC internal prototype to avoid an error.
7022 Use char because int might match the return type of a GCC
7023 builtin and then its argument prototype would still apply. */
7024#ifdef __cplusplus
7025extern "C"
7026#endif
7027char pthread_join ();
7028int
7029main ()
7030{
7031return pthread_join ();
7032 ;
7033 return 0;
7034}
7035_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007036if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007037 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007038fi
cristy8b350f62009-11-15 23:12:43 +00007039rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007042$as_echo "$acx_pthread_ok" >&6; }
7043 if test x"$acx_pthread_ok" = xno; then
7044 PTHREAD_LIBS=""
7045 PTHREAD_CFLAGS=""
7046 fi
7047 LIBS="$save_LIBS"
7048 CFLAGS="$save_CFLAGS"
7049fi
7050
7051# We must check for the threads library under a number of different
7052# names; the ordering is very important because some systems
7053# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7054# libraries is broken (non-POSIX).
7055
7056# Create a list of thread flags to try. Items starting with a "-" are
7057# C compiler flags, and other items are library names, except for "none"
7058# which indicates that we try without any flags at all, and "pthread-config"
7059# which is a program returning the flags for the Pth emulation library.
7060
7061acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7062
7063# The ordering *is* (sometimes) important. Some notes on the
7064# individual items follow:
7065
7066# pthreads: AIX (must check this before -lpthread)
7067# none: in case threads are in libc; should be tried before -Kthread and
7068# other compiler flags to prevent continual compiler warnings
7069# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7070# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7071# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7072# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7073# -pthreads: Solaris/gcc
7074# -mthreads: Mingw32/gcc, Lynx/gcc
7075# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7076# doesn't hurt to check since this sometimes defines pthreads too;
7077# also defines -D_REENTRANT)
7078# ... -mt is also the pthreads flag for HP/aCC
7079# pthread: Linux, etcetera
7080# --thread-safe: KAI C++
7081# pthread-config: use pthread-config program (for GNU Pth library)
7082
7083case "${host_cpu}-${host_os}" in
7084 *solaris*)
7085
7086 # On Solaris (at least, for some versions), libc contains stubbed
7087 # (non-functional) versions of the pthreads routines, so link-based
7088 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7089 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7090 # a function called by this macro, so we could check for that, but
7091 # who knows whether they'll stub that too in a future libc.) So,
7092 # we'll just look for -pthreads and -lpthread first:
7093
7094 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7095 ;;
cristy3ed852e2009-09-05 21:47:34 +00007096esac
7097
7098if test x"$acx_pthread_ok" = xno; then
7099for flag in $acx_pthread_flags; do
7100
7101 case $flag in
7102 none)
cristy8b350f62009-11-15 23:12:43 +00007103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007104$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7105 ;;
7106
7107 -*)
cristy8b350f62009-11-15 23:12:43 +00007108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007109$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7110 PTHREAD_CFLAGS="$flag"
7111 ;;
7112
7113 pthread-config)
7114 # Extract the first word of "pthread-config", so it can be a program name with args.
7115set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007118if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007119 $as_echo_n "(cached) " >&6
7120else
7121 if test -n "$acx_pthread_config"; then
7122 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7123else
7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007133 break 2
7134 fi
7135done
cristy8b350f62009-11-15 23:12:43 +00007136 done
cristy3ed852e2009-09-05 21:47:34 +00007137IFS=$as_save_IFS
7138
7139 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7140fi
7141fi
7142acx_pthread_config=$ac_cv_prog_acx_pthread_config
7143if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007145$as_echo "$acx_pthread_config" >&6; }
7146else
cristy8b350f62009-11-15 23:12:43 +00007147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007148$as_echo "no" >&6; }
7149fi
7150
7151
7152 if test x"$acx_pthread_config" = xno; then continue; fi
7153 PTHREAD_CFLAGS="`pthread-config --cflags`"
7154 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7155 ;;
7156
7157 *)
cristy8b350f62009-11-15 23:12:43 +00007158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007159$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7160 PTHREAD_LIBS="-l$flag"
7161 ;;
7162 esac
7163
7164 save_LIBS="$LIBS"
7165 save_CFLAGS="$CFLAGS"
7166 LIBS="$PTHREAD_LIBS $LIBS"
7167 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7168
7169 # Check for various functions. We must include pthread.h,
7170 # since some functions may be macros. (On the Sequent, we
7171 # need a special flag -Kthread to make this header compile.)
7172 # We check for pthread_join because it is in -lpthread on IRIX
7173 # while pthread_create is in libc. We check for pthread_attr_init
7174 # due to DEC craziness with -lpthreads. We check for
7175 # pthread_cleanup_push because it is one of the few pthread
7176 # functions on Solaris that doesn't have a non-functional libc stub.
7177 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007179/* end confdefs.h. */
7180#include <pthread.h>
7181int
7182main ()
7183{
7184pthread_t th; pthread_join(th, 0);
7185 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7186 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7187 ;
7188 return 0;
7189}
7190_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007192 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007193fi
cristy8b350f62009-11-15 23:12:43 +00007194rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196
7197 LIBS="$save_LIBS"
7198 CFLAGS="$save_CFLAGS"
7199
cristy8b350f62009-11-15 23:12:43 +00007200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007201$as_echo "$acx_pthread_ok" >&6; }
7202 if test "x$acx_pthread_ok" = xyes; then
7203 break;
7204 fi
7205
7206 PTHREAD_LIBS=""
7207 PTHREAD_CFLAGS=""
7208done
7209fi
7210
7211# Various other checks:
7212if test "x$acx_pthread_ok" = xyes; then
7213 save_LIBS="$LIBS"
7214 LIBS="$PTHREAD_LIBS $LIBS"
7215 save_CFLAGS="$CFLAGS"
7216 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7217
7218 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007220$as_echo_n "checking for joinable pthread attribute... " >&6; }
7221 attr_name=unknown
7222 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007224/* end confdefs.h. */
7225#include <pthread.h>
7226int
7227main ()
7228{
7229int attr=$attr; return attr;
7230 ;
7231 return 0;
7232}
7233_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007235 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007236fi
cristy8b350f62009-11-15 23:12:43 +00007237rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239 done
cristy8b350f62009-11-15 23:12:43 +00007240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007241$as_echo "$attr_name" >&6; }
7242 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7243
7244cat >>confdefs.h <<_ACEOF
7245#define PTHREAD_CREATE_JOINABLE $attr_name
7246_ACEOF
7247
7248 fi
7249
cristy8b350f62009-11-15 23:12:43 +00007250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007251$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7252 flag=no
7253 case "${host_cpu}-${host_os}" in
7254 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7255 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7256 esac
cristy8b350f62009-11-15 23:12:43 +00007257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007258$as_echo "${flag}" >&6; }
7259 if test "x$flag" != xno; then
7260 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7261 fi
7262
7263 LIBS="$save_LIBS"
7264 CFLAGS="$save_CFLAGS"
7265
7266 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007267 if test x"$GCC" != xyes; then
7268 for ac_prog in xlc_r cc_r
7269do
7270 # Extract the first word of "$ac_prog", so it can be a program name with args.
7271set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007274if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007275 $as_echo_n "(cached) " >&6
7276else
7277 if test -n "$PTHREAD_CC"; then
7278 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7279else
7280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281for as_dir in $PATH
7282do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007285 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007286 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 +00007287 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007289 break 2
7290 fi
7291done
cristy8b350f62009-11-15 23:12:43 +00007292 done
cristy3ed852e2009-09-05 21:47:34 +00007293IFS=$as_save_IFS
7294
cristy3ed852e2009-09-05 21:47:34 +00007295fi
7296fi
7297PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7298if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007300$as_echo "$PTHREAD_CC" >&6; }
7301else
cristy8b350f62009-11-15 23:12:43 +00007302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007303$as_echo "no" >&6; }
7304fi
7305
cristy736173a2009-09-20 21:18:22 +00007306
7307 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007308done
cristy736173a2009-09-20 21:18:22 +00007309test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007310
cristy736173a2009-09-20 21:18:22 +00007311 else
7312 PTHREAD_CC=$CC
7313 fi
cristy3ed852e2009-09-05 21:47:34 +00007314else
cristy736173a2009-09-20 21:18:22 +00007315 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007316fi
7317
cristy3ed852e2009-09-05 21:47:34 +00007318
7319
7320
7321
7322# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7323if test x"$acx_pthread_ok" = xyes; then
7324
cristy8b350f62009-11-15 23:12:43 +00007325$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007326
7327 :
7328else
7329 acx_pthread_ok=no
7330
7331fi
7332ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338
7339 if test "$acx_pthread_ok" = yes; then
7340 have_threads=yes
7341 DEF_THREAD="$PTHREAD_CFLAGS"
7342 CFLAGS="$CFLAGS $DEF_THREAD"
7343 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7344 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007345 { $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 +00007346$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7347 CC="$PTHREAD_CC"
7348 fi
7349 fi
7350fi
7351
7352# Enable support for OpenMP
7353if test "$have_threads" != 'yes'; then
7354 ac_cv_prog_c_openmp=unsupported
7355fi
7356
7357 OPENMP_CFLAGS=
7358 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007359if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007360 enableval=$enable_openmp;
7361fi
7362
7363 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007365$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007366if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007367 $as_echo_n "(cached) " >&6
7368else
cristy8b350f62009-11-15 23:12:43 +00007369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007371
7372#ifndef _OPENMP
7373 choke me
7374#endif
7375#include <omp.h>
7376int main () { return omp_get_num_threads (); }
7377
7378_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007379if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007380 ac_cv_prog_c_openmp='none needed'
7381else
cristy8b350f62009-11-15 23:12:43 +00007382 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007383 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7384 ac_save_CFLAGS=$CFLAGS
7385 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007388
7389#ifndef _OPENMP
7390 choke me
7391#endif
7392#include <omp.h>
7393int main () { return omp_get_num_threads (); }
7394
7395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007397 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007398fi
cristy8b350f62009-11-15 23:12:43 +00007399rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007401 CFLAGS=$ac_save_CFLAGS
7402 if test "$ac_cv_prog_c_openmp" != unsupported; then
7403 break
7404 fi
7405 done
7406fi
cristy8b350f62009-11-15 23:12:43 +00007407rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007409fi
cristy8b350f62009-11-15 23:12:43 +00007410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007411$as_echo "$ac_cv_prog_c_openmp" >&6; }
7412 case $ac_cv_prog_c_openmp in #(
7413 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007414 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007415 *)
cristy8b350f62009-11-15 23:12:43 +00007416 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007417 esac
7418 fi
7419
7420
7421CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7422MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7423
7424
cristy736173a2009-09-20 21:18:22 +00007425# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007426
7427ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
cristy8b350f62009-11-15 23:12:43 +00007433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007434$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007435if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007436 $as_echo_n "(cached) " >&6
7437else
cristy8b350f62009-11-15 23:12:43 +00007438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007439/* end confdefs.h. */
7440
7441int
7442main ()
7443{
7444#ifndef _MSC_VER
7445 choke me
7446#endif
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007452if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007453 ax_compiler_ms=yes
7454else
cristy8b350f62009-11-15 23:12:43 +00007455 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007456fi
cristy736173a2009-09-20 21:18:22 +00007457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458ax_cv_c_compiler_ms=$ax_compiler_ms
7459
7460fi
cristy8b350f62009-11-15 23:12:43 +00007461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007462$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy8b350f62009-11-15 23:12:43 +00007463if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007464 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7465fi
7466
cristy736173a2009-09-20 21:18:22 +00007467ax_save_CPPFLAGS=$CPPFLAGS
7468CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyfe2e68f2010-01-09 19:16:03 +00007469for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00007470do :
7471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7472ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7473eval as_val=\$$as_ac_Header
7474 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007475 cat >>confdefs.h <<_ACEOF
7476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7477_ACEOF
7478
7479fi
7480
7481done
7482
7483CPPFLAGS=$ax_save_CPPFLAGS
7484
cristy736173a2009-09-20 21:18:22 +00007485for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007486do :
7487 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7488if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007489 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007490#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007491_ACEOF
7492
7493fi
7494
7495done
7496
7497
7498
7499
cristy8b350f62009-11-15 23:12:43 +00007500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007501$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007502if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007503 $as_echo_n "(cached) " >&6
7504else
7505 ax_cv_check_cl_libcl=no
7506case $host_cpu in
7507 x86_64) ax_check_cl_libdir=lib64 ;;
7508 *) ax_check_cl_libdir=lib ;;
7509esac
7510ax_save_CPPFLAGS=$CPPFLAGS
7511CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7512ax_save_LIBS=$LIBS
7513LIBS=""
cristy4dc44432009-12-30 23:30:06 +00007514ax_check_libs="-lOpenCL -lCL -lclparser"
cristy736173a2009-09-20 21:18:22 +00007515for ax_lib in $ax_check_libs; do
cristy8b350f62009-11-15 23:12:43 +00007516 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007517 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7518else
7519 ax_try_lib=$ax_lib
7520fi
cristy736173a2009-09-20 21:18:22 +00007521 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
cristy8b350f62009-11-15 23:12:43 +00007522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007523/* end confdefs.h. */
7524
7525# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7526# include <windows.h>
7527# endif
cristyfe2e68f2010-01-09 19:16:03 +00007528# ifdef HAVE_CL_CL_H
7529# include <CL/cl.h>
7530# elif defined(HAVE_OPENCL_CL_H)
7531# include <OpenCL/cl.h>
cristy736173a2009-09-20 21:18:22 +00007532# else
cristyfe2e68f2010-01-09 19:16:03 +00007533# error no CL.h
cristy736173a2009-09-20 21:18:22 +00007534# endif
7535int
7536main ()
7537{
cristyc7083c12009-10-14 03:16:55 +00007538clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007539 ;
7540 return 0;
7541}
7542_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007543if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007544 ax_cv_check_cl_libcl=$ax_try_lib; break
7545else
cristy8b350f62009-11-15 23:12:43 +00007546 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"
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007548/* end confdefs.h. */
7549
7550# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7551# include <windows.h>
7552# endif
cristyfe2e68f2010-01-09 19:16:03 +00007553# ifdef HAVE_CL_CL_H
7554# include <CL/cl.h>
7555# elif defined(HAVE_OPENCL_CL_H)
7556# include <OpenCL/cl.h>
cristy736173a2009-09-20 21:18:22 +00007557# else
cristyfe2e68f2010-01-09 19:16:03 +00007558# error no CL.h
cristy736173a2009-09-20 21:18:22 +00007559# endif
7560int
7561main ()
7562{
cristyc7083c12009-10-14 03:16:55 +00007563clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007564 ;
7565 return 0;
7566}
7567_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007568if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007569 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7570else
cristy4dc44432009-12-30 23:30:06 +00007571 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"
cristy8b350f62009-11-15 23:12:43 +00007572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007573/* end confdefs.h. */
7574
7575# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7576# include <windows.h>
7577# endif
cristyfe2e68f2010-01-09 19:16:03 +00007578# ifdef HAVE_CL_CL_H
7579# include <CL/cl.h>
7580# elif defined(HAVE_OPENCL_CL_H)
7581# include <OpenCL/cl.h>
cristy736173a2009-09-20 21:18:22 +00007582# else
cristyfe2e68f2010-01-09 19:16:03 +00007583# error no CL.h
cristy736173a2009-09-20 21:18:22 +00007584# endif
7585int
7586main ()
7587{
cristyc7083c12009-10-14 03:16:55 +00007588clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007589 ;
7590 return 0;
7591}
7592_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007593if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007594 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007595fi
cristy8b350f62009-11-15 23:12:43 +00007596rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007598fi
cristy8b350f62009-11-15 23:12:43 +00007599rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007601fi
cristy8b350f62009-11-15 23:12:43 +00007602rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007604done
7605
cristy8b350f62009-11-15 23:12:43 +00007606if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007607 LIBS='-framework OpenCL'
cristy8b350f62009-11-15 23:12:43 +00007608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007609/* end confdefs.h. */
7610
7611# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7612# include <windows.h>
7613# endif
cristyfe2e68f2010-01-09 19:16:03 +00007614# ifdef HAVE_CL_CL_H
7615# include <CL/cl.h>
7616# elif defined(HAVE_OPENCL_CL_H)
7617# include <OpenCL/cl.h>
cristy736173a2009-09-20 21:18:22 +00007618# else
cristyfe2e68f2010-01-09 19:16:03 +00007619# error no CL.h
cristy736173a2009-09-20 21:18:22 +00007620# endif
7621int
7622main ()
7623{
cristyc7083c12009-10-14 03:16:55 +00007624clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007625 ;
7626 return 0;
7627}
7628_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007629if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007630 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007631fi
cristy8b350f62009-11-15 23:12:43 +00007632rm -f core conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007634fi
7635
cristy736173a2009-09-20 21:18:22 +00007636LIBS=$ax_save_LIBS
7637CPPFLAGS=$ax_save_CPPFLAGS
7638fi
cristy8b350f62009-11-15 23:12:43 +00007639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007640$as_echo "$ax_cv_check_cl_libcl" >&6; }
7641
cristy8b350f62009-11-15 23:12:43 +00007642if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007643 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7644else
cristy99cc3002010-01-21 14:50:11 +00007645 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
7646$as_echo "#define _OPENCL 1" >>confdefs.h
7647
cristy736173a2009-09-20 21:18:22 +00007648fi
cristy736173a2009-09-20 21:18:22 +00007649ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656
7657
7658
cristyc7083c12009-10-14 03:16:55 +00007659CFLAGS="$CL_CFLAGS $CFLAGS"
7660LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007661
cristy2e8b51d2009-10-17 18:26:15 +00007662
cristy3ed852e2009-09-05 21:47:34 +00007663########
7664#
7665# Check for large file support
7666#
7667########
7668# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007669if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007670 enableval=$enable_largefile;
7671fi
7672
7673if test "$enable_largefile" != no; then
7674
cristy8b350f62009-11-15 23:12:43 +00007675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007676$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007677if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007678 $as_echo_n "(cached) " >&6
7679else
7680 ac_cv_sys_largefile_CC=no
7681 if test "$GCC" != yes; then
7682 ac_save_CC=$CC
7683 while :; do
7684 # IRIX 6.2 and later do not support large files by default,
7685 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007687/* end confdefs.h. */
7688#include <sys/types.h>
7689 /* Check that off_t can represent 2**63 - 1 correctly.
7690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7691 since some C++ compilers masquerading as C compilers
7692 incorrectly reject 9223372036854775807. */
7693#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7695 && LARGE_OFF_T % 2147483647 == 1)
7696 ? 1 : -1];
7697int
7698main ()
7699{
7700
7701 ;
7702 return 0;
7703}
7704_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007705 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007706 break
cristy3ed852e2009-09-05 21:47:34 +00007707fi
cristy3ed852e2009-09-05 21:47:34 +00007708rm -f core conftest.err conftest.$ac_objext
7709 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007710 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007711 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007712fi
cristy3ed852e2009-09-05 21:47:34 +00007713rm -f core conftest.err conftest.$ac_objext
7714 break
7715 done
7716 CC=$ac_save_CC
7717 rm -f conftest.$ac_ext
7718 fi
7719fi
cristy8b350f62009-11-15 23:12:43 +00007720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007721$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7722 if test "$ac_cv_sys_largefile_CC" != no; then
7723 CC=$CC$ac_cv_sys_largefile_CC
7724 fi
7725
cristy8b350f62009-11-15 23:12:43 +00007726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007727$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007728if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007729 $as_echo_n "(cached) " >&6
7730else
7731 while :; do
cristy8b350f62009-11-15 23:12:43 +00007732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007733/* end confdefs.h. */
7734#include <sys/types.h>
7735 /* Check that off_t can represent 2**63 - 1 correctly.
7736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7737 since some C++ compilers masquerading as C compilers
7738 incorrectly reject 9223372036854775807. */
7739#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7741 && LARGE_OFF_T % 2147483647 == 1)
7742 ? 1 : -1];
7743int
7744main ()
7745{
7746
7747 ;
7748 return 0;
7749}
7750_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007752 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007753fi
cristy3ed852e2009-09-05 21:47:34 +00007754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007756/* end confdefs.h. */
7757#define _FILE_OFFSET_BITS 64
7758#include <sys/types.h>
7759 /* Check that off_t can represent 2**63 - 1 correctly.
7760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7761 since some C++ compilers masquerading as C compilers
7762 incorrectly reject 9223372036854775807. */
7763#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7765 && LARGE_OFF_T % 2147483647 == 1)
7766 ? 1 : -1];
7767int
7768main ()
7769{
7770
7771 ;
7772 return 0;
7773}
7774_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007775if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007776 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007777fi
cristy3ed852e2009-09-05 21:47:34 +00007778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 ac_cv_sys_file_offset_bits=unknown
7780 break
7781done
7782fi
cristy8b350f62009-11-15 23:12:43 +00007783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7785case $ac_cv_sys_file_offset_bits in #(
7786 no | unknown) ;;
7787 *)
7788cat >>confdefs.h <<_ACEOF
7789#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7790_ACEOF
7791;;
7792esac
7793rm -rf conftest*
7794 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007797if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007798 $as_echo_n "(cached) " >&6
7799else
7800 while :; do
cristy8b350f62009-11-15 23:12:43 +00007801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007802/* end confdefs.h. */
7803#include <sys/types.h>
7804 /* Check that off_t can represent 2**63 - 1 correctly.
7805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7806 since some C++ compilers masquerading as C compilers
7807 incorrectly reject 9223372036854775807. */
7808#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7810 && LARGE_OFF_T % 2147483647 == 1)
7811 ? 1 : -1];
7812int
7813main ()
7814{
7815
7816 ;
7817 return 0;
7818}
7819_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007820if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007821 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007822fi
cristy3ed852e2009-09-05 21:47:34 +00007823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007825/* end confdefs.h. */
7826#define _LARGE_FILES 1
7827#include <sys/types.h>
7828 /* Check that off_t can represent 2**63 - 1 correctly.
7829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7830 since some C++ compilers masquerading as C compilers
7831 incorrectly reject 9223372036854775807. */
7832#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7834 && LARGE_OFF_T % 2147483647 == 1)
7835 ? 1 : -1];
7836int
7837main ()
7838{
7839
7840 ;
7841 return 0;
7842}
7843_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007845 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007846fi
cristy3ed852e2009-09-05 21:47:34 +00007847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 ac_cv_sys_large_files=unknown
7849 break
7850done
7851fi
cristy8b350f62009-11-15 23:12:43 +00007852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007853$as_echo "$ac_cv_sys_large_files" >&6; }
7854case $ac_cv_sys_large_files in #(
7855 no | unknown) ;;
7856 *)
7857cat >>confdefs.h <<_ACEOF
7858#define _LARGE_FILES $ac_cv_sys_large_files
7859_ACEOF
7860;;
7861esac
7862rm -rf conftest*
7863 fi
7864fi
7865
cristy8b350f62009-11-15 23:12:43 +00007866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007867$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007868if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007869 $as_echo_n "(cached) " >&6
7870else
7871 while :; do
cristy8b350f62009-11-15 23:12:43 +00007872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007873/* end confdefs.h. */
7874#include <sys/types.h> /* for off_t */
7875 #include <stdio.h>
7876int
7877main ()
7878{
7879int (*fp) (FILE *, off_t, int) = fseeko;
7880 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7881 ;
7882 return 0;
7883}
7884_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007885if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007886 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007887fi
cristy8b350f62009-11-15 23:12:43 +00007888rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007891/* end confdefs.h. */
7892#define _LARGEFILE_SOURCE 1
7893#include <sys/types.h> /* for off_t */
7894 #include <stdio.h>
7895int
7896main ()
7897{
7898int (*fp) (FILE *, off_t, int) = fseeko;
7899 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7900 ;
7901 return 0;
7902}
7903_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007904if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007905 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007906fi
cristy8b350f62009-11-15 23:12:43 +00007907rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007909 ac_cv_sys_largefile_source=unknown
7910 break
7911done
7912fi
cristy8b350f62009-11-15 23:12:43 +00007913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00007914$as_echo "$ac_cv_sys_largefile_source" >&6; }
7915case $ac_cv_sys_largefile_source in #(
7916 no | unknown) ;;
7917 *)
7918cat >>confdefs.h <<_ACEOF
7919#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7920_ACEOF
7921;;
7922esac
7923rm -rf conftest*
7924
7925# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7926# in glibc 2.1.3, but that breaks too many other things.
7927# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7928if test $ac_cv_sys_largefile_source != unknown; then
7929
cristy8b350f62009-11-15 23:12:43 +00007930$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007931
7932fi
7933
7934LFS_CPPFLAGS=''
7935if test "$enable_largefile" != no; then
7936 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
7937 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
7938 else
cristy8b350f62009-11-15 23:12:43 +00007939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00007940$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007941 if test "$cross_compiling" = yes; then :
7942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007944as_fn_error "cannot run test program while cross compiling
7945See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007946else
cristy8b350f62009-11-15 23:12:43 +00007947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007949#include <unistd.h>
7950 main () {
7951 exit(!(sizeof(off_t) == 8));
7952 }
7953_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007954if ac_fn_c_try_run "$LINENO"; then :
7955 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007956
cristy8b350f62009-11-15 23:12:43 +00007957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007958$as_echo "yes" >&6; }
7959else
cristy8b350f62009-11-15 23:12:43 +00007960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007961$as_echo "no" >&6; }
7962fi
cristy8b350f62009-11-15 23:12:43 +00007963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007965fi
7966
cristy3ed852e2009-09-05 21:47:34 +00007967 fi
7968 if test "$ac_cv_sys_large_files" != 'no'; then
7969 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
7970 fi
7971 if test "$ac_cv_sys_largefile_source" != 'no'; then
7972 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
7973 fi
7974fi
7975
7976
7977#
7978# Configure libtool & libltdl
7979#
7980# Configure libtool
7981enable_dlopen=yes
7982
7983
7984
7985case `pwd` in
7986 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00007987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00007988$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7989esac
7990
7991
7992
cristy18304f92009-11-22 15:48:26 +00007993macro_version='2.2.6b'
7994macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00007995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008ltmain="$ac_aux_dir/ltmain.sh"
8009
cristy8b350f62009-11-15 23:12:43 +00008010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008011$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008012if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008013 $as_echo_n "(cached) " >&6
8014else
8015 if test -n "$NM"; then
8016 # Let the user override the test.
8017 lt_cv_path_NM="$NM"
8018else
8019 lt_nm_to_check="${ac_tool_prefix}nm"
8020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8021 lt_nm_to_check="$lt_nm_to_check nm"
8022 fi
8023 for lt_tmp_nm in $lt_nm_to_check; do
8024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8026 IFS="$lt_save_ifs"
8027 test -z "$ac_dir" && ac_dir=.
8028 tmp_nm="$ac_dir/$lt_tmp_nm"
8029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8030 # Check to see if the nm accepts a BSD-compat flag.
8031 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8032 # nm: unknown option "B" ignored
8033 # Tru64's nm complains that /dev/null is an invalid object file
8034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8035 */dev/null* | *'Invalid file or object type'*)
8036 lt_cv_path_NM="$tmp_nm -B"
8037 break
8038 ;;
8039 *)
8040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8041 */dev/null*)
8042 lt_cv_path_NM="$tmp_nm -p"
8043 break
8044 ;;
8045 *)
8046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8047 continue # so that we can try to find one that supports BSD flags
8048 ;;
8049 esac
8050 ;;
8051 esac
8052 fi
8053 done
8054 IFS="$lt_save_ifs"
8055 done
8056 : ${lt_cv_path_NM=no}
8057fi
8058fi
cristy8b350f62009-11-15 23:12:43 +00008059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008060$as_echo "$lt_cv_path_NM" >&6; }
8061if test "$lt_cv_path_NM" != "no"; then
8062 NM="$lt_cv_path_NM"
8063else
8064 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008065 if test -n "$ac_tool_prefix"; then
8066 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008067 do
8068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008071$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008072if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008073 $as_echo_n "(cached) " >&6
8074else
8075 if test -n "$DUMPBIN"; then
8076 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008083 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008087 break 2
8088 fi
8089done
cristy8b350f62009-11-15 23:12:43 +00008090 done
cristy3ed852e2009-09-05 21:47:34 +00008091IFS=$as_save_IFS
8092
8093fi
8094fi
8095DUMPBIN=$ac_cv_prog_DUMPBIN
8096if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008098$as_echo "$DUMPBIN" >&6; }
8099else
cristy8b350f62009-11-15 23:12:43 +00008100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008101$as_echo "no" >&6; }
8102fi
8103
8104
8105 test -n "$DUMPBIN" && break
8106 done
8107fi
8108if test -z "$DUMPBIN"; then
8109 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008110 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008111do
8112 # Extract the first word of "$ac_prog", so it can be a program name with args.
8113set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008115$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008116if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008117 $as_echo_n "(cached) " >&6
8118else
8119 if test -n "$ac_ct_DUMPBIN"; then
8120 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008131 break 2
8132 fi
8133done
cristy8b350f62009-11-15 23:12:43 +00008134 done
cristy3ed852e2009-09-05 21:47:34 +00008135IFS=$as_save_IFS
8136
8137fi
8138fi
8139ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8140if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008142$as_echo "$ac_ct_DUMPBIN" >&6; }
8143else
cristy8b350f62009-11-15 23:12:43 +00008144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008145$as_echo "no" >&6; }
8146fi
8147
8148
8149 test -n "$ac_ct_DUMPBIN" && break
8150done
8151
8152 if test "x$ac_ct_DUMPBIN" = x; then
8153 DUMPBIN=":"
8154 else
8155 case $cross_compiling:$ac_tool_warned in
8156yes:)
cristy8b350f62009-11-15 23:12:43 +00008157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159ac_tool_warned=yes ;;
8160esac
8161 DUMPBIN=$ac_ct_DUMPBIN
8162 fi
8163fi
8164
8165
8166 if test "$DUMPBIN" != ":"; then
8167 NM="$DUMPBIN"
8168 fi
8169fi
8170test -z "$NM" && NM=nm
8171
8172
8173
8174
8175
8176
cristy8b350f62009-11-15 23:12:43 +00008177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008178$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008179if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008180 $as_echo_n "(cached) " >&6
8181else
8182 lt_cv_nm_interface="BSD nm"
8183 echo "int some_variable = 0;" > conftest.$ac_ext
cristy99cc3002010-01-21 14:50:11 +00008184 (eval echo "\"\$as_me:8184: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008185 (eval "$ac_compile" 2>conftest.err)
8186 cat conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +00008187 (eval echo "\"\$as_me:8187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8189 cat conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +00008190 (eval echo "\"\$as_me:8190: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008191 cat conftest.out >&5
8192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8193 lt_cv_nm_interface="MS dumpbin"
8194 fi
8195 rm -f conftest*
8196fi
cristy8b350f62009-11-15 23:12:43 +00008197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008198$as_echo "$lt_cv_nm_interface" >&6; }
8199
8200# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008202$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008203if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008204 $as_echo_n "(cached) " >&6
8205else
8206 i=0
8207 teststring="ABCD"
8208
8209 case $build_os in
8210 msdosdjgpp*)
8211 # On DJGPP, this test can blow up pretty badly due to problems in libc
8212 # (any single argument exceeding 2000 bytes causes a buffer overrun
8213 # during glob expansion). Even if it were fixed, the result of this
8214 # check would be larger than it should be.
8215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8216 ;;
8217
8218 gnu*)
8219 # Under GNU Hurd, this test is not required because there is
8220 # no limit to the length of command line arguments.
8221 # Libtool will interpret -1 as no limit whatsoever
8222 lt_cv_sys_max_cmd_len=-1;
8223 ;;
8224
8225 cygwin* | mingw* | cegcc*)
8226 # On Win9x/ME, this test blows up -- it succeeds, but takes
8227 # about 5 minutes as the teststring grows exponentially.
8228 # Worse, since 9x/ME are not pre-emptively multitasking,
8229 # you end up with a "frozen" computer, even though with patience
8230 # the test eventually succeeds (with a max line length of 256k).
8231 # Instead, let's just punt: use the minimum linelength reported by
8232 # all of the supported platforms: 8192 (on NT/2K/XP).
8233 lt_cv_sys_max_cmd_len=8192;
8234 ;;
8235
8236 amigaos*)
8237 # On AmigaOS with pdksh, this test takes hours, literally.
8238 # So we just punt and use a minimum line length of 8192.
8239 lt_cv_sys_max_cmd_len=8192;
8240 ;;
8241
8242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8243 # This has been around since 386BSD, at least. Likely further.
8244 if test -x /sbin/sysctl; then
8245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8246 elif test -x /usr/sbin/sysctl; then
8247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8248 else
8249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8250 fi
8251 # And add a safety zone
8252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8254 ;;
8255
8256 interix*)
8257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8258 lt_cv_sys_max_cmd_len=196608
8259 ;;
8260
8261 osf*)
8262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8264 # nice to cause kernel panics so lets avoid the loop below.
8265 # First set a reasonable default.
8266 lt_cv_sys_max_cmd_len=16384
8267 #
8268 if test -x /sbin/sysconfig; then
8269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8271 esac
8272 fi
8273 ;;
8274 sco3.2v5*)
8275 lt_cv_sys_max_cmd_len=102400
8276 ;;
8277 sysv5* | sco5v6* | sysv4.2uw2*)
8278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8279 if test -n "$kargmax"; then
8280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8281 else
8282 lt_cv_sys_max_cmd_len=32768
8283 fi
8284 ;;
8285 *)
8286 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8287 if test -n "$lt_cv_sys_max_cmd_len"; then
8288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8290 else
8291 # Make teststring a little bigger before we do anything with it.
8292 # a 1K string should be a reasonable start.
8293 for i in 1 2 3 4 5 6 7 8 ; do
8294 teststring=$teststring$teststring
8295 done
8296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8297 # If test is not a shell built-in, we'll probably end up computing a
8298 # maximum length that is only half of the actual maximum length, but
8299 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008300 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8301 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008302 test $i != 17 # 1/2 MB should be enough
8303 do
8304 i=`expr $i + 1`
8305 teststring=$teststring$teststring
8306 done
8307 # Only check the string length outside the loop.
8308 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8309 teststring=
8310 # Add a significant safety factor because C++ compilers can tack on
8311 # massive amounts of additional arguments before passing them to the
8312 # linker. It appears as though 1/2 is a usable value.
8313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8314 fi
8315 ;;
8316 esac
8317
8318fi
8319
8320if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008322$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8323else
cristy8b350f62009-11-15 23:12:43 +00008324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008325$as_echo "none" >&6; }
8326fi
8327max_cmd_len=$lt_cv_sys_max_cmd_len
8328
8329
8330
8331
8332
8333
8334: ${CP="cp -f"}
8335: ${MV="mv -f"}
8336: ${RM="rm -f"}
8337
cristy8b350f62009-11-15 23:12:43 +00008338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008339$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8340# Try some XSI features
8341xsi_shell=no
8342( _lt_dummy="a/b/c"
8343 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8344 = c,a/b,, \
8345 && eval 'test $(( 1 + 1 )) -eq 2 \
8346 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8347 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008349$as_echo "$xsi_shell" >&6; }
8350
8351
cristy8b350f62009-11-15 23:12:43 +00008352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008353$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8354lt_shell_append=no
8355( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8356 >/dev/null 2>&1 \
8357 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008359$as_echo "$lt_shell_append" >&6; }
8360
8361
8362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8363 lt_unset=unset
8364else
8365 lt_unset=false
8366fi
8367
8368
8369
8370
8371
8372# test EBCDIC or ASCII
8373case `echo X|tr X '\101'` in
8374 A) # ASCII based system
8375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8376 lt_SP2NL='tr \040 \012'
8377 lt_NL2SP='tr \015\012 \040\040'
8378 ;;
8379 *) # EBCDIC based system
8380 lt_SP2NL='tr \100 \n'
8381 lt_NL2SP='tr \r\n \100\100'
8382 ;;
8383esac
8384
8385
8386
8387
8388
8389
8390
8391
8392
cristy8b350f62009-11-15 23:12:43 +00008393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008394$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008395if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008396 $as_echo_n "(cached) " >&6
8397else
8398 lt_cv_ld_reload_flag='-r'
8399fi
cristy8b350f62009-11-15 23:12:43 +00008400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008401$as_echo "$lt_cv_ld_reload_flag" >&6; }
8402reload_flag=$lt_cv_ld_reload_flag
8403case $reload_flag in
8404"" | " "*) ;;
8405*) reload_flag=" $reload_flag" ;;
8406esac
8407reload_cmds='$LD$reload_flag -o $output$reload_objs'
8408case $host_os in
8409 darwin*)
8410 if test "$GCC" = yes; then
8411 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8412 else
8413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8414 fi
8415 ;;
8416esac
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426if test -n "$ac_tool_prefix"; then
8427 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8428set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008430$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008431if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008432 $as_echo_n "(cached) " >&6
8433else
8434 if test -n "$OBJDUMP"; then
8435 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008446 break 2
8447 fi
8448done
cristy8b350f62009-11-15 23:12:43 +00008449 done
cristy3ed852e2009-09-05 21:47:34 +00008450IFS=$as_save_IFS
8451
8452fi
8453fi
8454OBJDUMP=$ac_cv_prog_OBJDUMP
8455if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008457$as_echo "$OBJDUMP" >&6; }
8458else
cristy8b350f62009-11-15 23:12:43 +00008459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo "no" >&6; }
8461fi
8462
8463
8464fi
8465if test -z "$ac_cv_prog_OBJDUMP"; then
8466 ac_ct_OBJDUMP=$OBJDUMP
8467 # Extract the first word of "objdump", so it can be a program name with args.
8468set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008470$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008471if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008472 $as_echo_n "(cached) " >&6
8473else
8474 if test -n "$ac_ct_OBJDUMP"; then
8475 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8476else
8477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478for as_dir in $PATH
8479do
8480 IFS=$as_save_IFS
8481 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008482 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008486 break 2
8487 fi
8488done
cristy8b350f62009-11-15 23:12:43 +00008489 done
cristy3ed852e2009-09-05 21:47:34 +00008490IFS=$as_save_IFS
8491
8492fi
8493fi
8494ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8495if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008497$as_echo "$ac_ct_OBJDUMP" >&6; }
8498else
cristy8b350f62009-11-15 23:12:43 +00008499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008500$as_echo "no" >&6; }
8501fi
8502
8503 if test "x$ac_ct_OBJDUMP" = x; then
8504 OBJDUMP="false"
8505 else
8506 case $cross_compiling:$ac_tool_warned in
8507yes:)
cristy8b350f62009-11-15 23:12:43 +00008508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510ac_tool_warned=yes ;;
8511esac
8512 OBJDUMP=$ac_ct_OBJDUMP
8513 fi
8514else
8515 OBJDUMP="$ac_cv_prog_OBJDUMP"
8516fi
8517
8518test -z "$OBJDUMP" && OBJDUMP=objdump
8519
8520
8521
8522
8523
8524
cristy8b350f62009-11-15 23:12:43 +00008525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008526$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008527if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008528 $as_echo_n "(cached) " >&6
8529else
8530 lt_cv_file_magic_cmd='$MAGIC_CMD'
8531lt_cv_file_magic_test_file=
8532lt_cv_deplibs_check_method='unknown'
8533# Need to set the preceding variable on all platforms that support
8534# interlibrary dependencies.
8535# 'none' -- dependencies not supported.
8536# `unknown' -- same as none, but documents that we really don't know.
8537# 'pass_all' -- all dependencies passed with no checks.
8538# 'test_compile' -- check by making test program.
8539# 'file_magic [[regex]]' -- check by looking for files in library path
8540# which responds to the $file_magic_cmd with a given extended regex.
8541# If you have `file' or equivalent on your system and you're not sure
8542# whether `pass_all' will *always* work, you probably want this one.
8543
8544case $host_os in
8545aix[4-9]*)
8546 lt_cv_deplibs_check_method=pass_all
8547 ;;
8548
8549beos*)
8550 lt_cv_deplibs_check_method=pass_all
8551 ;;
8552
8553bsdi[45]*)
8554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8555 lt_cv_file_magic_cmd='/usr/bin/file -L'
8556 lt_cv_file_magic_test_file=/shlib/libc.so
8557 ;;
8558
8559cygwin*)
8560 # func_win32_libid is a shell function defined in ltmain.sh
8561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8562 lt_cv_file_magic_cmd='func_win32_libid'
8563 ;;
8564
8565mingw* | pw32*)
8566 # Base MSYS/MinGW do not provide the 'file' command needed by
8567 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8568 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008569 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8571 lt_cv_file_magic_cmd='func_win32_libid'
8572 else
8573 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8574 lt_cv_file_magic_cmd='$OBJDUMP -f'
8575 fi
8576 ;;
8577
cristy18304f92009-11-22 15:48:26 +00008578cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008579 # use the weaker test based on 'objdump'. See mingw*.
8580 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8581 lt_cv_file_magic_cmd='$OBJDUMP -f'
8582 ;;
8583
8584darwin* | rhapsody*)
8585 lt_cv_deplibs_check_method=pass_all
8586 ;;
8587
8588freebsd* | dragonfly*)
8589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8590 case $host_cpu in
8591 i*86 )
8592 # Not sure whether the presence of OpenBSD here was a mistake.
8593 # Let's accept both of them until this is cleared up.
8594 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8595 lt_cv_file_magic_cmd=/usr/bin/file
8596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8597 ;;
8598 esac
8599 else
8600 lt_cv_deplibs_check_method=pass_all
8601 fi
8602 ;;
8603
8604gnu*)
8605 lt_cv_deplibs_check_method=pass_all
8606 ;;
8607
8608hpux10.20* | hpux11*)
8609 lt_cv_file_magic_cmd=/usr/bin/file
8610 case $host_cpu in
8611 ia64*)
8612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8613 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8614 ;;
8615 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008616 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 +00008617 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8618 ;;
8619 *)
cristy18304f92009-11-22 15:48:26 +00008620 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 +00008621 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8622 ;;
8623 esac
8624 ;;
8625
8626interix[3-9]*)
8627 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8629 ;;
8630
8631irix5* | irix6* | nonstopux*)
8632 case $LD in
8633 *-32|*"-32 ") libmagic=32-bit;;
8634 *-n32|*"-n32 ") libmagic=N32;;
8635 *-64|*"-64 ") libmagic=64-bit;;
8636 *) libmagic=never-match;;
8637 esac
8638 lt_cv_deplibs_check_method=pass_all
8639 ;;
8640
8641# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008642linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008643 lt_cv_deplibs_check_method=pass_all
8644 ;;
8645
8646netbsd*)
8647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8649 else
8650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8651 fi
8652 ;;
8653
8654newos6*)
8655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8656 lt_cv_file_magic_cmd=/usr/bin/file
8657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8658 ;;
8659
8660*nto* | *qnx*)
8661 lt_cv_deplibs_check_method=pass_all
8662 ;;
8663
8664openbsd*)
8665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8667 else
8668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8669 fi
8670 ;;
8671
8672osf3* | osf4* | osf5*)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675
8676rdos*)
8677 lt_cv_deplibs_check_method=pass_all
8678 ;;
8679
8680solaris*)
8681 lt_cv_deplibs_check_method=pass_all
8682 ;;
8683
8684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8685 lt_cv_deplibs_check_method=pass_all
8686 ;;
8687
8688sysv4 | sysv4.3*)
8689 case $host_vendor in
8690 motorola)
8691 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]'
8692 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8693 ;;
8694 ncr)
8695 lt_cv_deplibs_check_method=pass_all
8696 ;;
8697 sequent)
8698 lt_cv_file_magic_cmd='/bin/file'
8699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8700 ;;
8701 sni)
8702 lt_cv_file_magic_cmd='/bin/file'
8703 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8704 lt_cv_file_magic_test_file=/lib/libc.so
8705 ;;
8706 siemens)
8707 lt_cv_deplibs_check_method=pass_all
8708 ;;
8709 pc)
8710 lt_cv_deplibs_check_method=pass_all
8711 ;;
8712 esac
8713 ;;
8714
8715tpf*)
8716 lt_cv_deplibs_check_method=pass_all
8717 ;;
8718esac
8719
8720fi
cristy8b350f62009-11-15 23:12:43 +00008721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008722$as_echo "$lt_cv_deplibs_check_method" >&6; }
8723file_magic_cmd=$lt_cv_file_magic_cmd
8724deplibs_check_method=$lt_cv_deplibs_check_method
8725test -z "$deplibs_check_method" && deplibs_check_method=unknown
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738if test -n "$ac_tool_prefix"; then
8739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8740set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008742$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008743if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008744 $as_echo_n "(cached) " >&6
8745else
8746 if test -n "$AR"; then
8747 ac_cv_prog_AR="$AR" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752 IFS=$as_save_IFS
8753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8756 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008758 break 2
8759 fi
8760done
cristy8b350f62009-11-15 23:12:43 +00008761 done
cristy3ed852e2009-09-05 21:47:34 +00008762IFS=$as_save_IFS
8763
8764fi
8765fi
8766AR=$ac_cv_prog_AR
8767if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008769$as_echo "$AR" >&6; }
8770else
cristy8b350f62009-11-15 23:12:43 +00008771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008772$as_echo "no" >&6; }
8773fi
8774
8775
8776fi
8777if test -z "$ac_cv_prog_AR"; then
8778 ac_ct_AR=$AR
8779 # Extract the first word of "ar", so it can be a program name with args.
8780set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008783if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$ac_ct_AR"; then
8787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008798 break 2
8799 fi
8800done
cristy8b350f62009-11-15 23:12:43 +00008801 done
cristy3ed852e2009-09-05 21:47:34 +00008802IFS=$as_save_IFS
8803
8804fi
8805fi
8806ac_ct_AR=$ac_cv_prog_ac_ct_AR
8807if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008809$as_echo "$ac_ct_AR" >&6; }
8810else
cristy8b350f62009-11-15 23:12:43 +00008811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008812$as_echo "no" >&6; }
8813fi
8814
8815 if test "x$ac_ct_AR" = x; then
8816 AR="false"
8817 else
8818 case $cross_compiling:$ac_tool_warned in
8819yes:)
cristy8b350f62009-11-15 23:12:43 +00008820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824 AR=$ac_ct_AR
8825 fi
8826else
8827 AR="$ac_cv_prog_AR"
8828fi
8829
8830test -z "$AR" && AR=ar
8831test -z "$AR_FLAGS" && AR_FLAGS=cru
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843if test -n "$ac_tool_prefix"; then
8844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8845set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008847$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008848if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008849 $as_echo_n "(cached) " >&6
8850else
8851 if test -n "$STRIP"; then
8852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8853else
8854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855for as_dir in $PATH
8856do
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008863 break 2
8864 fi
8865done
cristy8b350f62009-11-15 23:12:43 +00008866 done
cristy3ed852e2009-09-05 21:47:34 +00008867IFS=$as_save_IFS
8868
8869fi
8870fi
8871STRIP=$ac_cv_prog_STRIP
8872if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008874$as_echo "$STRIP" >&6; }
8875else
cristy8b350f62009-11-15 23:12:43 +00008876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008877$as_echo "no" >&6; }
8878fi
8879
8880
8881fi
8882if test -z "$ac_cv_prog_STRIP"; then
8883 ac_ct_STRIP=$STRIP
8884 # Extract the first word of "strip", so it can be a program name with args.
8885set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008887$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008888if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008889 $as_echo_n "(cached) " >&6
8890else
8891 if test -n "$ac_ct_STRIP"; then
8892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8893else
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008903 break 2
8904 fi
8905done
cristy8b350f62009-11-15 23:12:43 +00008906 done
cristy3ed852e2009-09-05 21:47:34 +00008907IFS=$as_save_IFS
8908
8909fi
8910fi
8911ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8912if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008914$as_echo "$ac_ct_STRIP" >&6; }
8915else
cristy8b350f62009-11-15 23:12:43 +00008916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008917$as_echo "no" >&6; }
8918fi
8919
8920 if test "x$ac_ct_STRIP" = x; then
8921 STRIP=":"
8922 else
8923 case $cross_compiling:$ac_tool_warned in
8924yes:)
cristy8b350f62009-11-15 23:12:43 +00008925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8927ac_tool_warned=yes ;;
8928esac
8929 STRIP=$ac_ct_STRIP
8930 fi
8931else
8932 STRIP="$ac_cv_prog_STRIP"
8933fi
8934
8935test -z "$STRIP" && STRIP=:
8936
8937
8938
8939
8940
8941
8942if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8944set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008946$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008947if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008948 $as_echo_n "(cached) " >&6
8949else
8950 if test -n "$RANLIB"; then
8951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8952else
8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954for as_dir in $PATH
8955do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008958 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00008961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008962 break 2
8963 fi
8964done
cristy8b350f62009-11-15 23:12:43 +00008965 done
cristy3ed852e2009-09-05 21:47:34 +00008966IFS=$as_save_IFS
8967
8968fi
8969fi
8970RANLIB=$ac_cv_prog_RANLIB
8971if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00008972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00008973$as_echo "$RANLIB" >&6; }
8974else
cristy8b350f62009-11-15 23:12:43 +00008975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008976$as_echo "no" >&6; }
8977fi
8978
8979
8980fi
8981if test -z "$ac_cv_prog_RANLIB"; then
8982 ac_ct_RANLIB=$RANLIB
8983 # Extract the first word of "ranlib", so it can be a program name with args.
8984set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008988 $as_echo_n "(cached) " >&6
8989else
8990 if test -n "$ac_ct_RANLIB"; then
8991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8992else
8993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994for as_dir in $PATH
8995do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009002 break 2
9003 fi
9004done
cristy8b350f62009-11-15 23:12:43 +00009005 done
cristy3ed852e2009-09-05 21:47:34 +00009006IFS=$as_save_IFS
9007
9008fi
9009fi
9010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9011if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009013$as_echo "$ac_ct_RANLIB" >&6; }
9014else
cristy8b350f62009-11-15 23:12:43 +00009015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009016$as_echo "no" >&6; }
9017fi
9018
9019 if test "x$ac_ct_RANLIB" = x; then
9020 RANLIB=":"
9021 else
9022 case $cross_compiling:$ac_tool_warned in
9023yes:)
cristy8b350f62009-11-15 23:12:43 +00009024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9026ac_tool_warned=yes ;;
9027esac
9028 RANLIB=$ac_ct_RANLIB
9029 fi
9030else
9031 RANLIB="$ac_cv_prog_RANLIB"
9032fi
9033
9034test -z "$RANLIB" && RANLIB=:
9035
9036
9037
9038
9039
9040
9041# Determine commands to create old-style static archives.
9042old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9043old_postinstall_cmds='chmod 644 $oldlib'
9044old_postuninstall_cmds=
9045
9046if test -n "$RANLIB"; then
9047 case $host_os in
9048 openbsd*)
9049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9050 ;;
9051 *)
9052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9053 ;;
9054 esac
9055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9056fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091# If no C compiler was specified, use CC.
9092LTCC=${LTCC-"$CC"}
9093
9094# If no C compiler flags were specified, use CFLAGS.
9095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9096
9097# Allow CC to be a program name with arguments.
9098compiler=$CC
9099
9100
9101# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009103$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009104if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009105 $as_echo_n "(cached) " >&6
9106else
9107
9108# These are sane defaults that work on at least a few old systems.
9109# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9110
9111# Character class describing NM global symbol codes.
9112symcode='[BCDEGRST]'
9113
9114# Regexp to match symbols that can be accessed directly from C.
9115sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9116
9117# Define system-specific variables.
9118case $host_os in
9119aix*)
9120 symcode='[BCDT]'
9121 ;;
9122cygwin* | mingw* | pw32* | cegcc*)
9123 symcode='[ABCDGISTW]'
9124 ;;
9125hpux*)
9126 if test "$host_cpu" = ia64; then
9127 symcode='[ABCDEGRST]'
9128 fi
9129 ;;
9130irix* | nonstopux*)
9131 symcode='[BCDEGRST]'
9132 ;;
9133osf*)
9134 symcode='[BCDEGQRST]'
9135 ;;
9136solaris*)
9137 symcode='[BDRT]'
9138 ;;
9139sco3.2v5*)
9140 symcode='[DT]'
9141 ;;
9142sysv4.2uw2*)
9143 symcode='[DT]'
9144 ;;
9145sysv5* | sco5v6* | unixware* | OpenUNIX*)
9146 symcode='[ABDT]'
9147 ;;
9148sysv4)
9149 symcode='[DFNSTU]'
9150 ;;
9151esac
9152
9153# If we're using GNU nm, then use its standard symbol codes.
9154case `$NM -V 2>&1` in
9155*GNU* | *'with BFD'*)
9156 symcode='[ABCDGIRSTW]' ;;
9157esac
9158
9159# Transform an extracted symbol line into a proper C declaration.
9160# Some systems (esp. on ia64) link data and code symbols differently,
9161# so use this general approach.
9162lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9163
9164# Transform an extracted symbol line into symbol name and symbol address
9165lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9166lt_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'"
9167
9168# Handle CRLF in mingw tool chain
9169opt_cr=
9170case $build_os in
9171mingw*)
9172 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9173 ;;
9174esac
9175
9176# Try without a prefix underscore, then with it.
9177for ac_symprfx in "" "_"; do
9178
9179 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9180 symxfrm="\\1 $ac_symprfx\\2 \\2"
9181
9182 # Write the raw and C identifiers.
9183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9184 # Fake it for dumpbin and say T for any non-static function
9185 # and D for any global variable.
9186 # Also find C++ and __fastcall symbols from MSVC++,
9187 # which start with @ or ?.
9188 lt_cv_sys_global_symbol_pipe="$AWK '"\
9189" {last_section=section; section=\$ 3};"\
9190" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9191" \$ 0!~/External *\|/{next};"\
9192" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9193" {if(hide[section]) next};"\
9194" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9195" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9196" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9197" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9198" ' prfx=^$ac_symprfx"
9199 else
9200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9201 fi
9202
9203 # Check to see that the pipe works correctly.
9204 pipe_works=no
9205
9206 rm -f conftest*
9207 cat > conftest.$ac_ext <<_LT_EOF
9208#ifdef __cplusplus
9209extern "C" {
9210#endif
9211char nm_test_var;
9212void nm_test_func(void);
9213void nm_test_func(void){}
9214#ifdef __cplusplus
9215}
9216#endif
9217int main(){nm_test_var='a';nm_test_func();return(0);}
9218_LT_EOF
9219
cristy8b350f62009-11-15 23:12:43 +00009220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009221 (eval $ac_compile) 2>&5
9222 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9224 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009225 # Now try to grab the symbols.
9226 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9228 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009229 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9231 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009232 # Try sorting and uniquifying the output.
9233 if sort "$nlist" | uniq > "$nlist"T; then
9234 mv -f "$nlist"T "$nlist"
9235 else
9236 rm -f "$nlist"T
9237 fi
9238
9239 # Make sure that we snagged all the symbols we need.
9240 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9241 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9242 cat <<_LT_EOF > conftest.$ac_ext
9243#ifdef __cplusplus
9244extern "C" {
9245#endif
9246
9247_LT_EOF
9248 # Now generate the symbol file.
9249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9250
9251 cat <<_LT_EOF >> conftest.$ac_ext
9252
9253/* The mapping between symbol names and symbols. */
9254const struct {
9255 const char *name;
9256 void *address;
9257}
9258lt__PROGRAM__LTX_preloaded_symbols[] =
9259{
9260 { "@PROGRAM@", (void *) 0 },
9261_LT_EOF
9262 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9263 cat <<\_LT_EOF >> conftest.$ac_ext
9264 {0, (void *) 0}
9265};
9266
9267/* This works around a problem in FreeBSD linker */
9268#ifdef FREEBSD_WORKAROUND
9269static const void *lt_preloaded_setup() {
9270 return lt__PROGRAM__LTX_preloaded_symbols;
9271}
9272#endif
9273
9274#ifdef __cplusplus
9275}
9276#endif
9277_LT_EOF
9278 # Now try linking the two files.
9279 mv conftest.$ac_objext conftstm.$ac_objext
9280 lt_save_LIBS="$LIBS"
9281 lt_save_CFLAGS="$CFLAGS"
9282 LIBS="conftstm.$ac_objext"
9283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009285 (eval $ac_link) 2>&5
9286 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9288 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009289 pipe_works=yes
9290 fi
9291 LIBS="$lt_save_LIBS"
9292 CFLAGS="$lt_save_CFLAGS"
9293 else
9294 echo "cannot find nm_test_func in $nlist" >&5
9295 fi
9296 else
9297 echo "cannot find nm_test_var in $nlist" >&5
9298 fi
9299 else
9300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9301 fi
9302 else
9303 echo "$progname: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9305 fi
9306 rm -rf conftest* conftst*
9307
9308 # Do not use the global_symbol_pipe unless it works.
9309 if test "$pipe_works" = yes; then
9310 break
9311 else
9312 lt_cv_sys_global_symbol_pipe=
9313 fi
9314done
9315
9316fi
9317
9318if test -z "$lt_cv_sys_global_symbol_pipe"; then
9319 lt_cv_sys_global_symbol_to_cdecl=
9320fi
9321if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009323$as_echo "failed" >&6; }
9324else
cristy8b350f62009-11-15 23:12:43 +00009325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009326$as_echo "ok" >&6; }
9327fi
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009351if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009352 enableval=$enable_libtool_lock;
9353fi
9354
9355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9356
9357# Some flags need to be propagated to the compiler or linker for good
9358# libtool support.
9359case $host in
9360ia64-*-hpux*)
9361 # Find out which ABI we are using.
9362 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009364 (eval $ac_compile) 2>&5
9365 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9367 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009368 case `/usr/bin/file conftest.$ac_objext` in
9369 *ELF-32*)
9370 HPUX_IA64_MODE="32"
9371 ;;
9372 *ELF-64*)
9373 HPUX_IA64_MODE="64"
9374 ;;
9375 esac
9376 fi
9377 rm -rf conftest*
9378 ;;
9379*-*-irix6*)
9380 # Find out which ABI we are using.
cristy99cc3002010-01-21 14:50:11 +00009381 echo '#line 9381 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009383 (eval $ac_compile) 2>&5
9384 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9386 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009387 if test "$lt_cv_prog_gnu_ld" = yes; then
9388 case `/usr/bin/file conftest.$ac_objext` in
9389 *32-bit*)
9390 LD="${LD-ld} -melf32bsmip"
9391 ;;
9392 *N32*)
9393 LD="${LD-ld} -melf32bmipn32"
9394 ;;
9395 *64-bit*)
9396 LD="${LD-ld} -melf64bmip"
9397 ;;
9398 esac
9399 else
9400 case `/usr/bin/file conftest.$ac_objext` in
9401 *32-bit*)
9402 LD="${LD-ld} -32"
9403 ;;
9404 *N32*)
9405 LD="${LD-ld} -n32"
9406 ;;
9407 *64-bit*)
9408 LD="${LD-ld} -64"
9409 ;;
9410 esac
9411 fi
9412 fi
9413 rm -rf conftest*
9414 ;;
9415
9416x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9417s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9418 # Find out which ABI we are using.
9419 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009421 (eval $ac_compile) 2>&5
9422 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9424 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009425 case `/usr/bin/file conftest.o` in
9426 *32-bit*)
9427 case $host in
9428 x86_64-*kfreebsd*-gnu)
9429 LD="${LD-ld} -m elf_i386_fbsd"
9430 ;;
9431 x86_64-*linux*)
9432 LD="${LD-ld} -m elf_i386"
9433 ;;
9434 ppc64-*linux*|powerpc64-*linux*)
9435 LD="${LD-ld} -m elf32ppclinux"
9436 ;;
9437 s390x-*linux*)
9438 LD="${LD-ld} -m elf_s390"
9439 ;;
9440 sparc64-*linux*)
9441 LD="${LD-ld} -m elf32_sparc"
9442 ;;
9443 esac
9444 ;;
9445 *64-bit*)
9446 case $host in
9447 x86_64-*kfreebsd*-gnu)
9448 LD="${LD-ld} -m elf_x86_64_fbsd"
9449 ;;
9450 x86_64-*linux*)
9451 LD="${LD-ld} -m elf_x86_64"
9452 ;;
9453 ppc*-*linux*|powerpc*-*linux*)
9454 LD="${LD-ld} -m elf64ppc"
9455 ;;
9456 s390*-*linux*|s390*-*tpf*)
9457 LD="${LD-ld} -m elf64_s390"
9458 ;;
9459 sparc*-*linux*)
9460 LD="${LD-ld} -m elf64_sparc"
9461 ;;
9462 esac
9463 ;;
9464 esac
9465 fi
9466 rm -rf conftest*
9467 ;;
9468
9469*-*-sco3.2v5*)
9470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9471 SAVE_CFLAGS="$CFLAGS"
9472 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009475if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009476 $as_echo_n "(cached) " >&6
9477else
9478 ac_ext=c
9479ac_cpp='$CPP $CPPFLAGS'
9480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9482ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483
cristy8b350f62009-11-15 23:12:43 +00009484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009485/* end confdefs.h. */
9486
9487int
9488main ()
9489{
9490
9491 ;
9492 return 0;
9493}
9494_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009496 lt_cv_cc_needs_belf=yes
9497else
cristy8b350f62009-11-15 23:12:43 +00009498 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009499fi
cristy8b350f62009-11-15 23:12:43 +00009500rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009502 ac_ext=c
9503ac_cpp='$CPP $CPPFLAGS'
9504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506ac_compiler_gnu=$ac_cv_c_compiler_gnu
9507
9508fi
cristy8b350f62009-11-15 23:12:43 +00009509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009510$as_echo "$lt_cv_cc_needs_belf" >&6; }
9511 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9513 CFLAGS="$SAVE_CFLAGS"
9514 fi
9515 ;;
9516sparc*-*solaris*)
9517 # Find out which ABI we are using.
9518 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009520 (eval $ac_compile) 2>&5
9521 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9523 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009524 case `/usr/bin/file conftest.o` in
9525 *64-bit*)
9526 case $lt_cv_prog_gnu_ld in
9527 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9528 *)
9529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9530 LD="${LD-ld} -64"
9531 fi
9532 ;;
9533 esac
9534 ;;
9535 esac
9536 fi
9537 rm -rf conftest*
9538 ;;
9539esac
9540
9541need_locks="$enable_libtool_lock"
9542
9543
9544 case $host_os in
9545 rhapsody* | darwin*)
9546 if test -n "$ac_tool_prefix"; then
9547 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9548set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009550$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009551if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009552 $as_echo_n "(cached) " >&6
9553else
9554 if test -n "$DSYMUTIL"; then
9555 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9556else
9557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558for as_dir in $PATH
9559do
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009566 break 2
9567 fi
9568done
cristy8b350f62009-11-15 23:12:43 +00009569 done
cristy3ed852e2009-09-05 21:47:34 +00009570IFS=$as_save_IFS
9571
9572fi
9573fi
9574DSYMUTIL=$ac_cv_prog_DSYMUTIL
9575if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009577$as_echo "$DSYMUTIL" >&6; }
9578else
cristy8b350f62009-11-15 23:12:43 +00009579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009580$as_echo "no" >&6; }
9581fi
9582
9583
9584fi
9585if test -z "$ac_cv_prog_DSYMUTIL"; then
9586 ac_ct_DSYMUTIL=$DSYMUTIL
9587 # Extract the first word of "dsymutil", so it can be a program name with args.
9588set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009590$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009591if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009592 $as_echo_n "(cached) " >&6
9593else
9594 if test -n "$ac_ct_DSYMUTIL"; then
9595 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9596else
9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009606 break 2
9607 fi
9608done
cristy8b350f62009-11-15 23:12:43 +00009609 done
cristy3ed852e2009-09-05 21:47:34 +00009610IFS=$as_save_IFS
9611
9612fi
9613fi
9614ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9615if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009617$as_echo "$ac_ct_DSYMUTIL" >&6; }
9618else
cristy8b350f62009-11-15 23:12:43 +00009619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009620$as_echo "no" >&6; }
9621fi
9622
9623 if test "x$ac_ct_DSYMUTIL" = x; then
9624 DSYMUTIL=":"
9625 else
9626 case $cross_compiling:$ac_tool_warned in
9627yes:)
cristy8b350f62009-11-15 23:12:43 +00009628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9630ac_tool_warned=yes ;;
9631esac
9632 DSYMUTIL=$ac_ct_DSYMUTIL
9633 fi
9634else
9635 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9636fi
9637
9638 if test -n "$ac_tool_prefix"; then
9639 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9640set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009643if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009644 $as_echo_n "(cached) " >&6
9645else
9646 if test -n "$NMEDIT"; then
9647 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9648else
9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650for as_dir in $PATH
9651do
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009658 break 2
9659 fi
9660done
cristy8b350f62009-11-15 23:12:43 +00009661 done
cristy3ed852e2009-09-05 21:47:34 +00009662IFS=$as_save_IFS
9663
9664fi
9665fi
9666NMEDIT=$ac_cv_prog_NMEDIT
9667if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009669$as_echo "$NMEDIT" >&6; }
9670else
cristy8b350f62009-11-15 23:12:43 +00009671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009672$as_echo "no" >&6; }
9673fi
9674
9675
9676fi
9677if test -z "$ac_cv_prog_NMEDIT"; then
9678 ac_ct_NMEDIT=$NMEDIT
9679 # Extract the first word of "nmedit", so it can be a program name with args.
9680set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009682$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009683if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009684 $as_echo_n "(cached) " >&6
9685else
9686 if test -n "$ac_ct_NMEDIT"; then
9687 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9688else
9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690for as_dir in $PATH
9691do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009698 break 2
9699 fi
9700done
cristy8b350f62009-11-15 23:12:43 +00009701 done
cristy3ed852e2009-09-05 21:47:34 +00009702IFS=$as_save_IFS
9703
9704fi
9705fi
9706ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9707if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009709$as_echo "$ac_ct_NMEDIT" >&6; }
9710else
cristy8b350f62009-11-15 23:12:43 +00009711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009712$as_echo "no" >&6; }
9713fi
9714
9715 if test "x$ac_ct_NMEDIT" = x; then
9716 NMEDIT=":"
9717 else
9718 case $cross_compiling:$ac_tool_warned in
9719yes:)
cristy8b350f62009-11-15 23:12:43 +00009720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9722ac_tool_warned=yes ;;
9723esac
9724 NMEDIT=$ac_ct_NMEDIT
9725 fi
9726else
9727 NMEDIT="$ac_cv_prog_NMEDIT"
9728fi
9729
9730 if test -n "$ac_tool_prefix"; then
9731 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9732set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009734$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009735if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009736 $as_echo_n "(cached) " >&6
9737else
9738 if test -n "$LIPO"; then
9739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009746 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009750 break 2
9751 fi
9752done
cristy8b350f62009-11-15 23:12:43 +00009753 done
cristy3ed852e2009-09-05 21:47:34 +00009754IFS=$as_save_IFS
9755
9756fi
9757fi
9758LIPO=$ac_cv_prog_LIPO
9759if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009761$as_echo "$LIPO" >&6; }
9762else
cristy8b350f62009-11-15 23:12:43 +00009763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009764$as_echo "no" >&6; }
9765fi
9766
9767
9768fi
9769if test -z "$ac_cv_prog_LIPO"; then
9770 ac_ct_LIPO=$LIPO
9771 # Extract the first word of "lipo", so it can be a program name with args.
9772set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009775if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009776 $as_echo_n "(cached) " >&6
9777else
9778 if test -n "$ac_ct_LIPO"; then
9779 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9780else
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009790 break 2
9791 fi
9792done
cristy8b350f62009-11-15 23:12:43 +00009793 done
cristy3ed852e2009-09-05 21:47:34 +00009794IFS=$as_save_IFS
9795
9796fi
9797fi
9798ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9799if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009801$as_echo "$ac_ct_LIPO" >&6; }
9802else
cristy8b350f62009-11-15 23:12:43 +00009803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009804$as_echo "no" >&6; }
9805fi
9806
9807 if test "x$ac_ct_LIPO" = x; then
9808 LIPO=":"
9809 else
9810 case $cross_compiling:$ac_tool_warned in
9811yes:)
cristy8b350f62009-11-15 23:12:43 +00009812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9814ac_tool_warned=yes ;;
9815esac
9816 LIPO=$ac_ct_LIPO
9817 fi
9818else
9819 LIPO="$ac_cv_prog_LIPO"
9820fi
9821
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9824set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009826$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009827if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009828 $as_echo_n "(cached) " >&6
9829else
9830 if test -n "$OTOOL"; then
9831 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9832else
9833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834for as_dir in $PATH
9835do
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009838 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009842 break 2
9843 fi
9844done
cristy8b350f62009-11-15 23:12:43 +00009845 done
cristy3ed852e2009-09-05 21:47:34 +00009846IFS=$as_save_IFS
9847
9848fi
9849fi
9850OTOOL=$ac_cv_prog_OTOOL
9851if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo "$OTOOL" >&6; }
9854else
cristy8b350f62009-11-15 23:12:43 +00009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009856$as_echo "no" >&6; }
9857fi
9858
9859
9860fi
9861if test -z "$ac_cv_prog_OTOOL"; then
9862 ac_ct_OTOOL=$OTOOL
9863 # Extract the first word of "otool", so it can be a program name with args.
9864set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009866$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009867if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009868 $as_echo_n "(cached) " >&6
9869else
9870 if test -n "$ac_ct_OTOOL"; then
9871 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9872else
9873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009882 break 2
9883 fi
9884done
cristy8b350f62009-11-15 23:12:43 +00009885 done
cristy3ed852e2009-09-05 21:47:34 +00009886IFS=$as_save_IFS
9887
9888fi
9889fi
9890ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9891if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009893$as_echo "$ac_ct_OTOOL" >&6; }
9894else
cristy8b350f62009-11-15 23:12:43 +00009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009896$as_echo "no" >&6; }
9897fi
9898
9899 if test "x$ac_ct_OTOOL" = x; then
9900 OTOOL=":"
9901 else
9902 case $cross_compiling:$ac_tool_warned in
9903yes:)
cristy8b350f62009-11-15 23:12:43 +00009904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906ac_tool_warned=yes ;;
9907esac
9908 OTOOL=$ac_ct_OTOOL
9909 fi
9910else
9911 OTOOL="$ac_cv_prog_OTOOL"
9912fi
9913
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9916set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009918$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009919if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009920 $as_echo_n "(cached) " >&6
9921else
9922 if test -n "$OTOOL64"; then
9923 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9924else
9925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926for as_dir in $PATH
9927do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +00009933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009934 break 2
9935 fi
9936done
cristy8b350f62009-11-15 23:12:43 +00009937 done
cristy3ed852e2009-09-05 21:47:34 +00009938IFS=$as_save_IFS
9939
9940fi
9941fi
9942OTOOL64=$ac_cv_prog_OTOOL64
9943if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +00009944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +00009945$as_echo "$OTOOL64" >&6; }
9946else
cristy8b350f62009-11-15 23:12:43 +00009947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009948$as_echo "no" >&6; }
9949fi
9950
9951
9952fi
9953if test -z "$ac_cv_prog_OTOOL64"; then
9954 ac_ct_OTOOL64=$OTOOL64
9955 # Extract the first word of "otool64", so it can be a program name with args.
9956set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009959if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009960 $as_echo_n "(cached) " >&6
9961else
9962 if test -n "$ac_ct_OTOOL64"; then
9963 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9964else
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +00009973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009974 break 2
9975 fi
9976done
cristy8b350f62009-11-15 23:12:43 +00009977 done
cristy3ed852e2009-09-05 21:47:34 +00009978IFS=$as_save_IFS
9979
9980fi
9981fi
9982ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9983if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +00009985$as_echo "$ac_ct_OTOOL64" >&6; }
9986else
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "no" >&6; }
9989fi
9990
9991 if test "x$ac_ct_OTOOL64" = x; then
9992 OTOOL64=":"
9993 else
9994 case $cross_compiling:$ac_tool_warned in
9995yes:)
cristy8b350f62009-11-15 23:12:43 +00009996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9998ac_tool_warned=yes ;;
9999esac
10000 OTOOL64=$ac_ct_OTOOL64
10001 fi
10002else
10003 OTOOL64="$ac_cv_prog_OTOOL64"
10004fi
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
cristy8b350f62009-11-15 23:12:43 +000010032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010033$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010034if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010035 $as_echo_n "(cached) " >&6
10036else
10037 lt_cv_apple_cc_single_mod=no
10038 if test -z "${LT_MULTI_MODULE}"; then
10039 # By default we will add the -single_module flag. You can override
10040 # by either setting the environment variable LT_MULTI_MODULE
10041 # non-empty at configure time, or by adding -multi_module to the
10042 # link flags.
10043 rm -rf libconftest.dylib*
10044 echo "int foo(void){return 1;}" > conftest.c
10045 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10046-dynamiclib -Wl,-single_module conftest.c" >&5
10047 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10048 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10049 _lt_result=$?
10050 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10051 lt_cv_apple_cc_single_mod=yes
10052 else
10053 cat conftest.err >&5
10054 fi
10055 rm -rf libconftest.dylib*
10056 rm -f conftest.*
10057 fi
10058fi
cristy8b350f62009-11-15 23:12:43 +000010059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010060$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010062$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010063if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010064 $as_echo_n "(cached) " >&6
10065else
10066 lt_cv_ld_exported_symbols_list=no
10067 save_LDFLAGS=$LDFLAGS
10068 echo "_main" > conftest.sym
10069 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010071/* end confdefs.h. */
10072
10073int
10074main ()
10075{
10076
10077 ;
10078 return 0;
10079}
10080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010082 lt_cv_ld_exported_symbols_list=yes
10083else
cristy8b350f62009-11-15 23:12:43 +000010084 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010085fi
cristy8b350f62009-11-15 23:12:43 +000010086rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010088 LDFLAGS="$save_LDFLAGS"
10089
10090fi
cristy8b350f62009-11-15 23:12:43 +000010091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010092$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10093 case $host_os in
10094 rhapsody* | darwin1.[012])
10095 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10096 darwin1.*)
10097 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10098 darwin*) # darwin 5.x on
10099 # if running on 10.5 or later, the deployment target defaults
10100 # to the OS version, if on x86, and 10.4, the deployment
10101 # target defaults to 10.4. Don't you love it?
10102 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10103 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10104 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10105 10.[012]*)
10106 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10107 10.*)
10108 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10109 esac
10110 ;;
10111 esac
10112 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10113 _lt_dar_single_mod='$single_module'
10114 fi
10115 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10116 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10117 else
10118 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10119 fi
cristy18304f92009-11-22 15:48:26 +000010120 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010121 _lt_dsymutil='~$DSYMUTIL $lib || :'
10122 else
10123 _lt_dsymutil=
10124 fi
10125 ;;
10126 esac
10127
cristy3ed852e2009-09-05 21:47:34 +000010128for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010129do :
10130 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10131"
10132if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010133 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010134#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010135_ACEOF
10136
10137fi
10138
10139done
10140
10141
10142
cristy18304f92009-11-22 15:48:26 +000010143ac_ext=cpp
10144ac_cpp='$CXXCPP $CPPFLAGS'
10145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10148if test -z "$CXX"; then
10149 if test -n "$CCC"; then
10150 CXX=$CCC
10151 else
10152 if test -n "$ac_tool_prefix"; then
10153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10154 do
10155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10158$as_echo_n "checking for $ac_word... " >&6; }
10159if test "${ac_cv_prog_CXX+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161else
10162 if test -n "$CXX"; then
10163 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10164else
10165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166for as_dir in $PATH
10167do
10168 IFS=$as_save_IFS
10169 test -z "$as_dir" && as_dir=.
10170 for ac_exec_ext in '' $ac_executable_extensions; do
10171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10172 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174 break 2
10175 fi
10176done
10177 done
10178IFS=$as_save_IFS
10179
10180fi
10181fi
10182CXX=$ac_cv_prog_CXX
10183if test -n "$CXX"; then
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10185$as_echo "$CXX" >&6; }
10186else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188$as_echo "no" >&6; }
10189fi
10190
10191
10192 test -n "$CXX" && break
10193 done
10194fi
10195if test -z "$CXX"; then
10196 ac_ct_CXX=$CXX
10197 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10198do
10199 # Extract the first word of "$ac_prog", so it can be a program name with args.
10200set dummy $ac_prog; ac_word=$2
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202$as_echo_n "checking for $ac_word... " >&6; }
10203if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205else
10206 if test -n "$ac_ct_CXX"; then
10207 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10208else
10209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210for as_dir in $PATH
10211do
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_prog_ac_ct_CXX="$ac_prog"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10219 fi
10220done
10221 done
10222IFS=$as_save_IFS
10223
10224fi
10225fi
10226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10227if test -n "$ac_ct_CXX"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10229$as_echo "$ac_ct_CXX" >&6; }
10230else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
10233fi
10234
10235
10236 test -n "$ac_ct_CXX" && break
10237done
10238
10239 if test "x$ac_ct_CXX" = x; then
10240 CXX="g++"
10241 else
10242 case $cross_compiling:$ac_tool_warned in
10243yes:)
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10246ac_tool_warned=yes ;;
10247esac
10248 CXX=$ac_ct_CXX
10249 fi
10250fi
10251
10252 fi
10253fi
10254# Provide some information about the compiler.
10255$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10256set X $ac_compile
10257ac_compiler=$2
10258for ac_option in --version -v -V -qversion; do
10259 { { ac_try="$ac_compiler $ac_option >&5"
10260case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10265$as_echo "$ac_try_echo"; } >&5
10266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10267 ac_status=$?
10268 if test -s conftest.err; then
10269 sed '10a\
10270... rest of stderr output deleted ...
10271 10q' conftest.err >conftest.er1
10272 cat conftest.er1 >&5
10273 fi
10274 rm -f conftest.er1 conftest.err
10275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10276 test $ac_status = 0; }
10277done
10278
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10280$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10281if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10282 $as_echo_n "(cached) " >&6
10283else
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h. */
10286
10287int
10288main ()
10289{
10290#ifndef __GNUC__
10291 choke me
10292#endif
10293
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298if ac_fn_cxx_try_compile "$LINENO"; then :
10299 ac_compiler_gnu=yes
10300else
10301 ac_compiler_gnu=no
10302fi
10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10305
10306fi
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10308$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10309if test $ac_compiler_gnu = yes; then
10310 GXX=yes
10311else
10312 GXX=
10313fi
10314ac_test_CXXFLAGS=${CXXFLAGS+set}
10315ac_save_CXXFLAGS=$CXXFLAGS
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10317$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10318if test "${ac_cv_prog_cxx_g+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320else
10321 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10322 ac_cxx_werror_flag=yes
10323 ac_cv_prog_cxx_g=no
10324 CXXFLAGS="-g"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h. */
10327
10328int
10329main ()
10330{
10331
10332 ;
10333 return 0;
10334}
10335_ACEOF
10336if ac_fn_cxx_try_compile "$LINENO"; then :
10337 ac_cv_prog_cxx_g=yes
10338else
10339 CXXFLAGS=""
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341/* end confdefs.h. */
10342
10343int
10344main ()
10345{
10346
10347 ;
10348 return 0;
10349}
10350_ACEOF
10351if ac_fn_cxx_try_compile "$LINENO"; then :
10352
10353else
10354 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10355 CXXFLAGS="-g"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357/* end confdefs.h. */
10358
10359int
10360main ()
10361{
10362
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367if ac_fn_cxx_try_compile "$LINENO"; then :
10368 ac_cv_prog_cxx_g=yes
10369fi
10370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371fi
10372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373fi
10374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10376fi
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10378$as_echo "$ac_cv_prog_cxx_g" >&6; }
10379if test "$ac_test_CXXFLAGS" = set; then
10380 CXXFLAGS=$ac_save_CXXFLAGS
10381elif test $ac_cv_prog_cxx_g = yes; then
10382 if test "$GXX" = yes; then
10383 CXXFLAGS="-g -O2"
10384 else
10385 CXXFLAGS="-g"
10386 fi
10387else
10388 if test "$GXX" = yes; then
10389 CXXFLAGS="-O2"
10390 else
10391 CXXFLAGS=
10392 fi
10393fi
10394ac_ext=c
10395ac_cpp='$CPP $CPPFLAGS'
10396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399
10400depcc="$CXX" am_compiler_list=
10401
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10403$as_echo_n "checking dependency style of $depcc... " >&6; }
10404if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406else
10407 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10408 # We make a subdir and do the tests there. Otherwise we can end up
10409 # making bogus files that we don't know about and never remove. For
10410 # instance it was reported that on HP-UX the gcc test will end up
10411 # making a dummy file named `D' -- because `-MD' means `put the output
10412 # in D'.
10413 mkdir conftest.dir
10414 # Copy depcomp to subdir because otherwise we won't find it if we're
10415 # using a relative directory.
10416 cp "$am_depcomp" conftest.dir
10417 cd conftest.dir
10418 # We will build objects and dependencies in a subdirectory because
10419 # it helps to detect inapplicable dependency modes. For instance
10420 # both Tru64's cc and ICC support -MD to output dependencies as a
10421 # side effect of compilation, but ICC will put the dependencies in
10422 # the current directory while Tru64 will put them in the object
10423 # directory.
10424 mkdir sub
10425
10426 am_cv_CXX_dependencies_compiler_type=none
10427 if test "$am_compiler_list" = ""; then
10428 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10429 fi
10430 am__universal=false
10431 case " $depcc " in #(
10432 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10433 esac
10434
10435 for depmode in $am_compiler_list; do
10436 # Setup a source with many dependencies, because some compilers
10437 # like to wrap large dependency lists on column 80 (with \), and
10438 # we should not choose a depcomp mode which is confused by this.
10439 #
10440 # We need to recreate these files for each test, as the compiler may
10441 # overwrite some of them when testing with obscure command lines.
10442 # This happens at least with the AIX C compiler.
10443 : > sub/conftest.c
10444 for i in 1 2 3 4 5 6; do
10445 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10446 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10447 # Solaris 8's {/usr,}/bin/sh.
10448 touch sub/conftst$i.h
10449 done
10450 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10451
10452 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10453 # mode. It turns out that the SunPro C++ compiler does not properly
10454 # handle `-M -o', and we need to detect this. Also, some Intel
10455 # versions had trouble with output in subdirs
10456 am__obj=sub/conftest.${OBJEXT-o}
10457 am__minus_obj="-o $am__obj"
10458 case $depmode in
10459 gcc)
10460 # This depmode causes a compiler race in universal mode.
10461 test "$am__universal" = false || continue
10462 ;;
10463 nosideeffect)
10464 # after this tag, mechanisms are not by side-effect, so they'll
10465 # only be used when explicitly requested
10466 if test "x$enable_dependency_tracking" = xyes; then
10467 continue
10468 else
10469 break
10470 fi
10471 ;;
10472 msvisualcpp | msvcmsys)
10473 # This compiler won't grok `-c -o', but also, the minuso test has
10474 # not run yet. These depmodes are late enough in the game, and
10475 # so weak that their functioning should not be impacted.
10476 am__obj=conftest.${OBJEXT-o}
10477 am__minus_obj=
10478 ;;
10479 none) break ;;
10480 esac
10481 if depmode=$depmode \
10482 source=sub/conftest.c object=$am__obj \
10483 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10484 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10485 >/dev/null 2>conftest.err &&
10486 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10487 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10488 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10489 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10490 # icc doesn't choke on unknown options, it will just issue warnings
10491 # or remarks (even with -Werror). So we grep stderr for any message
10492 # that says an option was ignored or not supported.
10493 # When given -MP, icc 7.0 and 7.1 complain thusly:
10494 # icc: Command line warning: ignoring option '-M'; no argument required
10495 # The diagnosis changed in icc 8.0:
10496 # icc: Command line remark: option '-MP' not supported
10497 if (grep 'ignoring option' conftest.err ||
10498 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10499 am_cv_CXX_dependencies_compiler_type=$depmode
10500 break
10501 fi
10502 fi
10503 done
10504
10505 cd ..
10506 rm -rf conftest.dir
10507else
10508 am_cv_CXX_dependencies_compiler_type=none
10509fi
10510
10511fi
10512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10513$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10514CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10515
10516 if
10517 test "x$enable_dependency_tracking" != xno \
10518 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10519 am__fastdepCXX_TRUE=
10520 am__fastdepCXX_FALSE='#'
10521else
10522 am__fastdepCXX_TRUE='#'
10523 am__fastdepCXX_FALSE=
10524fi
10525
10526
10527if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10528 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10529 (test "X$CXX" != "Xg++"))) ; then
10530 ac_ext=cpp
10531ac_cpp='$CXXCPP $CPPFLAGS'
10532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10536$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10537if test -z "$CXXCPP"; then
10538 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540else
10541 # Double quotes because CXXCPP needs to be expanded
10542 for CXXCPP in "$CXX -E" "/lib/cpp"
10543 do
10544 ac_preproc_ok=false
10545for ac_cxx_preproc_warn_flag in '' yes
10546do
10547 # Use a header file that comes with gcc, so configuring glibc
10548 # with a fresh cross-compiler works.
10549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10550 # <limits.h> exists even on freestanding compilers.
10551 # On the NeXT, cc -E runs the code through the compiler's parser,
10552 # not just through cpp. "Syntax error" is here to catch this case.
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h. */
10555#ifdef __STDC__
10556# include <limits.h>
10557#else
10558# include <assert.h>
10559#endif
10560 Syntax error
10561_ACEOF
10562if ac_fn_cxx_try_cpp "$LINENO"; then :
10563
10564else
10565 # Broken: fails on valid input.
10566continue
10567fi
10568rm -f conftest.err conftest.$ac_ext
10569
10570 # OK, works on sane cases. Now check whether nonexistent headers
10571 # can be detected and how.
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573/* end confdefs.h. */
10574#include <ac_nonexistent.h>
10575_ACEOF
10576if ac_fn_cxx_try_cpp "$LINENO"; then :
10577 # Broken: success on invalid input.
10578continue
10579else
10580 # Passes both tests.
10581ac_preproc_ok=:
10582break
10583fi
10584rm -f conftest.err conftest.$ac_ext
10585
10586done
10587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10588rm -f conftest.err conftest.$ac_ext
10589if $ac_preproc_ok; then :
10590 break
10591fi
10592
10593 done
10594 ac_cv_prog_CXXCPP=$CXXCPP
10595
10596fi
10597 CXXCPP=$ac_cv_prog_CXXCPP
10598else
10599 ac_cv_prog_CXXCPP=$CXXCPP
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10602$as_echo "$CXXCPP" >&6; }
10603ac_preproc_ok=false
10604for ac_cxx_preproc_warn_flag in '' yes
10605do
10606 # Use a header file that comes with gcc, so configuring glibc
10607 # with a fresh cross-compiler works.
10608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10609 # <limits.h> exists even on freestanding compilers.
10610 # On the NeXT, cc -E runs the code through the compiler's parser,
10611 # not just through cpp. "Syntax error" is here to catch this case.
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613/* end confdefs.h. */
10614#ifdef __STDC__
10615# include <limits.h>
10616#else
10617# include <assert.h>
10618#endif
10619 Syntax error
10620_ACEOF
10621if ac_fn_cxx_try_cpp "$LINENO"; then :
10622
10623else
10624 # Broken: fails on valid input.
10625continue
10626fi
10627rm -f conftest.err conftest.$ac_ext
10628
10629 # OK, works on sane cases. Now check whether nonexistent headers
10630 # can be detected and how.
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632/* end confdefs.h. */
10633#include <ac_nonexistent.h>
10634_ACEOF
10635if ac_fn_cxx_try_cpp "$LINENO"; then :
10636 # Broken: success on invalid input.
10637continue
10638else
10639 # Passes both tests.
10640ac_preproc_ok=:
10641break
10642fi
10643rm -f conftest.err conftest.$ac_ext
10644
10645done
10646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10647rm -f conftest.err conftest.$ac_ext
10648if $ac_preproc_ok; then :
10649
10650else
10651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10653_lt_caught_CXX_error=yes; }
10654fi
10655
10656ac_ext=c
10657ac_cpp='$CPP $CPPFLAGS'
10658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660ac_compiler_gnu=$ac_cv_c_compiler_gnu
10661
10662else
10663 _lt_caught_CXX_error=yes
10664fi
10665
10666
cristy3ed852e2009-09-05 21:47:34 +000010667
10668
10669
10670# Set options
10671enable_win32_dll=yes
10672
10673case $host in
cristy18304f92009-11-22 15:48:26 +000010674*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010675 if test -n "$ac_tool_prefix"; then
10676 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10677set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010679$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010680if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010681 $as_echo_n "(cached) " >&6
10682else
10683 if test -n "$AS"; then
10684 ac_cv_prog_AS="$AS" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010695 break 2
10696 fi
10697done
cristy8b350f62009-11-15 23:12:43 +000010698 done
cristy3ed852e2009-09-05 21:47:34 +000010699IFS=$as_save_IFS
10700
10701fi
10702fi
10703AS=$ac_cv_prog_AS
10704if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010706$as_echo "$AS" >&6; }
10707else
cristy8b350f62009-11-15 23:12:43 +000010708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010709$as_echo "no" >&6; }
10710fi
10711
10712
10713fi
10714if test -z "$ac_cv_prog_AS"; then
10715 ac_ct_AS=$AS
10716 # Extract the first word of "as", so it can be a program name with args.
10717set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010719$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010720if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010721 $as_echo_n "(cached) " >&6
10722else
10723 if test -n "$ac_ct_AS"; then
10724 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10725else
10726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10727for as_dir in $PATH
10728do
10729 IFS=$as_save_IFS
10730 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010731 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10733 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010735 break 2
10736 fi
10737done
cristy8b350f62009-11-15 23:12:43 +000010738 done
cristy3ed852e2009-09-05 21:47:34 +000010739IFS=$as_save_IFS
10740
10741fi
10742fi
10743ac_ct_AS=$ac_cv_prog_ac_ct_AS
10744if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010746$as_echo "$ac_ct_AS" >&6; }
10747else
cristy8b350f62009-11-15 23:12:43 +000010748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010749$as_echo "no" >&6; }
10750fi
10751
10752 if test "x$ac_ct_AS" = x; then
10753 AS="false"
10754 else
10755 case $cross_compiling:$ac_tool_warned in
10756yes:)
cristy8b350f62009-11-15 23:12:43 +000010757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10759ac_tool_warned=yes ;;
10760esac
10761 AS=$ac_ct_AS
10762 fi
10763else
10764 AS="$ac_cv_prog_AS"
10765fi
10766
10767 if test -n "$ac_tool_prefix"; then
10768 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10769set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010771$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010772if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010773 $as_echo_n "(cached) " >&6
10774else
10775 if test -n "$DLLTOOL"; then
10776 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10777else
10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010787 break 2
10788 fi
10789done
cristy8b350f62009-11-15 23:12:43 +000010790 done
cristy3ed852e2009-09-05 21:47:34 +000010791IFS=$as_save_IFS
10792
10793fi
10794fi
10795DLLTOOL=$ac_cv_prog_DLLTOOL
10796if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010798$as_echo "$DLLTOOL" >&6; }
10799else
cristy8b350f62009-11-15 23:12:43 +000010800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010801$as_echo "no" >&6; }
10802fi
10803
10804
10805fi
10806if test -z "$ac_cv_prog_DLLTOOL"; then
10807 ac_ct_DLLTOOL=$DLLTOOL
10808 # Extract the first word of "dlltool", so it can be a program name with args.
10809set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010811$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010812if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010813 $as_echo_n "(cached) " >&6
10814else
10815 if test -n "$ac_ct_DLLTOOL"; then
10816 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010827 break 2
10828 fi
10829done
cristy8b350f62009-11-15 23:12:43 +000010830 done
cristy3ed852e2009-09-05 21:47:34 +000010831IFS=$as_save_IFS
10832
10833fi
10834fi
10835ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10836if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010838$as_echo "$ac_ct_DLLTOOL" >&6; }
10839else
cristy8b350f62009-11-15 23:12:43 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010841$as_echo "no" >&6; }
10842fi
10843
10844 if test "x$ac_ct_DLLTOOL" = x; then
10845 DLLTOOL="false"
10846 else
10847 case $cross_compiling:$ac_tool_warned in
10848yes:)
cristy8b350f62009-11-15 23:12:43 +000010849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10851ac_tool_warned=yes ;;
10852esac
10853 DLLTOOL=$ac_ct_DLLTOOL
10854 fi
10855else
10856 DLLTOOL="$ac_cv_prog_DLLTOOL"
10857fi
10858
10859 if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10861set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010863$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010864if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010865 $as_echo_n "(cached) " >&6
10866else
10867 if test -n "$OBJDUMP"; then
10868 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10869else
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010879 break 2
10880 fi
10881done
cristy8b350f62009-11-15 23:12:43 +000010882 done
cristy3ed852e2009-09-05 21:47:34 +000010883IFS=$as_save_IFS
10884
10885fi
10886fi
10887OBJDUMP=$ac_cv_prog_OBJDUMP
10888if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010890$as_echo "$OBJDUMP" >&6; }
10891else
cristy8b350f62009-11-15 23:12:43 +000010892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010893$as_echo "no" >&6; }
10894fi
10895
10896
10897fi
10898if test -z "$ac_cv_prog_OBJDUMP"; then
10899 ac_ct_OBJDUMP=$OBJDUMP
10900 # Extract the first word of "objdump", so it can be a program name with args.
10901set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010903$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010904if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010905 $as_echo_n "(cached) " >&6
10906else
10907 if test -n "$ac_ct_OBJDUMP"; then
10908 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10909else
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010919 break 2
10920 fi
10921done
cristy8b350f62009-11-15 23:12:43 +000010922 done
cristy3ed852e2009-09-05 21:47:34 +000010923IFS=$as_save_IFS
10924
10925fi
10926fi
10927ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10928if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010930$as_echo "$ac_ct_OBJDUMP" >&6; }
10931else
cristy8b350f62009-11-15 23:12:43 +000010932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010933$as_echo "no" >&6; }
10934fi
10935
10936 if test "x$ac_ct_OBJDUMP" = x; then
10937 OBJDUMP="false"
10938 else
10939 case $cross_compiling:$ac_tool_warned in
10940yes:)
cristy8b350f62009-11-15 23:12:43 +000010941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10943ac_tool_warned=yes ;;
10944esac
10945 OBJDUMP=$ac_ct_OBJDUMP
10946 fi
10947else
10948 OBJDUMP="$ac_cv_prog_OBJDUMP"
10949fi
10950
10951 ;;
10952esac
10953
10954test -z "$AS" && AS=as
10955
10956
10957
10958
10959
10960test -z "$DLLTOOL" && DLLTOOL=dlltool
10961
10962
10963
10964
10965
10966test -z "$OBJDUMP" && OBJDUMP=objdump
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000010977if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010978 enableval=$enable_shared; p=${PACKAGE-default}
10979 case $enableval in
10980 yes) enable_shared=yes ;;
10981 no) enable_shared=no ;;
10982 *)
10983 enable_shared=no
10984 # Look at the argument we got. We use all the common list separators.
10985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10986 for pkg in $enableval; do
10987 IFS="$lt_save_ifs"
10988 if test "X$pkg" = "X$p"; then
10989 enable_shared=yes
10990 fi
10991 done
10992 IFS="$lt_save_ifs"
10993 ;;
10994 esac
10995else
10996 enable_shared=yes
10997fi
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011008if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011009 enableval=$enable_static; p=${PACKAGE-default}
11010 case $enableval in
11011 yes) enable_static=yes ;;
11012 no) enable_static=no ;;
11013 *)
11014 enable_static=no
11015 # Look at the argument we got. We use all the common list separators.
11016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11017 for pkg in $enableval; do
11018 IFS="$lt_save_ifs"
11019 if test "X$pkg" = "X$p"; then
11020 enable_static=yes
11021 fi
11022 done
11023 IFS="$lt_save_ifs"
11024 ;;
11025 esac
11026else
11027 enable_static=yes
11028fi
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011040if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011041 withval=$with_pic; pic_mode="$withval"
11042else
11043 pic_mode=default
11044fi
11045
11046
11047test -z "$pic_mode" && pic_mode=default
11048
11049
11050
11051
11052
11053
11054
11055 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011056if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011057 enableval=$enable_fast_install; p=${PACKAGE-default}
11058 case $enableval in
11059 yes) enable_fast_install=yes ;;
11060 no) enable_fast_install=no ;;
11061 *)
11062 enable_fast_install=no
11063 # Look at the argument we got. We use all the common list separators.
11064 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11065 for pkg in $enableval; do
11066 IFS="$lt_save_ifs"
11067 if test "X$pkg" = "X$p"; then
11068 enable_fast_install=yes
11069 fi
11070 done
11071 IFS="$lt_save_ifs"
11072 ;;
11073 esac
11074else
11075 enable_fast_install=yes
11076fi
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088# This can be used to rebuild libtool when needed
11089LIBTOOL_DEPS="$ltmain"
11090
11091# Always use our own libtool.
11092LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118test -z "$LN_S" && LN_S="ln -s"
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133if test -n "${ZSH_VERSION+set}" ; then
11134 setopt NO_GLOB_SUBST
11135fi
11136
cristy8b350f62009-11-15 23:12:43 +000011137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011138$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011139if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011140 $as_echo_n "(cached) " >&6
11141else
11142 rm -f .libs 2>/dev/null
11143mkdir .libs 2>/dev/null
11144if test -d .libs; then
11145 lt_cv_objdir=.libs
11146else
11147 # MS-DOS does not allow filenames that begin with a dot.
11148 lt_cv_objdir=_libs
11149fi
11150rmdir .libs 2>/dev/null
11151fi
cristy8b350f62009-11-15 23:12:43 +000011152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011153$as_echo "$lt_cv_objdir" >&6; }
11154objdir=$lt_cv_objdir
11155
11156
11157
11158
11159
11160cat >>confdefs.h <<_ACEOF
11161#define LT_OBJDIR "$lt_cv_objdir/"
11162_ACEOF
11163
11164
11165
11166
cristy18304f92009-11-22 15:48:26 +000011167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
cristy3ed852e2009-09-05 21:47:34 +000011180case $host_os in
11181aix3*)
11182 # AIX sometimes has problems with the GCC collect2 program. For some
11183 # reason, if we set the COLLECT_NAMES environment variable, the problems
11184 # vanish in a puff of smoke.
11185 if test "X${COLLECT_NAMES+set}" != Xset; then
11186 COLLECT_NAMES=
11187 export COLLECT_NAMES
11188 fi
11189 ;;
11190esac
11191
cristy18304f92009-11-22 15:48:26 +000011192# Sed substitution that helps us do robust quoting. It backslashifies
11193# metacharacters that are still active within double-quoted strings.
11194sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11195
11196# Same as above, but do not quote variable references.
11197double_quote_subst='s/\(["`\\]\)/\\\1/g'
11198
11199# Sed substitution to delay expansion of an escaped shell variable in a
11200# double_quote_subst'ed string.
11201delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11202
11203# Sed substitution to delay expansion of an escaped single quote.
11204delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11205
11206# Sed substitution to avoid accidental globbing in evaled expressions
11207no_glob_subst='s/\*/\\\*/g'
11208
cristy3ed852e2009-09-05 21:47:34 +000011209# Global variables:
11210ofile=libtool
11211can_build_shared=yes
11212
11213# All known linkers require a `.a' archive for static linking (except MSVC,
11214# which needs '.lib').
11215libext=a
11216
11217with_gnu_ld="$lt_cv_prog_gnu_ld"
11218
11219old_CC="$CC"
11220old_CFLAGS="$CFLAGS"
11221
11222# Set sane defaults for various variables
11223test -z "$CC" && CC=cc
11224test -z "$LTCC" && LTCC=$CC
11225test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11226test -z "$LD" && LD=ld
11227test -z "$ac_objext" && ac_objext=o
11228
11229for cc_temp in $compiler""; do
11230 case $cc_temp in
11231 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11232 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11233 \-*) ;;
11234 *) break;;
11235 esac
11236done
cristy18304f92009-11-22 15:48:26 +000011237cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011238
11239
11240# Only perform the check for file, if the check method requires it
11241test -z "$MAGIC_CMD" && MAGIC_CMD=file
11242case $deplibs_check_method in
11243file_magic*)
11244 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011246$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011247if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011248 $as_echo_n "(cached) " >&6
11249else
11250 case $MAGIC_CMD in
11251[\\/*] | ?:[\\/]*)
11252 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11253 ;;
11254*)
11255 lt_save_MAGIC_CMD="$MAGIC_CMD"
11256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11258 for ac_dir in $ac_dummy; do
11259 IFS="$lt_save_ifs"
11260 test -z "$ac_dir" && ac_dir=.
11261 if test -f $ac_dir/${ac_tool_prefix}file; then
11262 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11263 if test -n "$file_magic_test_file"; then
11264 case $deplibs_check_method in
11265 "file_magic "*)
11266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11269 $EGREP "$file_magic_regex" > /dev/null; then
11270 :
11271 else
11272 cat <<_LT_EOF 1>&2
11273
11274*** Warning: the command libtool uses to detect shared libraries,
11275*** $file_magic_cmd, produces output that libtool cannot recognize.
11276*** The result is that libtool may fail to recognize shared libraries
11277*** as such. This will affect the creation of libtool libraries that
11278*** depend on shared libraries, but programs linked with such libtool
11279*** libraries will work regardless of this problem. Nevertheless, you
11280*** may want to report the problem to your system manager and/or to
11281*** bug-libtool@gnu.org
11282
11283_LT_EOF
11284 fi ;;
11285 esac
11286 fi
11287 break
11288 fi
11289 done
11290 IFS="$lt_save_ifs"
11291 MAGIC_CMD="$lt_save_MAGIC_CMD"
11292 ;;
11293esac
11294fi
11295
11296MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11297if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011299$as_echo "$MAGIC_CMD" >&6; }
11300else
cristy8b350f62009-11-15 23:12:43 +000011301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011302$as_echo "no" >&6; }
11303fi
11304
11305
11306
11307
11308
11309if test -z "$lt_cv_path_MAGIC_CMD"; then
11310 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011312$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011313if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011314 $as_echo_n "(cached) " >&6
11315else
11316 case $MAGIC_CMD in
11317[\\/*] | ?:[\\/]*)
11318 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11319 ;;
11320*)
11321 lt_save_MAGIC_CMD="$MAGIC_CMD"
11322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11323 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11324 for ac_dir in $ac_dummy; do
11325 IFS="$lt_save_ifs"
11326 test -z "$ac_dir" && ac_dir=.
11327 if test -f $ac_dir/file; then
11328 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11329 if test -n "$file_magic_test_file"; then
11330 case $deplibs_check_method in
11331 "file_magic "*)
11332 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11335 $EGREP "$file_magic_regex" > /dev/null; then
11336 :
11337 else
11338 cat <<_LT_EOF 1>&2
11339
11340*** Warning: the command libtool uses to detect shared libraries,
11341*** $file_magic_cmd, produces output that libtool cannot recognize.
11342*** The result is that libtool may fail to recognize shared libraries
11343*** as such. This will affect the creation of libtool libraries that
11344*** depend on shared libraries, but programs linked with such libtool
11345*** libraries will work regardless of this problem. Nevertheless, you
11346*** may want to report the problem to your system manager and/or to
11347*** bug-libtool@gnu.org
11348
11349_LT_EOF
11350 fi ;;
11351 esac
11352 fi
11353 break
11354 fi
11355 done
11356 IFS="$lt_save_ifs"
11357 MAGIC_CMD="$lt_save_MAGIC_CMD"
11358 ;;
11359esac
11360fi
11361
11362MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11363if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011365$as_echo "$MAGIC_CMD" >&6; }
11366else
cristy8b350f62009-11-15 23:12:43 +000011367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011368$as_echo "no" >&6; }
11369fi
11370
11371
11372 else
11373 MAGIC_CMD=:
11374 fi
11375fi
11376
11377 fi
11378 ;;
11379esac
11380
11381# Use C for the default configuration in the libtool script
11382
11383lt_save_CC="$CC"
11384ac_ext=c
11385ac_cpp='$CPP $CPPFLAGS'
11386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11388ac_compiler_gnu=$ac_cv_c_compiler_gnu
11389
11390
11391# Source file extension for C test sources.
11392ac_ext=c
11393
11394# Object file extension for compiled C test sources.
11395objext=o
11396objext=$objext
11397
11398# Code to be used in simple compile tests
11399lt_simple_compile_test_code="int some_variable = 0;"
11400
11401# Code to be used in simple link tests
11402lt_simple_link_test_code='int main(){return(0);}'
11403
11404
11405
11406
11407
11408
11409
11410# If no C compiler was specified, use CC.
11411LTCC=${LTCC-"$CC"}
11412
11413# If no C compiler flags were specified, use CFLAGS.
11414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11415
11416# Allow CC to be a program name with arguments.
11417compiler=$CC
11418
11419# Save the default compiler, since it gets overwritten when the other
11420# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11421compiler_DEFAULT=$CC
11422
11423# save warnings/boilerplate of simple test code
11424ac_outfile=conftest.$ac_objext
11425echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11426eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11427_lt_compiler_boilerplate=`cat conftest.err`
11428$RM conftest*
11429
11430ac_outfile=conftest.$ac_objext
11431echo "$lt_simple_link_test_code" >conftest.$ac_ext
11432eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11433_lt_linker_boilerplate=`cat conftest.err`
11434$RM -r conftest*
11435
11436
11437## CAVEAT EMPTOR:
11438## There is no encapsulation within the following macros, do not change
11439## the running order or otherwise move them around unless you know exactly
11440## what you are doing...
11441if test -n "$compiler"; then
11442
11443lt_prog_compiler_no_builtin_flag=
11444
11445if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011446 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011447
cristy8b350f62009-11-15 23:12:43 +000011448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011450if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011451 $as_echo_n "(cached) " >&6
11452else
11453 lt_cv_prog_compiler_rtti_exceptions=no
11454 ac_outfile=conftest.$ac_objext
11455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11456 lt_compiler_flag="-fno-rtti -fno-exceptions"
11457 # Insert the option either (1) after the last *FLAGS variable, or
11458 # (2) before a word containing "conftest.", or (3) at the end.
11459 # Note that $ac_compile itself does not contain backslashes and begins
11460 # with a dollar sign (not a hyphen), so the echo should work correctly.
11461 # The option is referenced via a variable to avoid confusing sed.
11462 lt_compile=`echo "$ac_compile" | $SED \
11463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11465 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000011466 (eval echo "\"\$as_me:11466: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011467 (eval "$lt_compile" 2>conftest.err)
11468 ac_status=$?
11469 cat conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000011470 echo "$as_me:11470: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011471 if (exit $ac_status) && test -s "$ac_outfile"; then
11472 # The compiler can only warn and ignore the option if not recognized
11473 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011474 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11477 lt_cv_prog_compiler_rtti_exceptions=yes
11478 fi
11479 fi
11480 $RM conftest*
11481
11482fi
cristy8b350f62009-11-15 23:12:43 +000011483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11485
11486if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11488else
11489 :
11490fi
11491
11492fi
11493
11494
11495
11496
11497
11498
11499 lt_prog_compiler_wl=
11500lt_prog_compiler_pic=
11501lt_prog_compiler_static=
11502
cristy8b350f62009-11-15 23:12:43 +000011503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011504$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11505
11506 if test "$GCC" = yes; then
11507 lt_prog_compiler_wl='-Wl,'
11508 lt_prog_compiler_static='-static'
11509
11510 case $host_os in
11511 aix*)
11512 # All AIX code is PIC.
11513 if test "$host_cpu" = ia64; then
11514 # AIX 5 now supports IA64 processor
11515 lt_prog_compiler_static='-Bstatic'
11516 fi
11517 ;;
11518
11519 amigaos*)
11520 case $host_cpu in
11521 powerpc)
11522 # see comment about AmigaOS4 .so support
11523 lt_prog_compiler_pic='-fPIC'
11524 ;;
11525 m68k)
11526 # FIXME: we need at least 68020 code to build shared libraries, but
11527 # adding the `-m68020' flag to GCC prevents building anything better,
11528 # like `-m68040'.
11529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11530 ;;
11531 esac
11532 ;;
11533
11534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11535 # PIC is the default for these OSes.
11536 ;;
11537
11538 mingw* | cygwin* | pw32* | os2* | cegcc*)
11539 # This hack is so that the source file can tell whether it is being
11540 # built for inclusion in a dll (and should export symbols for example).
11541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11542 # (--disable-auto-import) libraries
11543 lt_prog_compiler_pic='-DDLL_EXPORT'
11544 ;;
11545
11546 darwin* | rhapsody*)
11547 # PIC is the default on this platform
11548 # Common symbols not allowed in MH_DYLIB files
11549 lt_prog_compiler_pic='-fno-common'
11550 ;;
11551
11552 hpux*)
11553 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11554 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11555 # sets the default TLS model and affects inlining.
11556 case $host_cpu in
11557 hppa*64*)
11558 # +Z the default
11559 ;;
11560 *)
11561 lt_prog_compiler_pic='-fPIC'
11562 ;;
11563 esac
11564 ;;
11565
11566 interix[3-9]*)
11567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11568 # Instead, we relocate shared libraries at runtime.
11569 ;;
11570
11571 msdosdjgpp*)
11572 # Just because we use GCC doesn't mean we suddenly get shared libraries
11573 # on systems that don't support them.
11574 lt_prog_compiler_can_build_shared=no
11575 enable_shared=no
11576 ;;
11577
11578 *nto* | *qnx*)
11579 # QNX uses GNU C++, but need to define -shared option too, otherwise
11580 # it will coredump.
11581 lt_prog_compiler_pic='-fPIC -shared'
11582 ;;
11583
11584 sysv4*MP*)
11585 if test -d /usr/nec; then
11586 lt_prog_compiler_pic=-Kconform_pic
11587 fi
11588 ;;
11589
11590 *)
11591 lt_prog_compiler_pic='-fPIC'
11592 ;;
11593 esac
11594 else
11595 # PORTME Check for flag to pass linker flags through the system compiler.
11596 case $host_os in
11597 aix*)
11598 lt_prog_compiler_wl='-Wl,'
11599 if test "$host_cpu" = ia64; then
11600 # AIX 5 now supports IA64 processor
11601 lt_prog_compiler_static='-Bstatic'
11602 else
11603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11604 fi
11605 ;;
11606
11607 mingw* | cygwin* | pw32* | os2* | cegcc*)
11608 # This hack is so that the source file can tell whether it is being
11609 # built for inclusion in a dll (and should export symbols for example).
11610 lt_prog_compiler_pic='-DDLL_EXPORT'
11611 ;;
11612
11613 hpux9* | hpux10* | hpux11*)
11614 lt_prog_compiler_wl='-Wl,'
11615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11616 # not for PA HP-UX.
11617 case $host_cpu in
11618 hppa*64*|ia64*)
11619 # +Z the default
11620 ;;
11621 *)
11622 lt_prog_compiler_pic='+Z'
11623 ;;
11624 esac
11625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11626 lt_prog_compiler_static='${wl}-a ${wl}archive'
11627 ;;
11628
11629 irix5* | irix6* | nonstopux*)
11630 lt_prog_compiler_wl='-Wl,'
11631 # PIC (with -KPIC) is the default.
11632 lt_prog_compiler_static='-non_shared'
11633 ;;
11634
cristy18304f92009-11-22 15:48:26 +000011635 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011636 case $cc_basename in
11637 # old Intel for x86_64 which still supported -KPIC.
11638 ecc*)
11639 lt_prog_compiler_wl='-Wl,'
11640 lt_prog_compiler_pic='-KPIC'
11641 lt_prog_compiler_static='-static'
11642 ;;
11643 # icc used to be incompatible with GCC.
11644 # ICC 10 doesn't accept -KPIC any more.
11645 icc* | ifort*)
11646 lt_prog_compiler_wl='-Wl,'
11647 lt_prog_compiler_pic='-fPIC'
11648 lt_prog_compiler_static='-static'
11649 ;;
11650 # Lahey Fortran 8.1.
11651 lf95*)
11652 lt_prog_compiler_wl='-Wl,'
11653 lt_prog_compiler_pic='--shared'
11654 lt_prog_compiler_static='--static'
11655 ;;
cristy18304f92009-11-22 15:48:26 +000011656 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011657 # Portland Group compilers (*not* the Pentium gcc compiler,
11658 # which looks to be a dead project)
11659 lt_prog_compiler_wl='-Wl,'
11660 lt_prog_compiler_pic='-fpic'
11661 lt_prog_compiler_static='-Bstatic'
11662 ;;
11663 ccc*)
11664 lt_prog_compiler_wl='-Wl,'
11665 # All Alpha code is PIC.
11666 lt_prog_compiler_static='-non_shared'
11667 ;;
cristy18304f92009-11-22 15:48:26 +000011668 xl*)
11669 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011670 lt_prog_compiler_wl='-Wl,'
11671 lt_prog_compiler_pic='-qpic'
11672 lt_prog_compiler_static='-qstaticlink'
11673 ;;
11674 *)
11675 case `$CC -V 2>&1 | sed 5q` in
11676 *Sun\ C*)
11677 # Sun C 5.9
11678 lt_prog_compiler_pic='-KPIC'
11679 lt_prog_compiler_static='-Bstatic'
11680 lt_prog_compiler_wl='-Wl,'
11681 ;;
cristy18304f92009-11-22 15:48:26 +000011682 *Sun\ F*)
11683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11684 lt_prog_compiler_pic='-KPIC'
11685 lt_prog_compiler_static='-Bstatic'
11686 lt_prog_compiler_wl=''
11687 ;;
cristy3ed852e2009-09-05 21:47:34 +000011688 esac
11689 ;;
11690 esac
11691 ;;
11692
11693 newsos6)
11694 lt_prog_compiler_pic='-KPIC'
11695 lt_prog_compiler_static='-Bstatic'
11696 ;;
11697
11698 *nto* | *qnx*)
11699 # QNX uses GNU C++, but need to define -shared option too, otherwise
11700 # it will coredump.
11701 lt_prog_compiler_pic='-fPIC -shared'
11702 ;;
11703
11704 osf3* | osf4* | osf5*)
11705 lt_prog_compiler_wl='-Wl,'
11706 # All OSF/1 code is PIC.
11707 lt_prog_compiler_static='-non_shared'
11708 ;;
11709
11710 rdos*)
11711 lt_prog_compiler_static='-non_shared'
11712 ;;
11713
11714 solaris*)
11715 lt_prog_compiler_pic='-KPIC'
11716 lt_prog_compiler_static='-Bstatic'
11717 case $cc_basename in
11718 f77* | f90* | f95*)
11719 lt_prog_compiler_wl='-Qoption ld ';;
11720 *)
11721 lt_prog_compiler_wl='-Wl,';;
11722 esac
11723 ;;
11724
11725 sunos4*)
11726 lt_prog_compiler_wl='-Qoption ld '
11727 lt_prog_compiler_pic='-PIC'
11728 lt_prog_compiler_static='-Bstatic'
11729 ;;
11730
11731 sysv4 | sysv4.2uw2* | sysv4.3*)
11732 lt_prog_compiler_wl='-Wl,'
11733 lt_prog_compiler_pic='-KPIC'
11734 lt_prog_compiler_static='-Bstatic'
11735 ;;
11736
11737 sysv4*MP*)
11738 if test -d /usr/nec ;then
11739 lt_prog_compiler_pic='-Kconform_pic'
11740 lt_prog_compiler_static='-Bstatic'
11741 fi
11742 ;;
11743
11744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745 lt_prog_compiler_wl='-Wl,'
11746 lt_prog_compiler_pic='-KPIC'
11747 lt_prog_compiler_static='-Bstatic'
11748 ;;
11749
11750 unicos*)
11751 lt_prog_compiler_wl='-Wl,'
11752 lt_prog_compiler_can_build_shared=no
11753 ;;
11754
11755 uts4*)
11756 lt_prog_compiler_pic='-pic'
11757 lt_prog_compiler_static='-Bstatic'
11758 ;;
11759
11760 *)
11761 lt_prog_compiler_can_build_shared=no
11762 ;;
11763 esac
11764 fi
11765
11766case $host_os in
11767 # For platforms which do not support PIC, -DPIC is meaningless:
11768 *djgpp*)
11769 lt_prog_compiler_pic=
11770 ;;
11771 *)
11772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11773 ;;
11774esac
cristy8b350f62009-11-15 23:12:43 +000011775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011776$as_echo "$lt_prog_compiler_pic" >&6; }
11777
11778
11779
11780
11781
11782
11783#
11784# Check to make sure the PIC flag actually works.
11785#
11786if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011788$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011789if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011790 $as_echo_n "(cached) " >&6
11791else
11792 lt_cv_prog_compiler_pic_works=no
11793 ac_outfile=conftest.$ac_objext
11794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11796 # Insert the option either (1) after the last *FLAGS variable, or
11797 # (2) before a word containing "conftest.", or (3) at the end.
11798 # Note that $ac_compile itself does not contain backslashes and begins
11799 # with a dollar sign (not a hyphen), so the echo should work correctly.
11800 # The option is referenced via a variable to avoid confusing sed.
11801 lt_compile=`echo "$ac_compile" | $SED \
11802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11804 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000011805 (eval echo "\"\$as_me:11805: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011806 (eval "$lt_compile" 2>conftest.err)
11807 ac_status=$?
11808 cat conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000011809 echo "$as_me:11809: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011810 if (exit $ac_status) && test -s "$ac_outfile"; then
11811 # The compiler can only warn and ignore the option if not recognized
11812 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11816 lt_cv_prog_compiler_pic_works=yes
11817 fi
11818 fi
11819 $RM conftest*
11820
11821fi
cristy8b350f62009-11-15 23:12:43 +000011822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011823$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11824
11825if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11826 case $lt_prog_compiler_pic in
11827 "" | " "*) ;;
11828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11829 esac
11830else
11831 lt_prog_compiler_pic=
11832 lt_prog_compiler_can_build_shared=no
11833fi
11834
11835fi
11836
11837
11838
11839
11840
11841
11842#
11843# Check to make sure the static flag actually works.
11844#
11845wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011847$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011848if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011849 $as_echo_n "(cached) " >&6
11850else
11851 lt_cv_prog_compiler_static_works=no
11852 save_LDFLAGS="$LDFLAGS"
11853 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11854 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11855 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11856 # The linker can only warn and ignore the option if not recognized
11857 # So say no if there are warnings
11858 if test -s conftest.err; then
11859 # Append any errors to the config.log.
11860 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011861 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11863 if diff conftest.exp conftest.er2 >/dev/null; then
11864 lt_cv_prog_compiler_static_works=yes
11865 fi
11866 else
11867 lt_cv_prog_compiler_static_works=yes
11868 fi
11869 fi
11870 $RM -r conftest*
11871 LDFLAGS="$save_LDFLAGS"
11872
11873fi
cristy8b350f62009-11-15 23:12:43 +000011874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011875$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11876
11877if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11878 :
11879else
11880 lt_prog_compiler_static=
11881fi
11882
11883
11884
11885
11886
11887
11888
cristy8b350f62009-11-15 23:12:43 +000011889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011890$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011891if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011892 $as_echo_n "(cached) " >&6
11893else
11894 lt_cv_prog_compiler_c_o=no
11895 $RM -r conftest 2>/dev/null
11896 mkdir conftest
11897 cd conftest
11898 mkdir out
11899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11900
11901 lt_compiler_flag="-o out/conftest2.$ac_objext"
11902 # Insert the option either (1) after the last *FLAGS variable, or
11903 # (2) before a word containing "conftest.", or (3) at the end.
11904 # Note that $ac_compile itself does not contain backslashes and begins
11905 # with a dollar sign (not a hyphen), so the echo should work correctly.
11906 lt_compile=`echo "$ac_compile" | $SED \
11907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11909 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000011910 (eval echo "\"\$as_me:11910: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011911 (eval "$lt_compile" 2>out/conftest.err)
11912 ac_status=$?
11913 cat out/conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000011914 echo "$as_me:11914: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11916 then
11917 # The compiler can only warn and ignore the option if not recognized
11918 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000011919 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11922 lt_cv_prog_compiler_c_o=yes
11923 fi
11924 fi
11925 chmod u+w . 2>&5
11926 $RM conftest*
11927 # SGI C++ compiler will create directory out/ii_files/ for
11928 # template instantiation
11929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11930 $RM out/* && rmdir out
11931 cd ..
11932 $RM -r conftest
11933 $RM conftest*
11934
11935fi
cristy8b350f62009-11-15 23:12:43 +000011936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011937$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11938
11939
11940
11941
11942
11943
cristy8b350f62009-11-15 23:12:43 +000011944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011946if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011947 $as_echo_n "(cached) " >&6
11948else
11949 lt_cv_prog_compiler_c_o=no
11950 $RM -r conftest 2>/dev/null
11951 mkdir conftest
11952 cd conftest
11953 mkdir out
11954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11955
11956 lt_compiler_flag="-o out/conftest2.$ac_objext"
11957 # Insert the option either (1) after the last *FLAGS variable, or
11958 # (2) before a word containing "conftest.", or (3) at the end.
11959 # Note that $ac_compile itself does not contain backslashes and begins
11960 # with a dollar sign (not a hyphen), so the echo should work correctly.
11961 lt_compile=`echo "$ac_compile" | $SED \
11962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11964 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000011965 (eval echo "\"\$as_me:11965: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011966 (eval "$lt_compile" 2>out/conftest.err)
11967 ac_status=$?
11968 cat out/conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000011969 echo "$as_me:11969: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11971 then
11972 # The compiler can only warn and ignore the option if not recognized
11973 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000011974 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11977 lt_cv_prog_compiler_c_o=yes
11978 fi
11979 fi
11980 chmod u+w . 2>&5
11981 $RM conftest*
11982 # SGI C++ compiler will create directory out/ii_files/ for
11983 # template instantiation
11984 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11985 $RM out/* && rmdir out
11986 cd ..
11987 $RM -r conftest
11988 $RM conftest*
11989
11990fi
cristy8b350f62009-11-15 23:12:43 +000011991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011992$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11993
11994
11995
11996
11997hard_links="nottested"
11998if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11999 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012001$as_echo_n "checking if we can lock with hard links... " >&6; }
12002 hard_links=yes
12003 $RM conftest*
12004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12005 touch conftest.a
12006 ln conftest.a conftest.b 2>&5 || hard_links=no
12007 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012009$as_echo "$hard_links" >&6; }
12010 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012011 { $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 +000012012$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12013 need_locks=warn
12014 fi
12015else
12016 need_locks=no
12017fi
12018
12019
12020
12021
12022
12023
cristy8b350f62009-11-15 23:12:43 +000012024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012025$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12026
12027 runpath_var=
12028 allow_undefined_flag=
12029 always_export_symbols=no
12030 archive_cmds=
12031 archive_expsym_cmds=
12032 compiler_needs_object=no
12033 enable_shared_with_static_runtimes=no
12034 export_dynamic_flag_spec=
12035 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12036 hardcode_automatic=no
12037 hardcode_direct=no
12038 hardcode_direct_absolute=no
12039 hardcode_libdir_flag_spec=
12040 hardcode_libdir_flag_spec_ld=
12041 hardcode_libdir_separator=
12042 hardcode_minus_L=no
12043 hardcode_shlibpath_var=unsupported
12044 inherit_rpath=no
12045 link_all_deplibs=unknown
12046 module_cmds=
12047 module_expsym_cmds=
12048 old_archive_from_new_cmds=
12049 old_archive_from_expsyms_cmds=
12050 thread_safe_flag_spec=
12051 whole_archive_flag_spec=
12052 # include_expsyms should be a list of space-separated symbols to be *always*
12053 # included in the symbol list
12054 include_expsyms=
12055 # exclude_expsyms can be an extended regexp of symbols to exclude
12056 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12057 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12058 # as well as any symbol that contains `d'.
12059 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12060 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12061 # platforms (ab)use it in PIC code, but their linkers get confused if
12062 # the symbol is explicitly referenced. Since portable code cannot
12063 # rely on this symbol name, it's probably fine to never include it in
12064 # preloaded symbol tables.
12065 # Exclude shared library initialization/finalization symbols.
12066 extract_expsyms_cmds=
12067
12068 case $host_os in
12069 cygwin* | mingw* | pw32* | cegcc*)
12070 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12071 # When not using gcc, we currently assume that we are using
12072 # Microsoft Visual C++.
12073 if test "$GCC" != yes; then
12074 with_gnu_ld=no
12075 fi
12076 ;;
12077 interix*)
12078 # we just hope/assume this is gcc and not c89 (= MSVC++)
12079 with_gnu_ld=yes
12080 ;;
12081 openbsd*)
12082 with_gnu_ld=no
12083 ;;
12084 esac
12085
12086 ld_shlibs=yes
12087 if test "$with_gnu_ld" = yes; then
12088 # If archive_cmds runs LD, not CC, wlarc should be empty
12089 wlarc='${wl}'
12090
12091 # Set some defaults for GNU ld with shared library support. These
12092 # are reset later if shared libraries are not supported. Putting them
12093 # here allows them to be overridden if necessary.
12094 runpath_var=LD_RUN_PATH
12095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12096 export_dynamic_flag_spec='${wl}--export-dynamic'
12097 # ancient GNU ld didn't support --whole-archive et. al.
12098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12100 else
12101 whole_archive_flag_spec=
12102 fi
12103 supports_anon_versioning=no
12104 case `$LD -v 2>&1` in
12105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12108 *\ 2.11.*) ;; # other 2.11 versions
12109 *) supports_anon_versioning=yes ;;
12110 esac
12111
12112 # See if GNU ld supports shared libraries.
12113 case $host_os in
12114 aix[3-9]*)
12115 # On AIX/PPC, the GNU linker is very broken
12116 if test "$host_cpu" != ia64; then
12117 ld_shlibs=no
12118 cat <<_LT_EOF 1>&2
12119
cristy18304f92009-11-22 15:48:26 +000012120*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012121*** to be unable to reliably create shared libraries on AIX.
12122*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012123*** really care for shared libraries, you may want to modify your PATH
12124*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012125
12126_LT_EOF
12127 fi
12128 ;;
12129
12130 amigaos*)
12131 case $host_cpu in
12132 powerpc)
12133 # see comment about AmigaOS4 .so support
12134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12135 archive_expsym_cmds=''
12136 ;;
12137 m68k)
12138 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)'
12139 hardcode_libdir_flag_spec='-L$libdir'
12140 hardcode_minus_L=yes
12141 ;;
12142 esac
12143 ;;
12144
12145 beos*)
12146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12147 allow_undefined_flag=unsupported
12148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12149 # support --undefined. This deserves some investigation. FIXME
12150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 else
12152 ld_shlibs=no
12153 fi
12154 ;;
12155
12156 cygwin* | mingw* | pw32* | cegcc*)
12157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12158 # as there is no search path for DLLs.
12159 hardcode_libdir_flag_spec='-L$libdir'
12160 allow_undefined_flag=unsupported
12161 always_export_symbols=no
12162 enable_shared_with_static_runtimes=yes
12163 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12164
12165 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12167 # If the export-symbols file already is a .def file (1st line
12168 # is EXPORTS), use it as is; otherwise, prepend...
12169 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12170 cp $export_symbols $output_objdir/$soname.def;
12171 else
12172 echo EXPORTS > $output_objdir/$soname.def;
12173 cat $export_symbols >> $output_objdir/$soname.def;
12174 fi~
12175 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12176 else
12177 ld_shlibs=no
12178 fi
12179 ;;
12180
12181 interix[3-9]*)
12182 hardcode_direct=no
12183 hardcode_shlibpath_var=no
12184 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12185 export_dynamic_flag_spec='${wl}-E'
12186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12187 # Instead, shared libraries are loaded at an image base (0x10000000 by
12188 # default) and relocated if they conflict, which is a slow very memory
12189 # consuming and fragmenting process. To avoid this, we pick a random,
12190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12193 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'
12194 ;;
12195
cristy18304f92009-11-22 15:48:26 +000012196 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012197 tmp_diet=no
12198 if test "$host_os" = linux-dietlibc; then
12199 case $cc_basename in
12200 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12201 esac
12202 fi
12203 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12204 && test "$tmp_diet" = no
12205 then
12206 tmp_addflag=
12207 tmp_sharedflag='-shared'
12208 case $cc_basename,$host_cpu in
12209 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012210 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 +000012211 tmp_addflag=' $pic_flag'
12212 ;;
cristy18304f92009-11-22 15:48:26 +000012213 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12214 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 +000012215 tmp_addflag=' $pic_flag -Mnomain' ;;
12216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12217 tmp_addflag=' -i_dynamic' ;;
12218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12219 tmp_addflag=' -i_dynamic -nofor_main' ;;
12220 ifc* | ifort*) # Intel Fortran compiler
12221 tmp_addflag=' -nofor_main' ;;
12222 lf95*) # Lahey Fortran 8.1
12223 whole_archive_flag_spec=
12224 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012225 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012226 tmp_sharedflag='-qmkshrobj'
12227 tmp_addflag= ;;
12228 esac
12229 case `$CC -V 2>&1 | sed 5q` in
12230 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012231 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 +000012232 compiler_needs_object=yes
12233 tmp_sharedflag='-G' ;;
12234 *Sun\ F*) # Sun Fortran 8.3
12235 tmp_sharedflag='-G' ;;
12236 esac
12237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238
12239 if test "x$supports_anon_versioning" = xyes; then
12240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12242 echo "local: *; };" >> $output_objdir/$libname.ver~
12243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12244 fi
12245
12246 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012247 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12250 hardcode_libdir_flag_spec=
12251 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12252 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12253 if test "x$supports_anon_versioning" = xyes; then
12254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12256 echo "local: *; };" >> $output_objdir/$libname.ver~
12257 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12258 fi
12259 ;;
12260 esac
12261 else
12262 ld_shlibs=no
12263 fi
12264 ;;
12265
12266 netbsd*)
12267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12269 wlarc=
12270 else
12271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12273 fi
12274 ;;
12275
12276 solaris*)
12277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12278 ld_shlibs=no
12279 cat <<_LT_EOF 1>&2
12280
12281*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12282*** create shared libraries on Solaris systems. Therefore, libtool
12283*** is disabling shared libraries support. We urge you to upgrade GNU
12284*** binutils to release 2.9.1 or newer. Another option is to modify
12285*** your PATH or compiler configuration so that the native linker is
12286*** used, and then restart.
12287
12288_LT_EOF
12289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12292 else
12293 ld_shlibs=no
12294 fi
12295 ;;
12296
12297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12298 case `$LD -v 2>&1` in
12299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12300 ld_shlibs=no
12301 cat <<_LT_EOF 1>&2
12302
12303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12304*** reliably create shared libraries on SCO systems. Therefore, libtool
12305*** is disabling shared libraries support. We urge you to upgrade GNU
12306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12307*** your PATH or compiler configuration so that the native linker is
12308*** used, and then restart.
12309
12310_LT_EOF
12311 ;;
12312 *)
12313 # For security reasons, it is highly recommended that you always
12314 # use absolute paths for naming shared libraries, and exclude the
12315 # DT_RUNPATH tag from executables and libraries. But doing so
12316 # requires that you compile everything twice, which is a pain.
12317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12321 else
12322 ld_shlibs=no
12323 fi
12324 ;;
12325 esac
12326 ;;
12327
12328 sunos4*)
12329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12330 wlarc=
12331 hardcode_direct=yes
12332 hardcode_shlibpath_var=no
12333 ;;
12334
12335 *)
12336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12339 else
12340 ld_shlibs=no
12341 fi
12342 ;;
12343 esac
12344
12345 if test "$ld_shlibs" = no; then
12346 runpath_var=
12347 hardcode_libdir_flag_spec=
12348 export_dynamic_flag_spec=
12349 whole_archive_flag_spec=
12350 fi
12351 else
12352 # PORTME fill in a description of your system's linker (not GNU ld)
12353 case $host_os in
12354 aix3*)
12355 allow_undefined_flag=unsupported
12356 always_export_symbols=yes
12357 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'
12358 # Note: this linker hardcodes the directories in LIBPATH if there
12359 # are no directories specified by -L.
12360 hardcode_minus_L=yes
12361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12362 # Neither direct hardcoding nor static linking is supported with a
12363 # broken collect2.
12364 hardcode_direct=unsupported
12365 fi
12366 ;;
12367
12368 aix[4-9]*)
12369 if test "$host_cpu" = ia64; then
12370 # On IA64, the linker does run time linking by default, so we don't
12371 # have to do anything special.
12372 aix_use_runtimelinking=no
12373 exp_sym_flag='-Bexport'
12374 no_entry_flag=""
12375 else
12376 # If we're using GNU nm, then we don't want the "-C" option.
12377 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12378 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012379 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 +000012380 else
12381 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'
12382 fi
12383 aix_use_runtimelinking=no
12384
12385 # Test if we are trying to use run time linking or normal
12386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12387 # need to do runtime linking.
12388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12389 for ld_flag in $LDFLAGS; do
12390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12391 aix_use_runtimelinking=yes
12392 break
12393 fi
12394 done
12395 ;;
12396 esac
12397
12398 exp_sym_flag='-bexport'
12399 no_entry_flag='-bnoentry'
12400 fi
12401
12402 # When large executables or shared objects are built, AIX ld can
12403 # have problems creating the table of contents. If linking a library
12404 # or program results in "error TOC overflow" add -mminimal-toc to
12405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12407
12408 archive_cmds=''
12409 hardcode_direct=yes
12410 hardcode_direct_absolute=yes
12411 hardcode_libdir_separator=':'
12412 link_all_deplibs=yes
12413 file_list_spec='${wl}-f,'
12414
12415 if test "$GCC" = yes; then
12416 case $host_os in aix4.[012]|aix4.[012].*)
12417 # We only want to do this on AIX 4.2 and lower, the check
12418 # below for broken collect2 doesn't work under 4.3+
12419 collect2name=`${CC} -print-prog-name=collect2`
12420 if test -f "$collect2name" &&
12421 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12422 then
12423 # We have reworked collect2
12424 :
12425 else
12426 # We have old collect2
12427 hardcode_direct=unsupported
12428 # It fails to find uninstalled libraries when the uninstalled
12429 # path is not listed in the libpath. Setting hardcode_minus_L
12430 # to unsupported forces relinking
12431 hardcode_minus_L=yes
12432 hardcode_libdir_flag_spec='-L$libdir'
12433 hardcode_libdir_separator=
12434 fi
12435 ;;
12436 esac
12437 shared_flag='-shared'
12438 if test "$aix_use_runtimelinking" = yes; then
12439 shared_flag="$shared_flag "'${wl}-G'
12440 fi
12441 else
12442 # not using gcc
12443 if test "$host_cpu" = ia64; then
12444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12445 # chokes on -Wl,-G. The following line is correct:
12446 shared_flag='-G'
12447 else
12448 if test "$aix_use_runtimelinking" = yes; then
12449 shared_flag='${wl}-G'
12450 else
12451 shared_flag='${wl}-bM:SRE'
12452 fi
12453 fi
12454 fi
12455
12456 export_dynamic_flag_spec='${wl}-bexpall'
12457 # It seems that -bexpall does not export symbols beginning with
12458 # underscore (_), so it is better to generate a list of symbols to export.
12459 always_export_symbols=yes
12460 if test "$aix_use_runtimelinking" = yes; then
12461 # Warning - without using the other runtime loading flags (-brtl),
12462 # -berok will link without error, but may produce a broken library.
12463 allow_undefined_flag='-berok'
12464 # Determine the default libpath from the value encoded in an
12465 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012467/* end confdefs.h. */
12468
12469int
12470main ()
12471{
12472
12473 ;
12474 return 0;
12475}
12476_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012477if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012478
12479lt_aix_libpath_sed='
12480 /Import File Strings/,/^$/ {
12481 /^0/ {
12482 s/^0 *\(.*\)$/\1/
12483 p
12484 }
12485 }'
12486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12487# Check for a 64-bit object if we didn't find anything.
12488if test -z "$aix_libpath"; then
12489 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12490fi
cristy3ed852e2009-09-05 21:47:34 +000012491fi
cristy8b350f62009-11-15 23:12:43 +000012492rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12495
12496 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012497 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 +000012498 else
12499 if test "$host_cpu" = ia64; then
12500 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12501 allow_undefined_flag="-z nodefs"
12502 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"
12503 else
12504 # Determine the default libpath from the value encoded in an
12505 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012507/* end confdefs.h. */
12508
12509int
12510main ()
12511{
12512
12513 ;
12514 return 0;
12515}
12516_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012517if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012518
12519lt_aix_libpath_sed='
12520 /Import File Strings/,/^$/ {
12521 /^0/ {
12522 s/^0 *\(.*\)$/\1/
12523 p
12524 }
12525 }'
12526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12527# Check for a 64-bit object if we didn't find anything.
12528if test -z "$aix_libpath"; then
12529 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12530fi
cristy3ed852e2009-09-05 21:47:34 +000012531fi
cristy8b350f62009-11-15 23:12:43 +000012532rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12535
12536 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12537 # Warning - without using the other run time loading flags,
12538 # -berok will link without error, but may produce a broken library.
12539 no_undefined_flag=' ${wl}-bernotok'
12540 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012541 # Exported symbols can be pulled into shared objects from archives
12542 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012543 archive_cmds_need_lc=yes
12544 # This is similar to how AIX traditionally builds its shared libraries.
12545 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'
12546 fi
12547 fi
12548 ;;
12549
12550 amigaos*)
12551 case $host_cpu in
12552 powerpc)
12553 # see comment about AmigaOS4 .so support
12554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12555 archive_expsym_cmds=''
12556 ;;
12557 m68k)
12558 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)'
12559 hardcode_libdir_flag_spec='-L$libdir'
12560 hardcode_minus_L=yes
12561 ;;
12562 esac
12563 ;;
12564
12565 bsdi[45]*)
12566 export_dynamic_flag_spec=-rdynamic
12567 ;;
12568
12569 cygwin* | mingw* | pw32* | cegcc*)
12570 # When not using gcc, we currently assume that we are using
12571 # Microsoft Visual C++.
12572 # hardcode_libdir_flag_spec is actually meaningless, as there is
12573 # no search path for DLLs.
12574 hardcode_libdir_flag_spec=' '
12575 allow_undefined_flag=unsupported
12576 # Tell ltmain to make .lib files, not .a files.
12577 libext=lib
12578 # Tell ltmain to make .dll files, not .so files.
12579 shrext_cmds=".dll"
12580 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012582 # The linker will automatically build a .lib file if we build a DLL.
12583 old_archive_from_new_cmds='true'
12584 # FIXME: Should let the user specify the lib program.
12585 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12586 fix_srcfile_path='`cygpath -w "$srcfile"`'
12587 enable_shared_with_static_runtimes=yes
12588 ;;
12589
12590 darwin* | rhapsody*)
12591
12592
12593 archive_cmds_need_lc=no
12594 hardcode_direct=no
12595 hardcode_automatic=yes
12596 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012597 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012598 link_all_deplibs=yes
12599 allow_undefined_flag="$_lt_dar_allow_undefined"
12600 case $cc_basename in
12601 ifort*) _lt_dar_can_shared=yes ;;
12602 *) _lt_dar_can_shared=$GCC ;;
12603 esac
12604 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012605 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012606 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12607 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12608 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}"
12609 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}"
12610
12611 else
12612 ld_shlibs=no
12613 fi
12614
12615 ;;
12616
12617 dgux*)
12618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12619 hardcode_libdir_flag_spec='-L$libdir'
12620 hardcode_shlibpath_var=no
12621 ;;
12622
12623 freebsd1*)
12624 ld_shlibs=no
12625 ;;
12626
12627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12628 # support. Future versions do this automatically, but an explicit c++rt0.o
12629 # does not break anything, and helps significantly (at the cost of a little
12630 # extra space).
12631 freebsd2.2*)
12632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12633 hardcode_libdir_flag_spec='-R$libdir'
12634 hardcode_direct=yes
12635 hardcode_shlibpath_var=no
12636 ;;
12637
12638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12639 freebsd2*)
12640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12641 hardcode_direct=yes
12642 hardcode_minus_L=yes
12643 hardcode_shlibpath_var=no
12644 ;;
12645
12646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12647 freebsd* | dragonfly*)
12648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12649 hardcode_libdir_flag_spec='-R$libdir'
12650 hardcode_direct=yes
12651 hardcode_shlibpath_var=no
12652 ;;
12653
12654 hpux9*)
12655 if test "$GCC" = yes; then
12656 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'
12657 else
12658 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'
12659 fi
12660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12661 hardcode_libdir_separator=:
12662 hardcode_direct=yes
12663
12664 # hardcode_minus_L: Not really in the search PATH,
12665 # but as the default location of the library.
12666 hardcode_minus_L=yes
12667 export_dynamic_flag_spec='${wl}-E'
12668 ;;
12669
12670 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12673 else
12674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12675 fi
12676 if test "$with_gnu_ld" = no; then
12677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12678 hardcode_libdir_flag_spec_ld='+b $libdir'
12679 hardcode_libdir_separator=:
12680 hardcode_direct=yes
12681 hardcode_direct_absolute=yes
12682 export_dynamic_flag_spec='${wl}-E'
12683 # hardcode_minus_L: Not really in the search PATH,
12684 # but as the default location of the library.
12685 hardcode_minus_L=yes
12686 fi
12687 ;;
12688
12689 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012691 case $host_cpu in
12692 hppa*64*)
12693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12694 ;;
12695 ia64*)
12696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12697 ;;
12698 *)
12699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12700 ;;
12701 esac
12702 else
12703 case $host_cpu in
12704 hppa*64*)
12705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 ;;
12707 ia64*)
12708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12709 ;;
12710 *)
cristy18304f92009-11-22 15:48:26 +000012711 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 +000012712 ;;
12713 esac
12714 fi
12715 if test "$with_gnu_ld" = no; then
12716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12717 hardcode_libdir_separator=:
12718
12719 case $host_cpu in
12720 hppa*64*|ia64*)
12721 hardcode_direct=no
12722 hardcode_shlibpath_var=no
12723 ;;
12724 *)
12725 hardcode_direct=yes
12726 hardcode_direct_absolute=yes
12727 export_dynamic_flag_spec='${wl}-E'
12728
12729 # hardcode_minus_L: Not really in the search PATH,
12730 # but as the default location of the library.
12731 hardcode_minus_L=yes
12732 ;;
12733 esac
12734 fi
12735 ;;
12736
12737 irix5* | irix6* | nonstopux*)
12738 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012739 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 +000012740 # Try to use the -exported_symbol ld option, if it does not
12741 # work, assume that -exports_file does not work either and
12742 # implicitly export all symbols.
12743 save_LDFLAGS="$LDFLAGS"
12744 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012747int foo(void) {}
12748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012749if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012750 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 +000012751
cristy3ed852e2009-09-05 21:47:34 +000012752fi
cristy8b350f62009-11-15 23:12:43 +000012753rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012755 LDFLAGS="$save_LDFLAGS"
12756 else
cristy18304f92009-11-22 15:48:26 +000012757 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'
12758 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 +000012759 fi
12760 archive_cmds_need_lc='no'
12761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12762 hardcode_libdir_separator=:
12763 inherit_rpath=yes
12764 link_all_deplibs=yes
12765 ;;
12766
12767 netbsd*)
12768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12770 else
12771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12772 fi
12773 hardcode_libdir_flag_spec='-R$libdir'
12774 hardcode_direct=yes
12775 hardcode_shlibpath_var=no
12776 ;;
12777
12778 newsos6)
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_direct=yes
12781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 hardcode_libdir_separator=:
12783 hardcode_shlibpath_var=no
12784 ;;
12785
12786 *nto* | *qnx*)
12787 ;;
12788
12789 openbsd*)
12790 if test -f /usr/libexec/ld.so; then
12791 hardcode_direct=yes
12792 hardcode_shlibpath_var=no
12793 hardcode_direct_absolute=yes
12794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12796 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12797 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12798 export_dynamic_flag_spec='${wl}-E'
12799 else
12800 case $host_os in
12801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_libdir_flag_spec='-R$libdir'
12804 ;;
12805 *)
12806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12807 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12808 ;;
12809 esac
12810 fi
12811 else
12812 ld_shlibs=no
12813 fi
12814 ;;
12815
12816 os2*)
12817 hardcode_libdir_flag_spec='-L$libdir'
12818 hardcode_minus_L=yes
12819 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012820 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 +000012821 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12822 ;;
12823
12824 osf3*)
12825 if test "$GCC" = yes; then
12826 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012827 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 +000012828 else
12829 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012830 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 +000012831 fi
12832 archive_cmds_need_lc='no'
12833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12834 hardcode_libdir_separator=:
12835 ;;
12836
12837 osf4* | osf5*) # as osf3* with the addition of -msym flag
12838 if test "$GCC" = yes; then
12839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012840 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 +000012841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12842 else
12843 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012844 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 +000012845 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 +000012846 $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 +000012847
12848 # Both c and cxx compiler support -rpath directly
12849 hardcode_libdir_flag_spec='-rpath $libdir'
12850 fi
12851 archive_cmds_need_lc='no'
12852 hardcode_libdir_separator=:
12853 ;;
12854
12855 solaris*)
12856 no_undefined_flag=' -z defs'
12857 if test "$GCC" = yes; then
12858 wlarc='${wl}'
12859 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12861 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12862 else
12863 case `$CC -V 2>&1` in
12864 *"Compilers 5.0"*)
12865 wlarc=''
12866 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12868 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12869 ;;
12870 *)
12871 wlarc='${wl}'
12872 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12874 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12875 ;;
12876 esac
12877 fi
12878 hardcode_libdir_flag_spec='-R$libdir'
12879 hardcode_shlibpath_var=no
12880 case $host_os in
12881 solaris2.[0-5] | solaris2.[0-5].*) ;;
12882 *)
12883 # The compiler driver will combine and reorder linker options,
12884 # but understands `-z linker_flag'. GCC discards it without `$wl',
12885 # but is careful enough not to reorder.
12886 # Supported since Solaris 2.6 (maybe 2.5.1?)
12887 if test "$GCC" = yes; then
12888 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12889 else
12890 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12891 fi
12892 ;;
12893 esac
12894 link_all_deplibs=yes
12895 ;;
12896
12897 sunos4*)
12898 if test "x$host_vendor" = xsequent; then
12899 # Use $CC to link under sequent, because it throws in some extra .o
12900 # files that make .init and .fini sections work.
12901 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12902 else
12903 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12904 fi
12905 hardcode_libdir_flag_spec='-L$libdir'
12906 hardcode_direct=yes
12907 hardcode_minus_L=yes
12908 hardcode_shlibpath_var=no
12909 ;;
12910
12911 sysv4)
12912 case $host_vendor in
12913 sni)
12914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12915 hardcode_direct=yes # is this really true???
12916 ;;
12917 siemens)
12918 ## LD is ld it makes a PLAMLIB
12919 ## CC just makes a GrossModule.
12920 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12921 reload_cmds='$CC -r -o $output$reload_objs'
12922 hardcode_direct=no
12923 ;;
12924 motorola)
12925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12926 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12927 ;;
12928 esac
12929 runpath_var='LD_RUN_PATH'
12930 hardcode_shlibpath_var=no
12931 ;;
12932
12933 sysv4.3*)
12934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12935 hardcode_shlibpath_var=no
12936 export_dynamic_flag_spec='-Bexport'
12937 ;;
12938
12939 sysv4*MP*)
12940 if test -d /usr/nec; then
12941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_shlibpath_var=no
12943 runpath_var=LD_RUN_PATH
12944 hardcode_runpath_var=yes
12945 ld_shlibs=yes
12946 fi
12947 ;;
12948
12949 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12950 no_undefined_flag='${wl}-z,text'
12951 archive_cmds_need_lc=no
12952 hardcode_shlibpath_var=no
12953 runpath_var='LD_RUN_PATH'
12954
12955 if test "$GCC" = yes; then
12956 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12957 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12958 else
12959 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12960 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12961 fi
12962 ;;
12963
12964 sysv5* | sco3.2v5* | sco5v6*)
12965 # Note: We can NOT use -z defs as we might desire, because we do not
12966 # link with -lc, and that would cause any symbols used from libc to
12967 # always be unresolved, which means just about no library would
12968 # ever link correctly. If we're not using GNU ld we use -z text
12969 # though, which does catch some bad symbols but isn't as heavy-handed
12970 # as -z defs.
12971 no_undefined_flag='${wl}-z,text'
12972 allow_undefined_flag='${wl}-z,nodefs'
12973 archive_cmds_need_lc=no
12974 hardcode_shlibpath_var=no
12975 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12976 hardcode_libdir_separator=':'
12977 link_all_deplibs=yes
12978 export_dynamic_flag_spec='${wl}-Bexport'
12979 runpath_var='LD_RUN_PATH'
12980
12981 if test "$GCC" = yes; then
12982 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12983 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984 else
12985 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12986 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12987 fi
12988 ;;
12989
12990 uts4*)
12991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992 hardcode_libdir_flag_spec='-L$libdir'
12993 hardcode_shlibpath_var=no
12994 ;;
12995
12996 *)
12997 ld_shlibs=no
12998 ;;
12999 esac
13000
13001 if test x$host_vendor = xsni; then
13002 case $host in
13003 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13004 export_dynamic_flag_spec='${wl}-Blargedynsym'
13005 ;;
13006 esac
13007 fi
13008 fi
13009
cristy8b350f62009-11-15 23:12:43 +000013010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013011$as_echo "$ld_shlibs" >&6; }
13012test "$ld_shlibs" = no && can_build_shared=no
13013
13014with_gnu_ld=$with_gnu_ld
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030#
13031# Do we need to explicitly link libc?
13032#
13033case "x$archive_cmds_need_lc" in
13034x|xyes)
13035 # Assume -lc should be added
13036 archive_cmds_need_lc=yes
13037
13038 if test "$enable_shared" = yes && test "$GCC" = yes; then
13039 case $archive_cmds in
13040 *'~'*)
13041 # FIXME: we may have to deal with multi-command sequences.
13042 ;;
13043 '$CC '*)
13044 # Test whether the compiler implicitly links with -lc since on some
13045 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13046 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013048$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013049 $RM conftest*
13050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013051
cristy18304f92009-11-22 15:48:26 +000013052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013053 (eval $ac_compile) 2>&5
13054 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013057 soname=conftest
13058 lib=conftest
13059 libobjs=conftest.$ac_objext
13060 deplibs=
13061 wl=$lt_prog_compiler_wl
13062 pic_flag=$lt_prog_compiler_pic
13063 compiler_flags=-v
13064 linker_flags=-v
13065 verstring=
13066 output_objdir=.
13067 libname=conftest
13068 lt_save_allow_undefined_flag=$allow_undefined_flag
13069 allow_undefined_flag=
13070 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 +000013071 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13072 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13074 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013075 then
13076 archive_cmds_need_lc=no
13077 else
13078 archive_cmds_need_lc=yes
13079 fi
13080 allow_undefined_flag=$lt_save_allow_undefined_flag
13081 else
13082 cat conftest.err 1>&5
13083 fi
13084 $RM conftest*
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13086$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013087 ;;
13088 esac
13089 fi
13090 ;;
13091esac
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
cristy8b350f62009-11-15 23:12:43 +000013249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013250$as_echo_n "checking dynamic linker characteristics... " >&6; }
13251
13252if test "$GCC" = yes; then
13253 case $host_os in
13254 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13255 *) lt_awk_arg="/^libraries:/" ;;
13256 esac
cristy18304f92009-11-22 15:48:26 +000013257 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13258 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013259 # if the path contains ";" then we assume it to be the separator
13260 # otherwise default to the standard path separator (i.e. ":") - it is
13261 # assumed that no part of a normal pathname contains ";" but that should
13262 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013263 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13264 else
13265 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13266 fi
cristy3ed852e2009-09-05 21:47:34 +000013267 # Ok, now we have the path, separated by spaces, we can step through it
13268 # and add multilib dir if necessary.
13269 lt_tmp_lt_search_path_spec=
13270 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13271 for lt_sys_path in $lt_search_path_spec; do
13272 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13274 else
13275 test -d "$lt_sys_path" && \
13276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13277 fi
13278 done
cristy18304f92009-11-22 15:48:26 +000013279 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013280BEGIN {RS=" "; FS="/|\n";} {
13281 lt_foo="";
13282 lt_count=0;
13283 for (lt_i = NF; lt_i > 0; lt_i--) {
13284 if ($lt_i != "" && $lt_i != ".") {
13285 if ($lt_i == "..") {
13286 lt_count++;
13287 } else {
13288 if (lt_count == 0) {
13289 lt_foo="/" $lt_i lt_foo;
13290 } else {
13291 lt_count--;
13292 }
13293 }
13294 }
13295 }
13296 if (lt_foo != "") { lt_freq[lt_foo]++; }
13297 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13298}'`
cristy18304f92009-11-22 15:48:26 +000013299 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013300else
13301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13302fi
13303library_names_spec=
13304libname_spec='lib$name'
13305soname_spec=
13306shrext_cmds=".so"
13307postinstall_cmds=
13308postuninstall_cmds=
13309finish_cmds=
13310finish_eval=
13311shlibpath_var=
13312shlibpath_overrides_runpath=unknown
13313version_type=none
13314dynamic_linker="$host_os ld.so"
13315sys_lib_dlsearch_path_spec="/lib /usr/lib"
13316need_lib_prefix=unknown
13317hardcode_into_libs=no
13318
13319# when you set need_version to no, make sure it does not cause -set_version
13320# flags to be left without arguments
13321need_version=unknown
13322
13323case $host_os in
13324aix3*)
13325 version_type=linux
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13327 shlibpath_var=LIBPATH
13328
13329 # AIX 3 has no versioning support, so we append a major version to the name.
13330 soname_spec='${libname}${release}${shared_ext}$major'
13331 ;;
13332
13333aix[4-9]*)
13334 version_type=linux
13335 need_lib_prefix=no
13336 need_version=no
13337 hardcode_into_libs=yes
13338 if test "$host_cpu" = ia64; then
13339 # AIX 5 supports IA64
13340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13341 shlibpath_var=LD_LIBRARY_PATH
13342 else
13343 # With GCC up to 2.95.x, collect2 would create an import file
13344 # for dependence libraries. The import file would start with
13345 # the line `#! .'. This would cause the generated library to
13346 # depend on `.', always an invalid library. This was fixed in
13347 # development snapshots of GCC prior to 3.0.
13348 case $host_os in
13349 aix4 | aix4.[01] | aix4.[01].*)
13350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13351 echo ' yes '
13352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13353 :
13354 else
13355 can_build_shared=no
13356 fi
13357 ;;
13358 esac
13359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13360 # soname into executable. Probably we can add versioning support to
13361 # collect2, so additional links can be useful in future.
13362 if test "$aix_use_runtimelinking" = yes; then
13363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13364 # instead of lib<name>.a to let people know that these are not
13365 # typical AIX shared libraries.
13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367 else
13368 # We preserve .a as extension for shared libraries through AIX4.2
13369 # and later when we are not doing run time linking.
13370 library_names_spec='${libname}${release}.a $libname.a'
13371 soname_spec='${libname}${release}${shared_ext}$major'
13372 fi
13373 shlibpath_var=LIBPATH
13374 fi
13375 ;;
13376
13377amigaos*)
13378 case $host_cpu in
13379 powerpc)
13380 # Since July 2007 AmigaOS4 officially supports .so libraries.
13381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383 ;;
13384 m68k)
13385 library_names_spec='$libname.ixlibrary $libname.a'
13386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013387 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 +000013388 ;;
13389 esac
13390 ;;
13391
13392beos*)
13393 library_names_spec='${libname}${shared_ext}'
13394 dynamic_linker="$host_os ld.so"
13395 shlibpath_var=LIBRARY_PATH
13396 ;;
13397
13398bsdi[45]*)
13399 version_type=linux
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13407 # the default ld.so.conf also contains /usr/contrib/lib and
13408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13409 # libtool to hard-code these into programs
13410 ;;
13411
13412cygwin* | mingw* | pw32* | cegcc*)
13413 version_type=windows
13414 shrext_cmds=".dll"
13415 need_version=no
13416 need_lib_prefix=no
13417
13418 case $GCC,$host_os in
13419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13420 library_names_spec='$libname.dll.a'
13421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13422 postinstall_cmds='base_file=`basename \${file}`~
13423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13424 dldir=$destdir/`dirname \$dlpath`~
13425 test -d \$dldir || mkdir -p \$dldir~
13426 $install_prog $dir/$dlname \$dldir/$dlname~
13427 chmod a+x \$dldir/$dlname~
13428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13430 fi'
13431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13432 dlpath=$dir/\$dldll~
13433 $RM \$dlpath'
13434 shlibpath_overrides_runpath=yes
13435
13436 case $host_os in
13437 cygwin*)
13438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013441 ;;
13442 mingw* | cegcc*)
13443 # MinGW DLLs use traditional 'lib' prefix
13444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013445 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13447 # It is most probably a Windows format PATH printed by
13448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13449 # path with ; separators, and with drive letters. We can handle the
13450 # drive letters (cygwin fileutils understands them), so leave them,
13451 # especially as we might pass files found there to a mingw objdump,
13452 # which wouldn't understand a cygwinified path. Ahh.
13453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13454 else
13455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13456 fi
cristy3ed852e2009-09-05 21:47:34 +000013457 ;;
13458 pw32*)
13459 # pw32 DLLs use 'pw' prefix rather than 'lib'
13460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13461 ;;
13462 esac
13463 ;;
13464
13465 *)
13466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13467 ;;
13468 esac
13469 dynamic_linker='Win32 ld.exe'
13470 # FIXME: first we should search . and the directory the executable is in
13471 shlibpath_var=PATH
13472 ;;
13473
13474darwin* | rhapsody*)
13475 dynamic_linker="$host_os dyld"
13476 version_type=darwin
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13480 soname_spec='${libname}${release}${major}$shared_ext'
13481 shlibpath_overrides_runpath=yes
13482 shlibpath_var=DYLD_LIBRARY_PATH
13483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13484
13485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13487 ;;
13488
13489dgux*)
13490 version_type=linux
13491 need_lib_prefix=no
13492 need_version=no
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 shlibpath_var=LD_LIBRARY_PATH
13496 ;;
13497
13498freebsd1*)
13499 dynamic_linker=no
13500 ;;
13501
13502freebsd* | dragonfly*)
13503 # DragonFly does not have aout. When/if they implement a new
13504 # versioning mechanism, adjust this.
13505 if test -x /usr/bin/objformat; then
13506 objformat=`/usr/bin/objformat`
13507 else
13508 case $host_os in
13509 freebsd[123]*) objformat=aout ;;
13510 *) objformat=elf ;;
13511 esac
13512 fi
13513 version_type=freebsd-$objformat
13514 case $version_type in
13515 freebsd-elf*)
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13517 need_version=no
13518 need_lib_prefix=no
13519 ;;
13520 freebsd-*)
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13522 need_version=yes
13523 ;;
13524 esac
13525 shlibpath_var=LD_LIBRARY_PATH
13526 case $host_os in
13527 freebsd2*)
13528 shlibpath_overrides_runpath=yes
13529 ;;
13530 freebsd3.[01]* | freebsdelf3.[01]*)
13531 shlibpath_overrides_runpath=yes
13532 hardcode_into_libs=yes
13533 ;;
13534 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13535 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13536 shlibpath_overrides_runpath=no
13537 hardcode_into_libs=yes
13538 ;;
13539 *) # from 4.6 on, and DragonFly
13540 shlibpath_overrides_runpath=yes
13541 hardcode_into_libs=yes
13542 ;;
13543 esac
13544 ;;
13545
13546gnu*)
13547 version_type=linux
13548 need_lib_prefix=no
13549 need_version=no
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13551 soname_spec='${libname}${release}${shared_ext}$major'
13552 shlibpath_var=LD_LIBRARY_PATH
13553 hardcode_into_libs=yes
13554 ;;
13555
13556hpux9* | hpux10* | hpux11*)
13557 # Give a soname corresponding to the major version so that dld.sl refuses to
13558 # link against other versions.
13559 version_type=sunos
13560 need_lib_prefix=no
13561 need_version=no
13562 case $host_cpu in
13563 ia64*)
13564 shrext_cmds='.so'
13565 hardcode_into_libs=yes
13566 dynamic_linker="$host_os dld.so"
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570 soname_spec='${libname}${release}${shared_ext}$major'
13571 if test "X$HPUX_IA64_MODE" = X32; then
13572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13573 else
13574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13575 fi
13576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13577 ;;
13578 hppa*64*)
13579 shrext_cmds='.sl'
13580 hardcode_into_libs=yes
13581 dynamic_linker="$host_os dld.sl"
13582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13585 soname_spec='${libname}${release}${shared_ext}$major'
13586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13588 ;;
13589 *)
13590 shrext_cmds='.sl'
13591 dynamic_linker="$host_os dld.sl"
13592 shlibpath_var=SHLIB_PATH
13593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 soname_spec='${libname}${release}${shared_ext}$major'
13596 ;;
13597 esac
cristy18304f92009-11-22 15:48:26 +000013598 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013599 postinstall_cmds='chmod 555 $lib'
13600 ;;
13601
13602interix[3-9]*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13609 shlibpath_var=LD_LIBRARY_PATH
13610 shlibpath_overrides_runpath=no
13611 hardcode_into_libs=yes
13612 ;;
13613
13614irix5* | irix6* | nonstopux*)
13615 case $host_os in
13616 nonstopux*) version_type=nonstopux ;;
13617 *)
13618 if test "$lt_cv_prog_gnu_ld" = yes; then
13619 version_type=linux
13620 else
13621 version_type=irix
13622 fi ;;
13623 esac
13624 need_lib_prefix=no
13625 need_version=no
13626 soname_spec='${libname}${release}${shared_ext}$major'
13627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13628 case $host_os in
13629 irix5* | nonstopux*)
13630 libsuff= shlibsuff=
13631 ;;
13632 *)
13633 case $LD in # libtool.m4 will add one of these switches to LD
13634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13635 libsuff= shlibsuff= libmagic=32-bit;;
13636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13637 libsuff=32 shlibsuff=N32 libmagic=N32;;
13638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13639 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13640 *) libsuff= shlibsuff= libmagic=never-match;;
13641 esac
13642 ;;
13643 esac
13644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13645 shlibpath_overrides_runpath=no
13646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13648 hardcode_into_libs=yes
13649 ;;
13650
13651# No shared lib support for Linux oldld, aout, or coff.
13652linux*oldld* | linux*aout* | linux*coff*)
13653 dynamic_linker=no
13654 ;;
13655
13656# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013657linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013658 version_type=linux
13659 need_lib_prefix=no
13660 need_version=no
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 shlibpath_overrides_runpath=no
13666 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013667 save_LDFLAGS=$LDFLAGS
13668 save_libdir=$libdir
13669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013672/* end confdefs.h. */
13673
13674int
13675main ()
13676{
13677
13678 ;
13679 return 0;
13680}
13681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013682if ac_fn_c_try_link "$LINENO"; then :
13683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013684 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013685fi
cristy3ed852e2009-09-05 21:47:34 +000013686fi
cristy8b350f62009-11-15 23:12:43 +000013687rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013689 LDFLAGS=$save_LDFLAGS
13690 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013691
13692 # This implies no fast_install, which is unacceptable.
13693 # Some rework will be needed to allow for fast_install
13694 # before this can be enabled.
13695 hardcode_into_libs=yes
13696
cristy679ed8e2009-12-05 02:37:41 +000013697 # Add ABI-specific directories to the system library path.
13698 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13699
cristy3ed852e2009-09-05 21:47:34 +000013700 # Append ld.so.conf contents to the search path
13701 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013702 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 +000013703 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013704 fi
13705
13706 # We used to test for /lib/ld.so.1 and disable shared libraries on
13707 # powerpc, because MkLinux only supported shared libraries with the
13708 # GNU dynamic linker. Since this was broken with cross compilers,
13709 # most powerpc-linux boxes support dynamic linking these days and
13710 # people can always --disable-shared, the test was removed, and we
13711 # assume the GNU/Linux dynamic linker is in use.
13712 dynamic_linker='GNU/Linux ld.so'
13713 ;;
13714
13715netbsd*)
13716 version_type=sunos
13717 need_lib_prefix=no
13718 need_version=no
13719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13722 dynamic_linker='NetBSD (a.out) ld.so'
13723 else
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13725 soname_spec='${libname}${release}${shared_ext}$major'
13726 dynamic_linker='NetBSD ld.elf_so'
13727 fi
13728 shlibpath_var=LD_LIBRARY_PATH
13729 shlibpath_overrides_runpath=yes
13730 hardcode_into_libs=yes
13731 ;;
13732
13733newsos6)
13734 version_type=linux
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=yes
13738 ;;
13739
13740*nto* | *qnx*)
13741 version_type=qnx
13742 need_lib_prefix=no
13743 need_version=no
13744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13745 soname_spec='${libname}${release}${shared_ext}$major'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=no
13748 hardcode_into_libs=yes
13749 dynamic_linker='ldqnx.so'
13750 ;;
13751
13752openbsd*)
13753 version_type=sunos
13754 sys_lib_dlsearch_path_spec="/usr/lib"
13755 need_lib_prefix=no
13756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13757 case $host_os in
13758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13759 *) need_version=no ;;
13760 esac
13761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13763 shlibpath_var=LD_LIBRARY_PATH
13764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13765 case $host_os in
13766 openbsd2.[89] | openbsd2.[89].*)
13767 shlibpath_overrides_runpath=no
13768 ;;
13769 *)
13770 shlibpath_overrides_runpath=yes
13771 ;;
13772 esac
13773 else
13774 shlibpath_overrides_runpath=yes
13775 fi
13776 ;;
13777
13778os2*)
13779 libname_spec='$name'
13780 shrext_cmds=".dll"
13781 need_lib_prefix=no
13782 library_names_spec='$libname${shared_ext} $libname.a'
13783 dynamic_linker='OS/2 ld.exe'
13784 shlibpath_var=LIBPATH
13785 ;;
13786
13787osf3* | osf4* | osf5*)
13788 version_type=osf
13789 need_lib_prefix=no
13790 need_version=no
13791 soname_spec='${libname}${release}${shared_ext}$major'
13792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13796 ;;
13797
13798rdos*)
13799 dynamic_linker=no
13800 ;;
13801
13802solaris*)
13803 version_type=linux
13804 need_lib_prefix=no
13805 need_version=no
13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807 soname_spec='${libname}${release}${shared_ext}$major'
13808 shlibpath_var=LD_LIBRARY_PATH
13809 shlibpath_overrides_runpath=yes
13810 hardcode_into_libs=yes
13811 # ldd complains unless libraries are executable
13812 postinstall_cmds='chmod +x $lib'
13813 ;;
13814
13815sunos4*)
13816 version_type=sunos
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13819 shlibpath_var=LD_LIBRARY_PATH
13820 shlibpath_overrides_runpath=yes
13821 if test "$with_gnu_ld" = yes; then
13822 need_lib_prefix=no
13823 fi
13824 need_version=yes
13825 ;;
13826
13827sysv4 | sysv4.3*)
13828 version_type=linux
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 case $host_vendor in
13833 sni)
13834 shlibpath_overrides_runpath=no
13835 need_lib_prefix=no
13836 runpath_var=LD_RUN_PATH
13837 ;;
13838 siemens)
13839 need_lib_prefix=no
13840 ;;
13841 motorola)
13842 need_lib_prefix=no
13843 need_version=no
13844 shlibpath_overrides_runpath=no
13845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13846 ;;
13847 esac
13848 ;;
13849
13850sysv4*MP*)
13851 if test -d /usr/nec ;then
13852 version_type=linux
13853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13854 soname_spec='$libname${shared_ext}.$major'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 fi
13857 ;;
13858
13859sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13860 version_type=freebsd-elf
13861 need_lib_prefix=no
13862 need_version=no
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13864 soname_spec='${libname}${release}${shared_ext}$major'
13865 shlibpath_var=LD_LIBRARY_PATH
13866 shlibpath_overrides_runpath=yes
13867 hardcode_into_libs=yes
13868 if test "$with_gnu_ld" = yes; then
13869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13870 else
13871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13872 case $host_os in
13873 sco3.2v5*)
13874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13875 ;;
13876 esac
13877 fi
13878 sys_lib_dlsearch_path_spec='/usr/lib'
13879 ;;
13880
13881tpf*)
13882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13883 version_type=linux
13884 need_lib_prefix=no
13885 need_version=no
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 shlibpath_overrides_runpath=no
13889 hardcode_into_libs=yes
13890 ;;
13891
13892uts4*)
13893 version_type=linux
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 soname_spec='${libname}${release}${shared_ext}$major'
13896 shlibpath_var=LD_LIBRARY_PATH
13897 ;;
13898
13899*)
13900 dynamic_linker=no
13901 ;;
13902esac
cristy8b350f62009-11-15 23:12:43 +000013903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013904$as_echo "$dynamic_linker" >&6; }
13905test "$dynamic_linker" = no && can_build_shared=no
13906
13907variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13908if test "$GCC" = yes; then
13909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13910fi
13911
13912if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13914fi
13915if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13917fi
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
cristy8b350f62009-11-15 23:12:43 +000014005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014006$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14007hardcode_action=
14008if test -n "$hardcode_libdir_flag_spec" ||
14009 test -n "$runpath_var" ||
14010 test "X$hardcode_automatic" = "Xyes" ; then
14011
14012 # We can hardcode non-existent directories.
14013 if test "$hardcode_direct" != no &&
14014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14015 # have to relink, otherwise we might link with an installed library
14016 # when we should be linking with a yet-to-be-installed one
14017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14018 test "$hardcode_minus_L" != no; then
14019 # Linking always hardcodes the temporary library directory.
14020 hardcode_action=relink
14021 else
14022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14023 hardcode_action=immediate
14024 fi
14025else
14026 # We cannot hardcode anything, or else we can only hardcode existing
14027 # directories.
14028 hardcode_action=unsupported
14029fi
cristy8b350f62009-11-15 23:12:43 +000014030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014031$as_echo "$hardcode_action" >&6; }
14032
14033if test "$hardcode_action" = relink ||
14034 test "$inherit_rpath" = yes; then
14035 # Fast installation is not supported
14036 enable_fast_install=no
14037elif test "$shlibpath_overrides_runpath" = yes ||
14038 test "$enable_shared" = no; then
14039 # Fast installation is not necessary
14040 enable_fast_install=needless
14041fi
14042
14043
14044
14045
14046
14047
14048 if test "x$enable_dlopen" != xyes; then
14049 enable_dlopen=unknown
14050 enable_dlopen_self=unknown
14051 enable_dlopen_self_static=unknown
14052else
14053 lt_cv_dlopen=no
14054 lt_cv_dlopen_libs=
14055
14056 case $host_os in
14057 beos*)
14058 lt_cv_dlopen="load_add_on"
14059 lt_cv_dlopen_libs=
14060 lt_cv_dlopen_self=yes
14061 ;;
14062
14063 mingw* | pw32* | cegcc*)
14064 lt_cv_dlopen="LoadLibrary"
14065 lt_cv_dlopen_libs=
14066 ;;
14067
14068 cygwin*)
14069 lt_cv_dlopen="dlopen"
14070 lt_cv_dlopen_libs=
14071 ;;
14072
14073 darwin*)
14074 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014076$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014077if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014078 $as_echo_n "(cached) " >&6
14079else
14080 ac_check_lib_save_LIBS=$LIBS
14081LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014083/* end confdefs.h. */
14084
14085/* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088#ifdef __cplusplus
14089extern "C"
14090#endif
14091char dlopen ();
14092int
14093main ()
14094{
14095return dlopen ();
14096 ;
14097 return 0;
14098}
14099_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014100if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014101 ac_cv_lib_dl_dlopen=yes
14102else
cristy8b350f62009-11-15 23:12:43 +000014103 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014104fi
cristy8b350f62009-11-15 23:12:43 +000014105rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014107LIBS=$ac_check_lib_save_LIBS
14108fi
cristy8b350f62009-11-15 23:12:43 +000014109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014111if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14113else
14114
14115 lt_cv_dlopen="dyld"
14116 lt_cv_dlopen_libs=
14117 lt_cv_dlopen_self=yes
14118
14119fi
14120
14121 ;;
14122
14123 *)
cristy8b350f62009-11-15 23:12:43 +000014124 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14125if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014126 lt_cv_dlopen="shl_load"
14127else
cristy8b350f62009-11-15 23:12:43 +000014128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014129$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014130if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014131 $as_echo_n "(cached) " >&6
14132else
14133 ac_check_lib_save_LIBS=$LIBS
14134LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014136/* end confdefs.h. */
14137
14138/* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14141#ifdef __cplusplus
14142extern "C"
14143#endif
14144char shl_load ();
14145int
14146main ()
14147{
14148return shl_load ();
14149 ;
14150 return 0;
14151}
14152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014154 ac_cv_lib_dld_shl_load=yes
14155else
cristy8b350f62009-11-15 23:12:43 +000014156 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014157fi
cristy8b350f62009-11-15 23:12:43 +000014158rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014160LIBS=$ac_check_lib_save_LIBS
14161fi
cristy8b350f62009-11-15 23:12:43 +000014162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014163$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014164if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014165 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14166else
cristy8b350f62009-11-15 23:12:43 +000014167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14168if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014169 lt_cv_dlopen="dlopen"
14170else
cristy8b350f62009-11-15 23:12:43 +000014171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014172$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014173if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014174 $as_echo_n "(cached) " >&6
14175else
14176 ac_check_lib_save_LIBS=$LIBS
14177LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014179/* end confdefs.h. */
14180
14181/* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184#ifdef __cplusplus
14185extern "C"
14186#endif
14187char dlopen ();
14188int
14189main ()
14190{
14191return dlopen ();
14192 ;
14193 return 0;
14194}
14195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014196if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014197 ac_cv_lib_dl_dlopen=yes
14198else
cristy8b350f62009-11-15 23:12:43 +000014199 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014200fi
cristy8b350f62009-11-15 23:12:43 +000014201rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014203LIBS=$ac_check_lib_save_LIBS
14204fi
cristy8b350f62009-11-15 23:12:43 +000014205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014206$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014207if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14209else
cristy8b350f62009-11-15 23:12:43 +000014210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014211$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014212if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014213 $as_echo_n "(cached) " >&6
14214else
14215 ac_check_lib_save_LIBS=$LIBS
14216LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014218/* end confdefs.h. */
14219
14220/* Override any GCC internal prototype to avoid an error.
14221 Use char because int might match the return type of a GCC
14222 builtin and then its argument prototype would still apply. */
14223#ifdef __cplusplus
14224extern "C"
14225#endif
14226char dlopen ();
14227int
14228main ()
14229{
14230return dlopen ();
14231 ;
14232 return 0;
14233}
14234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014236 ac_cv_lib_svld_dlopen=yes
14237else
cristy8b350f62009-11-15 23:12:43 +000014238 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014239fi
cristy8b350f62009-11-15 23:12:43 +000014240rm -f core conftest.err conftest.$ac_objext \
14241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014242LIBS=$ac_check_lib_save_LIBS
14243fi
cristy8b350f62009-11-15 23:12:43 +000014244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014245$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014246if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14248else
cristy8b350f62009-11-15 23:12:43 +000014249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014250$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014251if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014252 $as_echo_n "(cached) " >&6
14253else
14254 ac_check_lib_save_LIBS=$LIBS
14255LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014257/* end confdefs.h. */
14258
14259/* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
14262#ifdef __cplusplus
14263extern "C"
14264#endif
14265char dld_link ();
14266int
14267main ()
14268{
14269return dld_link ();
14270 ;
14271 return 0;
14272}
14273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014274if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014275 ac_cv_lib_dld_dld_link=yes
14276else
cristy8b350f62009-11-15 23:12:43 +000014277 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014278fi
cristy8b350f62009-11-15 23:12:43 +000014279rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014281LIBS=$ac_check_lib_save_LIBS
14282fi
cristy8b350f62009-11-15 23:12:43 +000014283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014284$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014285if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14287fi
14288
14289
14290fi
14291
14292
14293fi
14294
14295
14296fi
14297
14298
14299fi
14300
14301
14302fi
14303
14304 ;;
14305 esac
14306
14307 if test "x$lt_cv_dlopen" != xno; then
14308 enable_dlopen=yes
14309 else
14310 enable_dlopen=no
14311 fi
14312
14313 case $lt_cv_dlopen in
14314 dlopen)
14315 save_CPPFLAGS="$CPPFLAGS"
14316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14317
14318 save_LDFLAGS="$LDFLAGS"
14319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14320
14321 save_LIBS="$LIBS"
14322 LIBS="$lt_cv_dlopen_libs $LIBS"
14323
cristy8b350f62009-11-15 23:12:43 +000014324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014325$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014326if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014327 $as_echo_n "(cached) " >&6
14328else
14329 if test "$cross_compiling" = yes; then :
14330 lt_cv_dlopen_self=cross
14331else
14332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14333 lt_status=$lt_dlunknown
14334 cat > conftest.$ac_ext <<_LT_EOF
cristy99cc3002010-01-21 14:50:11 +000014335#line 14335 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014336#include "confdefs.h"
14337
14338#if HAVE_DLFCN_H
14339#include <dlfcn.h>
14340#endif
14341
14342#include <stdio.h>
14343
14344#ifdef RTLD_GLOBAL
14345# define LT_DLGLOBAL RTLD_GLOBAL
14346#else
14347# ifdef DL_GLOBAL
14348# define LT_DLGLOBAL DL_GLOBAL
14349# else
14350# define LT_DLGLOBAL 0
14351# endif
14352#endif
14353
14354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14355 find out it does not work in some platform. */
14356#ifndef LT_DLLAZY_OR_NOW
14357# ifdef RTLD_LAZY
14358# define LT_DLLAZY_OR_NOW RTLD_LAZY
14359# else
14360# ifdef DL_LAZY
14361# define LT_DLLAZY_OR_NOW DL_LAZY
14362# else
14363# ifdef RTLD_NOW
14364# define LT_DLLAZY_OR_NOW RTLD_NOW
14365# else
14366# ifdef DL_NOW
14367# define LT_DLLAZY_OR_NOW DL_NOW
14368# else
14369# define LT_DLLAZY_OR_NOW 0
14370# endif
14371# endif
14372# endif
14373# endif
14374#endif
14375
cristy18304f92009-11-22 15:48:26 +000014376void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014377int main ()
14378{
14379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14380 int status = $lt_dlunknown;
14381
14382 if (self)
14383 {
14384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014386 /* dlclose (self); */
14387 }
14388 else
14389 puts (dlerror ());
14390
14391 return status;
14392}
14393_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014395 (eval $ac_link) 2>&5
14396 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014399 (./conftest; exit; ) >&5 2>/dev/null
14400 lt_status=$?
14401 case x$lt_status in
14402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14405 esac
14406 else :
14407 # compilation failed
14408 lt_cv_dlopen_self=no
14409 fi
14410fi
14411rm -fr conftest*
14412
14413
14414fi
cristy8b350f62009-11-15 23:12:43 +000014415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014416$as_echo "$lt_cv_dlopen_self" >&6; }
14417
14418 if test "x$lt_cv_dlopen_self" = xyes; then
14419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014421$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014422if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014423 $as_echo_n "(cached) " >&6
14424else
14425 if test "$cross_compiling" = yes; then :
14426 lt_cv_dlopen_self_static=cross
14427else
14428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14429 lt_status=$lt_dlunknown
14430 cat > conftest.$ac_ext <<_LT_EOF
cristy99cc3002010-01-21 14:50:11 +000014431#line 14431 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014432#include "confdefs.h"
14433
14434#if HAVE_DLFCN_H
14435#include <dlfcn.h>
14436#endif
14437
14438#include <stdio.h>
14439
14440#ifdef RTLD_GLOBAL
14441# define LT_DLGLOBAL RTLD_GLOBAL
14442#else
14443# ifdef DL_GLOBAL
14444# define LT_DLGLOBAL DL_GLOBAL
14445# else
14446# define LT_DLGLOBAL 0
14447# endif
14448#endif
14449
14450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14451 find out it does not work in some platform. */
14452#ifndef LT_DLLAZY_OR_NOW
14453# ifdef RTLD_LAZY
14454# define LT_DLLAZY_OR_NOW RTLD_LAZY
14455# else
14456# ifdef DL_LAZY
14457# define LT_DLLAZY_OR_NOW DL_LAZY
14458# else
14459# ifdef RTLD_NOW
14460# define LT_DLLAZY_OR_NOW RTLD_NOW
14461# else
14462# ifdef DL_NOW
14463# define LT_DLLAZY_OR_NOW DL_NOW
14464# else
14465# define LT_DLLAZY_OR_NOW 0
14466# endif
14467# endif
14468# endif
14469# endif
14470#endif
14471
cristy18304f92009-11-22 15:48:26 +000014472void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014473int main ()
14474{
14475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14476 int status = $lt_dlunknown;
14477
14478 if (self)
14479 {
14480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014481 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014482 /* dlclose (self); */
14483 }
14484 else
14485 puts (dlerror ());
14486
14487 return status;
14488}
14489_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014491 (eval $ac_link) 2>&5
14492 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014495 (./conftest; exit; ) >&5 2>/dev/null
14496 lt_status=$?
14497 case x$lt_status in
14498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14501 esac
14502 else :
14503 # compilation failed
14504 lt_cv_dlopen_self_static=no
14505 fi
14506fi
14507rm -fr conftest*
14508
14509
14510fi
cristy8b350f62009-11-15 23:12:43 +000014511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014512$as_echo "$lt_cv_dlopen_self_static" >&6; }
14513 fi
14514
14515 CPPFLAGS="$save_CPPFLAGS"
14516 LDFLAGS="$save_LDFLAGS"
14517 LIBS="$save_LIBS"
14518 ;;
14519 esac
14520
14521 case $lt_cv_dlopen_self in
14522 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14523 *) enable_dlopen_self=unknown ;;
14524 esac
14525
14526 case $lt_cv_dlopen_self_static in
14527 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14528 *) enable_dlopen_self_static=unknown ;;
14529 esac
14530fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548striplib=
14549old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014551$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14552if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14553 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14554 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014556$as_echo "yes" >&6; }
14557else
14558# FIXME - insert some real tests, host_os isn't really good enough
14559 case $host_os in
14560 darwin*)
14561 if test -n "$STRIP" ; then
14562 striplib="$STRIP -x"
14563 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014565$as_echo "yes" >&6; }
14566 else
cristy8b350f62009-11-15 23:12:43 +000014567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014568$as_echo "no" >&6; }
14569 fi
14570 ;;
14571 *)
cristy8b350f62009-11-15 23:12:43 +000014572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014573$as_echo "no" >&6; }
14574 ;;
14575 esac
14576fi
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014591$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014593$as_echo "$can_build_shared" >&6; }
14594
cristy8b350f62009-11-15 23:12:43 +000014595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014596$as_echo_n "checking whether to build shared libraries... " >&6; }
14597 test "$can_build_shared" = "no" && enable_shared=no
14598
14599 # On AIX, shared libraries and static libraries use the same namespace, and
14600 # are all built from PIC.
14601 case $host_os in
14602 aix3*)
14603 test "$enable_shared" = yes && enable_static=no
14604 if test -n "$RANLIB"; then
14605 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14606 postinstall_cmds='$RANLIB $lib'
14607 fi
14608 ;;
14609
14610 aix[4-9]*)
14611 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14612 test "$enable_shared" = yes && enable_static=no
14613 fi
14614 ;;
14615 esac
cristy8b350f62009-11-15 23:12:43 +000014616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014617$as_echo "$enable_shared" >&6; }
14618
cristy8b350f62009-11-15 23:12:43 +000014619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014620$as_echo_n "checking whether to build static libraries... " >&6; }
14621 # Make sure either enable_shared or enable_static is yes.
14622 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014624$as_echo "$enable_static" >&6; }
14625
14626
14627
14628
14629fi
14630ac_ext=c
14631ac_cpp='$CPP $CPPFLAGS'
14632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14634ac_compiler_gnu=$ac_cv_c_compiler_gnu
14635
14636CC="$lt_save_CC"
14637
14638
14639ac_ext=cpp
14640ac_cpp='$CXXCPP $CPPFLAGS'
14641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14644
14645archive_cmds_need_lc_CXX=no
14646allow_undefined_flag_CXX=
14647always_export_symbols_CXX=no
14648archive_expsym_cmds_CXX=
14649compiler_needs_object_CXX=no
14650export_dynamic_flag_spec_CXX=
14651hardcode_direct_CXX=no
14652hardcode_direct_absolute_CXX=no
14653hardcode_libdir_flag_spec_CXX=
14654hardcode_libdir_flag_spec_ld_CXX=
14655hardcode_libdir_separator_CXX=
14656hardcode_minus_L_CXX=no
14657hardcode_shlibpath_var_CXX=unsupported
14658hardcode_automatic_CXX=no
14659inherit_rpath_CXX=no
14660module_cmds_CXX=
14661module_expsym_cmds_CXX=
14662link_all_deplibs_CXX=unknown
14663old_archive_cmds_CXX=$old_archive_cmds
14664no_undefined_flag_CXX=
14665whole_archive_flag_spec_CXX=
14666enable_shared_with_static_runtimes_CXX=no
14667
14668# Source file extension for C++ test sources.
14669ac_ext=cpp
14670
14671# Object file extension for compiled C++ test sources.
14672objext=o
14673objext_CXX=$objext
14674
14675# No sense in running all these tests if we already determined that
14676# the CXX compiler isn't working. Some variables (like enable_shared)
14677# are currently assumed to apply to all compilers on this platform,
14678# and will be corrupted by setting them based on a non-working compiler.
14679if test "$_lt_caught_CXX_error" != yes; then
14680 # Code to be used in simple compile tests
14681 lt_simple_compile_test_code="int some_variable = 0;"
14682
14683 # Code to be used in simple link tests
14684 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14685
14686 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14687
14688
14689
14690
14691
14692
14693# If no C compiler was specified, use CC.
14694LTCC=${LTCC-"$CC"}
14695
14696# If no C compiler flags were specified, use CFLAGS.
14697LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14698
14699# Allow CC to be a program name with arguments.
14700compiler=$CC
14701
14702
14703 # save warnings/boilerplate of simple test code
14704 ac_outfile=conftest.$ac_objext
14705echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14706eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14707_lt_compiler_boilerplate=`cat conftest.err`
14708$RM conftest*
14709
14710 ac_outfile=conftest.$ac_objext
14711echo "$lt_simple_link_test_code" >conftest.$ac_ext
14712eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14713_lt_linker_boilerplate=`cat conftest.err`
14714$RM -r conftest*
14715
14716
14717 # Allow CC to be a program name with arguments.
14718 lt_save_CC=$CC
14719 lt_save_LD=$LD
14720 lt_save_GCC=$GCC
14721 GCC=$GXX
14722 lt_save_with_gnu_ld=$with_gnu_ld
14723 lt_save_path_LD=$lt_cv_path_LD
14724 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14725 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14726 else
14727 $as_unset lt_cv_prog_gnu_ld
14728 fi
14729 if test -n "${lt_cv_path_LDCXX+set}"; then
14730 lt_cv_path_LD=$lt_cv_path_LDCXX
14731 else
14732 $as_unset lt_cv_path_LD
14733 fi
14734 test -z "${LDCXX+set}" || LD=$LDCXX
14735 CC=${CXX-"c++"}
14736 compiler=$CC
14737 compiler_CXX=$CC
14738 for cc_temp in $compiler""; do
14739 case $cc_temp in
14740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14742 \-*) ;;
14743 *) break;;
14744 esac
14745done
cristy18304f92009-11-22 15:48:26 +000014746cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014747
14748
14749 if test -n "$compiler"; then
14750 # We don't want -fno-exception when compiling C++ code, so set the
14751 # no_builtin_flag separately
14752 if test "$GXX" = yes; then
14753 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14754 else
14755 lt_prog_compiler_no_builtin_flag_CXX=
14756 fi
14757
14758 if test "$GXX" = yes; then
14759 # Set up default GNU C++ configuration
14760
14761
14762
14763# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014764if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014765 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14766else
14767 with_gnu_ld=no
14768fi
14769
14770ac_prog=ld
14771if test "$GCC" = yes; then
14772 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014774$as_echo_n "checking for ld used by $CC... " >&6; }
14775 case $host in
14776 *-*-mingw*)
14777 # gcc leaves a trailing carriage return which upsets mingw
14778 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14779 *)
14780 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14781 esac
14782 case $ac_prog in
14783 # Accept absolute paths.
14784 [\\/]* | ?:[\\/]*)
14785 re_direlt='/[^/][^/]*/\.\./'
14786 # Canonicalize the pathname of ld
14787 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14788 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14789 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14790 done
14791 test -z "$LD" && LD="$ac_prog"
14792 ;;
14793 "")
14794 # If it fails, then pretend we aren't using GCC.
14795 ac_prog=ld
14796 ;;
14797 *)
14798 # If it is relative, then search for the first ld in PATH.
14799 with_gnu_ld=unknown
14800 ;;
14801 esac
14802elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014804$as_echo_n "checking for GNU ld... " >&6; }
14805else
cristy8b350f62009-11-15 23:12:43 +000014806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014807$as_echo_n "checking for non-GNU ld... " >&6; }
14808fi
cristy8b350f62009-11-15 23:12:43 +000014809if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014810 $as_echo_n "(cached) " >&6
14811else
14812 if test -z "$LD"; then
14813 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14814 for ac_dir in $PATH; do
14815 IFS="$lt_save_ifs"
14816 test -z "$ac_dir" && ac_dir=.
14817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14818 lt_cv_path_LD="$ac_dir/$ac_prog"
14819 # Check to see if the program is GNU ld. I'd rather use --version,
14820 # but apparently some variants of GNU ld only accept -v.
14821 # Break only if it was the GNU/non-GNU ld that we prefer.
14822 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14823 *GNU* | *'with BFD'*)
14824 test "$with_gnu_ld" != no && break
14825 ;;
14826 *)
14827 test "$with_gnu_ld" != yes && break
14828 ;;
14829 esac
14830 fi
14831 done
14832 IFS="$lt_save_ifs"
14833else
14834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14835fi
14836fi
14837
14838LD="$lt_cv_path_LD"
14839if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014841$as_echo "$LD" >&6; }
14842else
cristy8b350f62009-11-15 23:12:43 +000014843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014844$as_echo "no" >&6; }
14845fi
cristy8b350f62009-11-15 23:12:43 +000014846test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014848$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014849if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014850 $as_echo_n "(cached) " >&6
14851else
14852 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14853case `$LD -v 2>&1 </dev/null` in
14854*GNU* | *'with BFD'*)
14855 lt_cv_prog_gnu_ld=yes
14856 ;;
14857*)
14858 lt_cv_prog_gnu_ld=no
14859 ;;
14860esac
14861fi
cristy8b350f62009-11-15 23:12:43 +000014862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014863$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14864with_gnu_ld=$lt_cv_prog_gnu_ld
14865
14866
14867
14868
14869
14870
14871
14872 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14873 # archiving commands below assume that GNU ld is being used.
14874 if test "$with_gnu_ld" = yes; then
14875 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 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'
14877
14878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14879 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14880
14881 # If archive_cmds runs LD, not CC, wlarc should be empty
14882 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14883 # investigate it a little bit more. (MM)
14884 wlarc='${wl}'
14885
14886 # ancient GNU ld didn't support --whole-archive et. al.
14887 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14888 $GREP 'no-whole-archive' > /dev/null; then
14889 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14890 else
14891 whole_archive_flag_spec_CXX=
14892 fi
14893 else
14894 with_gnu_ld=no
14895 wlarc=
14896
14897 # A generic and very simple default shared library creation
14898 # command for GNU C++ for the case where it uses the native
14899 # linker, instead of GNU ld. If possible, this setting should
14900 # overridden to take advantage of the native linker features on
14901 # the platform it is being used on.
14902 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14903 fi
14904
14905 # Commands to make compiler produce verbose output that lists
14906 # what "hidden" libraries, object files and flags are used when
14907 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000014908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014909
14910 else
14911 GXX=no
14912 with_gnu_ld=no
14913 wlarc=
14914 fi
14915
14916 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000014917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014918$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14919 ld_shlibs_CXX=yes
14920 case $host_os in
14921 aix3*)
14922 # FIXME: insert proper C++ library support
14923 ld_shlibs_CXX=no
14924 ;;
14925 aix[4-9]*)
14926 if test "$host_cpu" = ia64; then
14927 # On IA64, the linker does run time linking by default, so we don't
14928 # have to do anything special.
14929 aix_use_runtimelinking=no
14930 exp_sym_flag='-Bexport'
14931 no_entry_flag=""
14932 else
14933 aix_use_runtimelinking=no
14934
14935 # Test if we are trying to use run time linking or normal
14936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14937 # need to do runtime linking.
14938 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14939 for ld_flag in $LDFLAGS; do
14940 case $ld_flag in
14941 *-brtl*)
14942 aix_use_runtimelinking=yes
14943 break
14944 ;;
14945 esac
14946 done
14947 ;;
14948 esac
14949
14950 exp_sym_flag='-bexport'
14951 no_entry_flag='-bnoentry'
14952 fi
14953
14954 # When large executables or shared objects are built, AIX ld can
14955 # have problems creating the table of contents. If linking a library
14956 # or program results in "error TOC overflow" add -mminimal-toc to
14957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14959
14960 archive_cmds_CXX=''
14961 hardcode_direct_CXX=yes
14962 hardcode_direct_absolute_CXX=yes
14963 hardcode_libdir_separator_CXX=':'
14964 link_all_deplibs_CXX=yes
14965 file_list_spec_CXX='${wl}-f,'
14966
14967 if test "$GXX" = yes; then
14968 case $host_os in aix4.[012]|aix4.[012].*)
14969 # We only want to do this on AIX 4.2 and lower, the check
14970 # below for broken collect2 doesn't work under 4.3+
14971 collect2name=`${CC} -print-prog-name=collect2`
14972 if test -f "$collect2name" &&
14973 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14974 then
14975 # We have reworked collect2
14976 :
14977 else
14978 # We have old collect2
14979 hardcode_direct_CXX=unsupported
14980 # It fails to find uninstalled libraries when the uninstalled
14981 # path is not listed in the libpath. Setting hardcode_minus_L
14982 # to unsupported forces relinking
14983 hardcode_minus_L_CXX=yes
14984 hardcode_libdir_flag_spec_CXX='-L$libdir'
14985 hardcode_libdir_separator_CXX=
14986 fi
14987 esac
14988 shared_flag='-shared'
14989 if test "$aix_use_runtimelinking" = yes; then
14990 shared_flag="$shared_flag "'${wl}-G'
14991 fi
14992 else
14993 # not using gcc
14994 if test "$host_cpu" = ia64; then
14995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14996 # chokes on -Wl,-G. The following line is correct:
14997 shared_flag='-G'
14998 else
14999 if test "$aix_use_runtimelinking" = yes; then
15000 shared_flag='${wl}-G'
15001 else
15002 shared_flag='${wl}-bM:SRE'
15003 fi
15004 fi
15005 fi
15006
15007 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15008 # It seems that -bexpall does not export symbols beginning with
15009 # underscore (_), so it is better to generate a list of symbols to
15010 # export.
15011 always_export_symbols_CXX=yes
15012 if test "$aix_use_runtimelinking" = yes; then
15013 # Warning - without using the other runtime loading flags (-brtl),
15014 # -berok will link without error, but may produce a broken library.
15015 allow_undefined_flag_CXX='-berok'
15016 # Determine the default libpath from the value encoded in an empty
15017 # executable.
cristy8b350f62009-11-15 23:12:43 +000015018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015019/* end confdefs.h. */
15020
15021int
15022main ()
15023{
15024
15025 ;
15026 return 0;
15027}
15028_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015029if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015030
15031lt_aix_libpath_sed='
15032 /Import File Strings/,/^$/ {
15033 /^0/ {
15034 s/^0 *\(.*\)$/\1/
15035 p
15036 }
15037 }'
15038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15039# Check for a 64-bit object if we didn't find anything.
15040if test -z "$aix_libpath"; then
15041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15042fi
cristy3ed852e2009-09-05 21:47:34 +000015043fi
cristy8b350f62009-11-15 23:12:43 +000015044rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15047
15048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15049
cristy18304f92009-11-22 15:48:26 +000015050 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 +000015051 else
15052 if test "$host_cpu" = ia64; then
15053 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15054 allow_undefined_flag_CXX="-z nodefs"
15055 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"
15056 else
15057 # Determine the default libpath from the value encoded in an
15058 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015060/* end confdefs.h. */
15061
15062int
15063main ()
15064{
15065
15066 ;
15067 return 0;
15068}
15069_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015070if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015071
15072lt_aix_libpath_sed='
15073 /Import File Strings/,/^$/ {
15074 /^0/ {
15075 s/^0 *\(.*\)$/\1/
15076 p
15077 }
15078 }'
15079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15080# Check for a 64-bit object if we didn't find anything.
15081if test -z "$aix_libpath"; then
15082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15083fi
cristy3ed852e2009-09-05 21:47:34 +000015084fi
cristy8b350f62009-11-15 23:12:43 +000015085rm -f core conftest.err conftest.$ac_objext \
15086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15088
15089 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15090 # Warning - without using the other run time loading flags,
15091 # -berok will link without error, but may produce a broken library.
15092 no_undefined_flag_CXX=' ${wl}-bernotok'
15093 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015094 # Exported symbols can be pulled into shared objects from archives
15095 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015096 archive_cmds_need_lc_CXX=yes
15097 # This is similar to how AIX traditionally builds its shared
15098 # libraries.
15099 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'
15100 fi
15101 fi
15102 ;;
15103
15104 beos*)
15105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15106 allow_undefined_flag_CXX=unsupported
15107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15108 # support --undefined. This deserves some investigation. FIXME
15109 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15110 else
15111 ld_shlibs_CXX=no
15112 fi
15113 ;;
15114
15115 chorus*)
15116 case $cc_basename in
15117 *)
15118 # FIXME: insert proper C++ library support
15119 ld_shlibs_CXX=no
15120 ;;
15121 esac
15122 ;;
15123
15124 cygwin* | mingw* | pw32* | cegcc*)
15125 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15126 # as there is no search path for DLLs.
15127 hardcode_libdir_flag_spec_CXX='-L$libdir'
15128 allow_undefined_flag_CXX=unsupported
15129 always_export_symbols_CXX=no
15130 enable_shared_with_static_runtimes_CXX=yes
15131
15132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15133 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'
15134 # If the export-symbols file already is a .def file (1st line
15135 # is EXPORTS), use it as is; otherwise, prepend...
15136 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15137 cp $export_symbols $output_objdir/$soname.def;
15138 else
15139 echo EXPORTS > $output_objdir/$soname.def;
15140 cat $export_symbols >> $output_objdir/$soname.def;
15141 fi~
15142 $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'
15143 else
15144 ld_shlibs_CXX=no
15145 fi
15146 ;;
15147 darwin* | rhapsody*)
15148
15149
15150 archive_cmds_need_lc_CXX=no
15151 hardcode_direct_CXX=no
15152 hardcode_automatic_CXX=yes
15153 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015154 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015155 link_all_deplibs_CXX=yes
15156 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15157 case $cc_basename in
15158 ifort*) _lt_dar_can_shared=yes ;;
15159 *) _lt_dar_can_shared=$GCC ;;
15160 esac
15161 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015162 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015163 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}"
15164 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15165 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}"
15166 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}"
15167 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15168 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}"
15169 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}"
15170 fi
15171
15172 else
15173 ld_shlibs_CXX=no
15174 fi
15175
15176 ;;
15177
15178 dgux*)
15179 case $cc_basename in
15180 ec++*)
15181 # FIXME: insert proper C++ library support
15182 ld_shlibs_CXX=no
15183 ;;
15184 ghcx*)
15185 # Green Hills C++ Compiler
15186 # FIXME: insert proper C++ library support
15187 ld_shlibs_CXX=no
15188 ;;
15189 *)
15190 # FIXME: insert proper C++ library support
15191 ld_shlibs_CXX=no
15192 ;;
15193 esac
15194 ;;
15195
15196 freebsd[12]*)
15197 # C++ shared libraries reported to be fairly broken before
15198 # switch to ELF
15199 ld_shlibs_CXX=no
15200 ;;
15201
15202 freebsd-elf*)
15203 archive_cmds_need_lc_CXX=no
15204 ;;
15205
15206 freebsd* | dragonfly*)
15207 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15208 # conventions
15209 ld_shlibs_CXX=yes
15210 ;;
15211
15212 gnu*)
15213 ;;
15214
15215 hpux9*)
15216 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15217 hardcode_libdir_separator_CXX=:
15218 export_dynamic_flag_spec_CXX='${wl}-E'
15219 hardcode_direct_CXX=yes
15220 hardcode_minus_L_CXX=yes # Not in the search PATH,
15221 # but as the default
15222 # location of the library.
15223
15224 case $cc_basename in
15225 CC*)
15226 # FIXME: insert proper C++ library support
15227 ld_shlibs_CXX=no
15228 ;;
15229 aCC*)
15230 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'
15231 # Commands to make compiler produce verbose output that lists
15232 # what "hidden" libraries, object files and flags are used when
15233 # linking a shared library.
15234 #
15235 # There doesn't appear to be a way to prevent this compiler from
15236 # explicitly linking system object files so we need to strip them
15237 # from the output so that they don't get included in the library
15238 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015239 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 +000015240 ;;
15241 *)
15242 if test "$GXX" = yes; then
15243 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'
15244 else
15245 # FIXME: insert proper C++ library support
15246 ld_shlibs_CXX=no
15247 fi
15248 ;;
15249 esac
15250 ;;
15251
15252 hpux10*|hpux11*)
15253 if test $with_gnu_ld = no; then
15254 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15255 hardcode_libdir_separator_CXX=:
15256
15257 case $host_cpu in
15258 hppa*64*|ia64*)
15259 ;;
15260 *)
15261 export_dynamic_flag_spec_CXX='${wl}-E'
15262 ;;
15263 esac
15264 fi
15265 case $host_cpu in
15266 hppa*64*|ia64*)
15267 hardcode_direct_CXX=no
15268 hardcode_shlibpath_var_CXX=no
15269 ;;
15270 *)
15271 hardcode_direct_CXX=yes
15272 hardcode_direct_absolute_CXX=yes
15273 hardcode_minus_L_CXX=yes # Not in the search PATH,
15274 # but as the default
15275 # location of the library.
15276 ;;
15277 esac
15278
15279 case $cc_basename in
15280 CC*)
15281 # FIXME: insert proper C++ library support
15282 ld_shlibs_CXX=no
15283 ;;
15284 aCC*)
15285 case $host_cpu in
15286 hppa*64*)
15287 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15288 ;;
15289 ia64*)
15290 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15291 ;;
15292 *)
15293 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15294 ;;
15295 esac
15296 # Commands to make compiler produce verbose output that lists
15297 # what "hidden" libraries, object files and flags are used when
15298 # linking a shared library.
15299 #
15300 # There doesn't appear to be a way to prevent this compiler from
15301 # explicitly linking system object files so we need to strip them
15302 # from the output so that they don't get included in the library
15303 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015304 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 +000015305 ;;
15306 *)
15307 if test "$GXX" = yes; then
15308 if test $with_gnu_ld = no; then
15309 case $host_cpu in
15310 hppa*64*)
15311 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15312 ;;
15313 ia64*)
15314 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15315 ;;
15316 *)
15317 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'
15318 ;;
15319 esac
15320 fi
15321 else
15322 # FIXME: insert proper C++ library support
15323 ld_shlibs_CXX=no
15324 fi
15325 ;;
15326 esac
15327 ;;
15328
15329 interix[3-9]*)
15330 hardcode_direct_CXX=no
15331 hardcode_shlibpath_var_CXX=no
15332 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15333 export_dynamic_flag_spec_CXX='${wl}-E'
15334 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15335 # Instead, shared libraries are loaded at an image base (0x10000000 by
15336 # default) and relocated if they conflict, which is a slow very memory
15337 # consuming and fragmenting process. To avoid this, we pick a random,
15338 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15339 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15340 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'
15341 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'
15342 ;;
15343 irix5* | irix6*)
15344 case $cc_basename in
15345 CC*)
15346 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015347 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 +000015348
15349 # Archives containing C++ object files must be created using
15350 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15351 # necessary to make sure instantiated templates are included
15352 # in the archive.
15353 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15354 ;;
15355 *)
15356 if test "$GXX" = yes; then
15357 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015358 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 +000015359 else
cristy18304f92009-11-22 15:48:26 +000015360 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 +000015361 fi
15362 fi
15363 link_all_deplibs_CXX=yes
15364 ;;
15365 esac
15366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15367 hardcode_libdir_separator_CXX=:
15368 inherit_rpath_CXX=yes
15369 ;;
15370
cristy18304f92009-11-22 15:48:26 +000015371 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015372 case $cc_basename in
15373 KCC*)
15374 # Kuck and Associates, Inc. (KAI) C++ Compiler
15375
15376 # KCC will only create a shared library if the output file
15377 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15378 # to its proper name (with version) after linking.
15379 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'
15380 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'
15381 # Commands to make compiler produce verbose output that lists
15382 # what "hidden" libraries, object files and flags are used when
15383 # linking a shared library.
15384 #
15385 # There doesn't appear to be a way to prevent this compiler from
15386 # explicitly linking system object files so we need to strip them
15387 # from the output so that they don't get included in the library
15388 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015389 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 +000015390
15391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15392 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15393
15394 # Archives containing C++ object files must be created using
15395 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15396 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15397 ;;
15398 icpc* | ecpc* )
15399 # Intel C++
15400 with_gnu_ld=yes
15401 # version 8.0 and above of icpc choke on multiply defined symbols
15402 # if we add $predep_objects and $postdep_objects, however 7.1 and
15403 # earlier do not add the objects themselves.
15404 case `$CC -V 2>&1` in
15405 *"Version 7."*)
15406 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15407 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'
15408 ;;
15409 *) # Version 8.0 or newer
15410 tmp_idyn=
15411 case $host_cpu in
15412 ia64*) tmp_idyn=' -i_dynamic';;
15413 esac
15414 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 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'
15416 ;;
15417 esac
15418 archive_cmds_need_lc_CXX=no
15419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15420 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15421 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15422 ;;
15423 pgCC* | pgcpp*)
15424 # Portland Group C++ compiler
15425 case `$CC -V` in
15426 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15427 prelink_cmds_CXX='tpldir=Template.dir~
15428 rm -rf $tpldir~
15429 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15430 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15431 old_archive_cmds_CXX='tpldir=Template.dir~
15432 rm -rf $tpldir~
15433 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15434 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15435 $RANLIB $oldlib'
15436 archive_cmds_CXX='tpldir=Template.dir~
15437 rm -rf $tpldir~
15438 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15439 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15440 archive_expsym_cmds_CXX='tpldir=Template.dir~
15441 rm -rf $tpldir~
15442 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15443 $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'
15444 ;;
15445 *) # Version 6 will use weak symbols
15446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15447 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'
15448 ;;
15449 esac
15450
15451 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15452 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015453 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 +000015454 ;;
15455 cxx*)
15456 # Compaq C++
15457 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458 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'
15459
15460 runpath_var=LD_RUN_PATH
15461 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15462 hardcode_libdir_separator_CXX=:
15463
15464 # Commands to make compiler produce verbose output that lists
15465 # what "hidden" libraries, object files and flags are used when
15466 # linking a shared library.
15467 #
15468 # There doesn't appear to be a way to prevent this compiler from
15469 # explicitly linking system object files so we need to strip them
15470 # from the output so that they don't get included in the library
15471 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015472 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 +000015473 ;;
cristy18304f92009-11-22 15:48:26 +000015474 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015475 # IBM XL 8.0 on PPC, with GNU ld
15476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15478 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479 if test "x$supports_anon_versioning" = xyes; then
15480 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15482 echo "local: *; };" >> $output_objdir/$libname.ver~
15483 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15484 fi
15485 ;;
15486 *)
15487 case `$CC -V 2>&1 | sed 5q` in
15488 *Sun\ C*)
15489 # Sun C++ 5.9
15490 no_undefined_flag_CXX=' -zdefs'
15491 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15492 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'
15493 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015494 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 +000015495 compiler_needs_object_CXX=yes
15496
15497 # Not sure whether something based on
15498 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15499 # would be better.
cristy18304f92009-11-22 15:48:26 +000015500 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015501
15502 # Archives containing C++ object files must be created using
15503 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15504 # necessary to make sure instantiated templates are included
15505 # in the archive.
15506 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15507 ;;
15508 esac
15509 ;;
15510 esac
15511 ;;
15512
15513 lynxos*)
15514 # FIXME: insert proper C++ library support
15515 ld_shlibs_CXX=no
15516 ;;
15517
15518 m88k*)
15519 # FIXME: insert proper C++ library support
15520 ld_shlibs_CXX=no
15521 ;;
15522
15523 mvs*)
15524 case $cc_basename in
15525 cxx*)
15526 # FIXME: insert proper C++ library support
15527 ld_shlibs_CXX=no
15528 ;;
15529 *)
15530 # FIXME: insert proper C++ library support
15531 ld_shlibs_CXX=no
15532 ;;
15533 esac
15534 ;;
15535
15536 netbsd*)
15537 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15538 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15539 wlarc=
15540 hardcode_libdir_flag_spec_CXX='-R$libdir'
15541 hardcode_direct_CXX=yes
15542 hardcode_shlibpath_var_CXX=no
15543 fi
15544 # Workaround some broken pre-1.5 toolchains
15545 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15546 ;;
15547
15548 *nto* | *qnx*)
15549 ld_shlibs_CXX=yes
15550 ;;
15551
15552 openbsd2*)
15553 # C++ shared libraries are fairly broken
15554 ld_shlibs_CXX=no
15555 ;;
15556
15557 openbsd*)
15558 if test -f /usr/libexec/ld.so; then
15559 hardcode_direct_CXX=yes
15560 hardcode_shlibpath_var_CXX=no
15561 hardcode_direct_absolute_CXX=yes
15562 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15563 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15565 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15566 export_dynamic_flag_spec_CXX='${wl}-E'
15567 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15568 fi
cristy18304f92009-11-22 15:48:26 +000015569 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015570 else
15571 ld_shlibs_CXX=no
15572 fi
15573 ;;
15574
15575 osf3* | osf4* | osf5*)
15576 case $cc_basename in
15577 KCC*)
15578 # Kuck and Associates, Inc. (KAI) C++ Compiler
15579
15580 # KCC will only create a shared library if the output file
15581 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15582 # to its proper name (with version) after linking.
15583 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'
15584
15585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15586 hardcode_libdir_separator_CXX=:
15587
15588 # Archives containing C++ object files must be created using
15589 # the KAI C++ compiler.
15590 case $host in
15591 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15592 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15593 esac
15594 ;;
15595 RCC*)
15596 # Rational C++ 2.4.1
15597 # FIXME: insert proper C++ library support
15598 ld_shlibs_CXX=no
15599 ;;
15600 cxx*)
15601 case $host in
15602 osf3*)
15603 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015604 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 +000015605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15606 ;;
15607 *)
15608 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015609 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 +000015610 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15611 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015612 $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 +000015613 $RM $lib.exp'
15614 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15615 ;;
15616 esac
15617
15618 hardcode_libdir_separator_CXX=:
15619
15620 # Commands to make compiler produce verbose output that lists
15621 # what "hidden" libraries, object files and flags are used when
15622 # linking a shared library.
15623 #
15624 # There doesn't appear to be a way to prevent this compiler from
15625 # explicitly linking system object files so we need to strip them
15626 # from the output so that they don't get included in the library
15627 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015628 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 +000015629 ;;
15630 *)
15631 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15632 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15633 case $host in
15634 osf3*)
cristy18304f92009-11-22 15:48:26 +000015635 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 +000015636 ;;
15637 *)
cristy18304f92009-11-22 15:48:26 +000015638 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 +000015639 ;;
15640 esac
15641
15642 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15643 hardcode_libdir_separator_CXX=:
15644
15645 # Commands to make compiler produce verbose output that lists
15646 # what "hidden" libraries, object files and flags are used when
15647 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015648 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015649
15650 else
15651 # FIXME: insert proper C++ library support
15652 ld_shlibs_CXX=no
15653 fi
15654 ;;
15655 esac
15656 ;;
15657
15658 psos*)
15659 # FIXME: insert proper C++ library support
15660 ld_shlibs_CXX=no
15661 ;;
15662
15663 sunos4*)
15664 case $cc_basename in
15665 CC*)
15666 # Sun C++ 4.x
15667 # FIXME: insert proper C++ library support
15668 ld_shlibs_CXX=no
15669 ;;
15670 lcc*)
15671 # Lucid
15672 # FIXME: insert proper C++ library support
15673 ld_shlibs_CXX=no
15674 ;;
15675 *)
15676 # FIXME: insert proper C++ library support
15677 ld_shlibs_CXX=no
15678 ;;
15679 esac
15680 ;;
15681
15682 solaris*)
15683 case $cc_basename in
15684 CC*)
15685 # Sun C++ 4.2, 5.x and Centerline C++
15686 archive_cmds_need_lc_CXX=yes
15687 no_undefined_flag_CXX=' -zdefs'
15688 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15689 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15690 $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'
15691
15692 hardcode_libdir_flag_spec_CXX='-R$libdir'
15693 hardcode_shlibpath_var_CXX=no
15694 case $host_os in
15695 solaris2.[0-5] | solaris2.[0-5].*) ;;
15696 *)
15697 # The compiler driver will combine and reorder linker options,
15698 # but understands `-z linker_flag'.
15699 # Supported since Solaris 2.6 (maybe 2.5.1?)
15700 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15701 ;;
15702 esac
15703 link_all_deplibs_CXX=yes
15704
cristy18304f92009-11-22 15:48:26 +000015705 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015706
15707 # Archives containing C++ object files must be created using
15708 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15709 # necessary to make sure instantiated templates are included
15710 # in the archive.
15711 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15712 ;;
15713 gcx*)
15714 # Green Hills C++ Compiler
15715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15716
15717 # The C++ compiler must be used to create the archive.
15718 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15719 ;;
15720 *)
15721 # GNU C++ compiler with Solaris linker
15722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15723 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15724 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15725 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15726 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15727 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15728
15729 # Commands to make compiler produce verbose output that lists
15730 # what "hidden" libraries, object files and flags are used when
15731 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015733 else
15734 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15735 # platform.
15736 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15737 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15738 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15739
15740 # Commands to make compiler produce verbose output that lists
15741 # what "hidden" libraries, object files and flags are used when
15742 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015743 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015744 fi
15745
15746 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15747 case $host_os in
15748 solaris2.[0-5] | solaris2.[0-5].*) ;;
15749 *)
15750 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15751 ;;
15752 esac
15753 fi
15754 ;;
15755 esac
15756 ;;
15757
15758 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15759 no_undefined_flag_CXX='${wl}-z,text'
15760 archive_cmds_need_lc_CXX=no
15761 hardcode_shlibpath_var_CXX=no
15762 runpath_var='LD_RUN_PATH'
15763
15764 case $cc_basename in
15765 CC*)
15766 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15768 ;;
15769 *)
15770 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15771 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15772 ;;
15773 esac
15774 ;;
15775
15776 sysv5* | sco3.2v5* | sco5v6*)
15777 # Note: We can NOT use -z defs as we might desire, because we do not
15778 # link with -lc, and that would cause any symbols used from libc to
15779 # always be unresolved, which means just about no library would
15780 # ever link correctly. If we're not using GNU ld we use -z text
15781 # though, which does catch some bad symbols but isn't as heavy-handed
15782 # as -z defs.
15783 no_undefined_flag_CXX='${wl}-z,text'
15784 allow_undefined_flag_CXX='${wl}-z,nodefs'
15785 archive_cmds_need_lc_CXX=no
15786 hardcode_shlibpath_var_CXX=no
15787 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15788 hardcode_libdir_separator_CXX=':'
15789 link_all_deplibs_CXX=yes
15790 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15791 runpath_var='LD_RUN_PATH'
15792
15793 case $cc_basename in
15794 CC*)
15795 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15796 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15797 ;;
15798 *)
15799 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 ;;
15802 esac
15803 ;;
15804
15805 tandem*)
15806 case $cc_basename in
15807 NCC*)
15808 # NonStop-UX NCC 3.20
15809 # FIXME: insert proper C++ library support
15810 ld_shlibs_CXX=no
15811 ;;
15812 *)
15813 # FIXME: insert proper C++ library support
15814 ld_shlibs_CXX=no
15815 ;;
15816 esac
15817 ;;
15818
15819 vxworks*)
15820 # FIXME: insert proper C++ library support
15821 ld_shlibs_CXX=no
15822 ;;
15823
15824 *)
15825 # FIXME: insert proper C++ library support
15826 ld_shlibs_CXX=no
15827 ;;
15828 esac
15829
cristy8b350f62009-11-15 23:12:43 +000015830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015831$as_echo "$ld_shlibs_CXX" >&6; }
15832 test "$ld_shlibs_CXX" = no && can_build_shared=no
15833
15834 GCC_CXX="$GXX"
15835 LD_CXX="$LD"
15836
15837 ## CAVEAT EMPTOR:
15838 ## There is no encapsulation within the following macros, do not change
15839 ## the running order or otherwise move them around unless you know exactly
15840 ## what you are doing...
15841 # Dependencies to place before and after the object being linked:
15842predep_objects_CXX=
15843postdep_objects_CXX=
15844predeps_CXX=
15845postdeps_CXX=
15846compiler_lib_search_path_CXX=
15847
15848cat > conftest.$ac_ext <<_LT_EOF
15849class Foo
15850{
15851public:
15852 Foo (void) { a = 0; }
15853private:
15854 int a;
15855};
15856_LT_EOF
15857
cristy8b350f62009-11-15 23:12:43 +000015858if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015859 (eval $ac_compile) 2>&5
15860 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015863 # Parse the compiler output and extract the necessary
15864 # objects, libraries and library flags.
15865
15866 # Sentinel used to keep track of whether or not we are before
15867 # the conftest object file.
15868 pre_test_object_deps_done=no
15869
15870 for p in `eval "$output_verbose_link_cmd"`; do
15871 case $p in
15872
15873 -L* | -R* | -l*)
15874 # Some compilers place space between "-{L,R}" and the path.
15875 # Remove the space.
15876 if test $p = "-L" ||
15877 test $p = "-R"; then
15878 prev=$p
15879 continue
15880 else
15881 prev=
15882 fi
15883
15884 if test "$pre_test_object_deps_done" = no; then
15885 case $p in
15886 -L* | -R*)
15887 # Internal compiler library paths should come after those
15888 # provided the user. The postdeps already come after the
15889 # user supplied libs so there is no need to process them.
15890 if test -z "$compiler_lib_search_path_CXX"; then
15891 compiler_lib_search_path_CXX="${prev}${p}"
15892 else
15893 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15894 fi
15895 ;;
15896 # The "-l" case would never come before the object being
15897 # linked, so don't bother handling this case.
15898 esac
15899 else
15900 if test -z "$postdeps_CXX"; then
15901 postdeps_CXX="${prev}${p}"
15902 else
15903 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15904 fi
15905 fi
15906 ;;
15907
15908 *.$objext)
15909 # This assumes that the test object file only shows up
15910 # once in the compiler output.
15911 if test "$p" = "conftest.$objext"; then
15912 pre_test_object_deps_done=yes
15913 continue
15914 fi
15915
15916 if test "$pre_test_object_deps_done" = no; then
15917 if test -z "$predep_objects_CXX"; then
15918 predep_objects_CXX="$p"
15919 else
15920 predep_objects_CXX="$predep_objects_CXX $p"
15921 fi
15922 else
15923 if test -z "$postdep_objects_CXX"; then
15924 postdep_objects_CXX="$p"
15925 else
15926 postdep_objects_CXX="$postdep_objects_CXX $p"
15927 fi
15928 fi
15929 ;;
15930
15931 *) ;; # Ignore the rest.
15932
15933 esac
15934 done
15935
15936 # Clean up.
15937 rm -f a.out a.exe
15938else
15939 echo "libtool.m4: error: problem compiling CXX test program"
15940fi
15941
15942$RM -f confest.$objext
15943
15944# PORTME: override above test on systems where it is broken
15945case $host_os in
15946interix[3-9]*)
15947 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15948 # hack all around it, let's just trust "g++" to DTRT.
15949 predep_objects_CXX=
15950 postdep_objects_CXX=
15951 postdeps_CXX=
15952 ;;
15953
15954linux*)
15955 case `$CC -V 2>&1 | sed 5q` in
15956 *Sun\ C*)
15957 # Sun C++ 5.9
15958
15959 # The more standards-conforming stlport4 library is
15960 # incompatible with the Cstd library. Avoid specifying
15961 # it if it's in CXXFLAGS. Ignore libCrun as
15962 # -library=stlport4 depends on it.
15963 case " $CXX $CXXFLAGS " in
15964 *" -library=stlport4 "*)
15965 solaris_use_stlport4=yes
15966 ;;
15967 esac
15968
15969 if test "$solaris_use_stlport4" != yes; then
15970 postdeps_CXX='-library=Cstd -library=Crun'
15971 fi
15972 ;;
15973 esac
15974 ;;
15975
15976solaris*)
15977 case $cc_basename in
15978 CC*)
15979 # The more standards-conforming stlport4 library is
15980 # incompatible with the Cstd library. Avoid specifying
15981 # it if it's in CXXFLAGS. Ignore libCrun as
15982 # -library=stlport4 depends on it.
15983 case " $CXX $CXXFLAGS " in
15984 *" -library=stlport4 "*)
15985 solaris_use_stlport4=yes
15986 ;;
15987 esac
15988
15989 # Adding this requires a known-good setup of shared libraries for
15990 # Sun compiler versions before 5.6, else PIC objects from an old
15991 # archive will be linked into the output, leading to subtle bugs.
15992 if test "$solaris_use_stlport4" != yes; then
15993 postdeps_CXX='-library=Cstd -library=Crun'
15994 fi
15995 ;;
15996 esac
15997 ;;
15998esac
15999
16000
16001case " $postdeps_CXX " in
16002*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16003esac
16004 compiler_lib_search_dirs_CXX=
16005if test -n "${compiler_lib_search_path_CXX}"; then
16006 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16007fi
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039 lt_prog_compiler_wl_CXX=
16040lt_prog_compiler_pic_CXX=
16041lt_prog_compiler_static_CXX=
16042
cristy8b350f62009-11-15 23:12:43 +000016043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016044$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16045
16046 # C++ specific cases for pic, static, wl, etc.
16047 if test "$GXX" = yes; then
16048 lt_prog_compiler_wl_CXX='-Wl,'
16049 lt_prog_compiler_static_CXX='-static'
16050
16051 case $host_os in
16052 aix*)
16053 # All AIX code is PIC.
16054 if test "$host_cpu" = ia64; then
16055 # AIX 5 now supports IA64 processor
16056 lt_prog_compiler_static_CXX='-Bstatic'
16057 fi
16058 ;;
16059
16060 amigaos*)
16061 case $host_cpu in
16062 powerpc)
16063 # see comment about AmigaOS4 .so support
16064 lt_prog_compiler_pic_CXX='-fPIC'
16065 ;;
16066 m68k)
16067 # FIXME: we need at least 68020 code to build shared libraries, but
16068 # adding the `-m68020' flag to GCC prevents building anything better,
16069 # like `-m68040'.
16070 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16071 ;;
16072 esac
16073 ;;
16074
16075 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16076 # PIC is the default for these OSes.
16077 ;;
16078 mingw* | cygwin* | os2* | pw32* | cegcc*)
16079 # This hack is so that the source file can tell whether it is being
16080 # built for inclusion in a dll (and should export symbols for example).
16081 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16082 # (--disable-auto-import) libraries
16083 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16084 ;;
16085 darwin* | rhapsody*)
16086 # PIC is the default on this platform
16087 # Common symbols not allowed in MH_DYLIB files
16088 lt_prog_compiler_pic_CXX='-fno-common'
16089 ;;
16090 *djgpp*)
16091 # DJGPP does not support shared libraries at all
16092 lt_prog_compiler_pic_CXX=
16093 ;;
16094 interix[3-9]*)
16095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16096 # Instead, we relocate shared libraries at runtime.
16097 ;;
16098 sysv4*MP*)
16099 if test -d /usr/nec; then
16100 lt_prog_compiler_pic_CXX=-Kconform_pic
16101 fi
16102 ;;
16103 hpux*)
16104 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16105 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16106 # sets the default TLS model and affects inlining.
16107 case $host_cpu in
16108 hppa*64*)
16109 ;;
16110 *)
16111 lt_prog_compiler_pic_CXX='-fPIC'
16112 ;;
16113 esac
16114 ;;
16115 *qnx* | *nto*)
16116 # QNX uses GNU C++, but need to define -shared option too, otherwise
16117 # it will coredump.
16118 lt_prog_compiler_pic_CXX='-fPIC -shared'
16119 ;;
16120 *)
16121 lt_prog_compiler_pic_CXX='-fPIC'
16122 ;;
16123 esac
16124 else
16125 case $host_os in
16126 aix[4-9]*)
16127 # All AIX code is PIC.
16128 if test "$host_cpu" = ia64; then
16129 # AIX 5 now supports IA64 processor
16130 lt_prog_compiler_static_CXX='-Bstatic'
16131 else
16132 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16133 fi
16134 ;;
16135 chorus*)
16136 case $cc_basename in
16137 cxch68*)
16138 # Green Hills C++ Compiler
16139 # _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"
16140 ;;
16141 esac
16142 ;;
16143 dgux*)
16144 case $cc_basename in
16145 ec++*)
16146 lt_prog_compiler_pic_CXX='-KPIC'
16147 ;;
16148 ghcx*)
16149 # Green Hills C++ Compiler
16150 lt_prog_compiler_pic_CXX='-pic'
16151 ;;
16152 *)
16153 ;;
16154 esac
16155 ;;
16156 freebsd* | dragonfly*)
16157 # FreeBSD uses GNU C++
16158 ;;
16159 hpux9* | hpux10* | hpux11*)
16160 case $cc_basename in
16161 CC*)
16162 lt_prog_compiler_wl_CXX='-Wl,'
16163 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16164 if test "$host_cpu" != ia64; then
16165 lt_prog_compiler_pic_CXX='+Z'
16166 fi
16167 ;;
16168 aCC*)
16169 lt_prog_compiler_wl_CXX='-Wl,'
16170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16171 case $host_cpu in
16172 hppa*64*|ia64*)
16173 # +Z the default
16174 ;;
16175 *)
16176 lt_prog_compiler_pic_CXX='+Z'
16177 ;;
16178 esac
16179 ;;
16180 *)
16181 ;;
16182 esac
16183 ;;
16184 interix*)
16185 # This is c89, which is MS Visual C++ (no shared libs)
16186 # Anyone wants to do a port?
16187 ;;
16188 irix5* | irix6* | nonstopux*)
16189 case $cc_basename in
16190 CC*)
16191 lt_prog_compiler_wl_CXX='-Wl,'
16192 lt_prog_compiler_static_CXX='-non_shared'
16193 # CC pic flag -KPIC is the default.
16194 ;;
16195 *)
16196 ;;
16197 esac
16198 ;;
cristy18304f92009-11-22 15:48:26 +000016199 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016200 case $cc_basename in
16201 KCC*)
16202 # KAI C++ Compiler
16203 lt_prog_compiler_wl_CXX='--backend -Wl,'
16204 lt_prog_compiler_pic_CXX='-fPIC'
16205 ;;
16206 ecpc* )
16207 # old Intel C++ for x86_64 which still supported -KPIC.
16208 lt_prog_compiler_wl_CXX='-Wl,'
16209 lt_prog_compiler_pic_CXX='-KPIC'
16210 lt_prog_compiler_static_CXX='-static'
16211 ;;
16212 icpc* )
16213 # Intel C++, used to be incompatible with GCC.
16214 # ICC 10 doesn't accept -KPIC any more.
16215 lt_prog_compiler_wl_CXX='-Wl,'
16216 lt_prog_compiler_pic_CXX='-fPIC'
16217 lt_prog_compiler_static_CXX='-static'
16218 ;;
16219 pgCC* | pgcpp*)
16220 # Portland Group C++ compiler
16221 lt_prog_compiler_wl_CXX='-Wl,'
16222 lt_prog_compiler_pic_CXX='-fpic'
16223 lt_prog_compiler_static_CXX='-Bstatic'
16224 ;;
16225 cxx*)
16226 # Compaq C++
16227 # Make sure the PIC flag is empty. It appears that all Alpha
16228 # Linux and Compaq Tru64 Unix objects are PIC.
16229 lt_prog_compiler_pic_CXX=
16230 lt_prog_compiler_static_CXX='-non_shared'
16231 ;;
cristy18304f92009-11-22 15:48:26 +000016232 xlc* | xlC*)
16233 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016234 lt_prog_compiler_wl_CXX='-Wl,'
16235 lt_prog_compiler_pic_CXX='-qpic'
16236 lt_prog_compiler_static_CXX='-qstaticlink'
16237 ;;
16238 *)
16239 case `$CC -V 2>&1 | sed 5q` in
16240 *Sun\ C*)
16241 # Sun C++ 5.9
16242 lt_prog_compiler_pic_CXX='-KPIC'
16243 lt_prog_compiler_static_CXX='-Bstatic'
16244 lt_prog_compiler_wl_CXX='-Qoption ld '
16245 ;;
16246 esac
16247 ;;
16248 esac
16249 ;;
16250 lynxos*)
16251 ;;
16252 m88k*)
16253 ;;
16254 mvs*)
16255 case $cc_basename in
16256 cxx*)
16257 lt_prog_compiler_pic_CXX='-W c,exportall'
16258 ;;
16259 *)
16260 ;;
16261 esac
16262 ;;
16263 netbsd*)
16264 ;;
16265 *qnx* | *nto*)
16266 # QNX uses GNU C++, but need to define -shared option too, otherwise
16267 # it will coredump.
16268 lt_prog_compiler_pic_CXX='-fPIC -shared'
16269 ;;
16270 osf3* | osf4* | osf5*)
16271 case $cc_basename in
16272 KCC*)
16273 lt_prog_compiler_wl_CXX='--backend -Wl,'
16274 ;;
16275 RCC*)
16276 # Rational C++ 2.4.1
16277 lt_prog_compiler_pic_CXX='-pic'
16278 ;;
16279 cxx*)
16280 # Digital/Compaq C++
16281 lt_prog_compiler_wl_CXX='-Wl,'
16282 # Make sure the PIC flag is empty. It appears that all Alpha
16283 # Linux and Compaq Tru64 Unix objects are PIC.
16284 lt_prog_compiler_pic_CXX=
16285 lt_prog_compiler_static_CXX='-non_shared'
16286 ;;
16287 *)
16288 ;;
16289 esac
16290 ;;
16291 psos*)
16292 ;;
16293 solaris*)
16294 case $cc_basename in
16295 CC*)
16296 # Sun C++ 4.2, 5.x and Centerline C++
16297 lt_prog_compiler_pic_CXX='-KPIC'
16298 lt_prog_compiler_static_CXX='-Bstatic'
16299 lt_prog_compiler_wl_CXX='-Qoption ld '
16300 ;;
16301 gcx*)
16302 # Green Hills C++ Compiler
16303 lt_prog_compiler_pic_CXX='-PIC'
16304 ;;
16305 *)
16306 ;;
16307 esac
16308 ;;
16309 sunos4*)
16310 case $cc_basename in
16311 CC*)
16312 # Sun C++ 4.x
16313 lt_prog_compiler_pic_CXX='-pic'
16314 lt_prog_compiler_static_CXX='-Bstatic'
16315 ;;
16316 lcc*)
16317 # Lucid
16318 lt_prog_compiler_pic_CXX='-pic'
16319 ;;
16320 *)
16321 ;;
16322 esac
16323 ;;
16324 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16325 case $cc_basename in
16326 CC*)
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 lt_prog_compiler_pic_CXX='-KPIC'
16329 lt_prog_compiler_static_CXX='-Bstatic'
16330 ;;
16331 esac
16332 ;;
16333 tandem*)
16334 case $cc_basename in
16335 NCC*)
16336 # NonStop-UX NCC 3.20
16337 lt_prog_compiler_pic_CXX='-KPIC'
16338 ;;
16339 *)
16340 ;;
16341 esac
16342 ;;
16343 vxworks*)
16344 ;;
16345 *)
16346 lt_prog_compiler_can_build_shared_CXX=no
16347 ;;
16348 esac
16349 fi
16350
16351case $host_os in
16352 # For platforms which do not support PIC, -DPIC is meaningless:
16353 *djgpp*)
16354 lt_prog_compiler_pic_CXX=
16355 ;;
16356 *)
16357 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16358 ;;
16359esac
cristy8b350f62009-11-15 23:12:43 +000016360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016361$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16362
16363
16364
16365#
16366# Check to make sure the PIC flag actually works.
16367#
16368if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016369 { $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 +000016370$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016371if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016372 $as_echo_n "(cached) " >&6
16373else
16374 lt_cv_prog_compiler_pic_works_CXX=no
16375 ac_outfile=conftest.$ac_objext
16376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16377 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16378 # Insert the option either (1) after the last *FLAGS variable, or
16379 # (2) before a word containing "conftest.", or (3) at the end.
16380 # Note that $ac_compile itself does not contain backslashes and begins
16381 # with a dollar sign (not a hyphen), so the echo should work correctly.
16382 # The option is referenced via a variable to avoid confusing sed.
16383 lt_compile=`echo "$ac_compile" | $SED \
16384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16386 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000016387 (eval echo "\"\$as_me:16387: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016388 (eval "$lt_compile" 2>conftest.err)
16389 ac_status=$?
16390 cat conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000016391 echo "$as_me:16391: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016392 if (exit $ac_status) && test -s "$ac_outfile"; then
16393 # The compiler can only warn and ignore the option if not recognized
16394 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016395 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16398 lt_cv_prog_compiler_pic_works_CXX=yes
16399 fi
16400 fi
16401 $RM conftest*
16402
16403fi
cristy8b350f62009-11-15 23:12:43 +000016404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016405$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16406
16407if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16408 case $lt_prog_compiler_pic_CXX in
16409 "" | " "*) ;;
16410 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16411 esac
16412else
16413 lt_prog_compiler_pic_CXX=
16414 lt_prog_compiler_can_build_shared_CXX=no
16415fi
16416
16417fi
16418
16419
16420
16421#
16422# Check to make sure the static flag actually works.
16423#
16424wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016427if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016428 $as_echo_n "(cached) " >&6
16429else
16430 lt_cv_prog_compiler_static_works_CXX=no
16431 save_LDFLAGS="$LDFLAGS"
16432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16435 # The linker can only warn and ignore the option if not recognized
16436 # So say no if there are warnings
16437 if test -s conftest.err; then
16438 # Append any errors to the config.log.
16439 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016440 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16442 if diff conftest.exp conftest.er2 >/dev/null; then
16443 lt_cv_prog_compiler_static_works_CXX=yes
16444 fi
16445 else
16446 lt_cv_prog_compiler_static_works_CXX=yes
16447 fi
16448 fi
16449 $RM -r conftest*
16450 LDFLAGS="$save_LDFLAGS"
16451
16452fi
cristy8b350f62009-11-15 23:12:43 +000016453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016454$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16455
16456if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16457 :
16458else
16459 lt_prog_compiler_static_CXX=
16460fi
16461
16462
16463
16464
cristy8b350f62009-11-15 23:12:43 +000016465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016466$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016467if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016468 $as_echo_n "(cached) " >&6
16469else
16470 lt_cv_prog_compiler_c_o_CXX=no
16471 $RM -r conftest 2>/dev/null
16472 mkdir conftest
16473 cd conftest
16474 mkdir out
16475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16476
16477 lt_compiler_flag="-o out/conftest2.$ac_objext"
16478 # Insert the option either (1) after the last *FLAGS variable, or
16479 # (2) before a word containing "conftest.", or (3) at the end.
16480 # Note that $ac_compile itself does not contain backslashes and begins
16481 # with a dollar sign (not a hyphen), so the echo should work correctly.
16482 lt_compile=`echo "$ac_compile" | $SED \
16483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16485 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000016486 (eval echo "\"\$as_me:16486: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016487 (eval "$lt_compile" 2>out/conftest.err)
16488 ac_status=$?
16489 cat out/conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000016490 echo "$as_me:16490: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16492 then
16493 # The compiler can only warn and ignore the option if not recognized
16494 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016495 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16498 lt_cv_prog_compiler_c_o_CXX=yes
16499 fi
16500 fi
16501 chmod u+w . 2>&5
16502 $RM conftest*
16503 # SGI C++ compiler will create directory out/ii_files/ for
16504 # template instantiation
16505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16506 $RM out/* && rmdir out
16507 cd ..
16508 $RM -r conftest
16509 $RM conftest*
16510
16511fi
cristy8b350f62009-11-15 23:12:43 +000016512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016513$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16514
16515
16516
cristy8b350f62009-11-15 23:12:43 +000016517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016519if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016520 $as_echo_n "(cached) " >&6
16521else
16522 lt_cv_prog_compiler_c_o_CXX=no
16523 $RM -r conftest 2>/dev/null
16524 mkdir conftest
16525 cd conftest
16526 mkdir out
16527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16528
16529 lt_compiler_flag="-o out/conftest2.$ac_objext"
16530 # Insert the option either (1) after the last *FLAGS variable, or
16531 # (2) before a word containing "conftest.", or (3) at the end.
16532 # Note that $ac_compile itself does not contain backslashes and begins
16533 # with a dollar sign (not a hyphen), so the echo should work correctly.
16534 lt_compile=`echo "$ac_compile" | $SED \
16535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16537 -e 's:$: $lt_compiler_flag:'`
cristy99cc3002010-01-21 14:50:11 +000016538 (eval echo "\"\$as_me:16538: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016539 (eval "$lt_compile" 2>out/conftest.err)
16540 ac_status=$?
16541 cat out/conftest.err >&5
cristy99cc3002010-01-21 14:50:11 +000016542 echo "$as_me:16542: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016543 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16544 then
16545 # The compiler can only warn and ignore the option if not recognized
16546 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016547 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16550 lt_cv_prog_compiler_c_o_CXX=yes
16551 fi
16552 fi
16553 chmod u+w . 2>&5
16554 $RM conftest*
16555 # SGI C++ compiler will create directory out/ii_files/ for
16556 # template instantiation
16557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16558 $RM out/* && rmdir out
16559 cd ..
16560 $RM -r conftest
16561 $RM conftest*
16562
16563fi
cristy8b350f62009-11-15 23:12:43 +000016564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016565$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16566
16567
16568
16569
16570hard_links="nottested"
16571if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16572 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016574$as_echo_n "checking if we can lock with hard links... " >&6; }
16575 hard_links=yes
16576 $RM conftest*
16577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16578 touch conftest.a
16579 ln conftest.a conftest.b 2>&5 || hard_links=no
16580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016582$as_echo "$hard_links" >&6; }
16583 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016584 { $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 +000016585$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16586 need_locks=warn
16587 fi
16588else
16589 need_locks=no
16590fi
16591
16592
16593
cristy8b350f62009-11-15 23:12:43 +000016594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016595$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16596
16597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16598 case $host_os in
16599 aix[4-9]*)
16600 # If we're using GNU nm, then we don't want the "-C" option.
16601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016603 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 +000016604 else
16605 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'
16606 fi
16607 ;;
16608 pw32*)
16609 export_symbols_cmds_CXX="$ltdll_cmds"
16610 ;;
16611 cygwin* | mingw* | cegcc*)
16612 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'
16613 ;;
16614 *)
16615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16616 ;;
16617 esac
16618 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16619
cristy8b350f62009-11-15 23:12:43 +000016620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016621$as_echo "$ld_shlibs_CXX" >&6; }
16622test "$ld_shlibs_CXX" = no && can_build_shared=no
16623
16624with_gnu_ld_CXX=$with_gnu_ld
16625
16626
16627
16628
16629
16630
16631#
16632# Do we need to explicitly link libc?
16633#
16634case "x$archive_cmds_need_lc_CXX" in
16635x|xyes)
16636 # Assume -lc should be added
16637 archive_cmds_need_lc_CXX=yes
16638
16639 if test "$enable_shared" = yes && test "$GCC" = yes; then
16640 case $archive_cmds_CXX in
16641 *'~'*)
16642 # FIXME: we may have to deal with multi-command sequences.
16643 ;;
16644 '$CC '*)
16645 # Test whether the compiler implicitly links with -lc since on some
16646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16647 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016649$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016650 $RM conftest*
16651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016652
cristy18304f92009-11-22 15:48:26 +000016653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016654 (eval $ac_compile) 2>&5
16655 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016658 soname=conftest
16659 lib=conftest
16660 libobjs=conftest.$ac_objext
16661 deplibs=
16662 wl=$lt_prog_compiler_wl_CXX
16663 pic_flag=$lt_prog_compiler_pic_CXX
16664 compiler_flags=-v
16665 linker_flags=-v
16666 verstring=
16667 output_objdir=.
16668 libname=conftest
16669 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16670 allow_undefined_flag_CXX=
16671 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 +000016672 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16673 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16675 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016676 then
16677 archive_cmds_need_lc_CXX=no
16678 else
16679 archive_cmds_need_lc_CXX=yes
16680 fi
16681 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16682 else
16683 cat conftest.err 1>&5
16684 fi
16685 $RM conftest*
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16687$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016688 ;;
16689 esac
16690 fi
16691 ;;
16692esac
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
cristy8b350f62009-11-15 23:12:43 +000016757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016758$as_echo_n "checking dynamic linker characteristics... " >&6; }
16759
16760library_names_spec=
16761libname_spec='lib$name'
16762soname_spec=
16763shrext_cmds=".so"
16764postinstall_cmds=
16765postuninstall_cmds=
16766finish_cmds=
16767finish_eval=
16768shlibpath_var=
16769shlibpath_overrides_runpath=unknown
16770version_type=none
16771dynamic_linker="$host_os ld.so"
16772sys_lib_dlsearch_path_spec="/lib /usr/lib"
16773need_lib_prefix=unknown
16774hardcode_into_libs=no
16775
16776# when you set need_version to no, make sure it does not cause -set_version
16777# flags to be left without arguments
16778need_version=unknown
16779
16780case $host_os in
16781aix3*)
16782 version_type=linux
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16784 shlibpath_var=LIBPATH
16785
16786 # AIX 3 has no versioning support, so we append a major version to the name.
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 ;;
16789
16790aix[4-9]*)
16791 version_type=linux
16792 need_lib_prefix=no
16793 need_version=no
16794 hardcode_into_libs=yes
16795 if test "$host_cpu" = ia64; then
16796 # AIX 5 supports IA64
16797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16798 shlibpath_var=LD_LIBRARY_PATH
16799 else
16800 # With GCC up to 2.95.x, collect2 would create an import file
16801 # for dependence libraries. The import file would start with
16802 # the line `#! .'. This would cause the generated library to
16803 # depend on `.', always an invalid library. This was fixed in
16804 # development snapshots of GCC prior to 3.0.
16805 case $host_os in
16806 aix4 | aix4.[01] | aix4.[01].*)
16807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16808 echo ' yes '
16809 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16810 :
16811 else
16812 can_build_shared=no
16813 fi
16814 ;;
16815 esac
16816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16817 # soname into executable. Probably we can add versioning support to
16818 # collect2, so additional links can be useful in future.
16819 if test "$aix_use_runtimelinking" = yes; then
16820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16821 # instead of lib<name>.a to let people know that these are not
16822 # typical AIX shared libraries.
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 else
16825 # We preserve .a as extension for shared libraries through AIX4.2
16826 # and later when we are not doing run time linking.
16827 library_names_spec='${libname}${release}.a $libname.a'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 fi
16830 shlibpath_var=LIBPATH
16831 fi
16832 ;;
16833
16834amigaos*)
16835 case $host_cpu in
16836 powerpc)
16837 # Since July 2007 AmigaOS4 officially supports .so libraries.
16838 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840 ;;
16841 m68k)
16842 library_names_spec='$libname.ixlibrary $libname.a'
16843 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016844 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 +000016845 ;;
16846 esac
16847 ;;
16848
16849beos*)
16850 library_names_spec='${libname}${shared_ext}'
16851 dynamic_linker="$host_os ld.so"
16852 shlibpath_var=LIBRARY_PATH
16853 ;;
16854
16855bsdi[45]*)
16856 version_type=linux
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16863 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16864 # the default ld.so.conf also contains /usr/contrib/lib and
16865 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16866 # libtool to hard-code these into programs
16867 ;;
16868
16869cygwin* | mingw* | pw32* | cegcc*)
16870 version_type=windows
16871 shrext_cmds=".dll"
16872 need_version=no
16873 need_lib_prefix=no
16874
16875 case $GCC,$host_os in
16876 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16877 library_names_spec='$libname.dll.a'
16878 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16879 postinstall_cmds='base_file=`basename \${file}`~
16880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16881 dldir=$destdir/`dirname \$dlpath`~
16882 test -d \$dldir || mkdir -p \$dldir~
16883 $install_prog $dir/$dlname \$dldir/$dlname~
16884 chmod a+x \$dldir/$dlname~
16885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16887 fi'
16888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16889 dlpath=$dir/\$dldll~
16890 $RM \$dlpath'
16891 shlibpath_overrides_runpath=yes
16892
16893 case $host_os in
16894 cygwin*)
16895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016897 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000016898 ;;
16899 mingw* | cegcc*)
16900 # MinGW DLLs use traditional 'lib' prefix
16901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016902 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16903 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16904 # It is most probably a Windows format PATH printed by
16905 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16906 # path with ; separators, and with drive letters. We can handle the
16907 # drive letters (cygwin fileutils understands them), so leave them,
16908 # especially as we might pass files found there to a mingw objdump,
16909 # which wouldn't understand a cygwinified path. Ahh.
16910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16911 else
16912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16913 fi
cristy3ed852e2009-09-05 21:47:34 +000016914 ;;
16915 pw32*)
16916 # pw32 DLLs use 'pw' prefix rather than 'lib'
16917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16918 ;;
16919 esac
16920 ;;
16921
16922 *)
16923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16924 ;;
16925 esac
16926 dynamic_linker='Win32 ld.exe'
16927 # FIXME: first we should search . and the directory the executable is in
16928 shlibpath_var=PATH
16929 ;;
16930
16931darwin* | rhapsody*)
16932 dynamic_linker="$host_os dyld"
16933 version_type=darwin
16934 need_lib_prefix=no
16935 need_version=no
16936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16937 soname_spec='${libname}${release}${major}$shared_ext'
16938 shlibpath_overrides_runpath=yes
16939 shlibpath_var=DYLD_LIBRARY_PATH
16940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16941
16942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16943 ;;
16944
16945dgux*)
16946 version_type=linux
16947 need_lib_prefix=no
16948 need_version=no
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 ;;
16953
16954freebsd1*)
16955 dynamic_linker=no
16956 ;;
16957
16958freebsd* | dragonfly*)
16959 # DragonFly does not have aout. When/if they implement a new
16960 # versioning mechanism, adjust this.
16961 if test -x /usr/bin/objformat; then
16962 objformat=`/usr/bin/objformat`
16963 else
16964 case $host_os in
16965 freebsd[123]*) objformat=aout ;;
16966 *) objformat=elf ;;
16967 esac
16968 fi
16969 version_type=freebsd-$objformat
16970 case $version_type in
16971 freebsd-elf*)
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16973 need_version=no
16974 need_lib_prefix=no
16975 ;;
16976 freebsd-*)
16977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16978 need_version=yes
16979 ;;
16980 esac
16981 shlibpath_var=LD_LIBRARY_PATH
16982 case $host_os in
16983 freebsd2*)
16984 shlibpath_overrides_runpath=yes
16985 ;;
16986 freebsd3.[01]* | freebsdelf3.[01]*)
16987 shlibpath_overrides_runpath=yes
16988 hardcode_into_libs=yes
16989 ;;
16990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16992 shlibpath_overrides_runpath=no
16993 hardcode_into_libs=yes
16994 ;;
16995 *) # from 4.6 on, and DragonFly
16996 shlibpath_overrides_runpath=yes
16997 hardcode_into_libs=yes
16998 ;;
16999 esac
17000 ;;
17001
17002gnu*)
17003 version_type=linux
17004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 hardcode_into_libs=yes
17010 ;;
17011
17012hpux9* | hpux10* | hpux11*)
17013 # Give a soname corresponding to the major version so that dld.sl refuses to
17014 # link against other versions.
17015 version_type=sunos
17016 need_lib_prefix=no
17017 need_version=no
17018 case $host_cpu in
17019 ia64*)
17020 shrext_cmds='.so'
17021 hardcode_into_libs=yes
17022 dynamic_linker="$host_os dld.so"
17023 shlibpath_var=LD_LIBRARY_PATH
17024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 soname_spec='${libname}${release}${shared_ext}$major'
17027 if test "X$HPUX_IA64_MODE" = X32; then
17028 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17029 else
17030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17031 fi
17032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17033 ;;
17034 hppa*64*)
17035 shrext_cmds='.sl'
17036 hardcode_into_libs=yes
17037 dynamic_linker="$host_os dld.sl"
17038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17041 soname_spec='${libname}${release}${shared_ext}$major'
17042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17044 ;;
17045 *)
17046 shrext_cmds='.sl'
17047 dynamic_linker="$host_os dld.sl"
17048 shlibpath_var=SHLIB_PATH
17049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17051 soname_spec='${libname}${release}${shared_ext}$major'
17052 ;;
17053 esac
cristy18304f92009-11-22 15:48:26 +000017054 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017055 postinstall_cmds='chmod 555 $lib'
17056 ;;
17057
17058interix[3-9]*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17065 shlibpath_var=LD_LIBRARY_PATH
17066 shlibpath_overrides_runpath=no
17067 hardcode_into_libs=yes
17068 ;;
17069
17070irix5* | irix6* | nonstopux*)
17071 case $host_os in
17072 nonstopux*) version_type=nonstopux ;;
17073 *)
17074 if test "$lt_cv_prog_gnu_ld" = yes; then
17075 version_type=linux
17076 else
17077 version_type=irix
17078 fi ;;
17079 esac
17080 need_lib_prefix=no
17081 need_version=no
17082 soname_spec='${libname}${release}${shared_ext}$major'
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 case $host_os in
17085 irix5* | nonstopux*)
17086 libsuff= shlibsuff=
17087 ;;
17088 *)
17089 case $LD in # libtool.m4 will add one of these switches to LD
17090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17091 libsuff= shlibsuff= libmagic=32-bit;;
17092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17093 libsuff=32 shlibsuff=N32 libmagic=N32;;
17094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17096 *) libsuff= shlibsuff= libmagic=never-match;;
17097 esac
17098 ;;
17099 esac
17100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17101 shlibpath_overrides_runpath=no
17102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17104 hardcode_into_libs=yes
17105 ;;
17106
17107# No shared lib support for Linux oldld, aout, or coff.
17108linux*oldld* | linux*aout* | linux*coff*)
17109 dynamic_linker=no
17110 ;;
17111
17112# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017113linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017114 version_type=linux
17115 need_lib_prefix=no
17116 need_version=no
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17120 shlibpath_var=LD_LIBRARY_PATH
17121 shlibpath_overrides_runpath=no
17122 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017123 save_LDFLAGS=$LDFLAGS
17124 save_libdir=$libdir
17125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017128/* end confdefs.h. */
17129
17130int
17131main ()
17132{
17133
17134 ;
17135 return 0;
17136}
17137_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017138if ac_fn_cxx_try_link "$LINENO"; then :
17139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017140 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017141fi
cristy3ed852e2009-09-05 21:47:34 +000017142fi
cristy8b350f62009-11-15 23:12:43 +000017143rm -f core conftest.err conftest.$ac_objext \
17144 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017145 LDFLAGS=$save_LDFLAGS
17146 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017147
17148 # This implies no fast_install, which is unacceptable.
17149 # Some rework will be needed to allow for fast_install
17150 # before this can be enabled.
17151 hardcode_into_libs=yes
17152
cristy679ed8e2009-12-05 02:37:41 +000017153 # Add ABI-specific directories to the system library path.
17154 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17155
cristy3ed852e2009-09-05 21:47:34 +000017156 # Append ld.so.conf contents to the search path
17157 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017158 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 +000017159 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017160 fi
17161
17162 # We used to test for /lib/ld.so.1 and disable shared libraries on
17163 # powerpc, because MkLinux only supported shared libraries with the
17164 # GNU dynamic linker. Since this was broken with cross compilers,
17165 # most powerpc-linux boxes support dynamic linking these days and
17166 # people can always --disable-shared, the test was removed, and we
17167 # assume the GNU/Linux dynamic linker is in use.
17168 dynamic_linker='GNU/Linux ld.so'
17169 ;;
17170
17171netbsd*)
17172 version_type=sunos
17173 need_lib_prefix=no
17174 need_version=no
17175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17178 dynamic_linker='NetBSD (a.out) ld.so'
17179 else
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 dynamic_linker='NetBSD ld.elf_so'
17183 fi
17184 shlibpath_var=LD_LIBRARY_PATH
17185 shlibpath_overrides_runpath=yes
17186 hardcode_into_libs=yes
17187 ;;
17188
17189newsos6)
17190 version_type=linux
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 shlibpath_var=LD_LIBRARY_PATH
17193 shlibpath_overrides_runpath=yes
17194 ;;
17195
17196*nto* | *qnx*)
17197 version_type=qnx
17198 need_lib_prefix=no
17199 need_version=no
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17201 soname_spec='${libname}${release}${shared_ext}$major'
17202 shlibpath_var=LD_LIBRARY_PATH
17203 shlibpath_overrides_runpath=no
17204 hardcode_into_libs=yes
17205 dynamic_linker='ldqnx.so'
17206 ;;
17207
17208openbsd*)
17209 version_type=sunos
17210 sys_lib_dlsearch_path_spec="/usr/lib"
17211 need_lib_prefix=no
17212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17213 case $host_os in
17214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17215 *) need_version=no ;;
17216 esac
17217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17219 shlibpath_var=LD_LIBRARY_PATH
17220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17221 case $host_os in
17222 openbsd2.[89] | openbsd2.[89].*)
17223 shlibpath_overrides_runpath=no
17224 ;;
17225 *)
17226 shlibpath_overrides_runpath=yes
17227 ;;
17228 esac
17229 else
17230 shlibpath_overrides_runpath=yes
17231 fi
17232 ;;
17233
17234os2*)
17235 libname_spec='$name'
17236 shrext_cmds=".dll"
17237 need_lib_prefix=no
17238 library_names_spec='$libname${shared_ext} $libname.a'
17239 dynamic_linker='OS/2 ld.exe'
17240 shlibpath_var=LIBPATH
17241 ;;
17242
17243osf3* | osf4* | osf5*)
17244 version_type=osf
17245 need_lib_prefix=no
17246 need_version=no
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 shlibpath_var=LD_LIBRARY_PATH
17250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17252 ;;
17253
17254rdos*)
17255 dynamic_linker=no
17256 ;;
17257
17258solaris*)
17259 version_type=linux
17260 need_lib_prefix=no
17261 need_version=no
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17263 soname_spec='${libname}${release}${shared_ext}$major'
17264 shlibpath_var=LD_LIBRARY_PATH
17265 shlibpath_overrides_runpath=yes
17266 hardcode_into_libs=yes
17267 # ldd complains unless libraries are executable
17268 postinstall_cmds='chmod +x $lib'
17269 ;;
17270
17271sunos4*)
17272 version_type=sunos
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17275 shlibpath_var=LD_LIBRARY_PATH
17276 shlibpath_overrides_runpath=yes
17277 if test "$with_gnu_ld" = yes; then
17278 need_lib_prefix=no
17279 fi
17280 need_version=yes
17281 ;;
17282
17283sysv4 | sysv4.3*)
17284 version_type=linux
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17286 soname_spec='${libname}${release}${shared_ext}$major'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 case $host_vendor in
17289 sni)
17290 shlibpath_overrides_runpath=no
17291 need_lib_prefix=no
17292 runpath_var=LD_RUN_PATH
17293 ;;
17294 siemens)
17295 need_lib_prefix=no
17296 ;;
17297 motorola)
17298 need_lib_prefix=no
17299 need_version=no
17300 shlibpath_overrides_runpath=no
17301 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17302 ;;
17303 esac
17304 ;;
17305
17306sysv4*MP*)
17307 if test -d /usr/nec ;then
17308 version_type=linux
17309 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17310 soname_spec='$libname${shared_ext}.$major'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 fi
17313 ;;
17314
17315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17316 version_type=freebsd-elf
17317 need_lib_prefix=no
17318 need_version=no
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 shlibpath_overrides_runpath=yes
17323 hardcode_into_libs=yes
17324 if test "$with_gnu_ld" = yes; then
17325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17326 else
17327 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17328 case $host_os in
17329 sco3.2v5*)
17330 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17331 ;;
17332 esac
17333 fi
17334 sys_lib_dlsearch_path_spec='/usr/lib'
17335 ;;
17336
17337tpf*)
17338 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17339 version_type=linux
17340 need_lib_prefix=no
17341 need_version=no
17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 shlibpath_var=LD_LIBRARY_PATH
17344 shlibpath_overrides_runpath=no
17345 hardcode_into_libs=yes
17346 ;;
17347
17348uts4*)
17349 version_type=linux
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 soname_spec='${libname}${release}${shared_ext}$major'
17352 shlibpath_var=LD_LIBRARY_PATH
17353 ;;
17354
17355*)
17356 dynamic_linker=no
17357 ;;
17358esac
cristy8b350f62009-11-15 23:12:43 +000017359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017360$as_echo "$dynamic_linker" >&6; }
17361test "$dynamic_linker" = no && can_build_shared=no
17362
17363variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17364if test "$GCC" = yes; then
17365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17366fi
17367
17368if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17369 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17370fi
17371if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17372 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17373fi
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
cristy8b350f62009-11-15 23:12:43 +000017410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017411$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17412hardcode_action_CXX=
17413if test -n "$hardcode_libdir_flag_spec_CXX" ||
17414 test -n "$runpath_var_CXX" ||
17415 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17416
17417 # We can hardcode non-existent directories.
17418 if test "$hardcode_direct_CXX" != no &&
17419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17420 # have to relink, otherwise we might link with an installed library
17421 # when we should be linking with a yet-to-be-installed one
17422 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17423 test "$hardcode_minus_L_CXX" != no; then
17424 # Linking always hardcodes the temporary library directory.
17425 hardcode_action_CXX=relink
17426 else
17427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17428 hardcode_action_CXX=immediate
17429 fi
17430else
17431 # We cannot hardcode anything, or else we can only hardcode existing
17432 # directories.
17433 hardcode_action_CXX=unsupported
17434fi
cristy8b350f62009-11-15 23:12:43 +000017435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017436$as_echo "$hardcode_action_CXX" >&6; }
17437
17438if test "$hardcode_action_CXX" = relink ||
17439 test "$inherit_rpath_CXX" = yes; then
17440 # Fast installation is not supported
17441 enable_fast_install=no
17442elif test "$shlibpath_overrides_runpath" = yes ||
17443 test "$enable_shared" = no; then
17444 # Fast installation is not necessary
17445 enable_fast_install=needless
17446fi
17447
17448
17449
17450
17451
17452
17453
17454 fi # test -n "$compiler"
17455
17456 CC=$lt_save_CC
17457 LDCXX=$LD
17458 LD=$lt_save_LD
17459 GCC=$lt_save_GCC
17460 with_gnu_ld=$lt_save_with_gnu_ld
17461 lt_cv_path_LDCXX=$lt_cv_path_LD
17462 lt_cv_path_LD=$lt_save_path_LD
17463 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17464 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17465fi # test "$_lt_caught_CXX_error" != yes
17466
17467ac_ext=c
17468ac_cpp='$CPP $CPPFLAGS'
17469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17471ac_compiler_gnu=$ac_cv_c_compiler_gnu
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485 ac_config_commands="$ac_config_commands libtool"
17486
17487
17488
17489
17490# Only expand once:
17491
17492
17493
17494
17495
17496# Configure libltdl
17497
17498
17499
17500
17501
17502
17503
cristy18304f92009-11-22 15:48:26 +000017504
cristy8b350f62009-11-15 23:12:43 +000017505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017506$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017507if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017508 $as_echo_n "(cached) " >&6
17509else
17510
17511module=yes
17512eval libltdl_cv_shlibext=$shrext_cmds
17513
17514fi
cristy8b350f62009-11-15 23:12:43 +000017515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017516$as_echo "$libltdl_cv_shlibext" >&6; }
17517if test -n "$libltdl_cv_shlibext"; then
17518
17519cat >>confdefs.h <<_ACEOF
17520#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17521_ACEOF
17522
17523fi
17524
cristy8b350f62009-11-15 23:12:43 +000017525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017526$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017527if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017528 $as_echo_n "(cached) " >&6
17529else
17530 lt_cv_module_path_var="$shlibpath_var"
17531fi
cristy8b350f62009-11-15 23:12:43 +000017532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017533$as_echo "$lt_cv_module_path_var" >&6; }
17534if test -n "$lt_cv_module_path_var"; then
17535
17536cat >>confdefs.h <<_ACEOF
17537#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17538_ACEOF
17539
17540fi
17541
cristy8b350f62009-11-15 23:12:43 +000017542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017543$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017544if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017545 $as_echo_n "(cached) " >&6
17546else
17547 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17548fi
cristy8b350f62009-11-15 23:12:43 +000017549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017550$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17551if test -n "$lt_cv_sys_dlsearch_path"; then
17552 sys_dlsearch_path=
17553 for dir in $lt_cv_sys_dlsearch_path; do
17554 if test -z "$sys_dlsearch_path"; then
17555 sys_dlsearch_path="$dir"
17556 else
17557 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17558 fi
17559 done
17560
17561cat >>confdefs.h <<_ACEOF
17562#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17563_ACEOF
17564
17565fi
17566
17567
17568LT_DLLOADERS=
17569
17570
17571ac_ext=c
17572ac_cpp='$CPP $CPPFLAGS'
17573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17575ac_compiler_gnu=$ac_cv_c_compiler_gnu
17576
17577
17578LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017580$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017581if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017582 $as_echo_n "(cached) " >&6
17583else
17584 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017586/* end confdefs.h. */
17587
17588/* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17591#ifdef __cplusplus
17592extern "C"
17593#endif
17594char dlopen ();
17595int
17596main ()
17597{
17598return dlopen ();
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603for ac_lib in '' dl; do
17604 if test -z "$ac_lib"; then
17605 ac_res="none required"
17606 else
17607 ac_res=-l$ac_lib
17608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17609 fi
cristy8b350f62009-11-15 23:12:43 +000017610 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017611 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017612fi
cristy8b350f62009-11-15 23:12:43 +000017613rm -f core conftest.err conftest.$ac_objext \
17614 conftest$ac_exeext
17615 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017616 break
17617fi
17618done
cristy8b350f62009-11-15 23:12:43 +000017619if test "${ac_cv_search_dlopen+set}" = set; then :
17620
cristy3ed852e2009-09-05 21:47:34 +000017621else
17622 ac_cv_search_dlopen=no
17623fi
17624rm conftest.$ac_ext
17625LIBS=$ac_func_search_save_LIBS
17626fi
cristy8b350f62009-11-15 23:12:43 +000017627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017628$as_echo "$ac_cv_search_dlopen" >&6; }
17629ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017630if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17632
cristy8b350f62009-11-15 23:12:43 +000017633$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017634
17635 if test "$ac_cv_search_dlopen" != "none required" ; then
17636 LIBADD_DLOPEN="-ldl"
17637 fi
17638 libltdl_cv_lib_dl_dlopen="yes"
17639 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17640else
cristy8b350f62009-11-15 23:12:43 +000017641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017642/* end confdefs.h. */
17643#if HAVE_DLFCN_H
17644# include <dlfcn.h>
17645#endif
17646
17647int
17648main ()
17649{
17650dlopen(0, 0);
17651 ;
17652 return 0;
17653}
17654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017656
cristy8b350f62009-11-15 23:12:43 +000017657$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017658
17659 libltdl_cv_func_dlopen="yes"
17660 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17661else
cristy8b350f62009-11-15 23:12:43 +000017662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017663$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017664if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017665 $as_echo_n "(cached) " >&6
17666else
17667 ac_check_lib_save_LIBS=$LIBS
17668LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017670/* end confdefs.h. */
17671
17672/* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17675#ifdef __cplusplus
17676extern "C"
17677#endif
17678char dlopen ();
17679int
17680main ()
17681{
17682return dlopen ();
17683 ;
17684 return 0;
17685}
17686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017688 ac_cv_lib_svld_dlopen=yes
17689else
cristy8b350f62009-11-15 23:12:43 +000017690 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017691fi
cristy8b350f62009-11-15 23:12:43 +000017692rm -f core conftest.err conftest.$ac_objext \
17693 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017694LIBS=$ac_check_lib_save_LIBS
17695fi
cristy8b350f62009-11-15 23:12:43 +000017696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017697$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017698if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017699
cristy8b350f62009-11-15 23:12:43 +000017700$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017701
17702 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17703 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17704fi
17705
17706fi
cristy8b350f62009-11-15 23:12:43 +000017707rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017709fi
17710
17711if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17712then
17713 lt_save_LIBS="$LIBS"
17714 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017715 for ac_func in dlerror
17716do :
17717 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17718if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017719 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017720#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017721_ACEOF
17722
17723fi
17724done
17725
17726 LIBS="$lt_save_LIBS"
17727fi
17728
17729
17730LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017731ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17732if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017733
cristy8b350f62009-11-15 23:12:43 +000017734$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017735
17736 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17737else
cristy8b350f62009-11-15 23:12:43 +000017738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017739$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017740if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017741 $as_echo_n "(cached) " >&6
17742else
17743 ac_check_lib_save_LIBS=$LIBS
17744LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017746/* end confdefs.h. */
17747
17748/* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17751#ifdef __cplusplus
17752extern "C"
17753#endif
17754char shl_load ();
17755int
17756main ()
17757{
17758return shl_load ();
17759 ;
17760 return 0;
17761}
17762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017764 ac_cv_lib_dld_shl_load=yes
17765else
cristy8b350f62009-11-15 23:12:43 +000017766 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017767fi
cristy8b350f62009-11-15 23:12:43 +000017768rm -f core conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017770LIBS=$ac_check_lib_save_LIBS
17771fi
cristy8b350f62009-11-15 23:12:43 +000017772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017773$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017774if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017775
cristy8b350f62009-11-15 23:12:43 +000017776$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017777
17778 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17779 LIBADD_SHL_LOAD="-ldld"
17780fi
17781
17782fi
17783
17784
17785
17786case $host_os in
17787darwin[1567].*)
17788# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017789 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17790if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017791
cristy8b350f62009-11-15 23:12:43 +000017792$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017793
17794 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17795fi
17796
17797 ;;
17798beos*)
17799 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17800 ;;
17801cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017802 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17803"
17804if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17805 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017806else
cristy8b350f62009-11-15 23:12:43 +000017807 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017808fi
17809
cristy3ed852e2009-09-05 21:47:34 +000017810cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017811#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017812_ACEOF
17813
cristy3ed852e2009-09-05 21:47:34 +000017814 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17815 ;;
17816esac
17817
cristy8b350f62009-11-15 23:12:43 +000017818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017819$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017820if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017821 $as_echo_n "(cached) " >&6
17822else
17823 ac_check_lib_save_LIBS=$LIBS
17824LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017826/* end confdefs.h. */
17827
17828/* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17831#ifdef __cplusplus
17832extern "C"
17833#endif
17834char dld_link ();
17835int
17836main ()
17837{
17838return dld_link ();
17839 ;
17840 return 0;
17841}
17842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017844 ac_cv_lib_dld_dld_link=yes
17845else
cristy8b350f62009-11-15 23:12:43 +000017846 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017847fi
cristy8b350f62009-11-15 23:12:43 +000017848rm -f core conftest.err conftest.$ac_objext \
17849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017850LIBS=$ac_check_lib_save_LIBS
17851fi
cristy8b350f62009-11-15 23:12:43 +000017852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017853$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017854if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017855
cristy8b350f62009-11-15 23:12:43 +000017856$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017857
17858 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17859fi
17860
17861
17862
17863
17864LT_DLPREOPEN=
17865if test -n "$LT_DLLOADERS"
17866then
17867 for lt_loader in $LT_DLLOADERS; do
17868 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17869 done
17870
cristy8b350f62009-11-15 23:12:43 +000017871$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017872
17873fi
17874
17875
17876LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17877
17878
17879ac_ext=c
17880ac_cpp='$CPP $CPPFLAGS'
17881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17883ac_compiler_gnu=$ac_cv_c_compiler_gnu
17884
17885
cristy8b350f62009-11-15 23:12:43 +000017886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017887$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017888if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017889 $as_echo_n "(cached) " >&6
17890else
17891 lt_cv_sys_symbol_underscore=no
17892 cat > conftest.$ac_ext <<_LT_EOF
17893void nm_test_func(){}
17894int main(){nm_test_func;return 0;}
17895_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017897 (eval $ac_compile) 2>&5
17898 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17900 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017901 # Now try to grab the symbols.
17902 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017903 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 +000017904 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17905 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17907 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017908 # See whether the symbols have a leading underscore.
17909 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17910 lt_cv_sys_symbol_underscore=yes
17911 else
17912 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17913 :
17914 else
17915 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17916 fi
17917 fi
17918 else
17919 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17920 fi
17921 else
17922 echo "configure: failed program was:" >&5
17923 cat conftest.c >&5
17924 fi
17925 rm -rf conftest*
17926
17927fi
cristy8b350f62009-11-15 23:12:43 +000017928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017929$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
17930 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17931
17932
17933if test x"$lt_cv_sys_symbol_underscore" = xyes; then
17934 if test x"$libltdl_cv_func_dlopen" = xyes ||
17935 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000017936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000017937$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017938if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017939 $as_echo_n "(cached) " >&6
17940else
17941 libltdl_cv_need_uscore=unknown
17942 save_LIBS="$LIBS"
17943 LIBS="$LIBS $LIBADD_DLOPEN"
17944 if test "$cross_compiling" = yes; then :
17945 libltdl_cv_need_uscore=cross
17946else
17947 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17948 lt_status=$lt_dlunknown
17949 cat > conftest.$ac_ext <<_LT_EOF
cristy99cc3002010-01-21 14:50:11 +000017950#line 17950 "configure"
cristy3ed852e2009-09-05 21:47:34 +000017951#include "confdefs.h"
17952
17953#if HAVE_DLFCN_H
17954#include <dlfcn.h>
17955#endif
17956
17957#include <stdio.h>
17958
17959#ifdef RTLD_GLOBAL
17960# define LT_DLGLOBAL RTLD_GLOBAL
17961#else
17962# ifdef DL_GLOBAL
17963# define LT_DLGLOBAL DL_GLOBAL
17964# else
17965# define LT_DLGLOBAL 0
17966# endif
17967#endif
17968
17969/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17970 find out it does not work in some platform. */
17971#ifndef LT_DLLAZY_OR_NOW
17972# ifdef RTLD_LAZY
17973# define LT_DLLAZY_OR_NOW RTLD_LAZY
17974# else
17975# ifdef DL_LAZY
17976# define LT_DLLAZY_OR_NOW DL_LAZY
17977# else
17978# ifdef RTLD_NOW
17979# define LT_DLLAZY_OR_NOW RTLD_NOW
17980# else
17981# ifdef DL_NOW
17982# define LT_DLLAZY_OR_NOW DL_NOW
17983# else
17984# define LT_DLLAZY_OR_NOW 0
17985# endif
17986# endif
17987# endif
17988# endif
17989#endif
17990
cristy18304f92009-11-22 15:48:26 +000017991void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000017992int main ()
17993{
17994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17995 int status = $lt_dlunknown;
17996
17997 if (self)
17998 {
17999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018000 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018001 /* dlclose (self); */
18002 }
18003 else
18004 puts (dlerror ());
18005
18006 return status;
18007}
18008_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018010 (eval $ac_link) 2>&5
18011 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18013 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018014 (./conftest; exit; ) >&5 2>/dev/null
18015 lt_status=$?
18016 case x$lt_status in
18017 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18018 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18019 x$lt_dlunknown|x*) ;;
18020 esac
18021 else :
18022 # compilation failed
18023
18024 fi
18025fi
18026rm -fr conftest*
18027
18028 LIBS="$save_LIBS"
18029
18030fi
cristy8b350f62009-11-15 23:12:43 +000018031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018032$as_echo "$libltdl_cv_need_uscore" >&6; }
18033 fi
18034fi
18035
18036if test x"$libltdl_cv_need_uscore" = xyes; then
18037
cristy8b350f62009-11-15 23:12:43 +000018038$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018039
18040fi
18041
cristy8b350f62009-11-15 23:12:43 +000018042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018043$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018044if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018045 $as_echo_n "(cached) " >&6
18046else
18047 # PORTME does your system automatically load deplibs for dlopen?
18048 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18049 # For now, we just catch OSes we know something about -- in the
18050 # future, we'll try test this programmatically.
18051 lt_cv_sys_dlopen_deplibs=unknown
18052 case $host_os in
18053 aix3*|aix4.1.*|aix4.2.*)
18054 # Unknown whether this is true for these versions of AIX, but
18055 # we want this `case' here to explicitly catch those versions.
18056 lt_cv_sys_dlopen_deplibs=unknown
18057 ;;
18058 aix[4-9]*)
18059 lt_cv_sys_dlopen_deplibs=yes
18060 ;;
18061 amigaos*)
18062 case $host_cpu in
18063 powerpc)
18064 lt_cv_sys_dlopen_deplibs=no
18065 ;;
18066 esac
18067 ;;
18068 darwin*)
18069 # Assuming the user has installed a libdl from somewhere, this is true
18070 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18071 lt_cv_sys_dlopen_deplibs=yes
18072 ;;
18073 freebsd* | dragonfly*)
18074 lt_cv_sys_dlopen_deplibs=yes
18075 ;;
cristy18304f92009-11-22 15:48:26 +000018076 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018077 # GNU and its variants, using gnu ld.so (Glibc)
18078 lt_cv_sys_dlopen_deplibs=yes
18079 ;;
18080 hpux10*|hpux11*)
18081 lt_cv_sys_dlopen_deplibs=yes
18082 ;;
18083 interix*)
18084 lt_cv_sys_dlopen_deplibs=yes
18085 ;;
18086 irix[12345]*|irix6.[01]*)
18087 # Catch all versions of IRIX before 6.2, and indicate that we don't
18088 # know how it worked for any of those versions.
18089 lt_cv_sys_dlopen_deplibs=unknown
18090 ;;
18091 irix*)
18092 # The case above catches anything before 6.2, and it's known that
18093 # at 6.2 and later dlopen does load deplibs.
18094 lt_cv_sys_dlopen_deplibs=yes
18095 ;;
18096 netbsd*)
18097 lt_cv_sys_dlopen_deplibs=yes
18098 ;;
18099 openbsd*)
18100 lt_cv_sys_dlopen_deplibs=yes
18101 ;;
18102 osf[1234]*)
18103 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18104 # it did *not* use an RPATH in a shared library to find objects the
18105 # library depends on, so we explicitly say `no'.
18106 lt_cv_sys_dlopen_deplibs=no
18107 ;;
18108 osf5.0|osf5.0a|osf5.1)
18109 # dlopen *does* load deplibs and with the right loader patch applied
18110 # it even uses RPATH in a shared library to search for shared objects
18111 # that the library depends on, but there's no easy way to know if that
18112 # patch is installed. Since this is the case, all we can really
18113 # say is unknown -- it depends on the patch being installed. If
18114 # it is, this changes to `yes'. Without it, it would be `no'.
18115 lt_cv_sys_dlopen_deplibs=unknown
18116 ;;
18117 osf*)
18118 # the two cases above should catch all versions of osf <= 5.1. Read
18119 # the comments above for what we know about them.
18120 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18121 # is used to find them so we can finally say `yes'.
18122 lt_cv_sys_dlopen_deplibs=yes
18123 ;;
18124 qnx*)
18125 lt_cv_sys_dlopen_deplibs=yes
18126 ;;
18127 solaris*)
18128 lt_cv_sys_dlopen_deplibs=yes
18129 ;;
18130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18131 libltdl_cv_sys_dlopen_deplibs=yes
18132 ;;
18133 esac
18134
18135fi
cristy8b350f62009-11-15 23:12:43 +000018136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018137$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18138if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18139
cristy8b350f62009-11-15 23:12:43 +000018140$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018141
18142fi
18143
18144:
18145
cristy3ed852e2009-09-05 21:47:34 +000018146for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018147do :
18148 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18149"
18150if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018151 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018152#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018153_ACEOF
18154
18155fi
18156
18157done
18158
18159
cristy8b350f62009-11-15 23:12:43 +000018160ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018161# include <argz.h>
18162#endif
cristy8b350f62009-11-15 23:12:43 +000018163"
18164if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018165
18166cat >>confdefs.h <<_ACEOF
18167#define HAVE_ERROR_T 1
18168_ACEOF
18169
18170
18171else
18172
cristy8b350f62009-11-15 23:12:43 +000018173$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018174
18175
cristy8b350f62009-11-15 23:12:43 +000018176$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018177
18178fi
18179
18180
18181ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018182for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18183 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018184do :
18185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18187eval as_val=\$$as_ac_var
18188 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018189 cat >>confdefs.h <<_ACEOF
18190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18191_ACEOF
18192
18193else
18194 ARGZ_H=argz.h;
18195
18196 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18197
18198fi
18199done
18200
18201
cristy8b350f62009-11-15 23:12:43 +000018202if test -z "$ARGZ_H"; then :
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018204$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018205if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018206 $as_echo_n "(cached) " >&6
18207else
18208 case $host_os in #(
18209 *cygwin*)
18210 lt_cv_sys_argz_works=no
18211 if test "$cross_compiling" != no; then
18212 lt_cv_sys_argz_works="guessing no"
18213 else
18214 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18215 save_IFS=$IFS
18216 IFS=-.
18217 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18218 IFS=$save_IFS
18219 lt_os_major=${2-0}
18220 lt_os_minor=${3-0}
18221 lt_os_micro=${4-0}
18222 if test "$lt_os_major" -gt 1 \
18223 || { test "$lt_os_major" -eq 1 \
18224 && { test "$lt_os_minor" -gt 5 \
18225 || { test "$lt_os_minor" -eq 5 \
18226 && test "$lt_os_micro" -gt 24; }; }; }; then
18227 lt_cv_sys_argz_works=yes
18228 fi
18229 fi
18230 ;; #(
18231 *) lt_cv_sys_argz_works=yes ;;
18232 esac
18233fi
cristy8b350f62009-11-15 23:12:43 +000018234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018235$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018236 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018237
cristy8b350f62009-11-15 23:12:43 +000018238$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018239
18240else
18241 ARGZ_H=argz.h
18242
18243
18244 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18245
18246fi
cristy3ed852e2009-09-05 21:47:34 +000018247fi
18248
18249
18250
cristy8b350f62009-11-15 23:12:43 +000018251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018252$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018253if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018254 $as_echo_n "(cached) " >&6
18255else
18256 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18257 libltdl_cv_preloaded_symbols=yes
18258 else
18259 libltdl_cv_preloaded_symbols=no
18260 fi
18261
18262fi
cristy8b350f62009-11-15 23:12:43 +000018263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018264$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18265if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18266
cristy8b350f62009-11-15 23:12:43 +000018267$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018268
18269fi
18270
18271# Set options
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018284if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018285 withval=$with_included_ltdl;
18286fi
18287
18288
18289if test "x$with_included_ltdl" != xyes; then
18290 # We are not being forced to use the included libltdl sources, so
18291 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018292 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018293
cristy8b350f62009-11-15 23:12:43 +000018294"
18295if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18296 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 +000018297 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018298"
18299if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018301$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018302if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018303 $as_echo_n "(cached) " >&6
18304else
18305 ac_check_lib_save_LIBS=$LIBS
18306LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018308/* end confdefs.h. */
18309
18310/* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18313#ifdef __cplusplus
18314extern "C"
18315#endif
18316char lt_dladvise_preload ();
18317int
18318main ()
18319{
18320return lt_dladvise_preload ();
18321 ;
18322 return 0;
18323}
18324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018325if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018326 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18327else
cristy8b350f62009-11-15 23:12:43 +000018328 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018329fi
cristy8b350f62009-11-15 23:12:43 +000018330rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018332LIBS=$ac_check_lib_save_LIBS
18333fi
cristy8b350f62009-11-15 23:12:43 +000018334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018335$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018336if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018337 with_included_ltdl=no
18338else
18339 with_included_ltdl=yes
18340fi
18341
18342else
18343 with_included_ltdl=yes
18344fi
18345
18346else
18347 with_included_ltdl=yes
18348fi
18349
18350
18351fi
18352
18353
18354
18355
18356# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018357if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018358 withval=$with_ltdl_include;
18359fi
18360
18361
18362if test -n "$with_ltdl_include"; then
18363 if test -f "$with_ltdl_include/ltdl.h"; then :
18364 else
cristy8b350f62009-11-15 23:12:43 +000018365 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018366 fi
18367else
18368 with_ltdl_include=no
18369fi
18370
18371
18372# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018373if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018374 withval=$with_ltdl_lib;
18375fi
18376
18377
18378if test -n "$with_ltdl_lib"; then
18379 if test -f "$with_ltdl_lib/libltdl.la"; then :
18380 else
cristy8b350f62009-11-15 23:12:43 +000018381 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018382 fi
18383else
18384 with_ltdl_lib=no
18385fi
18386
18387case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18388 ,yes,no,no,)
18389 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018390 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018391 "") enable_ltdl_convenience=yes
18392 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18393esac
18394LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18395LTDLDEPS=$LIBLTDL
18396LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18397
18398
18399
18400
18401
18402# For backwards non-gettext consistent compatibility...
18403INCLTDL="$LTDLINCL"
18404
18405
18406 ;;
18407 ,no,no,no,)
18408 # If the included ltdl is not to be used, then use the
18409 # preinstalled libltdl we found.
18410
cristy8b350f62009-11-15 23:12:43 +000018411$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018412
18413 LIBLTDL=-lltdl
18414 LTDLDEPS=
18415 LTDLINCL=
18416 ;;
18417 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018418 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018419 ;;
18420 *) with_included_ltdl=no
18421 LIBLTDL="-L$with_ltdl_lib -lltdl"
18422 LTDLDEPS=
18423 LTDLINCL="-I$with_ltdl_include"
18424 ;;
18425esac
18426INCLTDL="$LTDLINCL"
18427
18428# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018430$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018432$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018434$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018436$as_echo "$LIBLTDL" >&6; }
18437
18438
18439
18440# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018441if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018442 enableval=$enable_ltdl_install;
18443fi
18444
18445
18446case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18447 *yes*) ;;
18448 *) enable_ltdl_convenience=yes ;;
18449esac
18450
18451 if test x"${enable_ltdl_install-no}" != xno; then
18452 INSTALL_LTDL_TRUE=
18453 INSTALL_LTDL_FALSE='#'
18454else
18455 INSTALL_LTDL_TRUE='#'
18456 INSTALL_LTDL_FALSE=
18457fi
18458
18459 if test x"${enable_ltdl_convenience-no}" != xno; then
18460 CONVENIENCE_LTDL_TRUE=
18461 CONVENIENCE_LTDL_FALSE='#'
18462else
18463 CONVENIENCE_LTDL_TRUE='#'
18464 CONVENIENCE_LTDL_FALSE=
18465fi
18466
18467
18468
18469
18470
18471
cristy18304f92009-11-22 15:48:26 +000018472
cristy3ed852e2009-09-05 21:47:34 +000018473# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18474# the user used. This is so that ltdl.h can pick up the parent projects
18475# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18476# definitions required by ltdl.c.
18477# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18478
18479
18480
cristy3ed852e2009-09-05 21:47:34 +000018481for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018482do :
18483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18484ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18485"
18486eval as_val=\$$as_ac_Header
18487 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018488 cat >>confdefs.h <<_ACEOF
18489#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18490_ACEOF
18491
18492fi
18493
18494done
18495
18496
cristy3ed852e2009-09-05 21:47:34 +000018497for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018498do :
18499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18500ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18501eval as_val=\$$as_ac_var
18502 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018503 cat >>confdefs.h <<_ACEOF
18504#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18505_ACEOF
18506
18507else
18508
18509
18510 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18511
18512fi
18513done
18514
cristy3ed852e2009-09-05 21:47:34 +000018515for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018516do :
18517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18518ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18519eval as_val=\$$as_ac_var
18520 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018521 cat >>confdefs.h <<_ACEOF
18522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18523_ACEOF
18524
18525else
18526
18527
18528 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18529
18530fi
18531done
18532
18533
18534
18535cat >>confdefs.h <<_ACEOF
18536#define LT_LIBEXT "$libext"
18537_ACEOF
18538
18539
18540name=ltdl
18541LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18542
18543
18544
18545
18546
18547
18548
18549
18550# Only expand once:
18551
18552
18553
18554# Check to see if building shared libraries
18555libtool_build_shared_libs='no'
18556if test "$enable_shared" = 'yes'; then
18557 libtool_build_shared_libs='yes'
18558fi
18559
18560# Check to see if building static libraries
18561libtool_build_static_libs='no'
18562if test "$enable_static" = 'yes'; then
18563 libtool_build_static_libs='yes'
18564fi
18565
cristyfa112112010-01-04 17:48:07 +000018566 if test "${libtool_build_shared_libs}" = 'yes'; then
18567 WITH_SHARED_LIBS_TRUE=
18568 WITH_SHARED_LIBS_FALSE='#'
18569else
18570 WITH_SHARED_LIBS_TRUE='#'
18571 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000018572fi
18573
18574#
18575# Enable support for building loadable modules
18576#
18577
18578# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018579if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018580 withval=$with_modules; with_modules=$withval
18581else
cristy5a1cefd2010-01-06 20:42:35 +000018582 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000018583fi
18584
18585
18586# Only allow building loadable modules if we are building shared libraries
18587if test "$with_modules" != 'no' ; then
18588 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018589 { $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 +000018590$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18591 with_modules='no'
18592 fi
18593fi
18594if test "$with_modules" != 'no'; then
18595
cristy8b350f62009-11-15 23:12:43 +000018596$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018597
18598fi
18599 if test "$with_modules" != 'no'; then
18600 WITH_MODULES_TRUE=
18601 WITH_MODULES_FALSE='#'
18602else
18603 WITH_MODULES_TRUE='#'
18604 WITH_MODULES_FALSE=
18605fi
18606
18607
18608# Enable building/use of libltdl if we are building shared libraries regardless
18609# of whether modules are built or not.
18610with_ltdl='no'
18611if test "$libtool_build_shared_libs" != 'no'; then
18612 with_ltdl='yes'
18613fi
18614
18615 if test "$with_ltdl" != 'no'; then
18616 WITH_LTDL_TRUE=
18617 WITH_LTDL_FALSE='#'
18618else
18619 WITH_LTDL_TRUE='#'
18620 WITH_LTDL_FALSE=
18621fi
18622
18623if test "$with_ltdl" != 'no'; then
18624
cristy8b350f62009-11-15 23:12:43 +000018625$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018626
18627
18628 # Set DLLDFLAGS
18629 if test X"$enable_shared" = Xyes; then
18630 DLLDFLAGS=-export-dynamic
18631
18632 fi
18633fi
18634
18635# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000018636# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000018637# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018638if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018639 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18640else
18641 enable_delegate_build='no'
18642fi
18643
18644
18645# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018646if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018647 enableval=$enable_deprecated; enable_deprecated=$enableval
18648else
18649 enable_deprecated='no'
18650fi
18651
18652
18653if test "$enable_deprecated" = 'yes'; then
18654
cristy8b350f62009-11-15 23:12:43 +000018655$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018656
18657else
18658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18659fi
18660
18661# Build a version of ImageMagick which operates uninstalled.
18662# Used to build distributions located via MAGICK_HOME / executable path
18663# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018664if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018665 enableval=$enable_installed; enable_installed=$enableval
18666else
18667 enable_installed='yes'
18668fi
18669
18670
18671if test "$enable_installed" = 'yes'; then
18672
cristy8b350f62009-11-15 23:12:43 +000018673$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018674
18675else
18676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18677fi
18678
18679# Permit enciphering and deciphering image pixels.
18680# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018681if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018682 enableval=$enable_cipher; enable_cipher=$enableval
18683else
18684 enable_cipher='yes'
18685fi
18686
18687
18688if test "$enable_cipher" = 'yes'; then
18689
cristy8b350f62009-11-15 23:12:43 +000018690$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018691
18692fi
18693
18694# Build an embeddable version of ImageMagick.
18695# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018696if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018697 enableval=$enable_embeddable; enable_embeddable=$enableval
18698else
18699 enable_embeddable='no'
18700fi
18701
18702
18703if test "$enable_embeddable" = 'yes'; then
18704
cristy8b350f62009-11-15 23:12:43 +000018705$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018706
18707fi
18708
18709# Build a high dynamic range version of ImageMagick.
18710# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018711if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018712 enableval=$enable_hdri; enable_hdri=$enableval
18713else
18714 enable_hdri='no'
18715fi
18716
18717
18718MAGICK_HDRI=""
18719if test "$enable_hdri" = 'yes'; then
18720 MAGICK_HDRI="HDRI"
18721
cristy8b350f62009-11-15 23:12:43 +000018722$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018723
18724fi
18725
cristy3ed852e2009-09-05 21:47:34 +000018726# Build a version of ImageMagick with assert statements.
18727# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018728if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018729 enableval=$enable_assert; enable_assert=$enableval
18730else
18731 enable_assert='yes'
18732fi
18733
18734
18735if test "$enable_assert" = 'no'; then
18736
cristy8b350f62009-11-15 23:12:43 +000018737$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018738
18739fi
18740
18741# Add configure option --enable-maintainer-mode which enables dependency
18742# checking and generation useful to package maintainers. This is made an
18743# option to avoid confusing end users.
18744
cristy8b350f62009-11-15 23:12:43 +000018745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018746$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18747 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018748if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018749 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18750else
18751 USE_MAINTAINER_MODE=no
18752fi
18753
cristy8b350f62009-11-15 23:12:43 +000018754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018755$as_echo "$USE_MAINTAINER_MODE" >&6; }
18756 if test $USE_MAINTAINER_MODE = yes; then
18757 MAINTAINER_MODE_TRUE=
18758 MAINTAINER_MODE_FALSE='#'
18759else
18760 MAINTAINER_MODE_TRUE='#'
18761 MAINTAINER_MODE_FALSE=
18762fi
18763
18764 MAINT=$MAINTAINER_MODE_TRUE
18765
18766
18767
18768
18769# Enable ccmalloc memory debugging support
18770# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018771if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018772 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18773else
18774 enable_ccmalloc='no'
18775fi
18776
18777
18778# Enable Electric Fence memory debugging support
18779# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018780if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018781 enableval=$enable_efence; enable_efence=$enableval
18782else
18783 enable_efence='no'
18784fi
18785
18786
18787# Enable prof-based profiling support
18788# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018789if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018790 enableval=$enable_prof; enable_prof=$enableval
18791else
18792 enable_prof='no'
18793fi
18794
18795
18796# Enable gprof-based profiling support
18797# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018798if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018799 enableval=$enable_gprof; enable_gprof=$enableval
18800else
18801 enable_gprof='no'
18802fi
18803
18804
18805# Enable gcov-based profiling support
18806# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018807if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018808 enableval=$enable_gcov; enable_gcov=$enableval
18809else
18810 enable_gcov='no'
18811fi
18812
18813
18814enable_profiling='no'
18815if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18816 enable_profiling='yes'
18817 if test "$libtool_build_shared_libs" = 'yes'; then
18818 echo "Warning: Can not profile code using shared libraries"
18819 fi
18820fi
18821
18822# Magick API method prefix
18823
18824# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018825if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018826 withval=$with_method_prefix; with_method_prefix=$enableval
18827else
18828 with_method_prefix=''
18829fi
18830
18831
18832if test "$with_method_prefix" != ''; then
18833
18834cat >>confdefs.h <<_ACEOF
18835#define NAMESPACE_PREFIX $with_method_prefix
18836_ACEOF
18837
18838fi
18839
18840# Number of bits in a Quantum
18841
18842# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018843if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018844 withval=$with_quantum_depth; with_quantum_depth=$withval
18845else
18846 with_quantum_depth=16
18847fi
18848
18849
18850if test "$with_quantum_depth" != '8'; then
18851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18852fi
18853
18854case "${with_quantum_depth}" in
18855 8 ) ;;
18856 16 ) ;;
18857 32 ) ;;
18858 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018859 * ) { as_fn_set_status 16
18860as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018861esac
18862QUANTUM_DEPTH="$with_quantum_depth"
18863
18864cat >>confdefs.h <<_ACEOF
18865#define QUANTUM_DEPTH $QUANTUM_DEPTH
18866_ACEOF
18867
18868
18869# Set pixel cache threshold
18870
18871# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018872if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018873 withval=$with_cache; with_cache=$withval
18874else
18875 with_cache=''
18876fi
18877
18878
18879if test "$with_cache" != ''; then
18880
18881cat >>confdefs.h <<_ACEOF
18882#define PixelCacheThreshold $with_cache
18883_ACEOF
18884
18885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18886fi
18887
18888# Disable/Enable support for full delegate paths
18889
18890# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018891if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018892 withval=$with_frozenpaths; with_frozenpaths=$withval
18893else
18894 with_frozenpaths='no'
18895fi
18896
18897
18898# Enable build/install of Magick++
18899
18900# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018901if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018902 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18903else
18904 with_magick_plus_plus='yes'
18905fi
18906
18907
18908# Disable build/install of PerlMagick.
18909
18910# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018911if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018912 withval=$with_perl; with_perl=$withval
18913else
18914 with_perl=$libtool_build_shared_libs
18915fi
18916
18917
18918# Options to pass when configuring PerlMagick
18919
18920# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000018921if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000018922 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000018923fi
18924
18925
cristy3ed852e2009-09-05 21:47:34 +000018926
18927# Enable umem, object-caching memory allocation library.
18928
18929# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000018930if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018931 withval=$with_umem; with_umem=$withval
18932else
18933 with_umem='no'
18934fi
18935
18936if test "$with_umem" != 'yes' ; then
18937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
18938fi
18939
18940#
18941# Specify path to shared libstdc++ if not in normal location
18942#
18943
18944# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000018945if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018946 withval=$with_libstdc; with_libstdc=$withval
18947else
18948 with_libstdc=''
18949fi
18950
18951
18952if test "$with_libstdc" != ''; then
18953 if test -d "$with_libstdc"; then
18954 LIBSTDCLDFLAGS="-L$with_libstdc"
18955 fi
18956fi
18957
18958
18959# Does gcc required -traditional?
18960if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000018961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018962$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018963if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018964 $as_echo_n "(cached) " >&6
18965else
18966 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000018967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018968/* end confdefs.h. */
18969#include <sgtty.h>
18970Autoconf TIOCGETP
18971_ACEOF
18972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018973 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018974 ac_cv_prog_gcc_traditional=yes
18975else
18976 ac_cv_prog_gcc_traditional=no
18977fi
18978rm -f conftest*
18979
18980
18981 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000018982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018983/* end confdefs.h. */
18984#include <termio.h>
18985Autoconf TCGETA
18986_ACEOF
18987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018988 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018989 ac_cv_prog_gcc_traditional=yes
18990fi
18991rm -f conftest*
18992
18993 fi
18994fi
cristy8b350f62009-11-15 23:12:43 +000018995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018996$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
18997 if test $ac_cv_prog_gcc_traditional = yes; then
18998 CC="$CC -traditional"
18999 fi
19000fi
19001
19002
19003########
19004#
19005# Set defines required to build DLLs and modules using MinGW
19006#
19007########
19008# These options are set for multi-thread DLL module build
19009# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19010# module: _DLL
19011# executable/Magick++: _DLL _MAGICKMOD_
19012MODULE_EXTRA_CPPFLAGS=''
19013LIBRARY_EXTRA_CPPFLAGS=''
19014if test "${native_win32_build}" = 'yes'; then
19015 if test "${libtool_build_shared_libs}" = 'yes'; then
19016 CPPFLAGS="$CPPFLAGS -D_DLL"
19017 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19018 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19019 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19020 if test "$with_modules" = 'yes'; then
19021 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19022 else
19023 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19024 fi
19025 else
19026 CPPFLAGS="$CPPFLAGS -D_LIB"
19027 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19028 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19029 fi
19030 if test "$with_threads" = 'yes'; then
19031 CPPFLAGS="$CPPFLAGS -D_MT"
19032 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19033 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19034 fi
19035fi
19036
19037
19038
19039# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019041$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019042if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019043 $as_echo_n "(cached) " >&6
19044else
cristy8b350f62009-11-15 23:12:43 +000019045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019046/* end confdefs.h. */
19047#include <stdlib.h>
19048#include <stdarg.h>
19049#include <string.h>
19050#include <float.h>
19051
19052int
19053main ()
19054{
19055
19056 ;
19057 return 0;
19058}
19059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019061 ac_cv_header_stdc=yes
19062else
cristy8b350f62009-11-15 23:12:43 +000019063 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019064fi
cristy3ed852e2009-09-05 21:47:34 +000019065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066
19067if test $ac_cv_header_stdc = yes; then
19068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019070/* end confdefs.h. */
19071#include <string.h>
19072
19073_ACEOF
19074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019075 $EGREP "memchr" >/dev/null 2>&1; then :
19076
cristy3ed852e2009-09-05 21:47:34 +000019077else
19078 ac_cv_header_stdc=no
19079fi
19080rm -f conftest*
19081
19082fi
19083
19084if test $ac_cv_header_stdc = yes; then
19085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019087/* end confdefs.h. */
19088#include <stdlib.h>
19089
19090_ACEOF
19091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019092 $EGREP "free" >/dev/null 2>&1; then :
19093
cristy3ed852e2009-09-05 21:47:34 +000019094else
19095 ac_cv_header_stdc=no
19096fi
19097rm -f conftest*
19098
19099fi
19100
19101if test $ac_cv_header_stdc = yes; then
19102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019103 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019104 :
19105else
cristy8b350f62009-11-15 23:12:43 +000019106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019107/* end confdefs.h. */
19108#include <ctype.h>
19109#include <stdlib.h>
19110#if ((' ' & 0x0FF) == 0x020)
19111# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19112# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19113#else
19114# define ISLOWER(c) \
19115 (('a' <= (c) && (c) <= 'i') \
19116 || ('j' <= (c) && (c) <= 'r') \
19117 || ('s' <= (c) && (c) <= 'z'))
19118# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19119#endif
19120
19121#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19122int
19123main ()
19124{
19125 int i;
19126 for (i = 0; i < 256; i++)
19127 if (XOR (islower (i), ISLOWER (i))
19128 || toupper (i) != TOUPPER (i))
19129 return 2;
19130 return 0;
19131}
19132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019133if ac_fn_c_try_run "$LINENO"; then :
19134
cristy3ed852e2009-09-05 21:47:34 +000019135else
cristy8b350f62009-11-15 23:12:43 +000019136 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019137fi
cristy8b350f62009-11-15 23:12:43 +000019138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19139 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019140fi
19141
cristy3ed852e2009-09-05 21:47:34 +000019142fi
19143fi
cristy8b350f62009-11-15 23:12:43 +000019144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019145$as_echo "$ac_cv_header_stdc" >&6; }
19146if test $ac_cv_header_stdc = yes; then
19147
cristy8b350f62009-11-15 23:12:43 +000019148$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019149
19150fi
19151
19152if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019153 { $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 +000019154 header files. Compilation cannot proceed. Please install the ANSI C
19155 headers and rerun this script." >&5
19156$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19157 header files. Compilation cannot proceed. Please install the ANSI C
19158 headers and rerun this script." >&2;};
19159fi
cristy3ed852e2009-09-05 21:47:34 +000019160ac_header_dirent=no
19161for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19162 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019164$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019166 $as_echo_n "(cached) " >&6
19167else
cristy8b350f62009-11-15 23:12:43 +000019168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019169/* end confdefs.h. */
19170#include <sys/types.h>
19171#include <$ac_hdr>
19172
19173int
19174main ()
19175{
19176if ((DIR *) 0)
19177return 0;
19178 ;
19179 return 0;
19180}
19181_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019182if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019183 eval "$as_ac_Header=yes"
19184else
cristy8b350f62009-11-15 23:12:43 +000019185 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019186fi
cristy3ed852e2009-09-05 21:47:34 +000019187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188fi
cristy8b350f62009-11-15 23:12:43 +000019189eval ac_res=\$$as_ac_Header
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019191$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019192eval as_val=\$$as_ac_Header
19193 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019194 cat >>confdefs.h <<_ACEOF
19195#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19196_ACEOF
19197
19198ac_header_dirent=$ac_hdr; break
19199fi
19200
19201done
19202# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19203if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019205$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019206if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019207 $as_echo_n "(cached) " >&6
19208else
19209 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019211/* end confdefs.h. */
19212
19213/* Override any GCC internal prototype to avoid an error.
19214 Use char because int might match the return type of a GCC
19215 builtin and then its argument prototype would still apply. */
19216#ifdef __cplusplus
19217extern "C"
19218#endif
19219char opendir ();
19220int
19221main ()
19222{
19223return opendir ();
19224 ;
19225 return 0;
19226}
19227_ACEOF
19228for ac_lib in '' dir; do
19229 if test -z "$ac_lib"; then
19230 ac_res="none required"
19231 else
19232 ac_res=-l$ac_lib
19233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19234 fi
cristy8b350f62009-11-15 23:12:43 +000019235 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019236 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019237fi
cristy8b350f62009-11-15 23:12:43 +000019238rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext
19240 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019241 break
19242fi
19243done
cristy8b350f62009-11-15 23:12:43 +000019244if test "${ac_cv_search_opendir+set}" = set; then :
19245
cristy3ed852e2009-09-05 21:47:34 +000019246else
19247 ac_cv_search_opendir=no
19248fi
19249rm conftest.$ac_ext
19250LIBS=$ac_func_search_save_LIBS
19251fi
cristy8b350f62009-11-15 23:12:43 +000019252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019253$as_echo "$ac_cv_search_opendir" >&6; }
19254ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019255if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19257
19258fi
19259
19260else
cristy8b350f62009-11-15 23:12:43 +000019261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019262$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019263if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019264 $as_echo_n "(cached) " >&6
19265else
19266 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019268/* end confdefs.h. */
19269
19270/* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19273#ifdef __cplusplus
19274extern "C"
19275#endif
19276char opendir ();
19277int
19278main ()
19279{
19280return opendir ();
19281 ;
19282 return 0;
19283}
19284_ACEOF
19285for ac_lib in '' x; do
19286 if test -z "$ac_lib"; then
19287 ac_res="none required"
19288 else
19289 ac_res=-l$ac_lib
19290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19291 fi
cristy8b350f62009-11-15 23:12:43 +000019292 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019293 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019294fi
cristy8b350f62009-11-15 23:12:43 +000019295rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext
19297 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019298 break
19299fi
19300done
cristy8b350f62009-11-15 23:12:43 +000019301if test "${ac_cv_search_opendir+set}" = set; then :
19302
cristy3ed852e2009-09-05 21:47:34 +000019303else
19304 ac_cv_search_opendir=no
19305fi
19306rm conftest.$ac_ext
19307LIBS=$ac_func_search_save_LIBS
19308fi
cristy8b350f62009-11-15 23:12:43 +000019309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019310$as_echo "$ac_cv_search_opendir" >&6; }
19311ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019312if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19314
19315fi
19316
19317fi
19318
19319
19320# Check additional headers
cristy98e91bd2010-01-12 01:11:42 +000019321for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000019322do :
19323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19324ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19325eval as_val=\$$as_ac_Header
19326 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019327 cat >>confdefs.h <<_ACEOF
19328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19329_ACEOF
19330
19331fi
19332
19333done
19334
19335
19336########
19337#
19338# Checks for typedefs, structures, and compiler characteristics.
19339#
19340########
19341
cristy8b350f62009-11-15 23:12:43 +000019342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019343$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019344if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019345 $as_echo_n "(cached) " >&6
19346else
cristy8b350f62009-11-15 23:12:43 +000019347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019348/* end confdefs.h. */
19349
19350#include <stdbool.h>
19351#ifndef bool
19352 "error: bool is not defined"
19353#endif
19354#ifndef false
19355 "error: false is not defined"
19356#endif
19357#if false
19358 "error: false is not 0"
19359#endif
19360#ifndef true
19361 "error: true is not defined"
19362#endif
19363#if true != 1
19364 "error: true is not 1"
19365#endif
19366#ifndef __bool_true_false_are_defined
19367 "error: __bool_true_false_are_defined is not defined"
19368#endif
19369
19370 struct s { _Bool s: 1; _Bool t; } s;
19371
19372 char a[true == 1 ? 1 : -1];
19373 char b[false == 0 ? 1 : -1];
19374 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19375 char d[(bool) 0.5 == true ? 1 : -1];
19376 bool e = &s;
19377 char f[(_Bool) 0.0 == false ? 1 : -1];
19378 char g[true];
19379 char h[sizeof (_Bool)];
19380 char i[sizeof s.t];
19381 enum { j = false, k = true, l = false * true, m = true * 256 };
19382 /* The following fails for
19383 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19384 _Bool n[m];
19385 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19386 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19387# if defined __xlc__ || defined __GNUC__
19388 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19389 reported by James Lemley on 2005-10-05; see
19390 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19391 This test is not quite right, since xlc is allowed to
19392 reject this program, as the initializer for xlcbug is
19393 not one of the forms that C requires support for.
19394 However, doing the test right would require a runtime
19395 test, and that would make cross-compilation harder.
19396 Let us hope that IBM fixes the xlc bug, and also adds
19397 support for this kind of constant expression. In the
19398 meantime, this test will reject xlc, which is OK, since
19399 our stdbool.h substitute should suffice. We also test
19400 this with GCC, where it should work, to detect more
19401 quickly whether someone messes up the test in the
19402 future. */
19403 char digs[] = "0123456789";
19404 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19405# endif
19406 /* Catch a bug in an HP-UX C compiler. See
19407 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19408 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19409 */
19410 _Bool q = true;
19411 _Bool *pq = &q;
19412
19413int
19414main ()
19415{
19416
19417 *pq |= q;
19418 *pq |= ! q;
19419 /* Refer to every declared value, to avoid compiler optimizations. */
19420 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19421 + !m + !n + !o + !p + !q + !pq);
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019427if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019428 ac_cv_header_stdbool_h=yes
19429else
cristy8b350f62009-11-15 23:12:43 +000019430 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019431fi
cristy3ed852e2009-09-05 21:47:34 +000019432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433fi
cristy8b350f62009-11-15 23:12:43 +000019434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019435$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019436ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19437if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019438
19439cat >>confdefs.h <<_ACEOF
19440#define HAVE__BOOL 1
19441_ACEOF
19442
19443
19444fi
19445
19446if test $ac_cv_header_stdbool_h = yes; then
19447
cristy8b350f62009-11-15 23:12:43 +000019448$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019449
19450fi
19451
cristy8b350f62009-11-15 23:12:43 +000019452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019453$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019454if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019455 $as_echo_n "(cached) " >&6
19456else
cristy8b350f62009-11-15 23:12:43 +000019457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019458/* end confdefs.h. */
19459
19460int
19461main ()
19462{
19463
19464volatile int x;
19465int * volatile y = (int *) 0;
19466return !x && !y;
19467 ;
19468 return 0;
19469}
19470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019471if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019472 ac_cv_c_volatile=yes
19473else
cristy8b350f62009-11-15 23:12:43 +000019474 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019475fi
cristy3ed852e2009-09-05 21:47:34 +000019476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477fi
cristy8b350f62009-11-15 23:12:43 +000019478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019479$as_echo "$ac_cv_c_volatile" >&6; }
19480if test $ac_cv_c_volatile = no; then
19481
cristy8b350f62009-11-15 23:12:43 +000019482$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019483
19484fi
19485
cristy8b350f62009-11-15 23:12:43 +000019486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019487$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019488if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019489 $as_echo_n "(cached) " >&6
19490else
cristy8b350f62009-11-15 23:12:43 +000019491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019492/* end confdefs.h. */
19493#define x(y) #y
19494
19495char *s = x(teststring);
19496_ACEOF
19497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019498 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019499 ac_cv_c_stringize=no
19500else
19501 ac_cv_c_stringize=yes
19502fi
19503rm -f conftest*
19504
19505fi
cristy8b350f62009-11-15 23:12:43 +000019506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019507$as_echo "$ac_cv_c_stringize" >&6; }
19508if test $ac_cv_c_stringize = yes; then
19509
cristy8b350f62009-11-15 23:12:43 +000019510$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019511
19512fi
19513
cristy8b350f62009-11-15 23:12:43 +000019514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019515$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019516if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019517 $as_echo_n "(cached) " >&6
19518else
cristy8b350f62009-11-15 23:12:43 +000019519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019520/* end confdefs.h. */
19521#include <sys/types.h>
19522#include <sys/stat.h>
19523
19524#if defined S_ISBLK && defined S_IFDIR
19525extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19526#endif
19527
19528#if defined S_ISBLK && defined S_IFCHR
19529extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19530#endif
19531
19532#if defined S_ISLNK && defined S_IFREG
19533extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19534#endif
19535
19536#if defined S_ISSOCK && defined S_IFREG
19537extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19538#endif
19539
19540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019541if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019542 ac_cv_header_stat_broken=no
19543else
cristy8b350f62009-11-15 23:12:43 +000019544 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019545fi
cristy3ed852e2009-09-05 21:47:34 +000019546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547fi
cristy8b350f62009-11-15 23:12:43 +000019548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019549$as_echo "$ac_cv_header_stat_broken" >&6; }
19550if test $ac_cv_header_stat_broken = yes; then
19551
cristy8b350f62009-11-15 23:12:43 +000019552$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019553
19554fi
19555
cristy8b350f62009-11-15 23:12:43 +000019556{ $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 +000019557$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019558if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019559 $as_echo_n "(cached) " >&6
19560else
cristy8b350f62009-11-15 23:12:43 +000019561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019562/* end confdefs.h. */
19563#include <sys/types.h>
19564#include <sys/time.h>
19565#include <time.h>
19566
19567int
19568main ()
19569{
19570if ((struct tm *) 0)
19571return 0;
19572 ;
19573 return 0;
19574}
19575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019576if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019577 ac_cv_header_time=yes
19578else
cristy8b350f62009-11-15 23:12:43 +000019579 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019580fi
cristy3ed852e2009-09-05 21:47:34 +000019581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582fi
cristy8b350f62009-11-15 23:12:43 +000019583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019584$as_echo "$ac_cv_header_time" >&6; }
19585if test $ac_cv_header_time = yes; then
19586
cristy8b350f62009-11-15 23:12:43 +000019587$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019588
19589fi
19590
cristy8b350f62009-11-15 23:12:43 +000019591{ $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 +000019592$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019593if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019594 $as_echo_n "(cached) " >&6
19595else
cristy8b350f62009-11-15 23:12:43 +000019596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019597/* end confdefs.h. */
19598#include <sys/types.h>
19599#include <time.h>
19600
19601int
19602main ()
19603{
19604struct tm tm;
19605 int *p = &tm.tm_sec;
19606 return !p;
19607 ;
19608 return 0;
19609}
19610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019611if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019612 ac_cv_struct_tm=time.h
19613else
cristy8b350f62009-11-15 23:12:43 +000019614 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019615fi
cristy3ed852e2009-09-05 21:47:34 +000019616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617fi
cristy8b350f62009-11-15 23:12:43 +000019618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019619$as_echo "$ac_cv_struct_tm" >&6; }
19620if test $ac_cv_struct_tm = sys/time.h; then
19621
cristy8b350f62009-11-15 23:12:43 +000019622$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019623
19624fi
19625
cristy8b350f62009-11-15 23:12:43 +000019626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019627$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019628if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019629 $as_echo_n "(cached) " >&6
19630else
19631 echo '#! /bin/cat
19632exit 69
19633' >conftest
19634chmod u+x conftest
19635(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19636if test $? -ne 69; then
19637 ac_cv_sys_interpreter=yes
19638else
19639 ac_cv_sys_interpreter=no
19640fi
19641rm -f conftest
19642fi
cristy8b350f62009-11-15 23:12:43 +000019643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019644$as_echo "$ac_cv_sys_interpreter" >&6; }
19645interpval=$ac_cv_sys_interpreter
19646
19647
19648# If the C compiler does not fully support the ANSI C qualifier const,
19649# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019651$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019652if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019653 $as_echo_n "(cached) " >&6
19654else
cristy8b350f62009-11-15 23:12:43 +000019655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019656/* end confdefs.h. */
19657
19658int
19659main ()
19660{
19661/* FIXME: Include the comments suggested by Paul. */
19662#ifndef __cplusplus
19663 /* Ultrix mips cc rejects this. */
19664 typedef int charset[2];
19665 const charset cs;
19666 /* SunOS 4.1.1 cc rejects this. */
19667 char const *const *pcpcc;
19668 char **ppc;
19669 /* NEC SVR4.0.2 mips cc rejects this. */
19670 struct point {int x, y;};
19671 static struct point const zero = {0,0};
19672 /* AIX XL C 1.02.0.0 rejects this.
19673 It does not let you subtract one const X* pointer from another in
19674 an arm of an if-expression whose if-part is not a constant
19675 expression */
19676 const char *g = "string";
19677 pcpcc = &g + (g ? g-g : 0);
19678 /* HPUX 7.0 cc rejects these. */
19679 ++pcpcc;
19680 ppc = (char**) pcpcc;
19681 pcpcc = (char const *const *) ppc;
19682 { /* SCO 3.2v4 cc rejects this. */
19683 char *t;
19684 char const *s = 0 ? (char *) 0 : (char const *) 0;
19685
19686 *t++ = 0;
19687 if (s) return 0;
19688 }
19689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19690 int x[] = {25, 17};
19691 const int *foo = &x[0];
19692 ++foo;
19693 }
19694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19695 typedef const int *iptr;
19696 iptr p = 0;
19697 ++p;
19698 }
19699 { /* AIX XL C 1.02.0.0 rejects this saying
19700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19701 struct s { int j; const int *ap[3]; };
19702 struct s *b; b->j = 5;
19703 }
19704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19705 const int foo = 10;
19706 if (!foo) return 0;
19707 }
19708 return !cs[0] && !zero.x;
19709#endif
19710
19711 ;
19712 return 0;
19713}
19714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019716 ac_cv_c_const=yes
19717else
cristy8b350f62009-11-15 23:12:43 +000019718 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019719fi
cristy3ed852e2009-09-05 21:47:34 +000019720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721fi
cristy8b350f62009-11-15 23:12:43 +000019722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019723$as_echo "$ac_cv_c_const" >&6; }
19724if test $ac_cv_c_const = no; then
19725
cristy8b350f62009-11-15 23:12:43 +000019726$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019727
19728fi
19729
19730
19731# If the C compiler supports the keyword inline, do nothing. Otherwise
19732# define inline to __inline__ or __inline if it accepts one of those,
19733# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019735$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019736if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019737 $as_echo_n "(cached) " >&6
19738else
19739 ac_cv_c_inline=no
19740for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019742/* end confdefs.h. */
19743#ifndef __cplusplus
19744typedef int foo_t;
19745static $ac_kw foo_t static_foo () {return 0; }
19746$ac_kw foo_t foo () {return 0; }
19747#endif
19748
19749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019750if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019751 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019752fi
cristy3ed852e2009-09-05 21:47:34 +000019753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754 test "$ac_cv_c_inline" != no && break
19755done
19756
19757fi
cristy8b350f62009-11-15 23:12:43 +000019758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019759$as_echo "$ac_cv_c_inline" >&6; }
19760
cristy3ed852e2009-09-05 21:47:34 +000019761case $ac_cv_c_inline in
19762 inline | yes) ;;
19763 *)
19764 case $ac_cv_c_inline in
19765 no) ac_val=;;
19766 *) ac_val=$ac_cv_c_inline;;
19767 esac
19768 cat >>confdefs.h <<_ACEOF
19769#ifndef __cplusplus
19770#define inline $ac_val
19771#endif
19772_ACEOF
19773 ;;
19774esac
19775
19776
19777# If the C compiler supports the keyword restrict, do nothing. Otherwise
19778# define restrict to __restrict__ or __restrict if it accepts one of those,
19779# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019781$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019782if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019783 $as_echo_n "(cached) " >&6
19784else
19785 ac_cv_c_restrict=no
19786 # The order here caters to the fact that C++ does not require restrict.
19787 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019789/* end confdefs.h. */
19790typedef int * int_ptr;
19791 int foo (int_ptr $ac_kw ip) {
19792 return ip[0];
19793 }
19794int
19795main ()
19796{
19797int s[1];
19798 int * $ac_kw t = s;
19799 t[0] = 0;
19800 return foo(t)
19801 ;
19802 return 0;
19803}
19804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019805if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019806 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019807fi
cristy3ed852e2009-09-05 21:47:34 +000019808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19809 test "$ac_cv_c_restrict" != no && break
19810 done
19811
19812fi
cristy8b350f62009-11-15 23:12:43 +000019813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019814$as_echo "$ac_cv_c_restrict" >&6; }
19815
cristy3ed852e2009-09-05 21:47:34 +000019816 case $ac_cv_c_restrict in
19817 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019818 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019819 ;;
19820 *) cat >>confdefs.h <<_ACEOF
19821#define restrict $ac_cv_c_restrict
19822_ACEOF
19823 ;;
19824 esac
19825
19826
19827# If words are stored with the most significant byte first (like
19828# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019830$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019831if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019832 $as_echo_n "(cached) " >&6
19833else
19834 ac_cv_c_bigendian=unknown
19835 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019837/* end confdefs.h. */
19838#ifndef __APPLE_CC__
19839 not a universal capable compiler
19840 #endif
19841 typedef int dummy;
19842
19843_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019844if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019845
19846 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019847 # there are at least two -arch flags with different values.
19848 ac_arch=
19849 ac_prev=
19850 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19851 if test -n "$ac_prev"; then
19852 case $ac_word in
19853 i?86 | x86_64 | ppc | ppc64)
19854 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19855 ac_arch=$ac_word
19856 else
19857 ac_cv_c_bigendian=universal
19858 break
19859 fi
19860 ;;
19861 esac
19862 ac_prev=
19863 elif test "x$ac_word" = "x-arch"; then
19864 ac_prev=arch
19865 fi
19866 done
cristy3ed852e2009-09-05 21:47:34 +000019867fi
cristy3ed852e2009-09-05 21:47:34 +000019868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869 if test $ac_cv_c_bigendian = unknown; then
19870 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019872/* end confdefs.h. */
19873#include <sys/types.h>
19874 #include <sys/param.h>
19875
19876int
19877main ()
19878{
19879#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19880 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19881 && LITTLE_ENDIAN)
19882 bogus endian macros
19883 #endif
19884
19885 ;
19886 return 0;
19887}
19888_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019890 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019892/* end confdefs.h. */
19893#include <sys/types.h>
19894 #include <sys/param.h>
19895
19896int
19897main ()
19898{
19899#if BYTE_ORDER != BIG_ENDIAN
19900 not big endian
19901 #endif
19902
19903 ;
19904 return 0;
19905}
19906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019907if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019908 ac_cv_c_bigendian=yes
19909else
cristy8b350f62009-11-15 23:12:43 +000019910 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019911fi
cristy3ed852e2009-09-05 21:47:34 +000019912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019913fi
cristy3ed852e2009-09-05 21:47:34 +000019914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915 fi
19916 if test $ac_cv_c_bigendian = unknown; then
19917 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000019918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019919/* end confdefs.h. */
19920#include <limits.h>
19921
19922int
19923main ()
19924{
19925#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19926 bogus endian macros
19927 #endif
19928
19929 ;
19930 return 0;
19931}
19932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019933if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019934 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019936/* end confdefs.h. */
19937#include <limits.h>
19938
19939int
19940main ()
19941{
19942#ifndef _BIG_ENDIAN
19943 not big endian
19944 #endif
19945
19946 ;
19947 return 0;
19948}
19949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019950if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019951 ac_cv_c_bigendian=yes
19952else
cristy8b350f62009-11-15 23:12:43 +000019953 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019954fi
cristy3ed852e2009-09-05 21:47:34 +000019955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019956fi
cristy3ed852e2009-09-05 21:47:34 +000019957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19958 fi
19959 if test $ac_cv_c_bigendian = unknown; then
19960 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000019961 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019962 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000019963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019964/* end confdefs.h. */
19965short int ascii_mm[] =
19966 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19967 short int ascii_ii[] =
19968 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19969 int use_ascii (int i) {
19970 return ascii_mm[i] + ascii_ii[i];
19971 }
19972 short int ebcdic_ii[] =
19973 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19974 short int ebcdic_mm[] =
19975 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19976 int use_ebcdic (int i) {
19977 return ebcdic_mm[i] + ebcdic_ii[i];
19978 }
19979 extern int foo;
19980
19981int
19982main ()
19983{
19984return use_ascii (foo) == use_ebcdic (foo);
19985 ;
19986 return 0;
19987}
19988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019989if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019990 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19991 ac_cv_c_bigendian=yes
19992 fi
19993 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19994 if test "$ac_cv_c_bigendian" = unknown; then
19995 ac_cv_c_bigendian=no
19996 else
19997 # finding both strings is unlikely to happen, but who knows?
19998 ac_cv_c_bigendian=unknown
19999 fi
20000 fi
cristy3ed852e2009-09-05 21:47:34 +000020001fi
cristy3ed852e2009-09-05 21:47:34 +000020002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003else
cristy8b350f62009-11-15 23:12:43 +000020004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020005/* end confdefs.h. */
20006$ac_includes_default
20007int
20008main ()
20009{
20010
20011 /* Are we little or big endian? From Harbison&Steele. */
20012 union
20013 {
20014 long int l;
20015 char c[sizeof (long int)];
20016 } u;
20017 u.l = 1;
20018 return u.c[sizeof (long int) - 1] == 1;
20019
20020 ;
20021 return 0;
20022}
20023_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020024if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020025 ac_cv_c_bigendian=no
20026else
cristy8b350f62009-11-15 23:12:43 +000020027 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020028fi
cristy8b350f62009-11-15 23:12:43 +000020029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20030 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020031fi
20032
cristy3ed852e2009-09-05 21:47:34 +000020033 fi
20034fi
cristy8b350f62009-11-15 23:12:43 +000020035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020036$as_echo "$ac_cv_c_bigendian" >&6; }
20037 case $ac_cv_c_bigendian in #(
20038 yes)
cristy8b350f62009-11-15 23:12:43 +000020039 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020040;; #(
20041 no)
20042 ;; #(
20043 universal)
20044
cristy8b350f62009-11-15 23:12:43 +000020045$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020046
20047 ;; #(
20048 *)
cristy8b350f62009-11-15 23:12:43 +000020049 as_fn_error "unknown endianness
20050 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020051 esac
20052
20053
20054# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020055ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20056if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020057
cristy3ed852e2009-09-05 21:47:34 +000020058else
20059
20060cat >>confdefs.h <<_ACEOF
20061#define mode_t int
20062_ACEOF
20063
20064fi
20065
20066
20067# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020068ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20069if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020070
cristy3ed852e2009-09-05 21:47:34 +000020071else
20072
20073cat >>confdefs.h <<_ACEOF
20074#define off_t long int
20075_ACEOF
20076
20077fi
20078
20079
20080# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020081ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20082if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020083
cristy3ed852e2009-09-05 21:47:34 +000020084else
20085
20086cat >>confdefs.h <<_ACEOF
20087#define pid_t int
20088_ACEOF
20089
20090fi
20091
20092
20093# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020094ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20095if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020096
cristy3ed852e2009-09-05 21:47:34 +000020097else
20098
20099cat >>confdefs.h <<_ACEOF
20100#define size_t unsigned int
20101_ACEOF
20102
20103fi
20104
20105
20106# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020107ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20108if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020109
cristy3ed852e2009-09-05 21:47:34 +000020110else
20111
20112cat >>confdefs.h <<_ACEOF
20113#define ssize_t int
20114_ACEOF
20115
20116fi
20117
20118
20119# If the C compiler supports a working long double type with more range
20120# or precision than the double type, define HAVE_LONG_DOUBLE.
20121
cristy8b350f62009-11-15 23:12:43 +000020122 { $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 +000020123$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020124if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020125 $as_echo_n "(cached) " >&6
20126else
cristy8b350f62009-11-15 23:12:43 +000020127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020128/* end confdefs.h. */
20129#include <float.h>
20130 long double const a[] =
20131 {
20132 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20133 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20134 };
20135 long double
20136 f (long double x)
20137 {
20138 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20139 + (x ? f (x) : 'c'));
20140 }
20141
20142int
20143main ()
20144{
20145static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20146 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20147 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20148 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20149 && (int) LDBL_EPSILON == 0
20150 )];
20151test_array [0] = 0
20152
20153 ;
20154 return 0;
20155}
20156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020157if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020158 ac_cv_type_long_double_wider=yes
20159else
cristy8b350f62009-11-15 23:12:43 +000020160 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020161fi
cristy3ed852e2009-09-05 21:47:34 +000020162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163fi
cristy8b350f62009-11-15 23:12:43 +000020164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020165$as_echo "$ac_cv_type_long_double_wider" >&6; }
20166 if test $ac_cv_type_long_double_wider = yes; then
20167
cristy8b350f62009-11-15 23:12:43 +000020168$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020169
20170 fi
20171
20172
20173# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20174# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020176$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020177if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020178 $as_echo_n "(cached) " >&6
20179else
cristy8b350f62009-11-15 23:12:43 +000020180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020181/* end confdefs.h. */
20182$ac_includes_default
20183int
20184main ()
20185{
20186static int test_array [1 - 2 * !(((char) -1) < 0)];
20187test_array [0] = 0
20188
20189 ;
20190 return 0;
20191}
20192_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020193if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020194 ac_cv_c_char_unsigned=no
20195else
cristy8b350f62009-11-15 23:12:43 +000020196 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020197fi
cristy3ed852e2009-09-05 21:47:34 +000020198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199fi
cristy8b350f62009-11-15 23:12:43 +000020200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020201$as_echo "$ac_cv_c_char_unsigned" >&6; }
20202if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020203 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020204
20205fi
20206
20207
20208# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20209# The cast to long int works around a bug in the HP C Compiler
20210# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20211# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20212# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020214$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020215if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020216 $as_echo_n "(cached) " >&6
20217else
cristy8b350f62009-11-15 23:12:43 +000020218 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 +000020219
cristy3ed852e2009-09-05 21:47:34 +000020220else
cristy8b350f62009-11-15 23:12:43 +000020221 if test "$ac_cv_type_signed_short" = yes; then
20222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020224{ as_fn_set_status 77
20225as_fn_error "cannot compute sizeof (signed short)
20226See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020227 else
20228 ac_cv_sizeof_signed_short=0
20229 fi
20230fi
cristy8b350f62009-11-15 23:12:43 +000020231
cristy3ed852e2009-09-05 21:47:34 +000020232fi
cristy8b350f62009-11-15 23:12:43 +000020233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020234$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20235
20236
20237
20238cat >>confdefs.h <<_ACEOF
20239#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20240_ACEOF
20241
20242
20243
20244# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20245# The cast to long int works around a bug in the HP C Compiler
20246# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20247# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20248# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020250$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020251if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020252 $as_echo_n "(cached) " >&6
20253else
cristy8b350f62009-11-15 23:12:43 +000020254 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 +000020255
cristy3ed852e2009-09-05 21:47:34 +000020256else
cristy8b350f62009-11-15 23:12:43 +000020257 if test "$ac_cv_type_unsigned_short" = yes; then
20258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020260{ as_fn_set_status 77
20261as_fn_error "cannot compute sizeof (unsigned short)
20262See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020263 else
20264 ac_cv_sizeof_unsigned_short=0
20265 fi
20266fi
cristy8b350f62009-11-15 23:12:43 +000020267
cristy3ed852e2009-09-05 21:47:34 +000020268fi
cristy8b350f62009-11-15 23:12:43 +000020269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020270$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20271
20272
20273
20274cat >>confdefs.h <<_ACEOF
20275#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20276_ACEOF
20277
20278
20279
20280# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20281# The cast to long int works around a bug in the HP C Compiler
20282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20284# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020287if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020288 $as_echo_n "(cached) " >&6
20289else
cristy8b350f62009-11-15 23:12:43 +000020290 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 +000020291
cristy3ed852e2009-09-05 21:47:34 +000020292else
cristy8b350f62009-11-15 23:12:43 +000020293 if test "$ac_cv_type_signed_int" = yes; then
20294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020296{ as_fn_set_status 77
20297as_fn_error "cannot compute sizeof (signed int)
20298See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020299 else
20300 ac_cv_sizeof_signed_int=0
20301 fi
20302fi
cristy8b350f62009-11-15 23:12:43 +000020303
cristy3ed852e2009-09-05 21:47:34 +000020304fi
cristy8b350f62009-11-15 23:12:43 +000020305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020306$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20307
20308
20309
20310cat >>confdefs.h <<_ACEOF
20311#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20312_ACEOF
20313
20314
20315
20316# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20317# The cast to long int works around a bug in the HP C Compiler
20318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20320# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020322$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020323if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020324 $as_echo_n "(cached) " >&6
20325else
cristy8b350f62009-11-15 23:12:43 +000020326 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 +000020327
cristy3ed852e2009-09-05 21:47:34 +000020328else
cristy8b350f62009-11-15 23:12:43 +000020329 if test "$ac_cv_type_unsigned_int" = yes; then
20330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020332{ as_fn_set_status 77
20333as_fn_error "cannot compute sizeof (unsigned int)
20334See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020335 else
20336 ac_cv_sizeof_unsigned_int=0
20337 fi
20338fi
cristy8b350f62009-11-15 23:12:43 +000020339
cristy3ed852e2009-09-05 21:47:34 +000020340fi
cristy8b350f62009-11-15 23:12:43 +000020341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020342$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20343
20344
20345
20346cat >>confdefs.h <<_ACEOF
20347#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20348_ACEOF
20349
20350
20351
20352# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20353# The cast to long int works around a bug in the HP C Compiler
20354# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20355# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20356# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020358$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020359if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020360 $as_echo_n "(cached) " >&6
20361else
cristy8b350f62009-11-15 23:12:43 +000020362 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 +000020363
cristy3ed852e2009-09-05 21:47:34 +000020364else
cristy8b350f62009-11-15 23:12:43 +000020365 if test "$ac_cv_type_signed_long" = yes; then
20366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020368{ as_fn_set_status 77
20369as_fn_error "cannot compute sizeof (signed long)
20370See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020371 else
20372 ac_cv_sizeof_signed_long=0
20373 fi
20374fi
cristy8b350f62009-11-15 23:12:43 +000020375
cristy3ed852e2009-09-05 21:47:34 +000020376fi
cristy8b350f62009-11-15 23:12:43 +000020377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020378$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20379
20380
20381
20382cat >>confdefs.h <<_ACEOF
20383#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20384_ACEOF
20385
20386
20387
20388# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20389# The cast to long int works around a bug in the HP C Compiler
20390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20392# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020394$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020395if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020396 $as_echo_n "(cached) " >&6
20397else
cristy8b350f62009-11-15 23:12:43 +000020398 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 +000020399
cristy3ed852e2009-09-05 21:47:34 +000020400else
cristy8b350f62009-11-15 23:12:43 +000020401 if test "$ac_cv_type_unsigned_long" = yes; then
20402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020404{ as_fn_set_status 77
20405as_fn_error "cannot compute sizeof (unsigned long)
20406See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020407 else
20408 ac_cv_sizeof_unsigned_long=0
20409 fi
20410fi
cristy8b350f62009-11-15 23:12:43 +000020411
cristy3ed852e2009-09-05 21:47:34 +000020412fi
cristy8b350f62009-11-15 23:12:43 +000020413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020414$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20415
20416
20417
20418cat >>confdefs.h <<_ACEOF
20419#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20420_ACEOF
20421
20422
20423
20424# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20425# 'signed long long' is not supported then the value defined is zero.
20426# The cast to long int works around a bug in the HP C Compiler
20427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20429# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020431$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020432if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020433 $as_echo_n "(cached) " >&6
20434else
cristy8b350f62009-11-15 23:12:43 +000020435 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 +000020436
cristy3ed852e2009-09-05 21:47:34 +000020437else
cristy8b350f62009-11-15 23:12:43 +000020438 if test "$ac_cv_type_signed_long_long" = yes; then
20439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020441{ as_fn_set_status 77
20442as_fn_error "cannot compute sizeof (signed long long)
20443See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020444 else
20445 ac_cv_sizeof_signed_long_long=0
20446 fi
20447fi
cristy8b350f62009-11-15 23:12:43 +000020448
cristy3ed852e2009-09-05 21:47:34 +000020449fi
cristy8b350f62009-11-15 23:12:43 +000020450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020451$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20452
20453
20454
20455cat >>confdefs.h <<_ACEOF
20456#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20457_ACEOF
20458
20459
20460
20461# Obtain size of a 'unsigned long long' and define as
20462# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20463# supported then the value defined is zero.
20464# The cast to long int works around a bug in the HP C Compiler
20465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20467# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020469$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020470if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020471 $as_echo_n "(cached) " >&6
20472else
cristy8b350f62009-11-15 23:12:43 +000020473 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 +000020474
cristy3ed852e2009-09-05 21:47:34 +000020475else
cristy8b350f62009-11-15 23:12:43 +000020476 if test "$ac_cv_type_unsigned_long_long" = yes; then
20477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020479{ as_fn_set_status 77
20480as_fn_error "cannot compute sizeof (unsigned long long)
20481See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020482 else
20483 ac_cv_sizeof_unsigned_long_long=0
20484 fi
20485fi
cristy8b350f62009-11-15 23:12:43 +000020486
cristy3ed852e2009-09-05 21:47:34 +000020487fi
cristy8b350f62009-11-15 23:12:43 +000020488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020489$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20490
20491
20492
20493cat >>confdefs.h <<_ACEOF
20494#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20495_ACEOF
20496
20497
20498
20499# Obtain size of off_t and define as SIZEOF_OFF_T
20500# The cast to long int works around a bug in the HP C Compiler
20501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20503# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020505$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020506if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020507 $as_echo_n "(cached) " >&6
20508else
cristy8b350f62009-11-15 23:12:43 +000020509 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 +000020510
cristy3ed852e2009-09-05 21:47:34 +000020511else
cristy8b350f62009-11-15 23:12:43 +000020512 if test "$ac_cv_type_off_t" = yes; then
20513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020515{ as_fn_set_status 77
20516as_fn_error "cannot compute sizeof (off_t)
20517See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020518 else
20519 ac_cv_sizeof_off_t=0
20520 fi
20521fi
cristy8b350f62009-11-15 23:12:43 +000020522
cristy3ed852e2009-09-05 21:47:34 +000020523fi
cristy8b350f62009-11-15 23:12:43 +000020524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020525$as_echo "$ac_cv_sizeof_off_t" >&6; }
20526
20527
20528
20529cat >>confdefs.h <<_ACEOF
20530#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20531_ACEOF
20532
20533
20534
20535# Obtain size of size_t and define as SIZEOF_SIZE_T
20536# The cast to long int works around a bug in the HP C Compiler
20537# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20538# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20539# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020541$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020542if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020543 $as_echo_n "(cached) " >&6
20544else
cristy8b350f62009-11-15 23:12:43 +000020545 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 +000020546
cristy3ed852e2009-09-05 21:47:34 +000020547else
cristy8b350f62009-11-15 23:12:43 +000020548 if test "$ac_cv_type_size_t" = yes; then
20549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020551{ as_fn_set_status 77
20552as_fn_error "cannot compute sizeof (size_t)
20553See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020554 else
20555 ac_cv_sizeof_size_t=0
20556 fi
20557fi
cristy8b350f62009-11-15 23:12:43 +000020558
cristy3ed852e2009-09-05 21:47:34 +000020559fi
cristy8b350f62009-11-15 23:12:43 +000020560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020561$as_echo "$ac_cv_sizeof_size_t" >&6; }
20562
20563
20564
20565cat >>confdefs.h <<_ACEOF
20566#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20567_ACEOF
20568
20569
20570
20571# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20572# The cast to long int works around a bug in the HP C Compiler
20573# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20574# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20575# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020577$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020578if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020579 $as_echo_n "(cached) " >&6
20580else
cristy8b350f62009-11-15 23:12:43 +000020581 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 +000020582
cristy3ed852e2009-09-05 21:47:34 +000020583else
cristy8b350f62009-11-15 23:12:43 +000020584 if test "$ac_cv_type_unsigned_intp" = yes; then
20585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020587{ as_fn_set_status 77
20588as_fn_error "cannot compute sizeof (unsigned int*)
20589See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020590 else
20591 ac_cv_sizeof_unsigned_intp=0
20592 fi
20593fi
cristy8b350f62009-11-15 23:12:43 +000020594
cristy3ed852e2009-09-05 21:47:34 +000020595fi
cristy8b350f62009-11-15 23:12:43 +000020596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020597$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20598
20599
20600
20601cat >>confdefs.h <<_ACEOF
20602#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20603_ACEOF
20604
20605
20606
20607#
20608# Compute sized types for current CPU and compiler options.
20609#
20610
cristy8b350f62009-11-15 23:12:43 +000020611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020612$as_echo_n "checking for signed 8-bit type... " >&6; }
20613INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020615$as_echo "$INT8_T" >&6; }
20616
20617
cristy8b350f62009-11-15 23:12:43 +000020618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020619$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20620UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020622$as_echo "$UINT8_T" >&6; }
20623
20624
cristy8b350f62009-11-15 23:12:43 +000020625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020626$as_echo_n "checking for signed 16-bit type... " >&6; }
20627INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020629$as_echo "$INT16_T" >&6; }
20630
20631
cristy8b350f62009-11-15 23:12:43 +000020632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020633$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20634UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020636$as_echo "$UINT16_T" >&6; }
20637
20638
cristy8b350f62009-11-15 23:12:43 +000020639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020640$as_echo_n "checking for signed 32-bit type... " >&6; }
20641INT32_T='none'
20642if test $ac_cv_sizeof_signed_int -eq 4; then
20643 INT32_T='signed int'
20644elif test $ac_cv_sizeof_signed_long -eq 4; then
20645 INT32_T='signed long'
20646fi
cristy8b350f62009-11-15 23:12:43 +000020647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020648$as_echo "$INT32_T" >&6; }
20649
20650
cristy8b350f62009-11-15 23:12:43 +000020651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020652$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20653UINT32_T='none'
20654if test $ac_cv_sizeof_unsigned_int -eq 4; then
20655 UINT32_T='unsigned int'
20656elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20657 UINT32_T='unsigned long'
20658fi
cristy8b350f62009-11-15 23:12:43 +000020659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020660$as_echo "$UINT32_T" >&6; }
20661
20662
cristy8b350f62009-11-15 23:12:43 +000020663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020664$as_echo_n "checking for signed 64-bit type... " >&6; }
20665INT64_T='none'
20666if test $ac_cv_sizeof_signed_long -eq 8; then
20667 INT64_T='signed long'
20668elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20669 INT64_T='signed long long'
20670fi
cristy8b350f62009-11-15 23:12:43 +000020671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020672$as_echo "$INT64_T" >&6; }
20673
20674
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20677UINT64_T='none'
20678if test $ac_cv_sizeof_unsigned_long -eq 8; then
20679 UINT64_T='unsigned long'
20680elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20681 UINT64_T='unsigned long long'
20682fi
cristy8b350f62009-11-15 23:12:43 +000020683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020684$as_echo "$UINT64_T" >&6; }
20685
20686
cristy8b350f62009-11-15 23:12:43 +000020687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020688$as_echo_n "checking for unsigned maximum type... " >&6; }
20689UINTMAX_T='none'
20690if test "$UINT64_T" != 'none'; then
20691 UINTMAX_T=$UINT64_T
20692elif test "$UINT32_T" != 'none'; then
20693 UINTMAX_T=$UINT32_T
20694fi
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo "$UINTMAX_T" >&6; }
20697
20698
cristy8b350f62009-11-15 23:12:43 +000020699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020700$as_echo_n "checking for pointer difference type... " >&6; }
20701UINTPTR_T='none'
20702if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20703 UINTPTR_T='unsigned long'
20704elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20705 UINTPTR_T='unsigned long long'
20706fi
cristy8b350f62009-11-15 23:12:43 +000020707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020708$as_echo "$UINTPTR_T" >&6; }
20709
20710
cristy8b350f62009-11-15 23:12:43 +000020711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020712$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020714/* end confdefs.h. */
20715
20716int
20717main ()
20718{
20719{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20720 ;
20721 return 0;
20722}
20723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020724if ac_fn_c_try_compile "$LINENO"; then :
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020726$as_echo "yes" >&6; }
20727else
cristy8b350f62009-11-15 23:12:43 +000020728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020729$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020731$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020733/* end confdefs.h. */
20734
20735int
20736main ()
20737{
20738{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20739 ;
20740 return 0;
20741}
20742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020743if ac_fn_c_try_compile "$LINENO"; then :
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020745$as_echo "yes" >&6; }
20746
cristy8b350f62009-11-15 23:12:43 +000020747$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020748
20749else
cristy8b350f62009-11-15 23:12:43 +000020750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020751$as_echo "no" >&6; }
20752
cristy8b350f62009-11-15 23:12:43 +000020753$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020754
20755fi
cristy3ed852e2009-09-05 21:47:34 +000020756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757fi
cristy3ed852e2009-09-05 21:47:34 +000020758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759
20760########
20761#
20762# Check for functions
20763#
20764########
cristy3ed852e2009-09-05 21:47:34 +000020765for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020766do :
20767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20768ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20769eval as_val=\$$as_ac_Header
20770 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020771 cat >>confdefs.h <<_ACEOF
20772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20773_ACEOF
20774
20775fi
20776
20777done
20778
cristy3ed852e2009-09-05 21:47:34 +000020779for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020780do :
20781 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20782if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020783 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020784#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020785_ACEOF
20786
20787fi
20788done
20789
cristy8b350f62009-11-15 23:12:43 +000020790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020791$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020792if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020793 $as_echo_n "(cached) " >&6
20794else
cristy8b350f62009-11-15 23:12:43 +000020795 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020796 magick_cv_func_mmap_fileio=no
20797else
cristy8b350f62009-11-15 23:12:43 +000020798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020799/* end confdefs.h. */
20800$ac_includes_default
20801/* malloc might have been renamed as rpl_malloc. */
20802#undef malloc
20803
20804/*
20805 This test is derived from GNU Autoconf's similar macro.
20806 The purpose of this test is to verify that files may be memory
20807 mapped, and that memory mapping and file I/O are coherent.
20808
20809 The test creates a test file, memory maps the file, updates
20810 the file using the memory map, and then reads the file using
20811 file I/O to verify that the file contains the updates.
20812*/
20813
20814#include <fcntl.h>
20815#include <sys/mman.h>
20816
20817#if !STDC_HEADERS && !HAVE_STDLIB_H
20818char *malloc ();
20819#endif
20820
20821/* This mess was copied from the GNU getpagesize.h. */
20822#if !HAVE_GETPAGESIZE
20823/* Assume that all systems that can run configure have sys/param.h. */
20824# if !HAVE_SYS_PARAM_H
20825# define HAVE_SYS_PARAM_H 1
20826# endif
20827
20828# ifdef _SC_PAGESIZE
20829# define getpagesize() sysconf(_SC_PAGESIZE)
20830# else /* no _SC_PAGESIZE */
20831# if HAVE_SYS_PARAM_H
20832# include <sys/param.h>
20833# ifdef EXEC_PAGESIZE
20834# define getpagesize() EXEC_PAGESIZE
20835# else /* no EXEC_PAGESIZE */
20836# ifdef NBPG
20837# define getpagesize() NBPG * CLSIZE
20838# ifndef CLSIZE
20839# define CLSIZE 1
20840# endif /* no CLSIZE */
20841# else /* no NBPG */
20842# ifdef NBPC
20843# define getpagesize() NBPC
20844# else /* no NBPC */
20845# ifdef PAGESIZE
20846# define getpagesize() PAGESIZE
20847# endif /* PAGESIZE */
20848# endif /* no NBPC */
20849# endif /* no NBPG */
20850# endif /* no EXEC_PAGESIZE */
20851# else /* no HAVE_SYS_PARAM_H */
20852# define getpagesize() 8192 /* punt totally */
20853# endif /* no HAVE_SYS_PARAM_H */
20854# endif /* no _SC_PAGESIZE */
20855
20856#endif /* no HAVE_GETPAGESIZE */
20857
20858int
20859main ()
20860{
20861 char *data, *data2, *data3;
20862 int i, pagesize;
20863 int fd;
20864
20865 pagesize = getpagesize ();
20866
20867 /* First, make a file with some known garbage in it. */
20868 data = (char *) malloc (pagesize);
20869 if (!data)
20870 exit (1);
20871 for (i = 0; i < pagesize; ++i)
20872 *(data + i) = rand ();
20873 umask (0);
20874 fd = creat ("conftest.mmap", 0600);
20875 if (fd < 0)
20876 exit (1);
20877 if (write (fd, data, pagesize) != pagesize)
20878 exit (1);
20879 close (fd);
20880
20881 /* Mmap the file as read/write/shared and verify that we see the
20882 same garbage. */
20883 fd = open ("conftest.mmap", O_RDWR);
20884 if (fd < 0)
20885 exit (1);
20886 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20887 if (data2 == 0)
20888 exit (1);
20889 for (i = 0; i < pagesize; ++i)
20890 if (*(data + i) != *(data2 + i))
20891 exit (1);
20892
20893 /* Finally, make sure that changes to the mapped area
20894 percolate back to the file as seen by read(). */
20895 for (i = 0; i < pagesize; ++i)
20896 *(data2 + i) = *(data2 + i) + 1;
20897 data3 = (char *) malloc (pagesize);
20898 if (!data3)
20899 exit (1);
20900 if (read (fd, data3, pagesize) != pagesize)
20901 exit (1);
20902 for (i = 0; i < pagesize; ++i)
20903 if (*(data2 + i) != *(data3 + i))
20904 exit (1);
20905 close (fd);
20906 exit (0);
20907}
20908_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020909if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020910 magick_cv_func_mmap_fileio=yes
20911else
cristy8b350f62009-11-15 23:12:43 +000020912 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000020913fi
cristy8b350f62009-11-15 23:12:43 +000020914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20915 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020916fi
20917
cristy3ed852e2009-09-05 21:47:34 +000020918fi
cristy8b350f62009-11-15 23:12:43 +000020919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000020920$as_echo "$magick_cv_func_mmap_fileio" >&6; }
20921if test $magick_cv_func_mmap_fileio = yes; then
20922
cristy8b350f62009-11-15 23:12:43 +000020923$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020924
20925fi
20926rm -f conftest.mmap
20927
cristy8b350f62009-11-15 23:12:43 +000020928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020929$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020930if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020931 $as_echo_n "(cached) " >&6
20932else
cristy8b350f62009-11-15 23:12:43 +000020933 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020934 ac_cv_func_closedir_void=yes
20935else
cristy8b350f62009-11-15 23:12:43 +000020936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020937/* end confdefs.h. */
20938$ac_includes_default
20939#include <$ac_header_dirent>
20940#ifndef __cplusplus
20941int closedir ();
20942#endif
20943
20944int
20945main ()
20946{
20947return closedir (opendir (".")) != 0;
20948 ;
20949 return 0;
20950}
20951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020952if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020953 ac_cv_func_closedir_void=no
20954else
cristy8b350f62009-11-15 23:12:43 +000020955 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000020956fi
cristy8b350f62009-11-15 23:12:43 +000020957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20958 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020959fi
20960
cristy3ed852e2009-09-05 21:47:34 +000020961fi
cristy8b350f62009-11-15 23:12:43 +000020962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020963$as_echo "$ac_cv_func_closedir_void" >&6; }
20964if test $ac_cv_func_closedir_void = yes; then
20965
cristy8b350f62009-11-15 23:12:43 +000020966$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020967
20968fi
20969
cristycd4c5312009-11-22 01:19:08 +000020970
20971
20972
20973 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000020974do :
20975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000020976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20977"
cristy8b350f62009-11-15 23:12:43 +000020978eval as_val=\$$as_ac_Header
20979 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020980 cat >>confdefs.h <<_ACEOF
20981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20982_ACEOF
20983
20984fi
20985
20986done
20987
cristycd4c5312009-11-22 01:19:08 +000020988
20989
20990
20991
20992
20993
20994
cristy3ed852e2009-09-05 21:47:34 +000020995for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020996do :
20997 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20998if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020999 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021000#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021001_ACEOF
21002
21003fi
21004done
21005
cristy8b350f62009-11-15 23:12:43 +000021006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021007$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021008if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021009 $as_echo_n "(cached) " >&6
21010else
cristy8b350f62009-11-15 23:12:43 +000021011 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021012 ac_cv_func_mmap_fixed_mapped=no
21013else
cristy8b350f62009-11-15 23:12:43 +000021014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021015/* end confdefs.h. */
21016$ac_includes_default
21017/* malloc might have been renamed as rpl_malloc. */
21018#undef malloc
21019
21020/* Thanks to Mike Haertel and Jim Avera for this test.
21021 Here is a matrix of mmap possibilities:
21022 mmap private not fixed
21023 mmap private fixed at somewhere currently unmapped
21024 mmap private fixed at somewhere already mapped
21025 mmap shared not fixed
21026 mmap shared fixed at somewhere currently unmapped
21027 mmap shared fixed at somewhere already mapped
21028 For private mappings, we should verify that changes cannot be read()
21029 back from the file, nor mmap's back from the file at a different
21030 address. (There have been systems where private was not correctly
21031 implemented like the infamous i386 svr4.0, and systems where the
21032 VM page cache was not coherent with the file system buffer cache
21033 like early versions of FreeBSD and possibly contemporary NetBSD.)
21034 For shared mappings, we should conversely verify that changes get
21035 propagated back to all the places they're supposed to be.
21036
21037 Grep wants private fixed already mapped.
21038 The main things grep needs to know about mmap are:
21039 * does it exist and is it safe to write into the mmap'd area
21040 * how to use it (BSD variants) */
21041
21042#include <fcntl.h>
21043#include <sys/mman.h>
21044
21045#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21046char *malloc ();
21047#endif
21048
21049/* This mess was copied from the GNU getpagesize.h. */
21050#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021051# ifdef _SC_PAGESIZE
21052# define getpagesize() sysconf(_SC_PAGESIZE)
21053# else /* no _SC_PAGESIZE */
21054# ifdef HAVE_SYS_PARAM_H
21055# include <sys/param.h>
21056# ifdef EXEC_PAGESIZE
21057# define getpagesize() EXEC_PAGESIZE
21058# else /* no EXEC_PAGESIZE */
21059# ifdef NBPG
21060# define getpagesize() NBPG * CLSIZE
21061# ifndef CLSIZE
21062# define CLSIZE 1
21063# endif /* no CLSIZE */
21064# else /* no NBPG */
21065# ifdef NBPC
21066# define getpagesize() NBPC
21067# else /* no NBPC */
21068# ifdef PAGESIZE
21069# define getpagesize() PAGESIZE
21070# endif /* PAGESIZE */
21071# endif /* no NBPC */
21072# endif /* no NBPG */
21073# endif /* no EXEC_PAGESIZE */
21074# else /* no HAVE_SYS_PARAM_H */
21075# define getpagesize() 8192 /* punt totally */
21076# endif /* no HAVE_SYS_PARAM_H */
21077# endif /* no _SC_PAGESIZE */
21078
21079#endif /* no HAVE_GETPAGESIZE */
21080
21081int
21082main ()
21083{
21084 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021085 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021086 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021087 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021088
21089 pagesize = getpagesize ();
21090
21091 /* First, make a file with some known garbage in it. */
21092 data = (char *) malloc (pagesize);
21093 if (!data)
21094 return 1;
21095 for (i = 0; i < pagesize; ++i)
21096 *(data + i) = rand ();
21097 umask (0);
21098 fd = creat ("conftest.mmap", 0600);
21099 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021100 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021101 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021102 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021103 close (fd);
21104
cristycd4c5312009-11-22 01:19:08 +000021105 /* Next, check that the tail of a page is zero-filled. File must have
21106 non-zero length, otherwise we risk SIGBUS for entire page. */
21107 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21108 if (fd2 < 0)
21109 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021110 cdata2 = "";
21111 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021112 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021113 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021114 if (data2 == MAP_FAILED)
21115 return 6;
21116 for (i = 0; i < pagesize; ++i)
21117 if (*(data2 + i))
21118 return 7;
21119 close (fd2);
21120 if (munmap (data2, pagesize))
21121 return 8;
21122
cristy3ed852e2009-09-05 21:47:34 +000021123 /* Next, try to mmap the file at a fixed address which already has
21124 something else allocated at it. If we can, also make sure that
21125 we see the same garbage. */
21126 fd = open ("conftest.mmap", O_RDWR);
21127 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021128 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021129 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021131 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021132 for (i = 0; i < pagesize; ++i)
21133 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021134 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021135
21136 /* Finally, make sure that changes to the mapped area do not
21137 percolate back to the file as seen by read(). (This is a bug on
21138 some variants of i386 svr4.0.) */
21139 for (i = 0; i < pagesize; ++i)
21140 *(data2 + i) = *(data2 + i) + 1;
21141 data3 = (char *) malloc (pagesize);
21142 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021143 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021144 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021145 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021146 for (i = 0; i < pagesize; ++i)
21147 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021148 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021149 close (fd);
21150 return 0;
21151}
21152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021153if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021154 ac_cv_func_mmap_fixed_mapped=yes
21155else
cristy8b350f62009-11-15 23:12:43 +000021156 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021157fi
cristy8b350f62009-11-15 23:12:43 +000021158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21159 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021160fi
21161
cristy3ed852e2009-09-05 21:47:34 +000021162fi
cristy8b350f62009-11-15 23:12:43 +000021163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021164$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21165if test $ac_cv_func_mmap_fixed_mapped = yes; then
21166
cristy8b350f62009-11-15 23:12:43 +000021167$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021168
21169fi
cristycd4c5312009-11-22 01:19:08 +000021170rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021171
cristy3ed852e2009-09-05 21:47:34 +000021172for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021173do :
21174 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21175if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021176 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021177#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021178_ACEOF
21179
21180fi
21181
21182done
21183
cristy3ed852e2009-09-05 21:47:34 +000021184for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021185do :
21186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21187ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21188eval as_val=\$$as_ac_var
21189 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021190 cat >>confdefs.h <<_ACEOF
21191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21192_ACEOF
21193
21194fi
21195done
21196
21197if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021199$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021200if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 $as_echo_n "(cached) " >&6
21202else
cristy8b350f62009-11-15 23:12:43 +000021203 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021204 ac_cv_func_fork_works=cross
21205else
cristy8b350f62009-11-15 23:12:43 +000021206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021207/* end confdefs.h. */
21208$ac_includes_default
21209int
21210main ()
21211{
21212
21213 /* By Ruediger Kuhlmann. */
21214 return fork () < 0;
21215
21216 ;
21217 return 0;
21218}
21219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021220if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021221 ac_cv_func_fork_works=yes
21222else
cristy8b350f62009-11-15 23:12:43 +000021223 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021224fi
cristy8b350f62009-11-15 23:12:43 +000021225rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21226 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021227fi
21228
cristy3ed852e2009-09-05 21:47:34 +000021229fi
cristy8b350f62009-11-15 23:12:43 +000021230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021231$as_echo "$ac_cv_func_fork_works" >&6; }
21232
21233else
21234 ac_cv_func_fork_works=$ac_cv_func_fork
21235fi
21236if test "x$ac_cv_func_fork_works" = xcross; then
21237 case $host in
21238 *-*-amigaos* | *-*-msdosdjgpp*)
21239 # Override, as these systems have only a dummy fork() stub
21240 ac_cv_func_fork_works=no
21241 ;;
21242 *)
21243 ac_cv_func_fork_works=yes
21244 ;;
21245 esac
cristy8b350f62009-11-15 23:12:43 +000021246 { $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 +000021247$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21248fi
21249ac_cv_func_vfork_works=$ac_cv_func_vfork
21250if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021252$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021253if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021254 $as_echo_n "(cached) " >&6
21255else
cristy8b350f62009-11-15 23:12:43 +000021256 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021257 ac_cv_func_vfork_works=cross
21258else
cristy8b350f62009-11-15 23:12:43 +000021259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021260/* end confdefs.h. */
21261/* Thanks to Paul Eggert for this test. */
21262$ac_includes_default
21263#include <sys/wait.h>
21264#ifdef HAVE_VFORK_H
21265# include <vfork.h>
21266#endif
21267/* On some sparc systems, changes by the child to local and incoming
21268 argument registers are propagated back to the parent. The compiler
21269 is told about this with #include <vfork.h>, but some compilers
21270 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21271 static variable whose address is put into a register that is
21272 clobbered by the vfork. */
21273static void
21274#ifdef __cplusplus
21275sparc_address_test (int arg)
21276# else
21277sparc_address_test (arg) int arg;
21278#endif
21279{
21280 static pid_t child;
21281 if (!child) {
21282 child = vfork ();
21283 if (child < 0) {
21284 perror ("vfork");
21285 _exit(2);
21286 }
21287 if (!child) {
21288 arg = getpid();
21289 write(-1, "", 0);
21290 _exit (arg);
21291 }
21292 }
21293}
21294
21295int
21296main ()
21297{
21298 pid_t parent = getpid ();
21299 pid_t child;
21300
21301 sparc_address_test (0);
21302
21303 child = vfork ();
21304
21305 if (child == 0) {
21306 /* Here is another test for sparc vfork register problems. This
21307 test uses lots of local variables, at least as many local
21308 variables as main has allocated so far including compiler
21309 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21310 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21311 reuse the register of parent for one of the local variables,
21312 since it will think that parent can't possibly be used any more
21313 in this routine. Assigning to the local variable will thus
21314 munge parent in the parent process. */
21315 pid_t
21316 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21317 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21318 /* Convince the compiler that p..p7 are live; otherwise, it might
21319 use the same hardware register for all 8 local variables. */
21320 if (p != p1 || p != p2 || p != p3 || p != p4
21321 || p != p5 || p != p6 || p != p7)
21322 _exit(1);
21323
21324 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21325 from child file descriptors. If the child closes a descriptor
21326 before it execs or exits, this munges the parent's descriptor
21327 as well. Test for this by closing stdout in the child. */
21328 _exit(close(fileno(stdout)) != 0);
21329 } else {
21330 int status;
21331 struct stat st;
21332
21333 while (wait(&status) != child)
21334 ;
21335 return (
21336 /* Was there some problem with vforking? */
21337 child < 0
21338
21339 /* Did the child fail? (This shouldn't happen.) */
21340 || status
21341
21342 /* Did the vfork/compiler bug occur? */
21343 || parent != getpid()
21344
21345 /* Did the file descriptor bug occur? */
21346 || fstat(fileno(stdout), &st) != 0
21347 );
21348 }
21349}
21350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021351if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021352 ac_cv_func_vfork_works=yes
21353else
cristy8b350f62009-11-15 23:12:43 +000021354 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021355fi
cristy8b350f62009-11-15 23:12:43 +000021356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21357 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021358fi
21359
cristy3ed852e2009-09-05 21:47:34 +000021360fi
cristy8b350f62009-11-15 23:12:43 +000021361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021362$as_echo "$ac_cv_func_vfork_works" >&6; }
21363
21364fi;
21365if test "x$ac_cv_func_fork_works" = xcross; then
21366 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021367 { $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 +000021368$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21369fi
21370
21371if test "x$ac_cv_func_vfork_works" = xyes; then
21372
cristy8b350f62009-11-15 23:12:43 +000021373$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021374
21375else
21376
cristy8b350f62009-11-15 23:12:43 +000021377$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021378
21379fi
21380if test "x$ac_cv_func_fork_works" = xyes; then
21381
cristy8b350f62009-11-15 23:12:43 +000021382$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021383
21384fi
21385
cristy8b350f62009-11-15 23:12:43 +000021386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021387$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021388if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021389 $as_echo_n "(cached) " >&6
21390else
cristy8b350f62009-11-15 23:12:43 +000021391 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021392 ac_cv_func_memcmp_working=no
21393else
cristy8b350f62009-11-15 23:12:43 +000021394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021395/* end confdefs.h. */
21396$ac_includes_default
21397int
21398main ()
21399{
21400
21401 /* Some versions of memcmp are not 8-bit clean. */
21402 char c0 = '\100', c1 = '\200', c2 = '\201';
21403 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21404 return 1;
21405
21406 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21407 or more and with at least one buffer not starting on a 4-byte boundary.
21408 William Lewis provided this test program. */
21409 {
21410 char foo[21];
21411 char bar[21];
21412 int i;
21413 for (i = 0; i < 4; i++)
21414 {
21415 char *a = foo + i;
21416 char *b = bar + i;
21417 strcpy (a, "--------01111111");
21418 strcpy (b, "--------10000000");
21419 if (memcmp (a, b, 16) >= 0)
21420 return 1;
21421 }
21422 return 0;
21423 }
21424
21425 ;
21426 return 0;
21427}
21428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021429if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021430 ac_cv_func_memcmp_working=yes
21431else
cristy8b350f62009-11-15 23:12:43 +000021432 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021433fi
cristy8b350f62009-11-15 23:12:43 +000021434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21435 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021436fi
21437
cristy3ed852e2009-09-05 21:47:34 +000021438fi
cristy8b350f62009-11-15 23:12:43 +000021439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021440$as_echo "$ac_cv_func_memcmp_working" >&6; }
21441test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21442 *" memcmp.$ac_objext "* ) ;;
21443 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21444 ;;
21445esac
21446
21447
cristy3ed852e2009-09-05 21:47:34 +000021448for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021449do :
21450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21451ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21452eval as_val=\$$as_ac_Header
21453 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021454 cat >>confdefs.h <<_ACEOF
21455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21456_ACEOF
21457
21458fi
21459
21460done
21461
cristy8b350f62009-11-15 23:12:43 +000021462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021463$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021464if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 $as_echo_n "(cached) " >&6
21466else
21467 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21468 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21469 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021471/* end confdefs.h. */
21472$ac_includes_default
21473#ifdef HAVE_SYS_SELECT_H
21474# include <sys/select.h>
21475#endif
21476#ifdef HAVE_SYS_SOCKET_H
21477# include <sys/socket.h>
21478#endif
21479
21480int
21481main ()
21482{
21483extern int select ($ac_arg1,
21484 $ac_arg234, $ac_arg234, $ac_arg234,
21485 $ac_arg5);
21486 ;
21487 return 0;
21488}
21489_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021490if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021491 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021492fi
cristy3ed852e2009-09-05 21:47:34 +000021493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 done
21495 done
21496done
21497# Provide a safe default value.
21498: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21499
21500fi
cristy8b350f62009-11-15 23:12:43 +000021501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021502$as_echo "$ac_cv_func_select_args" >&6; }
21503ac_save_IFS=$IFS; IFS=','
21504set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21505IFS=$ac_save_IFS
21506shift
21507
21508cat >>confdefs.h <<_ACEOF
21509#define SELECT_TYPE_ARG1 $1
21510_ACEOF
21511
21512
21513cat >>confdefs.h <<_ACEOF
21514#define SELECT_TYPE_ARG234 ($2)
21515_ACEOF
21516
21517
21518cat >>confdefs.h <<_ACEOF
21519#define SELECT_TYPE_ARG5 ($3)
21520_ACEOF
21521
21522rm -f conftest*
21523
cristy8b350f62009-11-15 23:12:43 +000021524if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021525 $as_echo_n "(cached) " >&6
21526else
21527 ac_cv_func_setvbuf_reversed=no
21528fi
21529
21530
cristy8b350f62009-11-15 23:12:43 +000021531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021532$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021533if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021534 $as_echo_n "(cached) " >&6
21535else
cristy8b350f62009-11-15 23:12:43 +000021536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021537/* end confdefs.h. */
21538#include <sys/types.h>
21539#include <signal.h>
21540
21541int
21542main ()
21543{
21544return *(signal (0, 0)) (0) == 1;
21545 ;
21546 return 0;
21547}
21548_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021549if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021550 ac_cv_type_signal=int
21551else
cristy8b350f62009-11-15 23:12:43 +000021552 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021553fi
cristy3ed852e2009-09-05 21:47:34 +000021554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555fi
cristy8b350f62009-11-15 23:12:43 +000021556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021557$as_echo "$ac_cv_type_signal" >&6; }
21558
21559cat >>confdefs.h <<_ACEOF
21560#define RETSIGTYPE $ac_cv_type_signal
21561_ACEOF
21562
21563
cristy8b350f62009-11-15 23:12:43 +000021564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021565$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021566if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021567 $as_echo_n "(cached) " >&6
21568else
cristy8b350f62009-11-15 23:12:43 +000021569 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021570 ac_cv_func_strtod=no
21571else
cristy8b350f62009-11-15 23:12:43 +000021572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021573/* end confdefs.h. */
21574
21575$ac_includes_default
21576#ifndef strtod
21577double strtod ();
21578#endif
21579int
21580main()
21581{
21582 {
21583 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21584 char *string = " +69";
21585 char *term;
21586 double value;
21587 value = strtod (string, &term);
21588 if (value != 69 || term != (string + 4))
21589 return 1;
21590 }
21591
21592 {
21593 /* Under Solaris 2.4, strtod returns the wrong value for the
21594 terminating character under some conditions. */
21595 char *string = "NaN";
21596 char *term;
21597 strtod (string, &term);
21598 if (term != string && *(term - 1) == 0)
21599 return 1;
21600 }
21601 return 0;
21602}
21603
21604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021605if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021606 ac_cv_func_strtod=yes
21607else
cristy8b350f62009-11-15 23:12:43 +000021608 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021609fi
cristy8b350f62009-11-15 23:12:43 +000021610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21611 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021612fi
21613
cristy3ed852e2009-09-05 21:47:34 +000021614fi
cristy8b350f62009-11-15 23:12:43 +000021615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021616$as_echo "$ac_cv_func_strtod" >&6; }
21617if test $ac_cv_func_strtod = no; then
21618 case " $LIBOBJS " in
21619 *" strtod.$ac_objext "* ) ;;
21620 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21621 ;;
21622esac
21623
cristy8b350f62009-11-15 23:12:43 +000021624ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21625if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021626
cristy3ed852e2009-09-05 21:47:34 +000021627fi
21628
cristy3ed852e2009-09-05 21:47:34 +000021629if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021631$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021632if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021633 $as_echo_n "(cached) " >&6
21634else
21635 ac_check_lib_save_LIBS=$LIBS
21636LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021638/* end confdefs.h. */
21639
21640/* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21643#ifdef __cplusplus
21644extern "C"
21645#endif
21646char pow ();
21647int
21648main ()
21649{
21650return pow ();
21651 ;
21652 return 0;
21653}
21654_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021655if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021656 ac_cv_lib_m_pow=yes
21657else
cristy8b350f62009-11-15 23:12:43 +000021658 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021659fi
cristy8b350f62009-11-15 23:12:43 +000021660rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021662LIBS=$ac_check_lib_save_LIBS
21663fi
cristy8b350f62009-11-15 23:12:43 +000021664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021665$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021666if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021667 POW_LIB=-lm
21668else
cristy8b350f62009-11-15 23:12:43 +000021669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021670$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21671fi
21672
21673fi
21674
21675fi
21676
cristy3ed852e2009-09-05 21:47:34 +000021677for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021678do :
21679 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21680if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021682#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021683_ACEOF
21684
cristy8b350f62009-11-15 23:12:43 +000021685ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21686if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021687
cristy8b350f62009-11-15 23:12:43 +000021688$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021689
21690fi
21691
21692fi
21693done
21694
21695
21696
cristy393bbe52010-01-11 16:32:56 +000021697for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000021698do :
21699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21701eval as_val=\$$as_ac_var
21702 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021703 cat >>confdefs.h <<_ACEOF
21704#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21705_ACEOF
21706
21707fi
21708done
21709
21710
cristye43a45e2009-09-28 14:49:00 +000021711#
21712# Check for clock_gettime().
21713#
cristy8b350f62009-11-15 23:12:43 +000021714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021715$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021716if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021717 $as_echo_n "(cached) " >&6
21718else
21719 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021721/* end confdefs.h. */
21722
21723/* Override any GCC internal prototype to avoid an error.
21724 Use char because int might match the return type of a GCC
21725 builtin and then its argument prototype would still apply. */
21726#ifdef __cplusplus
21727extern "C"
21728#endif
21729char clock_gettime ();
21730int
21731main ()
21732{
21733return clock_gettime ();
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738for ac_lib in '' rt; do
21739 if test -z "$ac_lib"; then
21740 ac_res="none required"
21741 else
21742 ac_res=-l$ac_lib
21743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21744 fi
cristy8b350f62009-11-15 23:12:43 +000021745 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021746 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021747fi
cristy8b350f62009-11-15 23:12:43 +000021748rm -f core conftest.err conftest.$ac_objext \
21749 conftest$ac_exeext
21750 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021751 break
21752fi
21753done
cristy8b350f62009-11-15 23:12:43 +000021754if test "${ac_cv_search_clock_gettime+set}" = set; then :
21755
cristye43a45e2009-09-28 14:49:00 +000021756else
21757 ac_cv_search_clock_gettime=no
21758fi
21759rm conftest.$ac_ext
21760LIBS=$ac_func_search_save_LIBS
21761fi
cristy8b350f62009-11-15 23:12:43 +000021762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021763$as_echo "$ac_cv_search_clock_gettime" >&6; }
21764ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021765if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21767
21768
cristy8b350f62009-11-15 23:12:43 +000021769$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021770
cristy8b350f62009-11-15 23:12:43 +000021771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021772$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021774/* end confdefs.h. */
21775#include <time.h>
21776int
21777main ()
21778{
21779clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021780 ;
21781 return 0;
21782}
21783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021784if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021785
cristy8b350f62009-11-15 23:12:43 +000021786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021787$as_echo "yes" >&6; }
21788
cristy8b350f62009-11-15 23:12:43 +000021789$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021790
21791
21792else
cristy8b350f62009-11-15 23:12:43 +000021793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021794$as_echo "no" >&6; }
21795
21796fi
cristye43a45e2009-09-28 14:49:00 +000021797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21798
21799else
21800
cristy8b350f62009-11-15 23:12:43 +000021801 for ac_func in gettimeofday ftime
21802do :
21803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21805eval as_val=\$$as_ac_var
21806 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021807 cat >>confdefs.h <<_ACEOF
21808#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21809_ACEOF
21810 break
21811fi
21812done
21813
21814
21815
21816fi
21817
21818
cristy3ed852e2009-09-05 21:47:34 +000021819########
21820#
21821# Check for function prototypes
21822#
21823########
21824
cristy8b350f62009-11-15 23:12:43 +000021825ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021826#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021827"
21828if test "x$ac_cv_have_decl_pread" = x""yes; then :
21829 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021830else
cristy8b350f62009-11-15 23:12:43 +000021831 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021832fi
21833
cristy3ed852e2009-09-05 21:47:34 +000021834cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021835#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021837ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021838#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021839"
21840if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21841 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021842else
cristy8b350f62009-11-15 23:12:43 +000021843 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021844fi
21845
cristy3ed852e2009-09-05 21:47:34 +000021846cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021847#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021848_ACEOF
21849
21850
cristy8b350f62009-11-15 23:12:43 +000021851ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021852#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021853"
21854if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21855 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021856else
cristy8b350f62009-11-15 23:12:43 +000021857 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021858fi
21859
cristy3ed852e2009-09-05 21:47:34 +000021860cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021861#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021862_ACEOF
21863
21864
cristy8b350f62009-11-15 23:12:43 +000021865ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021866#include <stdio.h>
21867#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021868"
21869if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21870 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021871else
cristy8b350f62009-11-15 23:12:43 +000021872 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021873fi
21874
cristy3ed852e2009-09-05 21:47:34 +000021875cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021876#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021877_ACEOF
21878
21879
cristy3ed852e2009-09-05 21:47:34 +000021880########
21881#
21882# C++ Support Tests (For Magick++)
21883#
21884########
21885have_magick_plus_plus='no'
21886if test "$with_magick_plus_plus" = 'yes'; then
21887 OLIBS="$LIBS"
21888 LIBS=''
21889 ac_ext=cpp
21890ac_cpp='$CXXCPP $CPPFLAGS'
21891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21894
21895
21896 # Full set of headers used...
21897 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21898 # functional iomanip iosfwd iostream iterator list string strstream utility
21899 ac_ext=cpp
21900ac_cpp='$CXXCPP $CPPFLAGS'
21901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21904
21905 ac_ext=cpp
21906ac_cpp='$CXXCPP $CPPFLAGS'
21907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21910if test -z "$CXX"; then
21911 if test -n "$CCC"; then
21912 CXX=$CCC
21913 else
21914 if test -n "$ac_tool_prefix"; then
21915 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21916 do
21917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021920$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021921if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021922 $as_echo_n "(cached) " >&6
21923else
21924 if test -n "$CXX"; then
21925 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21926else
21927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21928for as_dir in $PATH
21929do
21930 IFS=$as_save_IFS
21931 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021932 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21934 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021936 break 2
21937 fi
21938done
cristy8b350f62009-11-15 23:12:43 +000021939 done
cristy3ed852e2009-09-05 21:47:34 +000021940IFS=$as_save_IFS
21941
21942fi
21943fi
21944CXX=$ac_cv_prog_CXX
21945if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021947$as_echo "$CXX" >&6; }
21948else
cristy8b350f62009-11-15 23:12:43 +000021949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo "no" >&6; }
21951fi
21952
21953
21954 test -n "$CXX" && break
21955 done
21956fi
21957if test -z "$CXX"; then
21958 ac_ct_CXX=$CXX
21959 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21960do
21961 # Extract the first word of "$ac_prog", so it can be a program name with args.
21962set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021964$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021965if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021966 $as_echo_n "(cached) " >&6
21967else
21968 if test -n "$ac_ct_CXX"; then
21969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21970else
21971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21972for as_dir in $PATH
21973do
21974 IFS=$as_save_IFS
21975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21978 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021980 break 2
21981 fi
21982done
cristy8b350f62009-11-15 23:12:43 +000021983 done
cristy3ed852e2009-09-05 21:47:34 +000021984IFS=$as_save_IFS
21985
21986fi
21987fi
21988ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21989if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021991$as_echo "$ac_ct_CXX" >&6; }
21992else
cristy8b350f62009-11-15 23:12:43 +000021993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021994$as_echo "no" >&6; }
21995fi
21996
21997
21998 test -n "$ac_ct_CXX" && break
21999done
22000
22001 if test "x$ac_ct_CXX" = x; then
22002 CXX="g++"
22003 else
22004 case $cross_compiling:$ac_tool_warned in
22005yes:)
cristy8b350f62009-11-15 23:12:43 +000022006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22008ac_tool_warned=yes ;;
22009esac
22010 CXX=$ac_ct_CXX
22011 fi
22012fi
22013
22014 fi
22015fi
22016# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022017$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022018set X $ac_compile
22019ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022020for ac_option in --version -v -V -qversion; do
22021 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022022case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025esac
cristy8b350f62009-11-15 23:12:43 +000022026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22027$as_echo "$ac_try_echo"; } >&5
22028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022029 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022030 if test -s conftest.err; then
22031 sed '10a\
22032... rest of stderr output deleted ...
22033 10q' conftest.err >conftest.er1
22034 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022035 fi
cristycd4c5312009-11-22 01:19:08 +000022036 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22038 test $ac_status = 0; }
22039done
cristy3ed852e2009-09-05 21:47:34 +000022040
cristy8b350f62009-11-15 23:12:43 +000022041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022042$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022043if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022044 $as_echo_n "(cached) " >&6
22045else
cristy8b350f62009-11-15 23:12:43 +000022046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022047/* end confdefs.h. */
22048
22049int
22050main ()
22051{
22052#ifndef __GNUC__
22053 choke me
22054#endif
22055
22056 ;
22057 return 0;
22058}
22059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022060if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022061 ac_compiler_gnu=yes
22062else
cristy8b350f62009-11-15 23:12:43 +000022063 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022064fi
cristy3ed852e2009-09-05 21:47:34 +000022065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22066ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22067
22068fi
cristy8b350f62009-11-15 23:12:43 +000022069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022070$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22071if test $ac_compiler_gnu = yes; then
22072 GXX=yes
22073else
22074 GXX=
22075fi
22076ac_test_CXXFLAGS=${CXXFLAGS+set}
22077ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022079$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022080if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022081 $as_echo_n "(cached) " >&6
22082else
22083 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22084 ac_cxx_werror_flag=yes
22085 ac_cv_prog_cxx_g=no
22086 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022088/* end confdefs.h. */
22089
22090int
22091main ()
22092{
22093
22094 ;
22095 return 0;
22096}
22097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022098if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022099 ac_cv_prog_cxx_g=yes
22100else
cristy8b350f62009-11-15 23:12:43 +000022101 CXXFLAGS=""
22102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103/* end confdefs.h. */
22104
22105int
22106main ()
22107{
22108
22109 ;
22110 return 0;
22111}
22112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022113if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022114
cristy8b350f62009-11-15 23:12:43 +000022115else
22116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022117 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022119/* end confdefs.h. */
22120
22121int
22122main ()
22123{
22124
22125 ;
22126 return 0;
22127}
22128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022129if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022130 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022131fi
cristy3ed852e2009-09-05 21:47:34 +000022132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22133fi
cristy3ed852e2009-09-05 21:47:34 +000022134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135fi
cristy3ed852e2009-09-05 21:47:34 +000022136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22138fi
cristy8b350f62009-11-15 23:12:43 +000022139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022140$as_echo "$ac_cv_prog_cxx_g" >&6; }
22141if test "$ac_test_CXXFLAGS" = set; then
22142 CXXFLAGS=$ac_save_CXXFLAGS
22143elif test $ac_cv_prog_cxx_g = yes; then
22144 if test "$GXX" = yes; then
22145 CXXFLAGS="-g -O2"
22146 else
22147 CXXFLAGS="-g"
22148 fi
22149else
22150 if test "$GXX" = yes; then
22151 CXXFLAGS="-O2"
22152 else
22153 CXXFLAGS=
22154 fi
22155fi
22156ac_ext=cpp
22157ac_cpp='$CXXCPP $CPPFLAGS'
22158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22161
22162depcc="$CXX" am_compiler_list=
22163
cristy8b350f62009-11-15 23:12:43 +000022164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022165$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022166if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022167 $as_echo_n "(cached) " >&6
22168else
22169 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22170 # We make a subdir and do the tests there. Otherwise we can end up
22171 # making bogus files that we don't know about and never remove. For
22172 # instance it was reported that on HP-UX the gcc test will end up
22173 # making a dummy file named `D' -- because `-MD' means `put the output
22174 # in D'.
22175 mkdir conftest.dir
22176 # Copy depcomp to subdir because otherwise we won't find it if we're
22177 # using a relative directory.
22178 cp "$am_depcomp" conftest.dir
22179 cd conftest.dir
22180 # We will build objects and dependencies in a subdirectory because
22181 # it helps to detect inapplicable dependency modes. For instance
22182 # both Tru64's cc and ICC support -MD to output dependencies as a
22183 # side effect of compilation, but ICC will put the dependencies in
22184 # the current directory while Tru64 will put them in the object
22185 # directory.
22186 mkdir sub
22187
22188 am_cv_CXX_dependencies_compiler_type=none
22189 if test "$am_compiler_list" = ""; then
22190 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22191 fi
22192 am__universal=false
22193 case " $depcc " in #(
22194 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22195 esac
22196
22197 for depmode in $am_compiler_list; do
22198 # Setup a source with many dependencies, because some compilers
22199 # like to wrap large dependency lists on column 80 (with \), and
22200 # we should not choose a depcomp mode which is confused by this.
22201 #
22202 # We need to recreate these files for each test, as the compiler may
22203 # overwrite some of them when testing with obscure command lines.
22204 # This happens at least with the AIX C compiler.
22205 : > sub/conftest.c
22206 for i in 1 2 3 4 5 6; do
22207 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22208 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22209 # Solaris 8's {/usr,}/bin/sh.
22210 touch sub/conftst$i.h
22211 done
22212 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22213
22214 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22215 # mode. It turns out that the SunPro C++ compiler does not properly
22216 # handle `-M -o', and we need to detect this. Also, some Intel
22217 # versions had trouble with output in subdirs
22218 am__obj=sub/conftest.${OBJEXT-o}
22219 am__minus_obj="-o $am__obj"
22220 case $depmode in
22221 gcc)
22222 # This depmode causes a compiler race in universal mode.
22223 test "$am__universal" = false || continue
22224 ;;
22225 nosideeffect)
22226 # after this tag, mechanisms are not by side-effect, so they'll
22227 # only be used when explicitly requested
22228 if test "x$enable_dependency_tracking" = xyes; then
22229 continue
22230 else
22231 break
22232 fi
22233 ;;
22234 msvisualcpp | msvcmsys)
22235 # This compiler won't grok `-c -o', but also, the minuso test has
22236 # not run yet. These depmodes are late enough in the game, and
22237 # so weak that their functioning should not be impacted.
22238 am__obj=conftest.${OBJEXT-o}
22239 am__minus_obj=
22240 ;;
22241 none) break ;;
22242 esac
22243 if depmode=$depmode \
22244 source=sub/conftest.c object=$am__obj \
22245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22246 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22247 >/dev/null 2>conftest.err &&
22248 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22250 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22252 # icc doesn't choke on unknown options, it will just issue warnings
22253 # or remarks (even with -Werror). So we grep stderr for any message
22254 # that says an option was ignored or not supported.
22255 # When given -MP, icc 7.0 and 7.1 complain thusly:
22256 # icc: Command line warning: ignoring option '-M'; no argument required
22257 # The diagnosis changed in icc 8.0:
22258 # icc: Command line remark: option '-MP' not supported
22259 if (grep 'ignoring option' conftest.err ||
22260 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22261 am_cv_CXX_dependencies_compiler_type=$depmode
22262 break
22263 fi
22264 fi
22265 done
22266
22267 cd ..
22268 rm -rf conftest.dir
22269else
22270 am_cv_CXX_dependencies_compiler_type=none
22271fi
22272
22273fi
cristy8b350f62009-11-15 23:12:43 +000022274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022275$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22276CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22277
22278 if
22279 test "x$enable_dependency_tracking" != xno \
22280 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22281 am__fastdepCXX_TRUE=
22282 am__fastdepCXX_FALSE='#'
22283else
22284 am__fastdepCXX_TRUE='#'
22285 am__fastdepCXX_FALSE=
22286fi
22287
22288
cristy8b350f62009-11-15 23:12:43 +000022289 { $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 +000022290$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022291if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022292 $as_echo_n "(cached) " >&6
22293else
22294
22295 ac_ext=cpp
22296ac_cpp='$CXXCPP $CPPFLAGS'
22297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22300
cristy8b350f62009-11-15 23:12:43 +000022301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022302/* end confdefs.h. */
22303
22304int f(int x){return 1;}
22305int f(char x){return 1;}
22306int f(bool x){return 1;}
22307
22308int
22309main ()
22310{
22311bool b = true; return f(b);
22312 ;
22313 return 0;
22314}
22315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022316if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022317 ac_cv_cxx_have_bool=yes
22318else
cristy8b350f62009-11-15 23:12:43 +000022319 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022320fi
cristy3ed852e2009-09-05 21:47:34 +000022321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322 ac_ext=cpp
22323ac_cpp='$CXXCPP $CPPFLAGS'
22324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22327
22328
22329fi
cristy8b350f62009-11-15 23:12:43 +000022330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022331$as_echo "$ac_cv_cxx_have_bool" >&6; }
22332if test "$ac_cv_cxx_have_bool" = yes; then
22333
cristy8b350f62009-11-15 23:12:43 +000022334$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022335
22336fi
22337
cristy8b350f62009-11-15 23:12:43 +000022338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022339$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022340if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022341 $as_echo_n "(cached) " >&6
22342else
22343
22344 ac_ext=cpp
22345ac_cpp='$CXXCPP $CPPFLAGS'
22346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22349
cristy8b350f62009-11-15 23:12:43 +000022350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022351/* end confdefs.h. */
22352namespace Outer { namespace Inner { int i = 0; }}
22353int
22354main ()
22355{
22356using namespace Outer::Inner; return i;
22357 ;
22358 return 0;
22359}
22360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022361if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022362 ac_cv_cxx_have_namespaces=yes
22363else
cristy8b350f62009-11-15 23:12:43 +000022364 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022365fi
cristy3ed852e2009-09-05 21:47:34 +000022366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 ac_ext=cpp
22368ac_cpp='$CXXCPP $CPPFLAGS'
22369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22372
22373
22374fi
cristy8b350f62009-11-15 23:12:43 +000022375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022376$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22377if test "$ac_cv_cxx_have_namespaces" = yes; then
22378
cristy8b350f62009-11-15 23:12:43 +000022379$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022380
22381fi
22382
cristy8b350f62009-11-15 23:12:43 +000022383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022384$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022385if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022386 $as_echo_n "(cached) " >&6
22387else
22388
22389 ac_ext=cpp
22390ac_cpp='$CXXCPP $CPPFLAGS'
22391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22394
cristy8b350f62009-11-15 23:12:43 +000022395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022396/* end confdefs.h. */
22397#include <iostream>
22398 std::istream& is = std::cin;
22399
22400int
22401main ()
22402{
22403return 0;
22404 ;
22405 return 0;
22406}
22407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022408if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 ac_cv_cxx_have_std_namespace=yes
22410else
cristy8b350f62009-11-15 23:12:43 +000022411 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022412fi
cristy3ed852e2009-09-05 21:47:34 +000022413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 ac_ext=cpp
22415ac_cpp='$CXXCPP $CPPFLAGS'
22416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22419
22420
22421fi
cristy8b350f62009-11-15 23:12:43 +000022422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022423$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22424if test "$ac_cv_cxx_have_std_namespace" = yes; then
22425
cristy8b350f62009-11-15 23:12:43 +000022426$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022427
22428fi
22429
cristy8b350f62009-11-15 23:12:43 +000022430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022431$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022432if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022433 $as_echo_n "(cached) " >&6
22434else
22435
22436
22437 ac_ext=cpp
22438ac_cpp='$CXXCPP $CPPFLAGS'
22439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22442
cristy8b350f62009-11-15 23:12:43 +000022443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022444/* end confdefs.h. */
22445#include <iostream>
22446#include <map>
22447#include <iomanip>
22448#include <cmath>
22449#ifdef HAVE_NAMESPACES
22450using namespace std;
22451#endif
22452int
22453main ()
22454{
22455return 0;
22456 ;
22457 return 0;
22458}
22459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022460if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022461 ac_cv_cxx_have_std_libs=yes
22462else
cristy8b350f62009-11-15 23:12:43 +000022463 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022464fi
cristy3ed852e2009-09-05 21:47:34 +000022465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22466 ac_ext=cpp
22467ac_cpp='$CXXCPP $CPPFLAGS'
22468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22471
22472
22473fi
cristy8b350f62009-11-15 23:12:43 +000022474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022475$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22476if test "$ac_cv_cxx_have_std_libs" = yes; then
22477
cristy8b350f62009-11-15 23:12:43 +000022478$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022479
22480fi
22481
cristy8b350f62009-11-15 23:12:43 +000022482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022483$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022484if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022485 $as_echo_n "(cached) " >&6
22486else
22487
22488 ac_ext=cpp
22489ac_cpp='$CXXCPP $CPPFLAGS'
22490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22493
cristy8b350f62009-11-15 23:12:43 +000022494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022495/* end confdefs.h. */
22496const wchar_t* s=L"wide string";
22497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022498if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022499 ac_cv_cxx_have_lstring=yes
22500else
cristy8b350f62009-11-15 23:12:43 +000022501 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022502fi
cristy3ed852e2009-09-05 21:47:34 +000022503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 ac_ext=cpp
22505ac_cpp='$CXXCPP $CPPFLAGS'
22506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22509
22510
22511fi
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22514if test "$ac_cv_cxx_have_lstring" = yes; then
22515
cristy8b350f62009-11-15 23:12:43 +000022516$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022517
22518fi
22519
22520
22521 OPENMP_CXXFLAGS=
22522 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022523if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 enableval=$enable_openmp;
22525fi
22526
22527 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22529$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022530if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022531 $as_echo_n "(cached) " >&6
22532else
cristy8b350f62009-11-15 23:12:43 +000022533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22534/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022535
22536#ifndef _OPENMP
22537 choke me
22538#endif
22539#include <omp.h>
22540int main () { return omp_get_num_threads (); }
22541
22542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022543if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022544 ac_cv_prog_cxx_openmp='none needed'
22545else
cristy8b350f62009-11-15 23:12:43 +000022546 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022547 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22548 ac_save_CXXFLAGS=$CXXFLAGS
22549 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022552
22553#ifndef _OPENMP
22554 choke me
22555#endif
22556#include <omp.h>
22557int main () { return omp_get_num_threads (); }
22558
22559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022560if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022561 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022562fi
cristy8b350f62009-11-15 23:12:43 +000022563rm -f core conftest.err conftest.$ac_objext \
22564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022565 CXXFLAGS=$ac_save_CXXFLAGS
22566 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22567 break
22568 fi
22569 done
22570fi
cristy8b350f62009-11-15 23:12:43 +000022571rm -f core conftest.err conftest.$ac_objext \
22572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022573fi
cristy8b350f62009-11-15 23:12:43 +000022574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022575$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22576 case $ac_cv_prog_cxx_openmp in #(
22577 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022578 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022579 *)
cristy8b350f62009-11-15 23:12:43 +000022580 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022581 esac
22582 fi
22583
22584
22585 ac_ext=c
22586ac_cpp='$CPP $CPPFLAGS'
22587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590
22591
cristy8b350f62009-11-15 23:12:43 +000022592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022593$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22594 if \
22595 test $ac_cv_cxx_have_bool = 'yes' && \
22596 test $ac_cv_cxx_have_lstring = 'yes' && \
22597 test $ac_cv_cxx_have_namespaces = 'yes' && \
22598 test $ac_cv_cxx_have_std_libs = 'yes' && \
22599 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22600 have_magick_plus_plus='yes'
22601 else
22602 have_magick_plus_plus='no (failed tests)'
22603 fi
cristy8b350f62009-11-15 23:12:43 +000022604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022605$as_echo "$have_magick_plus_plus" >&6; }
22606 LIBS="$OLIBS"
22607fi
22608 if test "$have_magick_plus_plus" = 'yes'; then
22609 WITH_MAGICK_PLUS_PLUS_TRUE=
22610 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22611else
22612 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22613 WITH_MAGICK_PLUS_PLUS_FALSE=
22614fi
22615
22616
22617# Only check for delegate libraries in subdirectories if requested.
22618if test "$enable_delegate_build" != 'no'; then
22619 # Check for delegate sub-directories and add -I & -L options as required.
22620 # This presumes that delegates are installed as detailed in the ImageMagick
22621 # README. If delegates are installed in a standard location where the
22622 # compiler will automatically find them then these options should not be
22623 # required.
22624
22625 #
22626 # Most delegates have includes in the same directory as the library, but not all...
22627 #
22628 # Includes
cristy5850e4b2010-01-08 14:28:24 +000022629 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 +000022630 if test -d "$builddir/$dir"; then
22631 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22632 else
22633 if test -d "$srcdirfull/$dir"; then
22634 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22635 fi
22636 fi
22637 done
22638
22639 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000022640 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 +000022641 if test -d "$builddir/$dir/.libs"; then
22642 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22643 else
22644 if test -d "$srcdirfull/$dir/.libs"; then
22645 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22646 fi
22647 fi
22648 if test -d "$builddir/$dir"; then
22649 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22650 else
22651 if test -d "$srcdirfull/$dir"; then
22652 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22653 fi
22654 fi
22655 done
22656fi
22657
22658# Assume that delegate headers reside under same directory as ImageMagick
22659# installation prefix.
22660MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22661
22662#
22663# Find the X11 RGB database
22664#
cristy8b350f62009-11-15 23:12:43 +000022665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022666$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022667if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022668 $as_echo_n "(cached) " >&6
22669else
22670 # Look for the header file in a standard set of common directories.
22671# Check X11 before X11Rn because it is often a symlink to the current release.
22672 for ac_dir in \
22673 /lib/usr/lib/X11 \
22674 /usr/X11/lib \
22675 /usr/X11R4/lib \
22676 /usr/X11R5/lib \
22677 /usr/X11R6/lib \
22678 /usr/X11R7/lib \
22679 /usr/X386/lib \
22680 /usr/XFree86/lib/X11 \
22681 /usr/athena/lib \
22682 /usr/lib \
22683 /usr/lib/X11 \
22684 /usr/lib/X11R4 \
22685 /usr/lib/X11R5 \
22686 /usr/lib/X11R6 \
22687 /usr/lib/X11R7 \
22688 /usr/local/X11/lib \
22689 /usr/local/X11R4/lib \
22690 /usr/local/X11R5/lib \
22691 /usr/local/X11R6/lib \
22692 /usr/local/lib \
22693 /usr/local/lib/X11 \
22694 /usr/local/lib/X11R4 \
22695 /usr/local/lib/X11R5 \
22696 /usr/local/lib/X11R6 \
22697 /usr/local/lib/X11R7 \
22698 /usr/local/x11r5/lib \
22699 /usr/lpp/Xamples/lib \
22700 /usr/openwin/lib \
22701 /usr/openwin/share/lib \
22702 /usr/unsupported/lib \
22703 /usr/x386/lib \
22704 ; do
22705 if test -f "$ac_dir/X11/rgb.txt"; then
22706 im_cv_x_configure="$ac_dir/X11/"
22707 break
22708 elif test -f "$ac_dir/rgb.txt"; then
22709 im_cv_x_configure="$ac_dir/"
22710 break
22711 fi
22712
22713 done
22714fi
cristy8b350f62009-11-15 23:12:43 +000022715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022716$as_echo "$im_cv_x_configure" >&6; }
22717X11_CONFIGURE_PATH="$im_cv_x_configure"
22718case "${build_os}" in
22719 mingw* )
22720 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22721 ;;
22722esac
22723
22724cat >>confdefs.h <<_ACEOF
22725#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22726_ACEOF
22727
22728
22729#
22730# Find OpenMP library
22731#
22732GOMP_LIBS=''
22733if test "$enable_openmp" != 'no'; then
22734 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022736$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022737if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 $as_echo_n "(cached) " >&6
22739else
22740 ac_check_lib_save_LIBS=$LIBS
22741LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022743/* end confdefs.h. */
22744
22745/* Override any GCC internal prototype to avoid an error.
22746 Use char because int might match the return type of a GCC
22747 builtin and then its argument prototype would still apply. */
22748#ifdef __cplusplus
22749extern "C"
22750#endif
22751char GOMP_parallel_start ();
22752int
22753main ()
22754{
22755return GOMP_parallel_start ();
22756 ;
22757 return 0;
22758}
22759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 ac_cv_lib_gomp_GOMP_parallel_start=yes
22762else
cristy8b350f62009-11-15 23:12:43 +000022763 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022764fi
cristy8b350f62009-11-15 23:12:43 +000022765rm -f core conftest.err conftest.$ac_objext \
22766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022767LIBS=$ac_check_lib_save_LIBS
22768fi
cristy8b350f62009-11-15 23:12:43 +000022769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022770$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022771if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022772 GOMP_LIBS="-lgomp"
22773fi
22774 # gcc
22775 else
cristy8b350f62009-11-15 23:12:43 +000022776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022777$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022778if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022779 $as_echo_n "(cached) " >&6
22780else
22781 ac_check_lib_save_LIBS=$LIBS
22782LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022784/* end confdefs.h. */
22785
22786/* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22789#ifdef __cplusplus
22790extern "C"
22791#endif
22792char sunw_mp_register_warn ();
22793int
22794main ()
22795{
22796return sunw_mp_register_warn ();
22797 ;
22798 return 0;
22799}
22800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022801if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022802 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22803else
cristy8b350f62009-11-15 23:12:43 +000022804 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022805fi
cristy8b350f62009-11-15 23:12:43 +000022806rm -f core conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022808LIBS=$ac_check_lib_save_LIBS
22809fi
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022812if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022813 GOMP_LIBS="-lmtsk"
22814fi
22815 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022817$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022818if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022819 $as_echo_n "(cached) " >&6
22820else
22821 ac_check_lib_save_LIBS=$LIBS
22822LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022824/* end confdefs.h. */
22825
22826/* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22829#ifdef __cplusplus
22830extern "C"
22831#endif
22832char _xlsmpFlush ();
22833int
22834main ()
22835{
22836return _xlsmpFlush ();
22837 ;
22838 return 0;
22839}
22840_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022841if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022842 ac_cv_lib_xlsmp__xlsmpFlush=yes
22843else
cristy8b350f62009-11-15 23:12:43 +000022844 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022845fi
cristy8b350f62009-11-15 23:12:43 +000022846rm -f core conftest.err conftest.$ac_objext \
22847 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022848LIBS=$ac_check_lib_save_LIBS
22849fi
cristy8b350f62009-11-15 23:12:43 +000022850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022851$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022852if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022853 GOMP_LIBS="-lxlsmp"
22854fi
22855 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022857$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022858if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022859 $as_echo_n "(cached) " >&6
22860else
22861 ac_check_lib_save_LIBS=$LIBS
22862LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022864/* end confdefs.h. */
22865
22866/* Override any GCC internal prototype to avoid an error.
22867 Use char because int might match the return type of a GCC
22868 builtin and then its argument prototype would still apply. */
22869#ifdef __cplusplus
22870extern "C"
22871#endif
22872char mp_destroy ();
22873int
22874main ()
22875{
22876return mp_destroy ();
22877 ;
22878 return 0;
22879}
22880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022881if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 ac_cv_lib_mp_mp_destroy=yes
22883else
cristy8b350f62009-11-15 23:12:43 +000022884 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022885fi
cristy8b350f62009-11-15 23:12:43 +000022886rm -f core conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022888LIBS=$ac_check_lib_save_LIBS
22889fi
cristy8b350f62009-11-15 23:12:43 +000022890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022891$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022892if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022893 GOMP_LIBS="-lmp"
22894fi
22895 # SGI IRIX 6.5 MIPSpro C/C++
22896 fi
22897 LIBS="$GOMP_LIBS $LIBS"
22898fi
22899
22900
22901#
22902# Find Posix threads library
22903#
22904THREAD_LIBS=''
22905if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22906
22907 if test "x$PTHREAD_LIBS" = "x"; then
22908 case "${host_cpu}-${host_os}" in
22909 *-freebsd*)
22910
22911
22912
22913ac_ext=c
22914ac_cpp='$CPP $CPPFLAGS'
22915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22917ac_compiler_gnu=$ac_cv_c_compiler_gnu
22918
22919magick_pthread_lib_ok=no
22920
22921LIB=-lc_r
22922save_LIBS="$LIBS"
22923LIBS="$LIBS $LIB"
22924
cristy8b350f62009-11-15 23:12:43 +000022925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022926$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022928/* end confdefs.h. */
22929#include <pthread.h>
22930int
22931main ()
22932{
22933 pthread_t th;
22934 pthread_join(th, 0);
22935 pthread_attr_init(0);
22936 pthread_cleanup_push(0, 0);
22937 pthread_create(0,0,0,0);
22938 pthread_cleanup_pop(0);
22939 ;
22940 return 0;
22941}
22942_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022943if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022944 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022945fi
cristy8b350f62009-11-15 23:12:43 +000022946rm -f core conftest.err conftest.$ac_objext \
22947 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022948
cristy8b350f62009-11-15 23:12:43 +000022949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022950$as_echo "${magick_pthread_lib_ok}" >&6; }
22951if test "$magick_pthread_lib_ok" = yes
22952then
22953 PTHREAD_LIBS=-lc_r
22954 :
22955else
22956
22957 :
22958fi
22959
22960LIBS="$save_LIBS"
22961
22962ac_ext=c
22963ac_cpp='$CPP $CPPFLAGS'
22964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22966ac_compiler_gnu=$ac_cv_c_compiler_gnu
22967
22968 ;;
22969 esac
22970 fi
22971
22972 for lib in pthread pthreads; do
22973 if test "x$PTHREAD_LIBS" = "x"; then
22974
22975
22976
22977ac_ext=c
22978ac_cpp='$CPP $CPPFLAGS'
22979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22981ac_compiler_gnu=$ac_cv_c_compiler_gnu
22982
22983magick_pthread_lib_ok=no
22984
22985LIB=-l$lib
22986save_LIBS="$LIBS"
22987LIBS="$LIBS $LIB"
22988
cristy8b350f62009-11-15 23:12:43 +000022989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022990$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022992/* end confdefs.h. */
22993#include <pthread.h>
22994int
22995main ()
22996{
22997 pthread_t th;
22998 pthread_join(th, 0);
22999 pthread_attr_init(0);
23000 pthread_cleanup_push(0, 0);
23001 pthread_create(0,0,0,0);
23002 pthread_cleanup_pop(0);
23003 ;
23004 return 0;
23005}
23006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023008 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023009fi
cristy8b350f62009-11-15 23:12:43 +000023010rm -f core conftest.err conftest.$ac_objext \
23011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023012
cristy8b350f62009-11-15 23:12:43 +000023013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023014$as_echo "${magick_pthread_lib_ok}" >&6; }
23015if test "$magick_pthread_lib_ok" = yes
23016then
23017 PTHREAD_LIBS=-l$lib
23018 :
23019else
23020
23021 :
23022fi
23023
23024LIBS="$save_LIBS"
23025
23026ac_ext=c
23027ac_cpp='$CPP $CPPFLAGS'
23028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23030ac_compiler_gnu=$ac_cv_c_compiler_gnu
23031
23032
23033 fi
23034 done
23035
23036 THREAD_LIBS="$PTHREAD_LIBS"
23037 LIBS="$LIBS $THREAD_LIBS"
23038fi
23039
23040
23041#
23042# Check for umem.
23043#
23044have_umem='no'
23045UMEM_LIBS=''
23046if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023048$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023050$as_echo "" >&6; }
23051 failed=0
23052 passed=0
cristy8b350f62009-11-15 23:12:43 +000023053 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23054if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023055 passed=`expr $passed + 1`
23056else
23057 failed=`expr $failed + 1`
23058fi
23059
23060
cristy8b350f62009-11-15 23:12:43 +000023061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023062$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023063if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023064 $as_echo_n "(cached) " >&6
23065else
23066 ac_check_lib_save_LIBS=$LIBS
23067LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023069/* end confdefs.h. */
23070
23071/* Override any GCC internal prototype to avoid an error.
23072 Use char because int might match the return type of a GCC
23073 builtin and then its argument prototype would still apply. */
23074#ifdef __cplusplus
23075extern "C"
23076#endif
23077char umem_alloc ();
23078int
23079main ()
23080{
23081return umem_alloc ();
23082 ;
23083 return 0;
23084}
23085_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023086if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023087 ac_cv_lib_umem_umem_alloc=yes
23088else
cristy8b350f62009-11-15 23:12:43 +000023089 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023090fi
cristy8b350f62009-11-15 23:12:43 +000023091rm -f core conftest.err conftest.$ac_objext \
23092 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023093LIBS=$ac_check_lib_save_LIBS
23094fi
cristy8b350f62009-11-15 23:12:43 +000023095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023096$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023097if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023098 passed=`expr $passed + 1`
23099else
23100 failed=`expr $failed + 1`
23101fi
23102
cristy8b350f62009-11-15 23:12:43 +000023103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023104$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023105if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023106 $as_echo_n "(cached) " >&6
23107else
23108 ac_check_lib_save_LIBS=$LIBS
23109LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023111/* end confdefs.h. */
23112
23113/* Override any GCC internal prototype to avoid an error.
23114 Use char because int might match the return type of a GCC
23115 builtin and then its argument prototype would still apply. */
23116#ifdef __cplusplus
23117extern "C"
23118#endif
23119char umem_free ();
23120int
23121main ()
23122{
23123return umem_free ();
23124 ;
23125 return 0;
23126}
23127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023128if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023129 ac_cv_lib_umem_umem_free=yes
23130else
cristy8b350f62009-11-15 23:12:43 +000023131 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023132fi
cristy8b350f62009-11-15 23:12:43 +000023133rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023135LIBS=$ac_check_lib_save_LIBS
23136fi
cristy8b350f62009-11-15 23:12:43 +000023137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023138$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023139if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 passed=`expr $passed + 1`
23141else
23142 failed=`expr $failed + 1`
23143fi
23144
cristy8b350f62009-11-15 23:12:43 +000023145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23147 if test $passed -gt 0; then
23148 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "no -- some components failed test" >&6; }
23151 have_umem='no (failed tests)'
23152 else
23153 UMEM_LIBS='-lumem'
23154 LIBS="$UMEM_LIBS $LIBS"
23155
cristy8b350f62009-11-15 23:12:43 +000023156$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023157
cristy8b350f62009-11-15 23:12:43 +000023158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023159$as_echo "yes" >&6; }
23160 have_umem='yes'
23161 fi
23162 else
cristy8b350f62009-11-15 23:12:43 +000023163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023164$as_echo "no" >&6; }
23165 fi
23166fi
23167 if test "$have_umem" = 'yes'; then
23168 HasUMEM_TRUE=
23169 HasUMEM_FALSE='#'
23170else
23171 HasUMEM_TRUE='#'
23172 HasUMEM_FALSE=
23173fi
23174
23175
23176
23177#
23178# Add support for ccmalloc memory debugging library if requested
23179#
23180have_ccmalloc='no'
23181CCMALLOC_LIBS=''
23182if test "$enable_ccmalloc" = 'yes'; then
23183 # Extract the first word of "ccmalloc", so it can be a program name with args.
23184set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023186$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023187if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023188 $as_echo_n "(cached) " >&6
23189else
23190 case $CCMALLOCDelegate in
23191 [\\/]* | ?:[\\/]*)
23192 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23193 ;;
23194 *)
23195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23196for as_dir in $PATH
23197do
23198 IFS=$as_save_IFS
23199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23202 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023204 break 2
23205 fi
23206done
cristy8b350f62009-11-15 23:12:43 +000023207 done
cristy3ed852e2009-09-05 21:47:34 +000023208IFS=$as_save_IFS
23209
23210 ;;
23211esac
23212fi
23213CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23214if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023216$as_echo "$CCMALLOCDelegate" >&6; }
23217else
cristy8b350f62009-11-15 23:12:43 +000023218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023219$as_echo "no" >&6; }
23220fi
23221
23222
23223 if test -n "$CCMALLOCDelegate"; then
23224 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23225 OLIBS="$LIBS"
23226 # Assume that gcc is used with ccmalloc.
23227 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023229$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023230if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023231 $as_echo_n "(cached) " >&6
23232else
23233 ac_check_lib_save_LIBS=$LIBS
23234LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023236/* end confdefs.h. */
23237
23238/* Override any GCC internal prototype to avoid an error.
23239 Use char because int might match the return type of a GCC
23240 builtin and then its argument prototype would still apply. */
23241#ifdef __cplusplus
23242extern "C"
23243#endif
23244char ccmalloc_malloc ();
23245int
23246main ()
23247{
23248return ccmalloc_malloc ();
23249 ;
23250 return 0;
23251}
23252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023254 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23255else
cristy8b350f62009-11-15 23:12:43 +000023256 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023257fi
cristy8b350f62009-11-15 23:12:43 +000023258rm -f core conftest.err conftest.$ac_objext \
23259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023260LIBS=$ac_check_lib_save_LIBS
23261fi
cristy8b350f62009-11-15 23:12:43 +000023262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023263$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023264if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023265 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23266fi
23267
23268 if test -n "$CCMALLOC_LIBS"; then
23269 LIBS="$OLIBS"
23270 LIBS="$LIBS $CCMALLOC_LIBS"
23271 have_ccmalloc='yes'
23272 else
23273 LIBS="$OLIBS"
23274 fi
23275 fi
23276fi
23277
23278#
23279# Add support for efence memory debugging library if requested
23280#
23281if test "$enable_efence" = 'yes'; then
23282 EFENCE_LIBS='-lefence'
23283 LIBS="$EFENCE_LIBS $LIBS"
23284fi
23285
23286#
23287# Find math library
23288#
23289MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023291$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023292if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023293 $as_echo_n "(cached) " >&6
23294else
23295 ac_check_lib_save_LIBS=$LIBS
23296LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023298/* end confdefs.h. */
23299
23300/* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23303#ifdef __cplusplus
23304extern "C"
23305#endif
23306char sqrt ();
23307int
23308main ()
23309{
23310return sqrt ();
23311 ;
23312 return 0;
23313}
23314_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023315if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023316 ac_cv_lib_m_sqrt=yes
23317else
cristy8b350f62009-11-15 23:12:43 +000023318 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023319fi
cristy8b350f62009-11-15 23:12:43 +000023320rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023322LIBS=$ac_check_lib_save_LIBS
23323fi
cristy8b350f62009-11-15 23:12:43 +000023324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023325$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023326if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023327 MATH_LIBS="-lm"
23328fi
23329
23330LIBS="$MATH_LIBS $LIBS"
23331
23332
23333
23334#
23335# Check for BZLIB
23336#
23337
23338
23339# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023340if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023341 withval=$with_bzlib; with_bzlib=$withval
23342else
23343 with_bzlib='yes'
23344fi
23345
23346
23347if test "$with_bzlib" != 'yes'; then
23348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23349fi
23350
23351have_bzlib='no'
23352if test "$with_bzlib" != 'no'; then
23353 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023355$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023357$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023359$as_echo "" >&6; }
23360 failed=0
23361 passed=0
23362 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023363 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23364if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023365 passed=`expr $passed + 1`
23366else
23367 failed=`expr $failed + 1`
23368fi
23369
23370
cristy8b350f62009-11-15 23:12:43 +000023371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023372$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023373if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023374 $as_echo_n "(cached) " >&6
23375else
23376 ac_check_lib_save_LIBS=$LIBS
23377LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023379/* end confdefs.h. */
23380
23381/* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23384#ifdef __cplusplus
23385extern "C"
23386#endif
23387char BZ2_bzDecompress ();
23388int
23389main ()
23390{
23391return BZ2_bzDecompress ();
23392 ;
23393 return 0;
23394}
23395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023397 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23398else
cristy8b350f62009-11-15 23:12:43 +000023399 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023400fi
cristy8b350f62009-11-15 23:12:43 +000023401rm -f core conftest.err conftest.$ac_objext \
23402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023403LIBS=$ac_check_lib_save_LIBS
23404fi
cristy8b350f62009-11-15 23:12:43 +000023405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023406$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023407if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023408 found_libbz=`expr $found_libbz + 1`
23409fi
23410
23411 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023413$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023414if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023415 $as_echo_n "(cached) " >&6
23416else
23417 ac_check_lib_save_LIBS=$LIBS
23418LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023420/* end confdefs.h. */
23421
23422/* Override any GCC internal prototype to avoid an error.
23423 Use char because int might match the return type of a GCC
23424 builtin and then its argument prototype would still apply. */
23425#ifdef __cplusplus
23426extern "C"
23427#endif
23428char _imp__BZ2_decompress ();
23429int
23430main ()
23431{
23432return _imp__BZ2_decompress ();
23433 ;
23434 return 0;
23435}
23436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023438 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23439else
cristy8b350f62009-11-15 23:12:43 +000023440 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023441fi
cristy8b350f62009-11-15 23:12:43 +000023442rm -f core conftest.err conftest.$ac_objext \
23443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023444LIBS=$ac_check_lib_save_LIBS
23445fi
cristy8b350f62009-11-15 23:12:43 +000023446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023448if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023449 found_libbz=`expr $found_libbz + 1`
23450fi
23451
23452 fi
23453 if test $found_libbz -gt 0; then
23454 passed=`expr $passed + 1`
23455 else
23456 failed=`expr $failed + 1`
23457 fi
cristy8b350f62009-11-15 23:12:43 +000023458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo_n "checking if BZLIB package is complete... " >&6; }
23460 if test $passed -gt 0; then
23461 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023463$as_echo "no -- some components failed test" >&6; }
23464 have_bzlib='no (failed tests)'
23465 else
23466 BZLIB_LIBS='-lbz2'
23467 LIBS="$BZLIB_LIBS $LIBS"
23468
cristy8b350f62009-11-15 23:12:43 +000023469$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023470
cristy8b350f62009-11-15 23:12:43 +000023471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "yes" >&6; }
23473 have_bzlib='yes'
23474 fi
23475 else
cristy8b350f62009-11-15 23:12:43 +000023476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023477$as_echo "no" >&6; }
23478 fi
23479fi
23480 if test "$have_bzlib" = 'yes'; then
23481 BZLIB_DELEGATE_TRUE=
23482 BZLIB_DELEGATE_FALSE='#'
23483else
23484 BZLIB_DELEGATE_TRUE='#'
23485 BZLIB_DELEGATE_FALSE=
23486fi
23487
23488
23489
23490#
23491# Find the X11 include and library directories.
23492#
23493IPC_LIBS=''
23494X11_LIBS=''
23495XEXT_LIBS=''
23496XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023498$as_echo_n "checking for X... " >&6; }
23499
23500
23501# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023502if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023503 withval=$with_x;
23504fi
23505
23506# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23507if test "x$with_x" = xno; then
23508 # The user explicitly disabled X.
23509 have_x=disabled
23510else
23511 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023512 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23513 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023514 $as_echo_n "(cached) " >&6
23515else
23516 # One or both of the vars are not set, and there is no cached value.
23517ac_x_includes=no ac_x_libraries=no
23518rm -f -r conftest.dir
23519if mkdir conftest.dir; then
23520 cd conftest.dir
23521 cat >Imakefile <<'_ACEOF'
23522incroot:
23523 @echo incroot='${INCROOT}'
23524usrlibdir:
23525 @echo usrlibdir='${USRLIBDIR}'
23526libdir:
23527 @echo libdir='${LIBDIR}'
23528_ACEOF
23529 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23530 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23531 for ac_var in incroot usrlibdir libdir; do
23532 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23533 done
23534 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23535 for ac_extension in a so sl dylib la dll; do
23536 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23537 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23538 ac_im_usrlibdir=$ac_im_libdir; break
23539 fi
23540 done
23541 # Screen out bogus values from the imake configuration. They are
23542 # bogus both because they are the default anyway, and because
23543 # using them would break gcc on systems where it needs fixed includes.
23544 case $ac_im_incroot in
23545 /usr/include) ac_x_includes= ;;
23546 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23547 esac
23548 case $ac_im_usrlibdir in
23549 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23550 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23551 esac
23552 fi
23553 cd ..
23554 rm -f -r conftest.dir
23555fi
23556
23557# Standard set of common directories for X headers.
23558# Check X11 before X11Rn because it is often a symlink to the current release.
23559ac_x_header_dirs='
23560/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023561/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023562/usr/X11R6/include
23563/usr/X11R5/include
23564/usr/X11R4/include
23565
23566/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023567/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023568/usr/include/X11R6
23569/usr/include/X11R5
23570/usr/include/X11R4
23571
23572/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023573/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023574/usr/local/X11R6/include
23575/usr/local/X11R5/include
23576/usr/local/X11R4/include
23577
23578/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023579/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023580/usr/local/include/X11R6
23581/usr/local/include/X11R5
23582/usr/local/include/X11R4
23583
23584/usr/X386/include
23585/usr/x386/include
23586/usr/XFree86/include/X11
23587
23588/usr/include
23589/usr/local/include
23590/usr/unsupported/include
23591/usr/athena/include
23592/usr/local/x11r5/include
23593/usr/lpp/Xamples/include
23594
23595/usr/openwin/include
23596/usr/openwin/share/include'
23597
23598if test "$ac_x_includes" = no; then
23599 # Guess where to find include files, by looking for Xlib.h.
23600 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023602/* end confdefs.h. */
23603#include <X11/Xlib.h>
23604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023605if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023606 # We can compile using X headers with no special include directory.
23607ac_x_includes=
23608else
cristyc7083c12009-10-14 03:16:55 +000023609 for ac_dir in $ac_x_header_dirs; do
23610 if test -r "$ac_dir/X11/Xlib.h"; then
23611 ac_x_includes=$ac_dir
23612 break
23613 fi
23614done
23615fi
cristyc7083c12009-10-14 03:16:55 +000023616rm -f conftest.err conftest.$ac_ext
23617fi # $ac_x_includes = no
23618
23619if test "$ac_x_libraries" = no; then
23620 # Check for the libraries.
23621 # See if we find them without any special options.
23622 # Don't add to $LIBS permanently.
23623 ac_save_LIBS=$LIBS
23624 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023626/* end confdefs.h. */
23627#include <X11/Xlib.h>
23628int
23629main ()
23630{
23631XrmInitialize ()
23632 ;
23633 return 0;
23634}
23635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023636if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023637 LIBS=$ac_save_LIBS
23638# We can link X programs with no special library path.
23639ac_x_libraries=
23640else
cristy8b350f62009-11-15 23:12:43 +000023641 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023642for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23643do
23644 # Don't even attempt the hair of trying to link an X program!
23645 for ac_extension in a so sl dylib la dll; do
23646 if test -r "$ac_dir/libX11.$ac_extension"; then
23647 ac_x_libraries=$ac_dir
23648 break 2
23649 fi
23650 done
23651done
23652fi
cristy8b350f62009-11-15 23:12:43 +000023653rm -f core conftest.err conftest.$ac_objext \
23654 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023655fi # $ac_x_libraries = no
23656
23657case $ac_x_includes,$ac_x_libraries in #(
23658 no,* | *,no | *\'*)
23659 # Didn't find X, or a directory has "'" in its name.
23660 ac_cv_have_x="have_x=no";; #(
23661 *)
23662 # Record where we found X for the cache.
23663 ac_cv_have_x="have_x=yes\
23664 ac_x_includes='$ac_x_includes'\
23665 ac_x_libraries='$ac_x_libraries'"
23666esac
23667fi
23668;; #(
23669 *) have_x=yes;;
23670 esac
23671 eval "$ac_cv_have_x"
23672fi # $with_x != no
23673
23674if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023676$as_echo "$have_x" >&6; }
23677 no_x=yes
23678else
23679 # If each of the values was on the command line, it overrides each guess.
23680 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23681 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23682 # Update the cache value to reflect the command line values.
23683 ac_cv_have_x="have_x=yes\
23684 ac_x_includes='$x_includes'\
23685 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023687$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23688fi
23689
cristy3ed852e2009-09-05 21:47:34 +000023690if test "$no_x" = yes; then
23691 # Not all programs may use this symbol, but it does not hurt to define it.
23692
cristy8b350f62009-11-15 23:12:43 +000023693$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023694
23695 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23696else
23697 if test -n "$x_includes"; then
23698 X_CFLAGS="$X_CFLAGS -I$x_includes"
23699 fi
23700
23701 # It would also be nice to do this for all -L options, not just this one.
23702 if test -n "$x_libraries"; then
23703 X_LIBS="$X_LIBS -L$x_libraries"
23704 # For Solaris; some versions of Sun CC require a space after -R and
23705 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023707$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23708 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23709 ac_xsave_c_werror_flag=$ac_c_werror_flag
23710 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023712/* end confdefs.h. */
23713
23714int
23715main ()
23716{
23717
23718 ;
23719 return 0;
23720}
23721_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023722if ac_fn_c_try_link "$LINENO"; then :
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023724$as_echo "no" >&6; }
23725 X_LIBS="$X_LIBS -R$x_libraries"
23726else
cristy8b350f62009-11-15 23:12:43 +000023727 LIBS="$ac_xsave_LIBS -R $x_libraries"
23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023729/* end confdefs.h. */
23730
23731int
23732main ()
23733{
23734
23735 ;
23736 return 0;
23737}
23738_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023739if ac_fn_c_try_link "$LINENO"; then :
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023741$as_echo "yes" >&6; }
23742 X_LIBS="$X_LIBS -R $x_libraries"
23743else
cristy8b350f62009-11-15 23:12:43 +000023744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023745$as_echo "neither works" >&6; }
23746fi
cristy8b350f62009-11-15 23:12:43 +000023747rm -f core conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023749fi
cristy8b350f62009-11-15 23:12:43 +000023750rm -f core conftest.err conftest.$ac_objext \
23751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023752 ac_c_werror_flag=$ac_xsave_c_werror_flag
23753 LIBS=$ac_xsave_LIBS
23754 fi
23755
23756 # Check for system-dependent libraries X programs must link with.
23757 # Do this before checking for the system-independent R6 libraries
23758 # (-lICE), since we may need -lsocket or whatever for X linking.
23759
23760 if test "$ISC" = yes; then
23761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23762 else
23763 # Martyn Johnson says this is needed for Ultrix, if the X
23764 # libraries were built with DECnet support. And Karl Berry says
23765 # the Alpha needs dnet_stub (dnet does not exist).
23766 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023768/* end confdefs.h. */
23769
23770/* Override any GCC internal prototype to avoid an error.
23771 Use char because int might match the return type of a GCC
23772 builtin and then its argument prototype would still apply. */
23773#ifdef __cplusplus
23774extern "C"
23775#endif
23776char XOpenDisplay ();
23777int
23778main ()
23779{
23780return XOpenDisplay ();
23781 ;
23782 return 0;
23783}
23784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023786
cristy8b350f62009-11-15 23:12:43 +000023787else
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023789$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023790if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023791 $as_echo_n "(cached) " >&6
23792else
23793 ac_check_lib_save_LIBS=$LIBS
23794LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023796/* end confdefs.h. */
23797
23798/* Override any GCC internal prototype to avoid an error.
23799 Use char because int might match the return type of a GCC
23800 builtin and then its argument prototype would still apply. */
23801#ifdef __cplusplus
23802extern "C"
23803#endif
23804char dnet_ntoa ();
23805int
23806main ()
23807{
23808return dnet_ntoa ();
23809 ;
23810 return 0;
23811}
23812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 ac_cv_lib_dnet_dnet_ntoa=yes
23815else
cristy8b350f62009-11-15 23:12:43 +000023816 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy8b350f62009-11-15 23:12:43 +000023818rm -f core conftest.err conftest.$ac_objext \
23819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023820LIBS=$ac_check_lib_save_LIBS
23821fi
cristy8b350f62009-11-15 23:12:43 +000023822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023823$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023824if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023825 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23826fi
23827
23828 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023831if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 $as_echo_n "(cached) " >&6
23833else
23834 ac_check_lib_save_LIBS=$LIBS
23835LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837/* end confdefs.h. */
23838
23839/* Override any GCC internal prototype to avoid an error.
23840 Use char because int might match the return type of a GCC
23841 builtin and then its argument prototype would still apply. */
23842#ifdef __cplusplus
23843extern "C"
23844#endif
23845char dnet_ntoa ();
23846int
23847main ()
23848{
23849return dnet_ntoa ();
23850 ;
23851 return 0;
23852}
23853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023855 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23856else
cristy8b350f62009-11-15 23:12:43 +000023857 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023858fi
cristy8b350f62009-11-15 23:12:43 +000023859rm -f core conftest.err conftest.$ac_objext \
23860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861LIBS=$ac_check_lib_save_LIBS
23862fi
cristy8b350f62009-11-15 23:12:43 +000023863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023864$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023865if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023866 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23867fi
23868
23869 fi
23870fi
cristy8b350f62009-11-15 23:12:43 +000023871rm -f core conftest.err conftest.$ac_objext \
23872 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023873 LIBS="$ac_xsave_LIBS"
23874
23875 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23876 # to get the SysV transport functions.
23877 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23878 # needs -lnsl.
23879 # The nsl library prevents programs from opening the X display
23880 # on Irix 5.2, according to T.E. Dickey.
23881 # The functions gethostbyname, getservbyname, and inet_addr are
23882 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023883 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23884if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023885
cristy3ed852e2009-09-05 21:47:34 +000023886fi
23887
cristy3ed852e2009-09-05 21:47:34 +000023888 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023890$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023891if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023892 $as_echo_n "(cached) " >&6
23893else
23894 ac_check_lib_save_LIBS=$LIBS
23895LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023897/* end confdefs.h. */
23898
23899/* Override any GCC internal prototype to avoid an error.
23900 Use char because int might match the return type of a GCC
23901 builtin and then its argument prototype would still apply. */
23902#ifdef __cplusplus
23903extern "C"
23904#endif
23905char gethostbyname ();
23906int
23907main ()
23908{
23909return gethostbyname ();
23910 ;
23911 return 0;
23912}
23913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023915 ac_cv_lib_nsl_gethostbyname=yes
23916else
cristy8b350f62009-11-15 23:12:43 +000023917 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023918fi
cristy8b350f62009-11-15 23:12:43 +000023919rm -f core conftest.err conftest.$ac_objext \
23920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023921LIBS=$ac_check_lib_save_LIBS
23922fi
cristy8b350f62009-11-15 23:12:43 +000023923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023924$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023925if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23927fi
23928
23929 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000023931$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023932if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023933 $as_echo_n "(cached) " >&6
23934else
23935 ac_check_lib_save_LIBS=$LIBS
23936LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023938/* end confdefs.h. */
23939
23940/* Override any GCC internal prototype to avoid an error.
23941 Use char because int might match the return type of a GCC
23942 builtin and then its argument prototype would still apply. */
23943#ifdef __cplusplus
23944extern "C"
23945#endif
23946char gethostbyname ();
23947int
23948main ()
23949{
23950return gethostbyname ();
23951 ;
23952 return 0;
23953}
23954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023955if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023956 ac_cv_lib_bsd_gethostbyname=yes
23957else
cristy8b350f62009-11-15 23:12:43 +000023958 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023959fi
cristy8b350f62009-11-15 23:12:43 +000023960rm -f core conftest.err conftest.$ac_objext \
23961 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023962LIBS=$ac_check_lib_save_LIBS
23963fi
cristy8b350f62009-11-15 23:12:43 +000023964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023965$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023966if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23968fi
23969
23970 fi
23971 fi
23972
23973 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23974 # socket/setsockopt and other routines are undefined under SCO ODT
23975 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23976 # on later versions), says Simon Leinen: it contains gethostby*
23977 # variants that don't use the name server (or something). -lsocket
23978 # must be given before -lnsl if both are needed. We assume that
23979 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000023980 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23981if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023982
cristy3ed852e2009-09-05 21:47:34 +000023983fi
23984
cristy3ed852e2009-09-05 21:47:34 +000023985 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000023986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023988if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023989 $as_echo_n "(cached) " >&6
23990else
23991 ac_check_lib_save_LIBS=$LIBS
23992LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023994/* end confdefs.h. */
23995
23996/* Override any GCC internal prototype to avoid an error.
23997 Use char because int might match the return type of a GCC
23998 builtin and then its argument prototype would still apply. */
23999#ifdef __cplusplus
24000extern "C"
24001#endif
24002char connect ();
24003int
24004main ()
24005{
24006return connect ();
24007 ;
24008 return 0;
24009}
24010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024012 ac_cv_lib_socket_connect=yes
24013else
cristy8b350f62009-11-15 23:12:43 +000024014 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024015fi
cristy8b350f62009-11-15 23:12:43 +000024016rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024018LIBS=$ac_check_lib_save_LIBS
24019fi
cristy8b350f62009-11-15 23:12:43 +000024020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024021$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024022if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024023 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24024fi
24025
24026 fi
24027
24028 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024029 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24030if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024031
cristy3ed852e2009-09-05 21:47:34 +000024032fi
24033
cristy3ed852e2009-09-05 21:47:34 +000024034 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024036$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024037if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024038 $as_echo_n "(cached) " >&6
24039else
24040 ac_check_lib_save_LIBS=$LIBS
24041LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024043/* end confdefs.h. */
24044
24045/* Override any GCC internal prototype to avoid an error.
24046 Use char because int might match the return type of a GCC
24047 builtin and then its argument prototype would still apply. */
24048#ifdef __cplusplus
24049extern "C"
24050#endif
24051char remove ();
24052int
24053main ()
24054{
24055return remove ();
24056 ;
24057 return 0;
24058}
24059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 ac_cv_lib_posix_remove=yes
24062else
cristy8b350f62009-11-15 23:12:43 +000024063 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024064fi
cristy8b350f62009-11-15 23:12:43 +000024065rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024067LIBS=$ac_check_lib_save_LIBS
24068fi
cristy8b350f62009-11-15 23:12:43 +000024069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024070$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024071if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024072 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24073fi
24074
24075 fi
24076
24077 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024078 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24079if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024080
cristy3ed852e2009-09-05 21:47:34 +000024081fi
24082
cristy3ed852e2009-09-05 21:47:34 +000024083 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024085$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024086if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024087 $as_echo_n "(cached) " >&6
24088else
24089 ac_check_lib_save_LIBS=$LIBS
24090LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024092/* end confdefs.h. */
24093
24094/* Override any GCC internal prototype to avoid an error.
24095 Use char because int might match the return type of a GCC
24096 builtin and then its argument prototype would still apply. */
24097#ifdef __cplusplus
24098extern "C"
24099#endif
24100char shmat ();
24101int
24102main ()
24103{
24104return shmat ();
24105 ;
24106 return 0;
24107}
24108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 ac_cv_lib_ipc_shmat=yes
24111else
cristy8b350f62009-11-15 23:12:43 +000024112 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024113fi
cristy8b350f62009-11-15 23:12:43 +000024114rm -f core conftest.err conftest.$ac_objext \
24115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024116LIBS=$ac_check_lib_save_LIBS
24117fi
cristy8b350f62009-11-15 23:12:43 +000024118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024119$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024120if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024121 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24122fi
24123
24124 fi
24125 fi
24126
24127 # Check for libraries that X11R6 Xt/Xaw programs need.
24128 ac_save_LDFLAGS=$LDFLAGS
24129 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24130 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24131 # check for ICE first), but we must link in the order -lSM -lICE or
24132 # we get undefined symbols. So assume we have SM if we have ICE.
24133 # These have to be linked with before -lX11, unlike the other
24134 # libraries we check for below, so use a different variable.
24135 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024138if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024139 $as_echo_n "(cached) " >&6
24140else
24141 ac_check_lib_save_LIBS=$LIBS
24142LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024144/* end confdefs.h. */
24145
24146/* Override any GCC internal prototype to avoid an error.
24147 Use char because int might match the return type of a GCC
24148 builtin and then its argument prototype would still apply. */
24149#ifdef __cplusplus
24150extern "C"
24151#endif
24152char IceConnectionNumber ();
24153int
24154main ()
24155{
24156return IceConnectionNumber ();
24157 ;
24158 return 0;
24159}
24160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 ac_cv_lib_ICE_IceConnectionNumber=yes
24163else
cristy8b350f62009-11-15 23:12:43 +000024164 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024165fi
cristy8b350f62009-11-15 23:12:43 +000024166rm -f core conftest.err conftest.$ac_objext \
24167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024168LIBS=$ac_check_lib_save_LIBS
24169fi
cristy8b350f62009-11-15 23:12:43 +000024170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024171$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024172if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024173 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24174fi
24175
24176 LDFLAGS=$ac_save_LDFLAGS
24177
24178fi
24179
24180if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024182$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024186$as_echo "" >&6; }
24187 LDFLAGS="$LDFLAGS $X_LIBS"
24188 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24189 LIBS="$X11_LIBS $LIBS"
24190 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24191
24192
cristy8b350f62009-11-15 23:12:43 +000024193$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024194
24195 #
24196 # Check for X11 shared memory extension
24197 #
24198 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024199 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24200if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024201 have_shmctl='yes'
24202fi
24203
24204 if test "$have_shmctl" != 'yes'; then
24205 PERSIST_LIBS=$LIBS
24206 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024208/* end confdefs.h. */
24209
24210/* Override any GCC internal prototype to avoid an error.
24211 Use char because int might match the return type of a GCC
24212 builtin and then its argument prototype would still apply. */
24213#ifdef __cplusplus
24214extern "C"
24215#endif
24216char shmctl ();
24217int
24218main ()
24219{
24220return shmctl ();
24221 ;
24222 return 0;
24223}
24224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024227fi
cristy8b350f62009-11-15 23:12:43 +000024228rm -f core conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024230 LIBS=$PERSIST_LIBS
24231 fi
24232
24233 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024236if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
24239 ac_check_lib_save_LIBS=$LIBS
24240LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024242/* end confdefs.h. */
24243
24244/* Override any GCC internal prototype to avoid an error.
24245 Use char because int might match the return type of a GCC
24246 builtin and then its argument prototype would still apply. */
24247#ifdef __cplusplus
24248extern "C"
24249#endif
24250char XShmAttach ();
24251int
24252main ()
24253{
24254return XShmAttach ();
24255 ;
24256 return 0;
24257}
24258_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024259if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024260 ac_cv_lib_Xext_XShmAttach=yes
24261else
cristy8b350f62009-11-15 23:12:43 +000024262 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024263fi
cristy8b350f62009-11-15 23:12:43 +000024264rm -f core conftest.err conftest.$ac_objext \
24265 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024266LIBS=$ac_check_lib_save_LIBS
24267fi
cristy8b350f62009-11-15 23:12:43 +000024268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024269$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024270if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024271 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024272$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024273
24274fi
24275
24276 fi
24277
24278 #
24279 # Check for X11 shape extension
24280 #
cristy8b350f62009-11-15 23:12:43 +000024281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024283if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024284 $as_echo_n "(cached) " >&6
24285else
24286 ac_check_lib_save_LIBS=$LIBS
24287LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024289/* end confdefs.h. */
24290
24291/* Override any GCC internal prototype to avoid an error.
24292 Use char because int might match the return type of a GCC
24293 builtin and then its argument prototype would still apply. */
24294#ifdef __cplusplus
24295extern "C"
24296#endif
24297char XShapeCombineMask ();
24298int
24299main ()
24300{
24301return XShapeCombineMask ();
24302 ;
24303 return 0;
24304}
24305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024306if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 ac_cv_lib_Xext_XShapeCombineMask=yes
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024310fi
cristy8b350f62009-11-15 23:12:43 +000024311rm -f core conftest.err conftest.$ac_objext \
24312 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024313LIBS=$ac_check_lib_save_LIBS
24314fi
cristy8b350f62009-11-15 23:12:43 +000024315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024316$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024317if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024318 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024319$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024320
24321fi
24322
cristy8b350f62009-11-15 23:12:43 +000024323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024325if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024326 $as_echo_n "(cached) " >&6
24327else
24328 ac_check_lib_save_LIBS=$LIBS
24329LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024331/* end confdefs.h. */
24332
24333/* Override any GCC internal prototype to avoid an error.
24334 Use char because int might match the return type of a GCC
24335 builtin and then its argument prototype would still apply. */
24336#ifdef __cplusplus
24337extern "C"
24338#endif
24339char XtSetEventDispatcher ();
24340int
24341main ()
24342{
24343return XtSetEventDispatcher ();
24344 ;
24345 return 0;
24346}
24347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24350else
cristy8b350f62009-11-15 23:12:43 +000024351 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024352fi
cristy8b350f62009-11-15 23:12:43 +000024353rm -f core conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024355LIBS=$ac_check_lib_save_LIBS
24356fi
cristy8b350f62009-11-15 23:12:43 +000024357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024358$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024359if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 XT_LIBS='-lXt'
24361fi
24362
24363 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24364fi
24365if test "$no_x" != 'yes'; then
24366 have_x='yes'
24367else
24368 have_x='no'
24369fi
24370 if test "$have_x" = 'yes'; then
24371 X11_DELEGATE_TRUE=
24372 X11_DELEGATE_FALSE='#'
24373else
24374 X11_DELEGATE_TRUE='#'
24375 X11_DELEGATE_FALSE=
24376fi
24377
24378
24379
24380
24381
24382#
24383# Check for ZLIB
24384#
24385
24386# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024387if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 withval=$with_zlib; with_zlib=$withval
24389else
24390 with_zlib='yes'
24391fi
24392
24393
24394if test "$with_zlib" != 'yes'; then
24395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24396fi
24397
24398have_zlib='no'
24399ZLIB_LIBS=''
24400if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024402$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024404$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024406$as_echo "" >&6; }
24407 ZLIB_LIBS=''
24408 failed=0
24409 passed=0
cristy8b350f62009-11-15 23:12:43 +000024410 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24411if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024412 passed=`expr $passed + 1`
24413else
24414 failed=`expr $failed + 1`
24415fi
24416
24417
cristy8b350f62009-11-15 23:12:43 +000024418 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24419if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024420 passed=`expr $passed + 1`
24421else
24422 failed=`expr $failed + 1`
24423fi
24424
24425
cristy8b350f62009-11-15 23:12:43 +000024426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024428if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 $as_echo_n "(cached) " >&6
24430else
24431 ac_check_lib_save_LIBS=$LIBS
24432LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024434/* end confdefs.h. */
24435
24436/* Override any GCC internal prototype to avoid an error.
24437 Use char because int might match the return type of a GCC
24438 builtin and then its argument prototype would still apply. */
24439#ifdef __cplusplus
24440extern "C"
24441#endif
24442char compress ();
24443int
24444main ()
24445{
24446return compress ();
24447 ;
24448 return 0;
24449}
24450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024452 ac_cv_lib_z_compress=yes
24453else
cristy8b350f62009-11-15 23:12:43 +000024454 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024455fi
cristy8b350f62009-11-15 23:12:43 +000024456rm -f core conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024458LIBS=$ac_check_lib_save_LIBS
24459fi
cristy8b350f62009-11-15 23:12:43 +000024460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024461$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024462if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024463 passed=`expr $passed + 1`
24464else
24465 failed=`expr $failed + 1`
24466fi
24467
cristy8b350f62009-11-15 23:12:43 +000024468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024470if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024471 $as_echo_n "(cached) " >&6
24472else
24473 ac_check_lib_save_LIBS=$LIBS
24474LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024476/* end confdefs.h. */
24477
24478/* Override any GCC internal prototype to avoid an error.
24479 Use char because int might match the return type of a GCC
24480 builtin and then its argument prototype would still apply. */
24481#ifdef __cplusplus
24482extern "C"
24483#endif
24484char uncompress ();
24485int
24486main ()
24487{
24488return uncompress ();
24489 ;
24490 return 0;
24491}
24492_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024493if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024494 ac_cv_lib_z_uncompress=yes
24495else
cristy8b350f62009-11-15 23:12:43 +000024496 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024497fi
cristy8b350f62009-11-15 23:12:43 +000024498rm -f core conftest.err conftest.$ac_objext \
24499 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024500LIBS=$ac_check_lib_save_LIBS
24501fi
cristy8b350f62009-11-15 23:12:43 +000024502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024503$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024504if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 passed=`expr $passed + 1`
24506else
24507 failed=`expr $failed + 1`
24508fi
24509
cristy8b350f62009-11-15 23:12:43 +000024510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024512if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024513 $as_echo_n "(cached) " >&6
24514else
24515 ac_check_lib_save_LIBS=$LIBS
24516LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024518/* end confdefs.h. */
24519
24520/* Override any GCC internal prototype to avoid an error.
24521 Use char because int might match the return type of a GCC
24522 builtin and then its argument prototype would still apply. */
24523#ifdef __cplusplus
24524extern "C"
24525#endif
24526char deflate ();
24527int
24528main ()
24529{
24530return deflate ();
24531 ;
24532 return 0;
24533}
24534_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024535if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024536 ac_cv_lib_z_deflate=yes
24537else
cristy8b350f62009-11-15 23:12:43 +000024538 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024539fi
cristy8b350f62009-11-15 23:12:43 +000024540rm -f core conftest.err conftest.$ac_objext \
24541 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024542LIBS=$ac_check_lib_save_LIBS
24543fi
cristy8b350f62009-11-15 23:12:43 +000024544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024545$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024546if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024547 passed=`expr $passed + 1`
24548else
24549 failed=`expr $failed + 1`
24550fi
24551
cristy8b350f62009-11-15 23:12:43 +000024552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024553$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024554if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024555 $as_echo_n "(cached) " >&6
24556else
24557 ac_check_lib_save_LIBS=$LIBS
24558LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024560/* end confdefs.h. */
24561
24562/* Override any GCC internal prototype to avoid an error.
24563 Use char because int might match the return type of a GCC
24564 builtin and then its argument prototype would still apply. */
24565#ifdef __cplusplus
24566extern "C"
24567#endif
24568char inflate ();
24569int
24570main ()
24571{
24572return inflate ();
24573 ;
24574 return 0;
24575}
24576_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024577if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024578 ac_cv_lib_z_inflate=yes
24579else
cristy8b350f62009-11-15 23:12:43 +000024580 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024581fi
cristy8b350f62009-11-15 23:12:43 +000024582rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024584LIBS=$ac_check_lib_save_LIBS
24585fi
cristy8b350f62009-11-15 23:12:43 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024588if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024589 passed=`expr $passed + 1`
24590else
24591 failed=`expr $failed + 1`
24592fi
24593
cristy8b350f62009-11-15 23:12:43 +000024594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024595$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024596if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024597 $as_echo_n "(cached) " >&6
24598else
24599 ac_check_lib_save_LIBS=$LIBS
24600LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024602/* end confdefs.h. */
24603
24604/* Override any GCC internal prototype to avoid an error.
24605 Use char because int might match the return type of a GCC
24606 builtin and then its argument prototype would still apply. */
24607#ifdef __cplusplus
24608extern "C"
24609#endif
24610char gzseek ();
24611int
24612main ()
24613{
24614return gzseek ();
24615 ;
24616 return 0;
24617}
24618_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024619if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024620 ac_cv_lib_z_gzseek=yes
24621else
cristy8b350f62009-11-15 23:12:43 +000024622 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024623fi
cristy8b350f62009-11-15 23:12:43 +000024624rm -f core conftest.err conftest.$ac_objext \
24625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024626LIBS=$ac_check_lib_save_LIBS
24627fi
cristy8b350f62009-11-15 23:12:43 +000024628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024629$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024630if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024631 passed=`expr $passed + 1`
24632else
24633 failed=`expr $failed + 1`
24634fi
24635
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024637$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024638if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024639 $as_echo_n "(cached) " >&6
24640else
24641 ac_check_lib_save_LIBS=$LIBS
24642LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024644/* end confdefs.h. */
24645
24646/* Override any GCC internal prototype to avoid an error.
24647 Use char because int might match the return type of a GCC
24648 builtin and then its argument prototype would still apply. */
24649#ifdef __cplusplus
24650extern "C"
24651#endif
24652char gztell ();
24653int
24654main ()
24655{
24656return gztell ();
24657 ;
24658 return 0;
24659}
24660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024662 ac_cv_lib_z_gztell=yes
24663else
cristy8b350f62009-11-15 23:12:43 +000024664 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024665fi
cristy8b350f62009-11-15 23:12:43 +000024666rm -f core conftest.err conftest.$ac_objext \
24667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024668LIBS=$ac_check_lib_save_LIBS
24669fi
cristy8b350f62009-11-15 23:12:43 +000024670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024671$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024672if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024673 passed=`expr $passed + 1`
24674else
24675 failed=`expr $failed + 1`
24676fi
24677
cristy8b350f62009-11-15 23:12:43 +000024678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024679$as_echo_n "checking if ZLIB package is complete... " >&6; }
24680 if test $passed -gt 0; then
24681 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo "no -- some components failed test" >&6; }
24684 have_zlib='no (failed tests)'
24685 else
24686 ZLIB_LIBS='-lz'
24687 LIBS="$ZLIB_LIBS $LIBS"
24688
cristy8b350f62009-11-15 23:12:43 +000024689$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024690
cristy8b350f62009-11-15 23:12:43 +000024691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo "yes" >&6; }
24693 have_zlib='yes'
24694 fi
24695 else
cristy8b350f62009-11-15 23:12:43 +000024696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024697$as_echo "no" >&6; }
24698 fi
24699fi
24700 if test "$have_zlib" = 'yes'; then
24701 ZLIB_DELEGATE_TRUE=
24702 ZLIB_DELEGATE_FALSE='#'
24703else
24704 ZLIB_DELEGATE_TRUE='#'
24705 ZLIB_DELEGATE_FALSE=
24706fi
24707
24708
24709
24710#
24711# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24712#
24713LIB_DL=''
24714if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024716$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024717if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024718 $as_echo_n "(cached) " >&6
24719else
24720 ac_check_lib_save_LIBS=$LIBS
24721LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024723/* end confdefs.h. */
24724
24725/* Override any GCC internal prototype to avoid an error.
24726 Use char because int might match the return type of a GCC
24727 builtin and then its argument prototype would still apply. */
24728#ifdef __cplusplus
24729extern "C"
24730#endif
24731char dlopen ();
24732int
24733main ()
24734{
24735return dlopen ();
24736 ;
24737 return 0;
24738}
24739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024740if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 ac_cv_lib_dl_dlopen=yes
24742else
cristy8b350f62009-11-15 23:12:43 +000024743 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy8b350f62009-11-15 23:12:43 +000024745rm -f core conftest.err conftest.$ac_objext \
24746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024747LIBS=$ac_check_lib_save_LIBS
24748fi
cristy8b350f62009-11-15 23:12:43 +000024749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024750$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024751if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 LIB_DL='-ldl'
24753fi
24754
24755 LIBS="$LIB_DL $LIBS"
24756fi
24757
24758
24759
24760#
24761# Check for Autotrace delegate library.
24762#
24763
24764# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024765if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 withval=$with_autotrace; with_autotrace=$withval
24767else
24768 with_autotrace='no'
24769fi
24770
24771
24772if test "$with_autotrace" != 'yes'; then
24773 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24774fi
24775
24776have_autotrace='no'
24777AUTOTRACE_CFLAGS=""
24778AUTOTRACE_LIBS=""
24779AUTOTRACE_PKG=""
24780if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024782$as_echo "-------------------------------------------------------------" >&6; }
24783
24784pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo_n "checking for AUTOTRACE... " >&6; }
24787
24788if test -n "$AUTOTRACE_CFLAGS"; then
24789 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24790 elif test -n "$PKG_CONFIG"; then
24791 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024793 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24794 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024797 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24798else
24799 pkg_failed=yes
24800fi
24801 else
24802 pkg_failed=untried
24803fi
24804if test -n "$AUTOTRACE_LIBS"; then
24805 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24806 elif test -n "$PKG_CONFIG"; then
24807 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024808 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024809 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24810 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24812 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024813 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24814else
24815 pkg_failed=yes
24816fi
24817 else
24818 pkg_failed=untried
24819fi
24820
24821
24822
24823if test $pkg_failed = yes; then
24824
24825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24826 _pkg_short_errors_supported=yes
24827else
24828 _pkg_short_errors_supported=no
24829fi
24830 if test $_pkg_short_errors_supported = yes; then
24831 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24832 else
24833 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24834 fi
24835 # Put the nasty error message in config.log where it belongs
24836 echo "$AUTOTRACE_PKG_ERRORS" >&5
24837
cristy8b350f62009-11-15 23:12:43 +000024838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024839$as_echo "no" >&6; }
24840 have_autotrace=no
24841elif test $pkg_failed = untried; then
24842 have_autotrace=no
24843else
24844 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24845 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024847$as_echo "yes" >&6; }
24848 have_autotrace=yes
24849fi
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "" >&6; }
24852fi
24853
24854if test "$have_autotrace" = 'yes'; then
24855 failed=0
24856
cristy8b350f62009-11-15 23:12:43 +000024857$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024858
24859 if test "$with_modules" = 'no'; then
24860 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24861 fi
24862fi
24863
24864 if test "$have_autotrace" = 'yes'; then
24865 AUTOTRACE_DELEGATE_TRUE=
24866 AUTOTRACE_DELEGATE_FALSE='#'
24867else
24868 AUTOTRACE_DELEGATE_TRUE='#'
24869 AUTOTRACE_DELEGATE_FALSE=
24870fi
24871
24872
24873
24874
24875
24876#
24877# Check for Display Postscript delegate library.
24878#
24879
24880# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024881if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 withval=$with_dps; with_dps=$withval
24883else
24884 with_dps='yes'
24885fi
24886
24887
24888if test "$with_dps" != 'yes'; then
24889 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24890fi
24891
24892have_dps='no'
24893DPS_LIBS=''
24894if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024896$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024898$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024900$as_echo "" >&6; }
24901 failed=0
24902 passed=0
24903 PERSIST_CPPFLAGS="$CPPFLAGS"
24904 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024905 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24906if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024907 passed=`expr $passed + 1`
24908else
24909 failed=`expr $failed + 1`
24910fi
24911
24912
24913 # DPS issues:
24914 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
24915 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
24916 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
24917 # ImageMagick itself doesn't use -lXt.
24918 have_libdps='no'
24919 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000024920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024921$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024922if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024923 $as_echo_n "(cached) " >&6
24924else
24925 ac_check_lib_save_LIBS=$LIBS
24926LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024928/* end confdefs.h. */
24929
24930/* Override any GCC internal prototype to avoid an error.
24931 Use char because int might match the return type of a GCC
24932 builtin and then its argument prototype would still apply. */
24933#ifdef __cplusplus
24934extern "C"
24935#endif
24936char DPSInitialize ();
24937int
24938main ()
24939{
24940return DPSInitialize ();
24941 ;
24942 return 0;
24943}
24944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024946 ac_cv_lib_dps_DPSInitialize=yes
24947else
cristy8b350f62009-11-15 23:12:43 +000024948 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024949fi
cristy8b350f62009-11-15 23:12:43 +000024950rm -f core conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024952LIBS=$ac_check_lib_save_LIBS
24953fi
cristy8b350f62009-11-15 23:12:43 +000024954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024955$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024956if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024957 have_libdps='yes'
24958else
24959 have_libdps='no'
24960fi
24961
24962 if test "$have_libdps" != 'yes'; then
24963 # Unset cache variable so we can try again.
24964 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000024965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024966$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024967if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 $as_echo_n "(cached) " >&6
24969else
24970 ac_check_lib_save_LIBS=$LIBS
24971LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973/* end confdefs.h. */
24974
24975/* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24978#ifdef __cplusplus
24979extern "C"
24980#endif
24981char DPSInitialize ();
24982int
24983main ()
24984{
24985return DPSInitialize ();
24986 ;
24987 return 0;
24988}
24989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024991 ac_cv_lib_dps_DPSInitialize=yes
24992else
cristy8b350f62009-11-15 23:12:43 +000024993 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024994fi
cristy8b350f62009-11-15 23:12:43 +000024995rm -f core conftest.err conftest.$ac_objext \
24996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024997LIBS=$ac_check_lib_save_LIBS
24998fi
cristy8b350f62009-11-15 23:12:43 +000024999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025000$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025001if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025002 have_libdps='yes'
25003else
25004 have_libdps='no'
25005fi
25006
25007 if test "$have_libdps" = 'yes'; then
25008 LIBDPS_XT='-lXt'
25009 fi
25010 fi
25011 if test "$have_libdps" = 'yes'; then
25012 passed=`expr $passed + 1`
25013 else
25014 failed=`expr $failed + 1`
25015 fi
cristy8b350f62009-11-15 23:12:43 +000025016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025018if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025019 $as_echo_n "(cached) " >&6
25020else
25021 ac_check_lib_save_LIBS=$LIBS
25022LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025024/* end confdefs.h. */
25025
25026/* Override any GCC internal prototype to avoid an error.
25027 Use char because int might match the return type of a GCC
25028 builtin and then its argument prototype would still apply. */
25029#ifdef __cplusplus
25030extern "C"
25031#endif
25032char XDPSPixelsPerPoint ();
25033int
25034main ()
25035{
25036return XDPSPixelsPerPoint ();
25037 ;
25038 return 0;
25039}
25040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025041if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025042 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25043else
cristy8b350f62009-11-15 23:12:43 +000025044 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025045fi
cristy8b350f62009-11-15 23:12:43 +000025046rm -f core conftest.err conftest.$ac_objext \
25047 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025048LIBS=$ac_check_lib_save_LIBS
25049fi
cristy8b350f62009-11-15 23:12:43 +000025050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025051$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025052if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025053 passed=`expr $passed + 1`
25054else
25055 failed=`expr $failed + 1`
25056fi
25057
cristy8b350f62009-11-15 23:12:43 +000025058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo_n "checking if DPS package is complete... " >&6; }
25060 if test $passed -gt 0; then
25061 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025063$as_echo "no -- some components failed test" >&6; }
25064 have_dps='no (failed tests)'
25065 CPPFLAGS="$PERSIST_CPPFLAGS"
25066 else
25067 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25068 LIBS="$DPS_LIBS $LIBS"
25069
cristy8b350f62009-11-15 23:12:43 +000025070$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025071
cristy8b350f62009-11-15 23:12:43 +000025072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025073$as_echo "yes" >&6; }
25074 have_dps='yes'
25075 fi
25076 else
cristy8b350f62009-11-15 23:12:43 +000025077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo "no" >&6; }
25079 CPPFLAGS=$PERSIST_CPPFLAGS
25080 fi
25081fi
25082 if test "$have_dps" = 'yes'; then
25083 DPS_DELEGATE_TRUE=
25084 DPS_DELEGATE_FALSE='#'
25085else
25086 DPS_DELEGATE_TRUE='#'
25087 DPS_DELEGATE_FALSE=
25088fi
25089
25090
25091
25092
25093#
25094# Check for DJVU delegate library.
25095#
25096
25097# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025098if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025099 withval=$with_djvu; with_djvu=$withval
25100else
25101 with_djvu='yes'
25102fi
25103
25104
25105if test "$with_djvu" != 'yes'; then
25106 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25107fi
25108
25109have_djvu='no'
25110DJVU_LIBS=''
25111if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025113$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025117$as_echo "" >&6; }
25118 failed=0
25119 passed=0
cristy8b350f62009-11-15 23:12:43 +000025120 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25121if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 passed=`expr $passed + 1`
25123else
25124 failed=`expr $failed + 1`
25125fi
25126
25127
cristy8b350f62009-11-15 23:12:43 +000025128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025130if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025131 $as_echo_n "(cached) " >&6
25132else
25133 ac_check_lib_save_LIBS=$LIBS
25134LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025136/* end confdefs.h. */
25137
25138/* Override any GCC internal prototype to avoid an error.
25139 Use char because int might match the return type of a GCC
25140 builtin and then its argument prototype would still apply. */
25141#ifdef __cplusplus
25142extern "C"
25143#endif
25144char ddjvu_context_create ();
25145int
25146main ()
25147{
25148return ddjvu_context_create ();
25149 ;
25150 return 0;
25151}
25152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025154 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25155else
cristy8b350f62009-11-15 23:12:43 +000025156 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025157fi
cristy8b350f62009-11-15 23:12:43 +000025158rm -f core conftest.err conftest.$ac_objext \
25159 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025160LIBS=$ac_check_lib_save_LIBS
25161fi
cristy8b350f62009-11-15 23:12:43 +000025162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025163$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025164if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025165 passed=`expr $passed + 1`
25166else
25167 failed=`expr $failed + 1`
25168fi
25169
cristy8b350f62009-11-15 23:12:43 +000025170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025171$as_echo_n "checking if DJVU package is complete... " >&6; }
25172 if test $passed -gt 0; then
25173 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo "no -- some components failed test" >&6; }
25176 have_djvu='no (failed tests)'
25177 else
25178 DJVU_LIBS='-ldjvulibre'
25179 LIBS="$DJVU_LIBS $LIBS"
25180
cristy8b350f62009-11-15 23:12:43 +000025181$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025182
cristy8b350f62009-11-15 23:12:43 +000025183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025184$as_echo "yes" >&6; }
25185 have_djvu='yes'
25186 fi
25187 else
cristy8b350f62009-11-15 23:12:43 +000025188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025189$as_echo "no" >&6; }
25190 fi
25191fi
25192 if test "$have_djvu" = 'yes'; then
25193 DJVU_DELEGATE_TRUE=
25194 DJVU_DELEGATE_FALSE='#'
25195else
25196 DJVU_DELEGATE_TRUE='#'
25197 DJVU_DELEGATE_FALSE=
25198fi
25199
25200
25201
25202
25203#
25204# Check for FFTW delegate library.
25205#
25206
25207# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025208if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025209 withval=$with_fftw; with_fftw=$withval
25210else
25211 with_fftw='yes'
25212fi
25213
25214
25215if test "$with_fftw" != 'yes'; then
25216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25217fi
25218
25219have_fftw='no'
25220FFTW_LIBS=''
25221if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025223$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025225$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025227$as_echo "" >&6; }
25228 failed=0
25229 passed=0
cristy8b350f62009-11-15 23:12:43 +000025230 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25231if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025232 passed=`expr $passed + 1`
25233else
25234 failed=`expr $failed + 1`
25235fi
25236
25237
cristy8b350f62009-11-15 23:12:43 +000025238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025239$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025240if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025241 $as_echo_n "(cached) " >&6
25242else
25243 ac_check_lib_save_LIBS=$LIBS
25244LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025246/* end confdefs.h. */
25247
25248/* Override any GCC internal prototype to avoid an error.
25249 Use char because int might match the return type of a GCC
25250 builtin and then its argument prototype would still apply. */
25251#ifdef __cplusplus
25252extern "C"
25253#endif
25254char fftw_execute ();
25255int
25256main ()
25257{
25258return fftw_execute ();
25259 ;
25260 return 0;
25261}
25262_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025263if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025264 ac_cv_lib_fftw3_fftw_execute=yes
25265else
cristy8b350f62009-11-15 23:12:43 +000025266 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025267fi
cristy8b350f62009-11-15 23:12:43 +000025268rm -f core conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025270LIBS=$ac_check_lib_save_LIBS
25271fi
cristy8b350f62009-11-15 23:12:43 +000025272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025273$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025274if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025275 passed=`expr $passed + 1`
25276else
25277 failed=`expr $failed + 1`
25278fi
25279
cristy8b350f62009-11-15 23:12:43 +000025280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo_n "checking if FFTW package is complete... " >&6; }
25282 if test $passed -gt 0; then
25283 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo "no -- some components failed test" >&6; }
25286 have_fftw='no (failed tests)'
25287 else
25288 FFTW_LIBS='-lfftw3'
25289 LIBS="$FFTW_LIBS $LIBS"
25290
cristy8b350f62009-11-15 23:12:43 +000025291$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025292
cristy8b350f62009-11-15 23:12:43 +000025293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025294$as_echo "yes" >&6; }
25295 have_fftw='yes'
25296 fi
25297 else
cristy8b350f62009-11-15 23:12:43 +000025298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025299$as_echo "no" >&6; }
25300 fi
25301fi
25302 if test "$have_fftw" = 'yes'; then
25303 FFTW_DELEGATE_TRUE=
25304 FFTW_DELEGATE_FALSE='#'
25305else
25306 FFTW_DELEGATE_TRUE='#'
25307 FFTW_DELEGATE_FALSE=
25308fi
25309
25310
25311
25312
25313#
25314# Check for FlashPIX delegate library.
25315#
25316
25317# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025318if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 withval=$with_fpx; with_fpx=$withval
25320else
25321 with_fpx='yes'
25322fi
25323
25324
25325if test "$with_fpx" != 'yes'; then
25326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25327fi
25328
25329have_fpx='no'
25330FPX_LIBS=''
25331if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025333$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo "" >&6; }
25338 failed=0
25339 passed=0
25340 ac_ext=cpp
25341ac_cpp='$CXXCPP $CPPFLAGS'
25342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25345
25346
cristy8b350f62009-11-15 23:12:43 +000025347ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25348if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025349 passed=`expr $passed + 1`
25350else
25351 failed=`expr $failed + 1`
25352fi
25353
25354
cristy8b350f62009-11-15 23:12:43 +000025355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025357if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025358 $as_echo_n "(cached) " >&6
25359else
25360 ac_check_lib_save_LIBS=$LIBS
25361LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025363/* end confdefs.h. */
25364
25365/* Override any GCC internal prototype to avoid an error.
25366 Use char because int might match the return type of a GCC
25367 builtin and then its argument prototype would still apply. */
25368#ifdef __cplusplus
25369extern "C"
25370#endif
25371char FPX_OpenImageByFilename ();
25372int
25373main ()
25374{
25375return FPX_OpenImageByFilename ();
25376 ;
25377 return 0;
25378}
25379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025380if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25382else
cristy8b350f62009-11-15 23:12:43 +000025383 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025384fi
cristy8b350f62009-11-15 23:12:43 +000025385rm -f core conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025387LIBS=$ac_check_lib_save_LIBS
25388fi
cristy8b350f62009-11-15 23:12:43 +000025389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025391if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 passed=`expr $passed + 1`
25393else
25394 failed=`expr $failed + 1`
25395fi
25396
25397 ac_ext=c
25398ac_cpp='$CPP $CPPFLAGS'
25399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25401ac_compiler_gnu=$ac_cv_c_compiler_gnu
25402
cristy8b350f62009-11-15 23:12:43 +000025403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025404$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25405 if test $passed -gt 0; then
25406 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408$as_echo "no -- some components failed test" >&6; }
25409 have_fpx='no (failed tests)'
25410 else
25411 FPX_LIBS='-lfpx'
25412
cristy8b350f62009-11-15 23:12:43 +000025413$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025414
cristy8b350f62009-11-15 23:12:43 +000025415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025416$as_echo "yes" >&6; }
25417 have_fpx='yes'
25418 PERLMAINCC="$CXX"
25419 fi
25420 else
cristy8b350f62009-11-15 23:12:43 +000025421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025422$as_echo "no" >&6; }
25423 fi
25424fi
25425 if test "$have_fpx" = 'yes'; then
25426 FPX_DELEGATE_TRUE=
25427 FPX_DELEGATE_FALSE='#'
25428else
25429 FPX_DELEGATE_TRUE='#'
25430 FPX_DELEGATE_FALSE=
25431fi
25432
25433
25434
25435
25436#
25437# Check for fontconfig delegate library.
25438#
25439
25440# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025441if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025442 withval=$with_fontconfig; with_fontconfig=$withval
25443else
25444 with_fontconfig=$have_x
25445fi
25446
25447
25448if test "$with_fontconfig" != 'yes'; then
25449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25450fi
25451
25452have_fontconfig='no'
25453FONTCONFIG_CFLAGS=""
25454FONTCONFIG_LIBS=""
25455FONTCONFIG_PKG=""
25456if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo "-------------------------------------------------------------" >&6; }
25459
25460pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025462$as_echo_n "checking for FONTCONFIG... " >&6; }
25463
25464if test -n "$FONTCONFIG_CFLAGS"; then
25465 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25466 elif test -n "$PKG_CONFIG"; then
25467 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025469 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25470 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025473 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25474else
25475 pkg_failed=yes
25476fi
25477 else
25478 pkg_failed=untried
25479fi
25480if test -n "$FONTCONFIG_LIBS"; then
25481 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25482 elif test -n "$PKG_CONFIG"; then
25483 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025485 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25486 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25488 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025489 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25490else
25491 pkg_failed=yes
25492fi
25493 else
25494 pkg_failed=untried
25495fi
25496
25497
25498
25499if test $pkg_failed = yes; then
25500
25501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25502 _pkg_short_errors_supported=yes
25503else
25504 _pkg_short_errors_supported=no
25505fi
25506 if test $_pkg_short_errors_supported = yes; then
25507 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25508 else
25509 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25510 fi
25511 # Put the nasty error message in config.log where it belongs
25512 echo "$FONTCONFIG_PKG_ERRORS" >&5
25513
cristy8b350f62009-11-15 23:12:43 +000025514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025515$as_echo "no" >&6; }
25516 have_fontconfig=no
25517elif test $pkg_failed = untried; then
25518 have_fontconfig=no
25519else
25520 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25521 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025523$as_echo "yes" >&6; }
25524 have_fontconfig=yes
25525fi
cristy8b350f62009-11-15 23:12:43 +000025526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025527$as_echo "" >&6; }
25528fi
25529
25530if test "$have_fontconfig" = 'yes'; then
25531
cristy8b350f62009-11-15 23:12:43 +000025532$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025533
25534 if test "$with_modules" = 'no'; then
25535 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25536 fi
25537fi
25538
25539 if test "$have_fontconfig" = 'yes'; then
25540 FONTCONFIG_DELEGATE_TRUE=
25541 FONTCONFIG_DELEGATE_FALSE='#'
25542else
25543 FONTCONFIG_DELEGATE_TRUE='#'
25544 FONTCONFIG_DELEGATE_FALSE=
25545fi
25546
25547
25548
25549
25550
25551#
25552# Check for freetype delegate library.
25553#
25554
25555# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025556if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025557 withval=$with_freetype; with_freetype=$withval
25558else
25559 with_freetype='yes'
25560fi
25561
25562
25563
25564if test "$with_freetype" != 'yes'; then
25565 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25566fi
25567
25568have_freetype='no'
25569FREETYPE_LIBS=''
25570if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025572$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025574$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025576$as_echo "" >&6; }
25577 failed=0
25578 passed=0
cristy66291112009-10-03 22:44:36 +000025579 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025580 PERSIST_CPPFLAGS="$CPPFLAGS"
25581 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25582 :
25583 else
25584 freetype_config=''
25585 for ac_prog in freetype-config
25586do
25587 # Extract the first word of "$ac_prog", so it can be a program name with args.
25588set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025590$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025591if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025592 $as_echo_n "(cached) " >&6
25593else
25594 if test -n "$freetype_config"; then
25595 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25596else
25597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25598for as_dir in $PATH
25599do
25600 IFS=$as_save_IFS
25601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25604 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025606 break 2
25607 fi
25608done
cristy8b350f62009-11-15 23:12:43 +000025609 done
cristy3ed852e2009-09-05 21:47:34 +000025610IFS=$as_save_IFS
25611
25612fi
25613fi
25614freetype_config=$ac_cv_prog_freetype_config
25615if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025617$as_echo "$freetype_config" >&6; }
25618else
cristy8b350f62009-11-15 23:12:43 +000025619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025620$as_echo "no" >&6; }
25621fi
25622
25623
25624 test -n "$freetype_config" && break
25625done
25626 if test -n "$freetype_config"; then
25627 freetype_cflags=`$freetype_config --cflags`
25628 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025629 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025630 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25631 fi
25632 fi
25633
25634 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025636$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025637if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025638 $as_echo_n "(cached) " >&6
25639else
25640 ac_check_lib_save_LIBS=$LIBS
25641LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025643/* end confdefs.h. */
25644
25645/* Override any GCC internal prototype to avoid an error.
25646 Use char because int might match the return type of a GCC
25647 builtin and then its argument prototype would still apply. */
25648#ifdef __cplusplus
25649extern "C"
25650#endif
25651char FT_Init_FreeType ();
25652int
25653main ()
25654{
25655return FT_Init_FreeType ();
25656 ;
25657 return 0;
25658}
25659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025660if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025661 ac_cv_lib_freetype_FT_Init_FreeType=yes
25662else
cristy8b350f62009-11-15 23:12:43 +000025663 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025664fi
cristy8b350f62009-11-15 23:12:43 +000025665rm -f core conftest.err conftest.$ac_objext \
25666 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025667LIBS=$ac_check_lib_save_LIBS
25668fi
cristy8b350f62009-11-15 23:12:43 +000025669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025670$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025671if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025672 FREETYPE_LIBS='-lfreetype'
25673fi
25674
25675 if test "$FREETYPE_LIBS" != ''; then
25676 passed=`expr $passed + 1`
25677 else
25678 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025679 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025680 fi
25681 fi
25682
cristy8b350f62009-11-15 23:12:43 +000025683 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25684if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025685 FT2BUILD_H='#include <ft2build.h>'
25686else
25687 ft2build=''
25688fi
25689
25690
cristy8b350f62009-11-15 23:12:43 +000025691 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25692"
25693if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025694 have_freetype_h='yes'
25695else
25696 have_freetype_h='no'
25697fi
25698
25699
25700 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25701 passed=`expr $passed + 1`
25702 else
25703 failed=`expr $failed + 1`
25704 CPPFLAGS="$PERSIST_CPPFLAGS"
25705 fi
25706
cristy8b350f62009-11-15 23:12:43 +000025707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025708$as_echo_n "checking if FreeType package is complete... " >&6; }
25709 if test $passed -gt 0; then
25710 if test $failed -gt 0; then
25711 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025713$as_echo "no -- some components failed test" >&6; }
25714 have_freetype='no (failed tests)'
25715 else
25716 LIBS="$FREETYPE_LIBS $LIBS"
25717
cristy8b350f62009-11-15 23:12:43 +000025718$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025719
25720 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25721
cristy8b350f62009-11-15 23:12:43 +000025722$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025723
25724 fi
cristy8b350f62009-11-15 23:12:43 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo "yes" >&6; }
25727 have_freetype='yes'
25728 fi
25729 else
cristy8b350f62009-11-15 23:12:43 +000025730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025731$as_echo "no" >&6; }
25732 fi
25733fi
25734 if test "$have_freetype" = 'yes'; then
25735 FREETYPE_DELEGATE_TRUE=
25736 FREETYPE_DELEGATE_FALSE='#'
25737else
25738 FREETYPE_DELEGATE_TRUE='#'
25739 FREETYPE_DELEGATE_FALSE=
25740fi
25741
25742
25743
25744
25745
25746#
25747# Check for Ghostscript library or framework.
25748#
25749# Test for iapi.h & test for gsapi_new_instance in -lgs
25750# or -framework Ghostscript
25751
25752
25753# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025754if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025755 withval=$with_gslib; with_gslib=$withval
25756else
25757 with_gslib='no'
25758fi
25759
25760
cristyb7931f12009-09-25 10:22:21 +000025761gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025762if test "$with_gslib" != 'yes'; then
25763 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25764fi
25765
25766have_gslib='no'
25767GS_LIBS=''
25768if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025770$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025772$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025774$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025775 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025776 failed=0
25777 passed=0
cristy8b350f62009-11-15 23:12:43 +000025778 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25779if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025780 passed=`expr $passed + 1`
25781else
25782 failed=`expr $failed + 1`
25783fi
25784
25785
cristy8b350f62009-11-15 23:12:43 +000025786 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25787if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 passed=`expr $passed + 1`
25789else
25790 failed=`expr $failed + 1`
25791fi
25792
25793
cristy8b350f62009-11-15 23:12:43 +000025794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025795$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025796if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025797 $as_echo_n "(cached) " >&6
25798else
25799 ac_check_framework_save_LIBS=$LIBS
25800LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025802/* end confdefs.h. */
25803
25804/* Override any GCC internal prototype to avoid an error.
25805 Use char because int might match the return type of a GCC
25806 builtin and then its argument prototype would still apply. */
25807#ifdef __cplusplus
25808extern "C"
25809#endif
25810char gsapi_new_instance ();
25811int
25812main ()
25813{
25814return gsapi_new_instance ();
25815 ;
25816 return 0;
25817}
25818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025820 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25821else
cristy8b350f62009-11-15 23:12:43 +000025822 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025823fi
cristy8b350f62009-11-15 23:12:43 +000025824rm -f core conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025826LIBS=$ac_check_framework_save_LIBS
25827fi
cristy8b350f62009-11-15 23:12:43 +000025828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025829$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025830if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025831 framework=`expr $framework + 1`
25832else
cristy8b350f62009-11-15 23:12:43 +000025833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025834$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025835if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025836 $as_echo_n "(cached) " >&6
25837else
25838 ac_check_lib_save_LIBS=$LIBS
25839LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025841/* end confdefs.h. */
25842
25843/* Override any GCC internal prototype to avoid an error.
25844 Use char because int might match the return type of a GCC
25845 builtin and then its argument prototype would still apply. */
25846#ifdef __cplusplus
25847extern "C"
25848#endif
25849char gsapi_new_instance ();
25850int
25851main ()
25852{
25853return gsapi_new_instance ();
25854 ;
25855 return 0;
25856}
25857_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025858if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025859 ac_cv_lib_gs_gsapi_new_instance=yes
25860else
cristy8b350f62009-11-15 23:12:43 +000025861 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025862fi
cristy8b350f62009-11-15 23:12:43 +000025863rm -f core conftest.err conftest.$ac_objext \
25864 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025865LIBS=$ac_check_lib_save_LIBS
25866fi
cristy8b350f62009-11-15 23:12:43 +000025867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025868$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025869if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025870 passed=`expr $passed + 1`
25871else
25872 failed=`expr $failed + 1`
25873fi
25874
25875fi
cristy8b350f62009-11-15 23:12:43 +000025876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025877$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25878 if test $passed -gt 0; then
25879 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo "no -- some components failed test" >&6; }
25882 have_gslib='no (failed tests)'
25883 else
25884 if test $framework -gt 0; then
25885 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025886 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025888$as_echo "yes, using framework." >&6; }
25889 else
cristy8b350f62009-11-15 23:12:43 +000025890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo "yes, using library." >&6; }
25892 GS_LIBS='-lgs'
25893 fi
25894 LIBS="$GS_LIBS $LIBS"
25895
cristy8b350f62009-11-15 23:12:43 +000025896$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025897
25898 have_gslib='yes'
25899 fi
25900 else
cristy8b350f62009-11-15 23:12:43 +000025901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025902$as_echo "no" >&6; }
25903 fi
25904fi
25905 if test "$have_gslib" = 'yes'; then
25906 GS_DELEGATE_TRUE=
25907 GS_DELEGATE_FALSE='#'
25908else
25909 GS_DELEGATE_TRUE='#'
25910 GS_DELEGATE_FALSE=
25911fi
25912
25913
25914
25915# Set default font search path
25916
25917# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000025918if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 withval=$with_fontpath; with_fontpath=$withval
25920else
25921 with_fontpath=''
25922fi
25923
25924
25925if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
25926 with_fontpath=''
25927else
25928
25929cat >>confdefs.h <<_ACEOF
25930#define MAGICK_FONT_PATH "$with_fontpath"
25931_ACEOF
25932
25933fi
25934if test "$with_fontpath=" != ''; then
25935 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
25936fi
25937
25938# Set Ghostscript font directory
25939
25940# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000025941if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025942 withval=$with_gs_font_dir; with_gs_font_dir=$withval
25943else
25944 with_gs_font_dir='default'
25945fi
25946
25947
25948if test "$with_gs_font_dir" != 'default'; then
25949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
25950fi
25951
25952
25953#
25954# Check for GVC delegate library.
25955#
25956
25957# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000025958if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025959 withval=$with_gvc; with_gvc=$withval
25960else
25961 with_gvc='yes'
25962fi
25963
25964
25965if test "$with_gvc" != 'yes'; then
25966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
25967fi
25968
25969GVC_PKG=""
25970if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025972$as_echo "-------------------------------------------------------------" >&6; }
25973
25974pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo_n "checking for GVC... " >&6; }
25977
25978if test -n "$GVC_CFLAGS"; then
25979 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
25980 elif test -n "$PKG_CONFIG"; then
25981 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025983 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25984 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025987 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
25988else
25989 pkg_failed=yes
25990fi
25991 else
25992 pkg_failed=untried
25993fi
25994if test -n "$GVC_LIBS"; then
25995 pkg_cv_GVC_LIBS="$GVC_LIBS"
25996 elif test -n "$PKG_CONFIG"; then
25997 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025999 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26000 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026003 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26004else
26005 pkg_failed=yes
26006fi
26007 else
26008 pkg_failed=untried
26009fi
26010
26011
26012
26013if test $pkg_failed = yes; then
26014
26015if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26016 _pkg_short_errors_supported=yes
26017else
26018 _pkg_short_errors_supported=no
26019fi
26020 if test $_pkg_short_errors_supported = yes; then
26021 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26022 else
26023 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26024 fi
26025 # Put the nasty error message in config.log where it belongs
26026 echo "$GVC_PKG_ERRORS" >&5
26027
cristy8b350f62009-11-15 23:12:43 +000026028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026029$as_echo "no" >&6; }
26030 have_gvc=no
26031elif test $pkg_failed = untried; then
26032 have_gvc=no
26033else
26034 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26035 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo "yes" >&6; }
26038 have_gvc=yes
26039fi
cristy8b350f62009-11-15 23:12:43 +000026040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo "" >&6; }
26042fi
26043
26044if test "$have_gvc" = 'yes'; then
26045
cristy8b350f62009-11-15 23:12:43 +000026046$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026047
26048 if test "$with_modules" = 'no'; then
26049 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26050 fi
26051fi
26052
26053 if test "$have_gvc" = 'yes'; then
26054 GVC_DELEGATE_TRUE=
26055 GVC_DELEGATE_FALSE='#'
26056else
26057 GVC_DELEGATE_TRUE='#'
26058 GVC_DELEGATE_FALSE=
26059fi
26060
26061
26062
26063
26064
26065#
26066# Check for JBIG delegate library.
26067#
26068
26069
26070# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026071if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026072 withval=$with_jbig; with_jbig=$withval
26073else
26074 with_jbig='yes'
26075fi
26076
26077
26078have_jbig='no'
26079JBIG_LIBS=''
26080if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026082$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026084$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026086$as_echo "" >&6; }
26087 failed=0
26088 passed=0
cristy8b350f62009-11-15 23:12:43 +000026089 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26090if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026091 passed=`expr $passed + 1`
26092else
26093 failed=`expr $failed + 1`
26094fi
26095
26096
cristy8b350f62009-11-15 23:12:43 +000026097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026098$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026099if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026100 $as_echo_n "(cached) " >&6
26101else
26102 ac_check_lib_save_LIBS=$LIBS
26103LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026105/* end confdefs.h. */
26106
26107/* Override any GCC internal prototype to avoid an error.
26108 Use char because int might match the return type of a GCC
26109 builtin and then its argument prototype would still apply. */
26110#ifdef __cplusplus
26111extern "C"
26112#endif
26113char jbg_dec_init ();
26114int
26115main ()
26116{
26117return jbg_dec_init ();
26118 ;
26119 return 0;
26120}
26121_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026122if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026123 ac_cv_lib_jbig_jbg_dec_init=yes
26124else
cristy8b350f62009-11-15 23:12:43 +000026125 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026126fi
cristy8b350f62009-11-15 23:12:43 +000026127rm -f core conftest.err conftest.$ac_objext \
26128 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026129LIBS=$ac_check_lib_save_LIBS
26130fi
cristy8b350f62009-11-15 23:12:43 +000026131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026132$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026133if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 passed=`expr $passed + 1`
26135else
26136 failed=`expr $failed + 1`
26137fi
26138
cristy8b350f62009-11-15 23:12:43 +000026139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026140$as_echo_n "checking if JBIG package is complete... " >&6; }
26141 if test $passed -gt 0; then
26142 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026144$as_echo "no -- some components failed test" >&6; }
26145 have_jbig='no (failed tests)'
26146 else
26147 JBIG_LIBS='-ljbig'
26148 LIBS="$JBIG_LIBS $LIBS"
26149
cristy8b350f62009-11-15 23:12:43 +000026150$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026151
cristy8b350f62009-11-15 23:12:43 +000026152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026153$as_echo "yes" >&6; }
26154 have_jbig='yes'
26155 fi
26156 else
cristy8b350f62009-11-15 23:12:43 +000026157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026158$as_echo "no" >&6; }
26159 fi
26160fi
26161 if test "$have_jbig" = 'yes'; then
26162 JBIG_DELEGATE_TRUE=
26163 JBIG_DELEGATE_FALSE='#'
26164else
26165 JBIG_DELEGATE_TRUE='#'
26166 JBIG_DELEGATE_FALSE=
26167fi
26168
26169
26170
26171
26172#
26173# Check for JPEG delegate library.
26174#
26175
26176# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026177if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026178 withval=$with_jpeg; with_jpeg=$withval
26179else
26180 with_jpeg='yes'
26181fi
26182
26183
26184if test "$with_jpeg" != 'yes'; then
26185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26186fi
26187
26188have_jpeg='no'
26189JPEG_LIBS=''
26190if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo "" >&6; }
26197 failed=0
26198 passed=0
cristy8b350f62009-11-15 23:12:43 +000026199 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26200if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 passed=`expr $passed + 1`
26202else
26203 failed=`expr $failed + 1`
26204fi
26205
26206
cristy8b350f62009-11-15 23:12:43 +000026207 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26208if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026209 passed=`expr $passed + 1`
26210else
26211 failed=`expr $failed + 1`
26212fi
26213
26214
cristy8b350f62009-11-15 23:12:43 +000026215 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26216if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026217 passed=`expr $passed + 1`
26218else
26219 failed=`expr $failed + 1`
26220fi
26221
26222
cristy8b350f62009-11-15 23:12:43 +000026223 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26224if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026225 passed=`expr $passed + 1`
26226else
26227 failed=`expr $failed + 1`
26228fi
26229
26230
cristy8b350f62009-11-15 23:12:43 +000026231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026232$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026233if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026234 $as_echo_n "(cached) " >&6
26235else
26236 ac_check_lib_save_LIBS=$LIBS
26237LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026239/* end confdefs.h. */
26240
26241/* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26244#ifdef __cplusplus
26245extern "C"
26246#endif
26247char jpeg_read_header ();
26248int
26249main ()
26250{
26251return jpeg_read_header ();
26252 ;
26253 return 0;
26254}
26255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026257 ac_cv_lib_jpeg_jpeg_read_header=yes
26258else
cristy8b350f62009-11-15 23:12:43 +000026259 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026260fi
cristy8b350f62009-11-15 23:12:43 +000026261rm -f core conftest.err conftest.$ac_objext \
26262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026263LIBS=$ac_check_lib_save_LIBS
26264fi
cristy8b350f62009-11-15 23:12:43 +000026265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026267if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026268 passed=`expr $passed + 1`
26269else
26270 failed=`expr $failed + 1`
26271fi
26272
26273
26274# Test for compatible JPEG library
26275if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026277$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026278if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026279 $as_echo_n "(cached) " >&6
26280else
cristy8b350f62009-11-15 23:12:43 +000026281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026282/* end confdefs.h. */
26283#include <stdio.h>
26284#include <stdlib.h>
26285#include <jpeglib.h>
26286
26287int
26288main ()
26289{
26290
26291#if JPEG_LIB_VERSION < 62
26292#error IJG JPEG library must be version 6b or newer!
26293#endif
26294return 0;
26295
26296 ;
26297 return 0;
26298}
26299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026301 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26302else
cristy8b350f62009-11-15 23:12:43 +000026303 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026304fi
cristy3ed852e2009-09-05 21:47:34 +000026305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26306fi
cristy8b350f62009-11-15 23:12:43 +000026307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026308$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26309fi
cristy8b350f62009-11-15 23:12:43 +000026310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo_n "checking if JPEG package is complete... " >&6; }
26312 if test $passed -gt 0; then
26313 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo "no -- some components failed test" >&6; }
26316 have_jpeg='no (failed tests)'
26317 else
26318 JPEG_LIBS='-ljpeg'
26319 LIBS="$JPEG_LIBS $LIBS"
26320
cristy8b350f62009-11-15 23:12:43 +000026321$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026322
cristy8b350f62009-11-15 23:12:43 +000026323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026324$as_echo "yes" >&6; }
26325 have_jpeg='yes'
26326 fi
26327 else
cristy8b350f62009-11-15 23:12:43 +000026328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026329$as_echo "no" >&6; }
26330 fi
26331fi
26332 if test "$have_jpeg" = 'yes'; then
26333 JPEG_DELEGATE_TRUE=
26334 JPEG_DELEGATE_FALSE='#'
26335else
26336 JPEG_DELEGATE_TRUE='#'
26337 JPEG_DELEGATE_FALSE=
26338fi
26339
26340
26341
26342
26343#
26344# Check for JPEG Version 2 delegate library.
26345#
26346
26347# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026348if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026349 withval=$with_jp2; with_jp2=$withval
26350else
26351 with_jp2='yes'
26352fi
26353
26354
26355if test "$with_jp2" != 'yes'; then
26356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26357fi
26358
26359have_jp2='no'
26360JP2_LIBS=''
26361if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026363$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026365$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026367$as_echo "" >&6; }
26368 failed=0
26369 passed=0
cristy8b350f62009-11-15 23:12:43 +000026370 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26371if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 passed=`expr $passed + 1`
26373else
26374 failed=`expr $failed + 1`
26375fi
26376
26377
cristy8b350f62009-11-15 23:12:43 +000026378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026380if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026381 $as_echo_n "(cached) " >&6
26382else
26383 ac_check_lib_save_LIBS=$LIBS
26384LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026386/* end confdefs.h. */
26387
26388/* Override any GCC internal prototype to avoid an error.
26389 Use char because int might match the return type of a GCC
26390 builtin and then its argument prototype would still apply. */
26391#ifdef __cplusplus
26392extern "C"
26393#endif
26394char jas_stream_fopen ();
26395int
26396main ()
26397{
26398return jas_stream_fopen ();
26399 ;
26400 return 0;
26401}
26402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026404 ac_cv_lib_jasper_jas_stream_fopen=yes
26405else
cristy8b350f62009-11-15 23:12:43 +000026406 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026407fi
cristy8b350f62009-11-15 23:12:43 +000026408rm -f core conftest.err conftest.$ac_objext \
26409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026410LIBS=$ac_check_lib_save_LIBS
26411fi
cristy8b350f62009-11-15 23:12:43 +000026412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026413$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026414if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026415 passed=`expr $passed + 1`
26416else
26417 failed=`expr $failed + 1`
26418fi
26419
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26422 if test $passed -gt 0; then
26423 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "no -- some components failed test" >&6; }
26426 have_jp2='no (failed tests)'
26427 else
26428 JP2_LIBS='-ljasper'
26429 LIBS="$JP2_LIBS $LIBS"
26430
cristy8b350f62009-11-15 23:12:43 +000026431$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026432
cristy8b350f62009-11-15 23:12:43 +000026433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026434$as_echo "yes" >&6; }
26435 have_jp2='yes'
26436 fi
26437 else
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo "no" >&6; }
26440 fi
26441fi
26442 if test "$have_jp2" = 'yes'; then
26443 JP2_DELEGATE_TRUE=
26444 JP2_DELEGATE_FALSE='#'
26445else
26446 JP2_DELEGATE_TRUE='#'
26447 JP2_DELEGATE_FALSE=
26448fi
26449
26450
26451
26452
26453#
26454# Check for LCMS delegate library.
26455#
26456
26457# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026458if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 withval=$with_lcms; with_lcms=$withval
26460else
26461 with_lcms='yes'
26462fi
26463
26464
26465if test "$with_lcms" != 'yes'; then
26466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26467fi
26468
26469have_lcms='no'
26470LCMS_LIBS=''
26471if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026473$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026477$as_echo "" >&6; }
26478 failed=0
26479 passed=0
26480 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026481 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26482if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026483 have_lcms_header='yes'
26484fi
26485
26486
26487 if test "$have_lcms_header" = 'yes'; then
26488 passed=`expr $passed + 1`
26489
cristy8b350f62009-11-15 23:12:43 +000026490$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026491
26492 else
cristy8b350f62009-11-15 23:12:43 +000026493 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26494if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026495 have_lcms_header='yes'
26496fi
26497
26498
26499 if test "$have_lcms_header" = 'yes'; then
26500 passed=`expr $passed + 1`
26501
cristy8b350f62009-11-15 23:12:43 +000026502$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026503
26504 else
26505 failed=`expr $failed + 1`
26506 fi
26507 fi
cristy8b350f62009-11-15 23:12:43 +000026508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026509$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026510if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026511 $as_echo_n "(cached) " >&6
26512else
26513 ac_check_lib_save_LIBS=$LIBS
26514LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026516/* end confdefs.h. */
26517
26518/* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26521#ifdef __cplusplus
26522extern "C"
26523#endif
26524char cmsOpenProfileFromMem ();
26525int
26526main ()
26527{
26528return cmsOpenProfileFromMem ();
26529 ;
26530 return 0;
26531}
26532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26535else
cristy8b350f62009-11-15 23:12:43 +000026536 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026537fi
cristy8b350f62009-11-15 23:12:43 +000026538rm -f core conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026540LIBS=$ac_check_lib_save_LIBS
26541fi
cristy8b350f62009-11-15 23:12:43 +000026542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026544if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026545 passed=`expr $passed + 1`
26546else
26547 failed=`expr $failed + 1`
26548fi
26549
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo_n "checking if LCMS package is complete... " >&6; }
26552 if test $passed -gt 0; then
26553 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "no -- some components failed test" >&6; }
26556 have_lcms='no (failed tests)'
26557 else
26558 LCMS_LIBS='-llcms'
26559 LIBS="$LCMS_LIBS $LIBS"
26560
cristy8b350f62009-11-15 23:12:43 +000026561$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026562
cristy8b350f62009-11-15 23:12:43 +000026563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026564$as_echo "yes" >&6; }
26565 have_lcms='yes'
26566 fi
26567 else
cristy8b350f62009-11-15 23:12:43 +000026568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026569$as_echo "no" >&6; }
26570 fi
26571fi
26572 if test "$have_lcms" = 'yes'; then
26573 LCMS_DELEGATE_TRUE=
26574 LCMS_DELEGATE_FALSE='#'
26575else
26576 LCMS_DELEGATE_TRUE='#'
26577 LCMS_DELEGATE_FALSE=
26578fi
26579
26580
26581
26582
26583#
26584# Check for the LQR (Liquid Rescale) delegate library.
26585#
26586
26587# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026588if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 withval=$with_lqr; with_lqr=$withval
26590else
26591 with_lqr='yes'
26592fi
26593
26594
26595if test "$with_lqr" != 'yes'; then
26596 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26597fi
26598
26599have_lqr='no'
26600LQR_CFLAGS=""
26601LQR_LIBS=""
26602LQR_PKG=""
26603if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605$as_echo "-------------------------------------------------------------" >&6; }
26606
26607pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026609$as_echo_n "checking for LQR... " >&6; }
26610
26611if test -n "$LQR_CFLAGS"; then
26612 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26613 elif test -n "$PKG_CONFIG"; then
26614 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026615 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026616 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26617 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26619 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026620 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26621else
26622 pkg_failed=yes
26623fi
26624 else
26625 pkg_failed=untried
26626fi
26627if test -n "$LQR_LIBS"; then
26628 pkg_cv_LQR_LIBS="$LQR_LIBS"
26629 elif test -n "$PKG_CONFIG"; then
26630 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026632 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26633 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026636 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26637else
26638 pkg_failed=yes
26639fi
26640 else
26641 pkg_failed=untried
26642fi
26643
26644
26645
26646if test $pkg_failed = yes; then
26647
26648if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26649 _pkg_short_errors_supported=yes
26650else
26651 _pkg_short_errors_supported=no
26652fi
26653 if test $_pkg_short_errors_supported = yes; then
26654 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26655 else
26656 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26657 fi
26658 # Put the nasty error message in config.log where it belongs
26659 echo "$LQR_PKG_ERRORS" >&5
26660
cristy8b350f62009-11-15 23:12:43 +000026661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026662$as_echo "no" >&6; }
26663 have_lqr=no
26664elif test $pkg_failed = untried; then
26665 have_lqr=no
26666else
26667 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26668 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026670$as_echo "yes" >&6; }
26671 have_lqr=yes
26672fi
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo "" >&6; }
26675fi
26676
26677if test "$have_lqr" = 'yes'; then
26678
cristy8b350f62009-11-15 23:12:43 +000026679$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026680
26681 CFLAGS="$LQR_CFLAGS $CFLAGS"
26682fi
26683
26684 if test "$have_lqr" = 'yes'; then
26685 LQR_DELEGATE_TRUE=
26686 LQR_DELEGATE_FALSE='#'
26687else
26688 LQR_DELEGATE_TRUE='#'
26689 LQR_DELEGATE_FALSE=
26690fi
26691
26692
26693
26694
26695
26696#
26697# Check for the OpenEXR delegate library.
26698#
26699
26700# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026701if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026702 withval=$with_openexr; with_openexr=$withval
26703else
26704 with_openexr='yes'
26705fi
26706
26707
26708if test "$with_openexr" != 'yes'; then
26709 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26710fi
26711
26712have_openexr='no'
26713OPENEXR_CFLAGS=""
26714OPENEXR_LIBS=""
26715OPENEXR_PKG=""
26716if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026718$as_echo "-------------------------------------------------------------" >&6; }
26719
26720pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026722$as_echo_n "checking for OPENEXR... " >&6; }
26723
26724if test -n "$OPENEXR_CFLAGS"; then
26725 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26726 elif test -n "$PKG_CONFIG"; then
26727 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026729 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26730 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26732 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026733 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26734else
26735 pkg_failed=yes
26736fi
26737 else
26738 pkg_failed=untried
26739fi
26740if test -n "$OPENEXR_LIBS"; then
26741 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26742 elif test -n "$PKG_CONFIG"; then
26743 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026745 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26746 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026749 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26750else
26751 pkg_failed=yes
26752fi
26753 else
26754 pkg_failed=untried
26755fi
26756
26757
26758
26759if test $pkg_failed = yes; then
26760
26761if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26762 _pkg_short_errors_supported=yes
26763else
26764 _pkg_short_errors_supported=no
26765fi
26766 if test $_pkg_short_errors_supported = yes; then
26767 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26768 else
26769 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26770 fi
26771 # Put the nasty error message in config.log where it belongs
26772 echo "$OPENEXR_PKG_ERRORS" >&5
26773
cristy8b350f62009-11-15 23:12:43 +000026774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo "no" >&6; }
26776 have_openexr=no
26777elif test $pkg_failed = untried; then
26778 have_openexr=no
26779else
26780 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26781 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo "yes" >&6; }
26784 have_openexr=yes
26785fi
cristy8b350f62009-11-15 23:12:43 +000026786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026787$as_echo "" >&6; }
26788fi
26789
26790if test "$have_openexr" = 'yes'; then
26791
cristy8b350f62009-11-15 23:12:43 +000026792$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026793
26794 if test "$with_modules" = 'no'; then
26795 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26796 fi
26797fi
26798
26799 if test "$have_openexr" = 'yes'; then
26800 OPENEXR_DELEGATE_TRUE=
26801 OPENEXR_DELEGATE_FALSE='#'
26802else
26803 OPENEXR_DELEGATE_TRUE='#'
26804 OPENEXR_DELEGATE_FALSE=
26805fi
26806
26807
26808
26809
26810
26811#
26812# Check for PNG delegate library.
26813#
26814
26815# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026816if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 withval=$with_png; with_png=$withval
26818else
26819 with_png='yes'
26820fi
26821
26822
26823if test "$with_png" != 'yes'; then
26824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26825fi
26826
26827have_png='no'
26828PNG_LIBS=''
26829if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026831$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026833$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo "" >&6; }
26836 failed=0
26837 passed=0
cristy8b350f62009-11-15 23:12:43 +000026838 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26839if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026840 passed=`expr $passed + 1`
26841else
26842 failed=`expr $failed + 1`
26843fi
26844
26845
cristy8b350f62009-11-15 23:12:43 +000026846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026848if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026849 $as_echo_n "(cached) " >&6
26850else
26851 ac_check_lib_save_LIBS=$LIBS
26852LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854/* end confdefs.h. */
26855
26856/* Override any GCC internal prototype to avoid an error.
26857 Use char because int might match the return type of a GCC
26858 builtin and then its argument prototype would still apply. */
26859#ifdef __cplusplus
26860extern "C"
26861#endif
26862char png_get_io_ptr ();
26863int
26864main ()
26865{
26866return png_get_io_ptr ();
26867 ;
26868 return 0;
26869}
26870_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026871if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026872 ac_cv_lib_png_png_get_io_ptr=yes
26873else
cristy8b350f62009-11-15 23:12:43 +000026874 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026875fi
cristy8b350f62009-11-15 23:12:43 +000026876rm -f core conftest.err conftest.$ac_objext \
26877 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878LIBS=$ac_check_lib_save_LIBS
26879fi
cristy8b350f62009-11-15 23:12:43 +000026880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026882if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026883 passed=`expr $passed + 1`
26884else
26885 failed=`expr $failed + 1`
26886fi
26887
cristy8b350f62009-11-15 23:12:43 +000026888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026889$as_echo_n "checking if PNG package is complete... " >&6; }
26890 if test $passed -gt 0; then
26891 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026893$as_echo "no -- some components failed test" >&6; }
26894 have_png='no (failed tests)'
26895 else
26896 PNG_LIBS='-lpng'
26897 LIBS="$PNG_LIBS $LIBS"
26898
cristy8b350f62009-11-15 23:12:43 +000026899$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026900
cristy8b350f62009-11-15 23:12:43 +000026901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo "yes" >&6; }
26903 have_png='yes'
26904 fi
26905 else
cristy8b350f62009-11-15 23:12:43 +000026906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026907$as_echo "no" >&6; }
26908 fi
26909fi
26910 if test "$have_png" = 'yes'; then
26911 PNG_DELEGATE_TRUE=
26912 PNG_DELEGATE_FALSE='#'
26913else
26914 PNG_DELEGATE_TRUE='#'
26915 PNG_DELEGATE_FALSE=
26916fi
26917
26918
26919
26920
26921#
26922# Check for RSVG delegate library.
26923#
26924
26925# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000026926if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026927 withval=$with_rsvg; with_rsvg=$withval
26928else
26929 with_rsvg=$have_x
26930fi
26931
26932
26933if test "$with_rsvg" != 'yes'; then
26934 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
26935fi
26936
26937have_rsvg='no'
26938have_cairo='no'
26939RSVG_CFLAGS=""
26940RSVG_LIBS=""
26941RSVG_PKG=""
26942if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026944$as_echo "-------------------------------------------------------------" >&6; }
26945
26946pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026948$as_echo_n "checking for RSVG... " >&6; }
26949
26950if test -n "$RSVG_CFLAGS"; then
26951 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
26952 elif test -n "$PKG_CONFIG"; then
26953 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026954 { { $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 +000026955 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26956 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026959 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26960else
26961 pkg_failed=yes
26962fi
26963 else
26964 pkg_failed=untried
26965fi
26966if test -n "$RSVG_LIBS"; then
26967 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
26968 elif test -n "$PKG_CONFIG"; then
26969 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026970 { { $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 +000026971 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26972 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026975 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26976else
26977 pkg_failed=yes
26978fi
26979 else
26980 pkg_failed=untried
26981fi
26982
26983
26984
26985if test $pkg_failed = yes; then
26986
26987if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26988 _pkg_short_errors_supported=yes
26989else
26990 _pkg_short_errors_supported=no
26991fi
26992 if test $_pkg_short_errors_supported = yes; then
26993 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26994 else
26995 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
26996 fi
26997 # Put the nasty error message in config.log where it belongs
26998 echo "$RSVG_PKG_ERRORS" >&5
26999
cristy8b350f62009-11-15 23:12:43 +000027000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027001$as_echo "no" >&6; }
27002 have_rsvg=no
27003elif test $pkg_failed = untried; then
27004 have_rsvg=no
27005else
27006 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27007 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo "yes" >&6; }
27010 have_rsvg=yes
27011fi
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "" >&6; }
27014
27015pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027017$as_echo_n "checking for CAIRO_SVG... " >&6; }
27018
27019if test -n "$CAIRO_SVG_CFLAGS"; then
27020 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27021 elif test -n "$PKG_CONFIG"; then
27022 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027024 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27025 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027028 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27029else
27030 pkg_failed=yes
27031fi
27032 else
27033 pkg_failed=untried
27034fi
27035if test -n "$CAIRO_SVG_LIBS"; then
27036 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27037 elif test -n "$PKG_CONFIG"; then
27038 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027039 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027040 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27041 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27043 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027044 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27045else
27046 pkg_failed=yes
27047fi
27048 else
27049 pkg_failed=untried
27050fi
27051
27052
27053
27054if test $pkg_failed = yes; then
27055
27056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27057 _pkg_short_errors_supported=yes
27058else
27059 _pkg_short_errors_supported=no
27060fi
27061 if test $_pkg_short_errors_supported = yes; then
27062 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27063 else
27064 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27065 fi
27066 # Put the nasty error message in config.log where it belongs
27067 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27068
cristy8b350f62009-11-15 23:12:43 +000027069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027070$as_echo "no" >&6; }
27071 have_cairo=no
27072elif test $pkg_failed = untried; then
27073 have_cairo=no
27074else
27075 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27076 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027078$as_echo "yes" >&6; }
27079 have_cairo=yes
27080fi
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo "" >&6; }
27083fi
27084
27085if test "$have_rsvg" = 'yes'; then
27086
cristy8b350f62009-11-15 23:12:43 +000027087$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027088
27089 if test "$with_modules" = 'no'; then
27090 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27091 fi
27092fi
27093
27094if test "$have_cairo" = 'yes'; then
27095
cristy8b350f62009-11-15 23:12:43 +000027096$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027097
27098 if test "$with_modules" = 'no'; then
27099 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27100 fi
27101fi
27102
27103 if test "$have_rsvg" = 'yes'; then
27104 RSVG_DELEGATE_TRUE=
27105 RSVG_DELEGATE_FALSE='#'
27106else
27107 RSVG_DELEGATE_TRUE='#'
27108 RSVG_DELEGATE_FALSE=
27109fi
27110
27111 if test "$have_cairo" = 'yes'; then
27112 CAIRO_DELEGATE_TRUE=
27113 CAIRO_DELEGATE_FALSE='#'
27114else
27115 CAIRO_DELEGATE_TRUE='#'
27116 CAIRO_DELEGATE_FALSE=
27117fi
27118
27119
27120
27121
27122
27123#
27124# Check for TIFF delegate library.
27125#
27126
27127# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027128if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027129 withval=$with_tiff; with_tiff=$withval
27130else
27131 with_tiff='yes'
27132fi
27133
27134
27135if test "$with_tiff" != 'yes'; then
27136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27137fi
27138
27139have_tiff='no'
27140TIFF_LIBS=''
27141if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027143$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027145$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027147$as_echo "" >&6; }
27148 failed=0
27149 passed=0
cristy8b350f62009-11-15 23:12:43 +000027150 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27151if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027152 passed=`expr $passed + 1`
27153else
27154 failed=`expr $failed + 1`
27155fi
27156
27157
cristy8b350f62009-11-15 23:12:43 +000027158 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27159if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 passed=`expr $passed + 1`
27161else
27162 failed=`expr $failed + 1`
27163fi
27164
27165
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027168if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 $as_echo_n "(cached) " >&6
27170else
27171 ac_check_lib_save_LIBS=$LIBS
27172LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174/* end confdefs.h. */
27175
27176/* Override any GCC internal prototype to avoid an error.
27177 Use char because int might match the return type of a GCC
27178 builtin and then its argument prototype would still apply. */
27179#ifdef __cplusplus
27180extern "C"
27181#endif
27182char TIFFOpen ();
27183int
27184main ()
27185{
27186return TIFFOpen ();
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 ac_cv_lib_tiff_TIFFOpen=yes
27193else
cristy8b350f62009-11-15 23:12:43 +000027194 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027195fi
cristy8b350f62009-11-15 23:12:43 +000027196rm -f core conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198LIBS=$ac_check_lib_save_LIBS
27199fi
cristy8b350f62009-11-15 23:12:43 +000027200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027202if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 passed=`expr $passed + 1`
27204else
27205 failed=`expr $failed + 1`
27206fi
27207
cristy8b350f62009-11-15 23:12:43 +000027208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027209$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027210if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027211 $as_echo_n "(cached) " >&6
27212else
27213 ac_check_lib_save_LIBS=$LIBS
27214LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027216/* end confdefs.h. */
27217
27218/* Override any GCC internal prototype to avoid an error.
27219 Use char because int might match the return type of a GCC
27220 builtin and then its argument prototype would still apply. */
27221#ifdef __cplusplus
27222extern "C"
27223#endif
27224char TIFFClientOpen ();
27225int
27226main ()
27227{
27228return TIFFClientOpen ();
27229 ;
27230 return 0;
27231}
27232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027234 ac_cv_lib_tiff_TIFFClientOpen=yes
27235else
cristy8b350f62009-11-15 23:12:43 +000027236 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027237fi
cristy8b350f62009-11-15 23:12:43 +000027238rm -f core conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027240LIBS=$ac_check_lib_save_LIBS
27241fi
cristy8b350f62009-11-15 23:12:43 +000027242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027243$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027244if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 passed=`expr $passed + 1`
27246else
27247 failed=`expr $failed + 1`
27248fi
27249
cristy8b350f62009-11-15 23:12:43 +000027250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027251$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027252if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027253 $as_echo_n "(cached) " >&6
27254else
27255 ac_check_lib_save_LIBS=$LIBS
27256LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027258/* end confdefs.h. */
27259
27260/* Override any GCC internal prototype to avoid an error.
27261 Use char because int might match the return type of a GCC
27262 builtin and then its argument prototype would still apply. */
27263#ifdef __cplusplus
27264extern "C"
27265#endif
27266char TIFFIsByteSwapped ();
27267int
27268main ()
27269{
27270return TIFFIsByteSwapped ();
27271 ;
27272 return 0;
27273}
27274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027276 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27277else
cristy8b350f62009-11-15 23:12:43 +000027278 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027279fi
cristy8b350f62009-11-15 23:12:43 +000027280rm -f core conftest.err conftest.$ac_objext \
27281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027282LIBS=$ac_check_lib_save_LIBS
27283fi
cristy8b350f62009-11-15 23:12:43 +000027284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027285$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027286if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027287 passed=`expr $passed + 1`
27288else
27289 failed=`expr $failed + 1`
27290fi
27291
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027294if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 $as_echo_n "(cached) " >&6
27296else
27297 ac_check_lib_save_LIBS=$LIBS
27298LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027300/* end confdefs.h. */
27301
27302/* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27305#ifdef __cplusplus
27306extern "C"
27307#endif
27308char TIFFReadRGBATile ();
27309int
27310main ()
27311{
27312return TIFFReadRGBATile ();
27313 ;
27314 return 0;
27315}
27316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27319else
cristy8b350f62009-11-15 23:12:43 +000027320 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027321fi
cristy8b350f62009-11-15 23:12:43 +000027322rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324LIBS=$ac_check_lib_save_LIBS
27325fi
cristy8b350f62009-11-15 23:12:43 +000027326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027327$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027328if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 passed=`expr $passed + 1`
27330else
27331 failed=`expr $failed + 1`
27332fi
27333
cristy8b350f62009-11-15 23:12:43 +000027334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027335$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027336if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027337 $as_echo_n "(cached) " >&6
27338else
27339 ac_check_lib_save_LIBS=$LIBS
27340LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342/* end confdefs.h. */
27343
27344/* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
27347#ifdef __cplusplus
27348extern "C"
27349#endif
27350char TIFFReadRGBAStrip ();
27351int
27352main ()
27353{
27354return TIFFReadRGBAStrip ();
27355 ;
27356 return 0;
27357}
27358_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027359if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027360 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27361else
cristy8b350f62009-11-15 23:12:43 +000027362 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027363fi
cristy8b350f62009-11-15 23:12:43 +000027364rm -f core conftest.err conftest.$ac_objext \
27365 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027366LIBS=$ac_check_lib_save_LIBS
27367fi
cristy8b350f62009-11-15 23:12:43 +000027368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027369$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027370if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 passed=`expr $passed + 1`
27372else
27373 failed=`expr $failed + 1`
27374fi
27375
cristy8b350f62009-11-15 23:12:43 +000027376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027377$as_echo_n "checking if TIFF package is complete... " >&6; }
27378 if test $passed -gt 0; then
27379 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo "no -- some components failed test" >&6; }
27382 have_tiff='no (failed tests)'
27383 else
27384 TIFF_LIBS='-ltiff'
27385 LIBS="$TIFF_LIBS $LIBS"
27386
cristy8b350f62009-11-15 23:12:43 +000027387$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027388
cristy8b350f62009-11-15 23:12:43 +000027389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027390$as_echo "yes" >&6; }
27391 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027392 for ac_header in tiffconf.h
27393do :
27394 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27395if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027396 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027397#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027398_ACEOF
27399
27400fi
27401
27402done
27403
cristy8b350f62009-11-15 23:12:43 +000027404 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027405 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27406 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027407do :
27408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27409ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27410eval as_val=\$$as_ac_var
27411 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027412 cat >>confdefs.h <<_ACEOF
27413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27414_ACEOF
27415
27416fi
27417done
27418
27419 fi
27420 else
cristy8b350f62009-11-15 23:12:43 +000027421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027422$as_echo "no" >&6; }
27423 fi
27424fi
27425 if test "$have_tiff" = 'yes'; then
27426 TIFF_DELEGATE_TRUE=
27427 TIFF_DELEGATE_FALSE='#'
27428else
27429 TIFF_DELEGATE_TRUE='#'
27430 TIFF_DELEGATE_FALSE=
27431fi
27432
27433
27434
27435
27436#
27437# Set Windows font directory.
27438#
27439
27440# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027441if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27443else
27444 with_windows_font_dir=''
27445fi
27446
27447if test "$with_windows_font_dir" != '' ; then
27448 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27449fi
27450
27451
27452#
27453# Check for WMF delegate library.
27454#
27455
27456# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027457if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027458 withval=$with_wmf; with_wmf=$withval
27459else
cristy8d63d1d2010-01-06 20:38:37 +000027460 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000027461fi
27462
27463
27464if test "$with_wmf" != 'yes'; then
27465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27466fi
27467
27468have_wmf='no'
27469WMF_LIBS=''
27470WMF_LIBS_DEPS=''
27471OLIBS="$LIBS"
27472if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027474$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "" >&6; }
27479 have_libwmf='no'
27480 have_libwmflite='no'
27481 have_libwmf_ipa_h='no'
27482
cristy8b350f62009-11-15 23:12:43 +000027483 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27484"
27485if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 have_libwmf_ipa_h='yes'
27487fi
27488
27489
27490 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027493if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 $as_echo_n "(cached) " >&6
27495else
27496 ac_check_lib_save_LIBS=$LIBS
27497LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027499/* end confdefs.h. */
27500
27501/* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27504#ifdef __cplusplus
27505extern "C"
27506#endif
27507char wmf_lite_create ();
27508int
27509main ()
27510{
27511return wmf_lite_create ();
27512 ;
27513 return 0;
27514}
27515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027517 ac_cv_lib_wmflite_wmf_lite_create=yes
27518else
cristy8b350f62009-11-15 23:12:43 +000027519 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027520fi
cristy8b350f62009-11-15 23:12:43 +000027521rm -f core conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027523LIBS=$ac_check_lib_save_LIBS
27524fi
cristy8b350f62009-11-15 23:12:43 +000027525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027527if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 have_libwmflite='yes'
27529fi
27530
27531 if test "$have_libwmflite" = 'yes'; then
27532
cristy8b350f62009-11-15 23:12:43 +000027533$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027534
27535 WMF_LIBS='-lwmflite'
27536 LIBS="$WMF_LIBS $LIBS"
27537 have_wmf='yes'
27538 else
27539 WMF_LIBS_DEPS=''
27540 WMF_CONFIG_LIBS=`libwmf-config --libs`
27541 for lib in xml2 expat freetype jpeg png z; do
27542 testlib="-l${lib}"
27543 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27544 done
cristy8b350f62009-11-15 23:12:43 +000027545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027547if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027548 $as_echo_n "(cached) " >&6
27549else
27550 ac_check_lib_save_LIBS=$LIBS
27551LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027553/* end confdefs.h. */
27554
27555/* Override any GCC internal prototype to avoid an error.
27556 Use char because int might match the return type of a GCC
27557 builtin and then its argument prototype would still apply. */
27558#ifdef __cplusplus
27559extern "C"
27560#endif
27561char wmf_api_create ();
27562int
27563main ()
27564{
27565return wmf_api_create ();
27566 ;
27567 return 0;
27568}
27569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 ac_cv_lib_wmf_wmf_api_create=yes
27572else
cristy8b350f62009-11-15 23:12:43 +000027573 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027574fi
cristy8b350f62009-11-15 23:12:43 +000027575rm -f core conftest.err conftest.$ac_objext \
27576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027577LIBS=$ac_check_lib_save_LIBS
27578fi
cristy8b350f62009-11-15 23:12:43 +000027579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027580$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027581if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027582 have_libwmf='yes'
27583fi
27584
27585 if test "$have_libwmf" = 'yes'; then
27586
cristy8b350f62009-11-15 23:12:43 +000027587$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027588
27589 WMF_LIBS='-lwmf'
27590 LIBS="$WMF_LIBS $LIBS"
27591 have_wmf='yes'
27592 else
cristy8b350f62009-11-15 23:12:43 +000027593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027594$as_echo "no -- some components failed test" >&6; }
27595 have_wmf='no (failed tests)'
27596 have_wmflite='no (failed tests)'
27597 LIBS="$OLIBS"
27598 WMF_LIBS=''
27599 fi
27600 fi
27601 fi
cristy8b350f62009-11-15 23:12:43 +000027602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027603$as_echo_n "checking if WMF package is complete... " >&6; }
27604 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "yes" >&6; }
27607 else
cristy8b350f62009-11-15 23:12:43 +000027608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027609$as_echo "no" >&6; }
27610 fi
27611fi
27612 if test "$have_wmf" = 'yes'; then
27613 WMF_DELEGATE_TRUE=
27614 WMF_DELEGATE_FALSE='#'
27615else
27616 WMF_DELEGATE_TRUE='#'
27617 WMF_DELEGATE_FALSE=
27618fi
27619
27620
27621
27622
27623
27624#
27625# Check for XML delegate library.
27626#
27627
27628# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027629if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 withval=$with_xml; with_xml=$withval
27631else
27632 with_xml=$have_x
27633fi
27634
27635
27636if test "$with_xml" != 'yes' ; then
27637 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27638fi
27639
27640have_xml='no'
27641XML_LIBS=''
27642if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027646$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo "" >&6; }
27649 PERSIST_LDFLAGS=$LDFLAGS
27650 PERSIST_CPPFLAGS=$CPPFLAGS
27651 xml2_config=''
27652 for ac_prog in xml2-config
27653do
27654 # Extract the first word of "$ac_prog", so it can be a program name with args.
27655set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027657$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027658if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 $as_echo_n "(cached) " >&6
27660else
27661 if test -n "$xml2_config"; then
27662 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27663else
27664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27665for as_dir in $PATH
27666do
27667 IFS=$as_save_IFS
27668 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027669 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27671 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027673 break 2
27674 fi
27675done
cristy8b350f62009-11-15 23:12:43 +000027676 done
cristy3ed852e2009-09-05 21:47:34 +000027677IFS=$as_save_IFS
27678
27679fi
27680fi
27681xml2_config=$ac_cv_prog_xml2_config
27682if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027684$as_echo "$xml2_config" >&6; }
27685else
cristy8b350f62009-11-15 23:12:43 +000027686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027687$as_echo "no" >&6; }
27688fi
27689
27690
27691 test -n "$xml2_config" && break
27692done
27693 if test -n "$xml2_config"; then
27694 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27695 # the shared library installed under /usr/lib, whereas the package
27696 # installs itself under $prefix/libxml and $prefix/lib.
27697 xml2_prefix=`xml2-config --prefix`
27698 if test -d "${xml2_prefix}/include/libxml2"; then
27699 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27700 fi
27701 if test "${xml2_prefix}" != '/usr'; then
27702 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27703 fi
27704 fi
27705 failed=0
27706 passed=0
cristy8b350f62009-11-15 23:12:43 +000027707 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27708if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027709 passed=`expr $passed + 1`
27710else
27711 failed=`expr $failed + 1`
27712fi
27713
27714
cristy8b350f62009-11-15 23:12:43 +000027715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027716$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027717if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027718 $as_echo_n "(cached) " >&6
27719else
27720 ac_check_lib_save_LIBS=$LIBS
27721LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027723/* end confdefs.h. */
27724
27725/* Override any GCC internal prototype to avoid an error.
27726 Use char because int might match the return type of a GCC
27727 builtin and then its argument prototype would still apply. */
27728#ifdef __cplusplus
27729extern "C"
27730#endif
27731char xmlParseExternalEntity ();
27732int
27733main ()
27734{
27735return xmlParseExternalEntity ();
27736 ;
27737 return 0;
27738}
27739_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027740if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027741 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27742else
cristy8b350f62009-11-15 23:12:43 +000027743 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027744fi
cristy8b350f62009-11-15 23:12:43 +000027745rm -f core conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027747LIBS=$ac_check_lib_save_LIBS
27748fi
cristy8b350f62009-11-15 23:12:43 +000027749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027750$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027751if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 passed=`expr $passed + 1`
27753else
27754 failed=`expr $failed + 1`
27755fi
27756
cristy8b350f62009-11-15 23:12:43 +000027757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027758$as_echo_n "checking if XML package is complete... " >&6; }
27759 if test $passed -gt 0; then
27760 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo "no -- some components failed test" >&6; }
27763 have_xml='no (failed tests)'
27764 LDFLAGS="$PERSIST_LDFLAGS"
27765 CPPFLAGS="$PERSIST_CPPFLAGS"
27766 else
27767 XML_LIBS='-lxml2'
27768 LIBS="$XML_LIBS $LIBS"
27769
cristy8b350f62009-11-15 23:12:43 +000027770$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027771
cristy8b350f62009-11-15 23:12:43 +000027772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027773$as_echo "yes" >&6; }
27774 have_xml='yes'
27775 fi
27776 else
cristy8b350f62009-11-15 23:12:43 +000027777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027778$as_echo "no" >&6; }
27779 fi
27780fi
27781 if test "$have_xml" = 'yes'; then
27782 XML_DELEGATE_TRUE=
27783 XML_DELEGATE_FALSE='#'
27784else
27785 XML_DELEGATE_TRUE='#'
27786 XML_DELEGATE_FALSE=
27787fi
27788
27789
27790
27791
27792# Substitute compiler name to build/link PerlMagick
27793#
27794
27795
27796#
27797# Configure install Paths
27798#
27799
27800# Subdirectory under lib to place ImageMagick lib files
27801LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27802
27803cat >>confdefs.h <<_ACEOF
27804#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27805_ACEOF
27806
27807
27808# Path to ImageMagick bin directory
27809EXECUTABLE_PATH="${BIN_DIR}"
27810DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27811case "${build_os}" in
27812 mingw* )
27813 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27814 ;;
27815esac
27816
27817cat >>confdefs.h <<_ACEOF
27818#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27819_ACEOF
27820
27821
27822
27823# Path to ImageMagick lib
27824LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27825DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27826case "${build_os}" in
27827 mingw* )
27828 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27829 ;;
27830esac
27831
27832cat >>confdefs.h <<_ACEOF
27833#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27834_ACEOF
27835
27836
27837
27838# Subdirectory under lib to place ImageMagick configuration files
27839CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27840
27841cat >>confdefs.h <<_ACEOF
27842#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27843_ACEOF
27844
27845CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27846DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27847case "${build_os}" in
27848 mingw* )
27849 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27850 ;;
27851esac
27852
27853cat >>confdefs.h <<_ACEOF
27854#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27855_ACEOF
27856
27857
27858
27859#
27860# Subdirectory under lib to place ImageMagick coder module files
27861CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27862
27863cat >>confdefs.h <<_ACEOF
27864#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27865_ACEOF
27866
27867CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27868DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27869case "${build_os}" in
27870 mingw* )
27871 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27872 ;;
27873esac
27874
27875cat >>confdefs.h <<_ACEOF
27876#define CODER_PATH "$DEFINE_CODER_PATH"
27877_ACEOF
27878
27879
27880
27881#
27882# Subdirectory under lib to place ImageMagick filter module files
27883FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27884
27885cat >>confdefs.h <<_ACEOF
27886#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27887_ACEOF
27888
27889FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27890DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27891case "${build_os}" in
27892 mingw* )
27893 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27894 ;;
27895esac
27896
27897cat >>confdefs.h <<_ACEOF
27898#define FILTER_PATH "$DEFINE_FILTER_PATH"
27899_ACEOF
27900
27901
27902
27903#
27904# Path to ImageMagick documentation files
27905DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27906DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27907DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27908case "${build_os}" in
27909 mingw* )
27910 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27911 ;;
27912esac
27913
27914cat >>confdefs.h <<_ACEOF
27915#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
27916_ACEOF
27917
27918
27919
27920#
27921# Path to ImageMagick share files
27922SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27923SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
27924DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
27925case "${build_os}" in
27926 mingw* )
27927 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
27928 ;;
27929esac
27930
27931cat >>confdefs.h <<_ACEOF
27932#define SHARE_PATH "$DEFINE_SHARE_PATH"
27933_ACEOF
27934
27935
27936
27937# Subdirectory under share to place ImageMagick configuration files
27938SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27939
27940cat >>confdefs.h <<_ACEOF
27941#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
27942_ACEOF
27943
27944SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
27945DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
27946case "${build_os}" in
27947 mingw* )
27948 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
27949 ;;
27950esac
27951
27952cat >>confdefs.h <<_ACEOF
27953#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
27954_ACEOF
27955
27956
27957
27958#
27959# program_transform_name is formed for use in a Makefile, so create a
27960# modified version for use in a shell script.
27961configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
27962
27963# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000027964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027967$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo "" >&6; }
27970AutotraceDecodeDelegateDefault='autotrace'
27971AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000027972BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000027973BZIPDelegateDefault='bzip2'
27974BrowseDelegateDefault='xdg-open'
27975CGMDecodeDelegateDefault='ralcgm'
27976CatDelegateDefault='cat'
27977DNGDecodeDelegateDefault='ufraw-batch'
27978GVCDecodeDelegateDefault='dot'
27979DVIDecodeDelegateDefault='dvips'
27980EchoDelegateDefault='echo'
27981EditorDelegateDefault='xterm'
27982FIGDecodeDelegateDefault='fig2dev'
27983ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
27984DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
27985MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
27986GnuplotDecodeDelegateDefault='gnuplot'
27987HDRDecodeDelegateDefault='ra_pfm'
27988HPGLDecodeDelegateDefault='hp2xx'
27989HTMLDecodeDelegateDefault='html2ps'
27990ILBMDecodeDelegateDefault='ilbmtoppm'
27991ILBMEncodeDelegateDefault='ppmtoilbm'
27992LPDelegateDefault='lp'
27993LPRDelegateDefault='lpr'
27994LZWDecodeDelegateDefault='uncompress'
27995LZWEncodeDelegateDefault='compress'
27996LaunchDelegateDefault='gimp'
27997MANDelegateDefault='groff'
27998MPEGDecodeDelegateDefault='ffmpeg'
27999MPEGEncodeDelegateDefault='ffmpeg'
28000MVDelegateDefault='mv'
28001PCLDelegateDefault='pcl6'
28002PGPDecodeDelegateDefault='pgpv'
28003POVDelegateDefault='povray'
28004if test "$native_win32_build" = 'yes'; then
28005 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028006elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028007 PSDelegateDefault='gsc'
28008else
28009 PSDelegateDefault='gs'
28010fi
28011RLEEncodeDelegateDefault='rawtorle'
28012RMDelegateDefault='rm'
28013SCANDecodeDelegateDefault='scanimage'
28014TXTDelegateDefault='enscript'
28015WMFDecodeDelegateDefault='wmf2eps'
28016WWWDecodeDelegateDefault='curl'
28017XPSDelegateDefault='gxps'
28018ZipDelegateDefault='gzip'
28019
28020# Search for delegates
28021# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28022set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028024$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028025if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028026 $as_echo_n "(cached) " >&6
28027else
28028 case $AutotraceDecodeDelegate in
28029 [\\/]* | ?:[\\/]*)
28030 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28031 ;;
28032 *)
28033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28034for as_dir in $PATH
28035do
28036 IFS=$as_save_IFS
28037 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28040 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028042 break 2
28043 fi
28044done
cristy8b350f62009-11-15 23:12:43 +000028045 done
cristy3ed852e2009-09-05 21:47:34 +000028046IFS=$as_save_IFS
28047
28048 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28049 ;;
28050esac
28051fi
28052AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28053if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028055$as_echo "$AutotraceDecodeDelegate" >&6; }
28056else
cristy8b350f62009-11-15 23:12:43 +000028057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028058$as_echo "no" >&6; }
28059fi
28060
28061
28062# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28063set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028065$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028066if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028067 $as_echo_n "(cached) " >&6
28068else
28069 case $AVIDecodeDelegate in
28070 [\\/]* | ?:[\\/]*)
28071 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28072 ;;
28073 *)
28074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28075for as_dir in $PATH
28076do
28077 IFS=$as_save_IFS
28078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28081 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028083 break 2
28084 fi
28085done
cristy8b350f62009-11-15 23:12:43 +000028086 done
cristy3ed852e2009-09-05 21:47:34 +000028087IFS=$as_save_IFS
28088
28089 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28090 ;;
28091esac
28092fi
28093AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28094if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028096$as_echo "$AVIDecodeDelegate" >&6; }
28097else
cristy8b350f62009-11-15 23:12:43 +000028098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo "no" >&6; }
28100fi
28101
28102
28103# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28104set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028106$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028107if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028108 $as_echo_n "(cached) " >&6
28109else
28110 case $BlenderDecodeDelegate in
28111 [\\/]* | ?:[\\/]*)
28112 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28113 ;;
28114 *)
28115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28116for as_dir in $PATH
28117do
28118 IFS=$as_save_IFS
28119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28122 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028124 break 2
28125 fi
28126done
cristy8b350f62009-11-15 23:12:43 +000028127 done
cristy3ed852e2009-09-05 21:47:34 +000028128IFS=$as_save_IFS
28129
28130 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28131 ;;
28132esac
28133fi
28134BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28135if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "$BlenderDecodeDelegate" >&6; }
28138else
cristy8b350f62009-11-15 23:12:43 +000028139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028140$as_echo "no" >&6; }
28141fi
28142
28143
28144# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28145set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028147$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028148if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028149 $as_echo_n "(cached) " >&6
28150else
28151 case $BZIPDelegate in
28152 [\\/]* | ?:[\\/]*)
28153 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28154 ;;
28155 *)
28156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28157for as_dir in $PATH
28158do
28159 IFS=$as_save_IFS
28160 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028161 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28163 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028165 break 2
28166 fi
28167done
cristy8b350f62009-11-15 23:12:43 +000028168 done
cristy3ed852e2009-09-05 21:47:34 +000028169IFS=$as_save_IFS
28170
28171 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28172 ;;
28173esac
28174fi
28175BZIPDelegate=$ac_cv_path_BZIPDelegate
28176if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028178$as_echo "$BZIPDelegate" >&6; }
28179else
cristy8b350f62009-11-15 23:12:43 +000028180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028181$as_echo "no" >&6; }
28182fi
28183
28184
28185# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28186set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028188$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028189if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028190 $as_echo_n "(cached) " >&6
28191else
28192 case $BrowseDelegate in
28193 [\\/]* | ?:[\\/]*)
28194 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28195 ;;
28196 *)
28197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28198for as_dir in $PATH
28199do
28200 IFS=$as_save_IFS
28201 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028202 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28204 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028206 break 2
28207 fi
28208done
cristy8b350f62009-11-15 23:12:43 +000028209 done
cristy3ed852e2009-09-05 21:47:34 +000028210IFS=$as_save_IFS
28211
28212 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28213 ;;
28214esac
28215fi
28216BrowseDelegate=$ac_cv_path_BrowseDelegate
28217if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028219$as_echo "$BrowseDelegate" >&6; }
28220else
cristy8b350f62009-11-15 23:12:43 +000028221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028222$as_echo "no" >&6; }
28223fi
28224
28225
28226# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28227set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028229$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028230if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028231 $as_echo_n "(cached) " >&6
28232else
28233 case $CGMDecodeDelegate in
28234 [\\/]* | ?:[\\/]*)
28235 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28236 ;;
28237 *)
28238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28239for as_dir in $PATH
28240do
28241 IFS=$as_save_IFS
28242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028243 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28245 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028247 break 2
28248 fi
28249done
cristy8b350f62009-11-15 23:12:43 +000028250 done
cristy3ed852e2009-09-05 21:47:34 +000028251IFS=$as_save_IFS
28252
28253 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28254 ;;
28255esac
28256fi
28257CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28258if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo "$CGMDecodeDelegate" >&6; }
28261else
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; }
28264fi
28265
28266
28267# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28268set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028270$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028271if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 $as_echo_n "(cached) " >&6
28273else
28274 case $CatDelegate in
28275 [\\/]* | ?:[\\/]*)
28276 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28277 ;;
28278 *)
28279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28280for as_dir in $PATH
28281do
28282 IFS=$as_save_IFS
28283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28286 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288 break 2
28289 fi
28290done
cristy8b350f62009-11-15 23:12:43 +000028291 done
cristy3ed852e2009-09-05 21:47:34 +000028292IFS=$as_save_IFS
28293
28294 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28295 ;;
28296esac
28297fi
28298CatDelegate=$ac_cv_path_CatDelegate
28299if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028301$as_echo "$CatDelegate" >&6; }
28302else
cristy8b350f62009-11-15 23:12:43 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo "no" >&6; }
28305fi
28306
28307
28308# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28309set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028312if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 $as_echo_n "(cached) " >&6
28314else
28315 case $DNGDecodeDelegate in
28316 [\\/]* | ?:[\\/]*)
28317 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28318 ;;
28319 *)
28320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28321for as_dir in $PATH
28322do
28323 IFS=$as_save_IFS
28324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28327 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028329 break 2
28330 fi
28331done
cristy8b350f62009-11-15 23:12:43 +000028332 done
cristy3ed852e2009-09-05 21:47:34 +000028333IFS=$as_save_IFS
28334
28335 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28336 ;;
28337esac
28338fi
28339DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28340if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo "$DNGDecodeDelegate" >&6; }
28343else
cristy8b350f62009-11-15 23:12:43 +000028344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "no" >&6; }
28346fi
28347
28348
28349# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28350set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028352$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028353if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028354 $as_echo_n "(cached) " >&6
28355else
28356 case $GVCDecodeDelegate in
28357 [\\/]* | ?:[\\/]*)
28358 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28359 ;;
28360 *)
28361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28362for as_dir in $PATH
28363do
28364 IFS=$as_save_IFS
28365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28368 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028370 break 2
28371 fi
28372done
cristy8b350f62009-11-15 23:12:43 +000028373 done
cristy3ed852e2009-09-05 21:47:34 +000028374IFS=$as_save_IFS
28375
28376 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28377 ;;
28378esac
28379fi
28380GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28381if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo "$GVCDecodeDelegate" >&6; }
28384else
cristy8b350f62009-11-15 23:12:43 +000028385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028386$as_echo "no" >&6; }
28387fi
28388
28389
28390# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28391set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028393$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028394if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028395 $as_echo_n "(cached) " >&6
28396else
28397 case $DVIDecodeDelegate in
28398 [\\/]* | ?:[\\/]*)
28399 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28400 ;;
28401 *)
28402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28403for as_dir in $PATH
28404do
28405 IFS=$as_save_IFS
28406 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028407 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28409 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028411 break 2
28412 fi
28413done
cristy8b350f62009-11-15 23:12:43 +000028414 done
cristy3ed852e2009-09-05 21:47:34 +000028415IFS=$as_save_IFS
28416
28417 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28418 ;;
28419esac
28420fi
28421DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28422if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028424$as_echo "$DVIDecodeDelegate" >&6; }
28425else
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo "no" >&6; }
28428fi
28429
28430
28431# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28432set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028434$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028435if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028436 $as_echo_n "(cached) " >&6
28437else
28438 case $EchoDelegate in
28439 [\\/]* | ?:[\\/]*)
28440 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28441 ;;
28442 *)
28443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28444for as_dir in $PATH
28445do
28446 IFS=$as_save_IFS
28447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28450 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028452 break 2
28453 fi
28454done
cristy8b350f62009-11-15 23:12:43 +000028455 done
cristy3ed852e2009-09-05 21:47:34 +000028456IFS=$as_save_IFS
28457
28458 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28459 ;;
28460esac
28461fi
28462EchoDelegate=$ac_cv_path_EchoDelegate
28463if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028465$as_echo "$EchoDelegate" >&6; }
28466else
cristy8b350f62009-11-15 23:12:43 +000028467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo "no" >&6; }
28469fi
28470
28471
28472# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28473set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028476if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028477 $as_echo_n "(cached) " >&6
28478else
28479 case $EditorDelegate in
28480 [\\/]* | ?:[\\/]*)
28481 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28482 ;;
28483 *)
28484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28485for as_dir in $PATH
28486do
28487 IFS=$as_save_IFS
28488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28491 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028493 break 2
28494 fi
28495done
cristy8b350f62009-11-15 23:12:43 +000028496 done
cristy3ed852e2009-09-05 21:47:34 +000028497IFS=$as_save_IFS
28498
28499 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28500 ;;
28501esac
28502fi
28503EditorDelegate=$ac_cv_path_EditorDelegate
28504if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo "$EditorDelegate" >&6; }
28507else
cristy8b350f62009-11-15 23:12:43 +000028508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028509$as_echo "no" >&6; }
28510fi
28511
28512
28513# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28514set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028516$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028517if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028518 $as_echo_n "(cached) " >&6
28519else
28520 case $FIGDecodeDelegate in
28521 [\\/]* | ?:[\\/]*)
28522 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28523 ;;
28524 *)
28525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28526for as_dir in $PATH
28527do
28528 IFS=$as_save_IFS
28529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28532 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534 break 2
28535 fi
28536done
cristy8b350f62009-11-15 23:12:43 +000028537 done
cristy3ed852e2009-09-05 21:47:34 +000028538IFS=$as_save_IFS
28539
28540 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28541 ;;
28542esac
28543fi
28544FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28545if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo "$FIGDecodeDelegate" >&6; }
28548else
cristy8b350f62009-11-15 23:12:43 +000028549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028550$as_echo "no" >&6; }
28551fi
28552
28553
28554# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28555set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028558if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028559 $as_echo_n "(cached) " >&6
28560else
28561 case $ConvertDelegate in
28562 [\\/]* | ?:[\\/]*)
28563 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28564 ;;
28565 *)
28566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28567for as_dir in $PATH
28568do
28569 IFS=$as_save_IFS
28570 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28573 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575 break 2
28576 fi
28577done
cristy8b350f62009-11-15 23:12:43 +000028578 done
cristy3ed852e2009-09-05 21:47:34 +000028579IFS=$as_save_IFS
28580
28581 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28582 ;;
28583esac
28584fi
28585ConvertDelegate=$ac_cv_path_ConvertDelegate
28586if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028588$as_echo "$ConvertDelegate" >&6; }
28589else
cristy8b350f62009-11-15 23:12:43 +000028590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028591$as_echo "no" >&6; }
28592fi
28593
28594
28595# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28596set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028598$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028599if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028600 $as_echo_n "(cached) " >&6
28601else
28602 case $DisplayDelegate in
28603 [\\/]* | ?:[\\/]*)
28604 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28605 ;;
28606 *)
28607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28608for as_dir in $PATH
28609do
28610 IFS=$as_save_IFS
28611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28614 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616 break 2
28617 fi
28618done
cristy8b350f62009-11-15 23:12:43 +000028619 done
cristy3ed852e2009-09-05 21:47:34 +000028620IFS=$as_save_IFS
28621
28622 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28623 ;;
28624esac
28625fi
28626DisplayDelegate=$ac_cv_path_DisplayDelegate
28627if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028629$as_echo "$DisplayDelegate" >&6; }
28630else
cristy8b350f62009-11-15 23:12:43 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028632$as_echo "no" >&6; }
28633fi
28634
28635
28636# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28637set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028639$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028640if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 $as_echo_n "(cached) " >&6
28642else
28643 case $MogrifyDelegate in
28644 [\\/]* | ?:[\\/]*)
28645 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28646 ;;
28647 *)
28648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28649for as_dir in $PATH
28650do
28651 IFS=$as_save_IFS
28652 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028653 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28655 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028657 break 2
28658 fi
28659done
cristy8b350f62009-11-15 23:12:43 +000028660 done
cristy3ed852e2009-09-05 21:47:34 +000028661IFS=$as_save_IFS
28662
28663 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28664 ;;
28665esac
28666fi
28667MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28668if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028670$as_echo "$MogrifyDelegate" >&6; }
28671else
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo "no" >&6; }
28674fi
28675
28676
28677# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28678set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028680$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028681if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028682 $as_echo_n "(cached) " >&6
28683else
28684 case $GnuplotDecodeDelegate in
28685 [\\/]* | ?:[\\/]*)
28686 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28687 ;;
28688 *)
28689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28690for as_dir in $PATH
28691do
28692 IFS=$as_save_IFS
28693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28696 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028698 break 2
28699 fi
28700done
cristy8b350f62009-11-15 23:12:43 +000028701 done
cristy3ed852e2009-09-05 21:47:34 +000028702IFS=$as_save_IFS
28703
28704 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28705 ;;
28706esac
28707fi
28708GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28709if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028711$as_echo "$GnuplotDecodeDelegate" >&6; }
28712else
cristy8b350f62009-11-15 23:12:43 +000028713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028714$as_echo "no" >&6; }
28715fi
28716
28717
28718# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28719set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028721$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028722if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028723 $as_echo_n "(cached) " >&6
28724else
28725 case $HDRDecodeDelegate in
28726 [\\/]* | ?:[\\/]*)
28727 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28728 ;;
28729 *)
28730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28731for as_dir in $PATH
28732do
28733 IFS=$as_save_IFS
28734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28737 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028739 break 2
28740 fi
28741done
cristy8b350f62009-11-15 23:12:43 +000028742 done
cristy3ed852e2009-09-05 21:47:34 +000028743IFS=$as_save_IFS
28744
28745 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28746 ;;
28747esac
28748fi
28749HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28750if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028752$as_echo "$HDRDecodeDelegate" >&6; }
28753else
cristy8b350f62009-11-15 23:12:43 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028755$as_echo "no" >&6; }
28756fi
28757
28758
28759# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28760set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028762$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028763if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028764 $as_echo_n "(cached) " >&6
28765else
28766 case $HPGLDecodeDelegate in
28767 [\\/]* | ?:[\\/]*)
28768 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28769 ;;
28770 *)
28771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28772for as_dir in $PATH
28773do
28774 IFS=$as_save_IFS
28775 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028776 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28778 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028780 break 2
28781 fi
28782done
cristy8b350f62009-11-15 23:12:43 +000028783 done
cristy3ed852e2009-09-05 21:47:34 +000028784IFS=$as_save_IFS
28785
28786 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28787 ;;
28788esac
28789fi
28790HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28791if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028793$as_echo "$HPGLDecodeDelegate" >&6; }
28794else
cristy8b350f62009-11-15 23:12:43 +000028795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028796$as_echo "no" >&6; }
28797fi
28798
28799
28800# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28801set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028804if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028805 $as_echo_n "(cached) " >&6
28806else
28807 case $HTMLDecodeDelegate in
28808 [\\/]* | ?:[\\/]*)
28809 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28810 ;;
28811 *)
28812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28813for as_dir in $PATH
28814do
28815 IFS=$as_save_IFS
28816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28819 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821 break 2
28822 fi
28823done
cristy8b350f62009-11-15 23:12:43 +000028824 done
cristy3ed852e2009-09-05 21:47:34 +000028825IFS=$as_save_IFS
28826
28827 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28828 ;;
28829esac
28830fi
28831HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28832if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028834$as_echo "$HTMLDecodeDelegate" >&6; }
28835else
cristy8b350f62009-11-15 23:12:43 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028837$as_echo "no" >&6; }
28838fi
28839
28840
28841# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28842set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028844$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028845if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028846 $as_echo_n "(cached) " >&6
28847else
28848 case $ILBMDecodeDelegate in
28849 [\\/]* | ?:[\\/]*)
28850 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28851 ;;
28852 *)
28853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28854for as_dir in $PATH
28855do
28856 IFS=$as_save_IFS
28857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28860 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028862 break 2
28863 fi
28864done
cristy8b350f62009-11-15 23:12:43 +000028865 done
cristy3ed852e2009-09-05 21:47:34 +000028866IFS=$as_save_IFS
28867
28868 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28869 ;;
28870esac
28871fi
28872ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28873if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028875$as_echo "$ILBMDecodeDelegate" >&6; }
28876else
cristy8b350f62009-11-15 23:12:43 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028878$as_echo "no" >&6; }
28879fi
28880
28881
28882# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28883set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028886if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028887 $as_echo_n "(cached) " >&6
28888else
28889 case $ILBMEncodeDelegate in
28890 [\\/]* | ?:[\\/]*)
28891 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28892 ;;
28893 *)
28894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28895for as_dir in $PATH
28896do
28897 IFS=$as_save_IFS
28898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28901 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028903 break 2
28904 fi
28905done
cristy8b350f62009-11-15 23:12:43 +000028906 done
cristy3ed852e2009-09-05 21:47:34 +000028907IFS=$as_save_IFS
28908
28909 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28910 ;;
28911esac
28912fi
28913ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
28914if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028916$as_echo "$ILBMEncodeDelegate" >&6; }
28917else
cristy8b350f62009-11-15 23:12:43 +000028918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028919$as_echo "no" >&6; }
28920fi
28921
28922
28923# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
28924set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028926$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028927if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028928 $as_echo_n "(cached) " >&6
28929else
28930 case $LPDelegate in
28931 [\\/]* | ?:[\\/]*)
28932 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
28933 ;;
28934 *)
28935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28936for as_dir in $PATH
28937do
28938 IFS=$as_save_IFS
28939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28942 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028944 break 2
28945 fi
28946done
cristy8b350f62009-11-15 23:12:43 +000028947 done
cristy3ed852e2009-09-05 21:47:34 +000028948IFS=$as_save_IFS
28949
28950 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
28951 ;;
28952esac
28953fi
28954LPDelegate=$ac_cv_path_LPDelegate
28955if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028957$as_echo "$LPDelegate" >&6; }
28958else
cristy8b350f62009-11-15 23:12:43 +000028959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028960$as_echo "no" >&6; }
28961fi
28962
28963
28964# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
28965set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028967$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028968if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028969 $as_echo_n "(cached) " >&6
28970else
28971 case $LPRDelegate in
28972 [\\/]* | ?:[\\/]*)
28973 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
28974 ;;
28975 *)
28976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28977for as_dir in $PATH
28978do
28979 IFS=$as_save_IFS
28980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28983 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028985 break 2
28986 fi
28987done
cristy8b350f62009-11-15 23:12:43 +000028988 done
cristy3ed852e2009-09-05 21:47:34 +000028989IFS=$as_save_IFS
28990
28991 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
28992 ;;
28993esac
28994fi
28995LPRDelegate=$ac_cv_path_LPRDelegate
28996if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028998$as_echo "$LPRDelegate" >&6; }
28999else
cristy8b350f62009-11-15 23:12:43 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029001$as_echo "no" >&6; }
29002fi
29003
29004
29005# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29006set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029009if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 $as_echo_n "(cached) " >&6
29011else
29012 case $LZWDecodeDelegate in
29013 [\\/]* | ?:[\\/]*)
29014 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29015 ;;
29016 *)
29017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29018for as_dir in $PATH
29019do
29020 IFS=$as_save_IFS
29021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29024 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029026 break 2
29027 fi
29028done
cristy8b350f62009-11-15 23:12:43 +000029029 done
cristy3ed852e2009-09-05 21:47:34 +000029030IFS=$as_save_IFS
29031
29032 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29033 ;;
29034esac
29035fi
29036LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29037if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029039$as_echo "$LZWDecodeDelegate" >&6; }
29040else
cristy8b350f62009-11-15 23:12:43 +000029041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029042$as_echo "no" >&6; }
29043fi
29044
29045
29046# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29047set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029049$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029050if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029051 $as_echo_n "(cached) " >&6
29052else
29053 case $LZWEncodeDelegate in
29054 [\\/]* | ?:[\\/]*)
29055 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29056 ;;
29057 *)
29058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29059for as_dir in $PATH
29060do
29061 IFS=$as_save_IFS
29062 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29065 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067 break 2
29068 fi
29069done
cristy8b350f62009-11-15 23:12:43 +000029070 done
cristy3ed852e2009-09-05 21:47:34 +000029071IFS=$as_save_IFS
29072
29073 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29074 ;;
29075esac
29076fi
29077LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29078if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029080$as_echo "$LZWEncodeDelegate" >&6; }
29081else
cristy8b350f62009-11-15 23:12:43 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029083$as_echo "no" >&6; }
29084fi
29085
29086
29087# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29088set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029090$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029091if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 $as_echo_n "(cached) " >&6
29093else
29094 case $LaunchDelegate in
29095 [\\/]* | ?:[\\/]*)
29096 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29097 ;;
29098 *)
29099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29100for as_dir in $PATH
29101do
29102 IFS=$as_save_IFS
29103 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029104 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29106 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029108 break 2
29109 fi
29110done
cristy8b350f62009-11-15 23:12:43 +000029111 done
cristy3ed852e2009-09-05 21:47:34 +000029112IFS=$as_save_IFS
29113
29114 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29115 ;;
29116esac
29117fi
29118LaunchDelegate=$ac_cv_path_LaunchDelegate
29119if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029121$as_echo "$LaunchDelegate" >&6; }
29122else
cristy8b350f62009-11-15 23:12:43 +000029123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029124$as_echo "no" >&6; }
29125fi
29126
29127
29128# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29129set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029131$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029132if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 $as_echo_n "(cached) " >&6
29134else
29135 case $MANDelegate in
29136 [\\/]* | ?:[\\/]*)
29137 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29138 ;;
29139 *)
29140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29141for as_dir in $PATH
29142do
29143 IFS=$as_save_IFS
29144 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29147 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029149 break 2
29150 fi
29151done
cristy8b350f62009-11-15 23:12:43 +000029152 done
cristy3ed852e2009-09-05 21:47:34 +000029153IFS=$as_save_IFS
29154
29155 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29156 ;;
29157esac
29158fi
29159MANDelegate=$ac_cv_path_MANDelegate
29160if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo "$MANDelegate" >&6; }
29163else
cristy8b350f62009-11-15 23:12:43 +000029164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029165$as_echo "no" >&6; }
29166fi
29167
29168
29169# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29170set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029172$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029173if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029174 $as_echo_n "(cached) " >&6
29175else
29176 case $MPEGDecodeDelegate in
29177 [\\/]* | ?:[\\/]*)
29178 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29179 ;;
29180 *)
29181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182for as_dir in $PATH
29183do
29184 IFS=$as_save_IFS
29185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190 break 2
29191 fi
29192done
cristy8b350f62009-11-15 23:12:43 +000029193 done
cristy3ed852e2009-09-05 21:47:34 +000029194IFS=$as_save_IFS
29195
29196 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29197 ;;
29198esac
29199fi
29200MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29201if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029203$as_echo "$MPEGDecodeDelegate" >&6; }
29204else
cristy8b350f62009-11-15 23:12:43 +000029205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029206$as_echo "no" >&6; }
29207fi
29208
29209
29210# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29211set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029213$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029214if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 $as_echo_n "(cached) " >&6
29216else
29217 case $MPEGEncodeDelegate in
29218 [\\/]* | ?:[\\/]*)
29219 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29220 ;;
29221 *)
29222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29223for as_dir in $PATH
29224do
29225 IFS=$as_save_IFS
29226 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029227 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29229 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029231 break 2
29232 fi
29233done
cristy8b350f62009-11-15 23:12:43 +000029234 done
cristy3ed852e2009-09-05 21:47:34 +000029235IFS=$as_save_IFS
29236
29237 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29238 ;;
29239esac
29240fi
29241MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29242if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029244$as_echo "$MPEGEncodeDelegate" >&6; }
29245else
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo "no" >&6; }
29248fi
29249
29250
29251# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29252set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029254$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029255if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029256 $as_echo_n "(cached) " >&6
29257else
29258 case $MVDelegate in
29259 [\\/]* | ?:[\\/]*)
29260 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29261 ;;
29262 *)
29263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29264for as_dir in $PATH
29265do
29266 IFS=$as_save_IFS
29267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29270 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272 break 2
29273 fi
29274done
cristy8b350f62009-11-15 23:12:43 +000029275 done
cristy3ed852e2009-09-05 21:47:34 +000029276IFS=$as_save_IFS
29277
29278 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29279 ;;
29280esac
29281fi
29282MVDelegate=$ac_cv_path_MVDelegate
29283if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029285$as_echo "$MVDelegate" >&6; }
29286else
cristy8b350f62009-11-15 23:12:43 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029288$as_echo "no" >&6; }
29289fi
29290
29291
29292# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29293set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029295$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029296if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029297 $as_echo_n "(cached) " >&6
29298else
29299 case $PCLDelegate in
29300 [\\/]* | ?:[\\/]*)
29301 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29302 ;;
29303 *)
29304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29305for as_dir in $PATH
29306do
29307 IFS=$as_save_IFS
29308 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029309 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29311 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029313 break 2
29314 fi
29315done
cristy8b350f62009-11-15 23:12:43 +000029316 done
cristy3ed852e2009-09-05 21:47:34 +000029317IFS=$as_save_IFS
29318
29319 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29320 ;;
29321esac
29322fi
29323PCLDelegate=$ac_cv_path_PCLDelegate
29324if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "$PCLDelegate" >&6; }
29327else
cristy8b350f62009-11-15 23:12:43 +000029328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029329$as_echo "no" >&6; }
29330fi
29331
29332
29333# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29334set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029337if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029338 $as_echo_n "(cached) " >&6
29339else
29340 case $PGPDecodeDelegate in
29341 [\\/]* | ?:[\\/]*)
29342 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29343 ;;
29344 *)
29345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29346for as_dir in $PATH
29347do
29348 IFS=$as_save_IFS
29349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29352 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029354 break 2
29355 fi
29356done
cristy8b350f62009-11-15 23:12:43 +000029357 done
cristy3ed852e2009-09-05 21:47:34 +000029358IFS=$as_save_IFS
29359
29360 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29361 ;;
29362esac
29363fi
29364PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29365if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029367$as_echo "$PGPDecodeDelegate" >&6; }
29368else
cristy8b350f62009-11-15 23:12:43 +000029369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo "no" >&6; }
29371fi
29372
29373
29374# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29375set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029378if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029379 $as_echo_n "(cached) " >&6
29380else
29381 case $POVDelegate in
29382 [\\/]* | ?:[\\/]*)
29383 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29384 ;;
29385 *)
29386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29387for as_dir in $PATH
29388do
29389 IFS=$as_save_IFS
29390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29393 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029395 break 2
29396 fi
29397done
cristy8b350f62009-11-15 23:12:43 +000029398 done
cristy3ed852e2009-09-05 21:47:34 +000029399IFS=$as_save_IFS
29400
29401 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29402 ;;
29403esac
29404fi
29405POVDelegate=$ac_cv_path_POVDelegate
29406if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029408$as_echo "$POVDelegate" >&6; }
29409else
cristy8b350f62009-11-15 23:12:43 +000029410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029411$as_echo "no" >&6; }
29412fi
29413
29414
29415for ac_prog in gsx gsc "$PSDelegateDefault"
29416do
29417 # Extract the first word of "$ac_prog", so it can be a program name with args.
29418set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029420$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029421if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 $as_echo_n "(cached) " >&6
29423else
29424 case $PSDelegate in
29425 [\\/]* | ?:[\\/]*)
29426 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29427 ;;
29428 *)
29429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29430for as_dir in $PATH
29431do
29432 IFS=$as_save_IFS
29433 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029434 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29436 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029438 break 2
29439 fi
29440done
cristy8b350f62009-11-15 23:12:43 +000029441 done
cristy3ed852e2009-09-05 21:47:34 +000029442IFS=$as_save_IFS
29443
29444 ;;
29445esac
29446fi
29447PSDelegate=$ac_cv_path_PSDelegate
29448if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029450$as_echo "$PSDelegate" >&6; }
29451else
cristy8b350f62009-11-15 23:12:43 +000029452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029453$as_echo "no" >&6; }
29454fi
29455
29456
29457 test -n "$PSDelegate" && break
29458done
29459test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29460
29461# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29462set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029464$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029465if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029466 $as_echo_n "(cached) " >&6
29467else
29468 case $RLEEncodeDelegate in
29469 [\\/]* | ?:[\\/]*)
29470 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29471 ;;
29472 *)
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474for as_dir in $PATH
29475do
29476 IFS=$as_save_IFS
29477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29480 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029482 break 2
29483 fi
29484done
cristy8b350f62009-11-15 23:12:43 +000029485 done
cristy3ed852e2009-09-05 21:47:34 +000029486IFS=$as_save_IFS
29487
29488 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29489 ;;
29490esac
29491fi
29492RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29493if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029495$as_echo "$RLEEncodeDelegate" >&6; }
29496else
cristy8b350f62009-11-15 23:12:43 +000029497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "no" >&6; }
29499fi
29500
29501
29502# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29503set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029505$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029506if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029507 $as_echo_n "(cached) " >&6
29508else
29509 case $RMDelegate in
29510 [\\/]* | ?:[\\/]*)
29511 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29512 ;;
29513 *)
29514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29515for as_dir in $PATH
29516do
29517 IFS=$as_save_IFS
29518 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029519 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29521 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029523 break 2
29524 fi
29525done
cristy8b350f62009-11-15 23:12:43 +000029526 done
cristy3ed852e2009-09-05 21:47:34 +000029527IFS=$as_save_IFS
29528
29529 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29530 ;;
29531esac
29532fi
29533RMDelegate=$ac_cv_path_RMDelegate
29534if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029536$as_echo "$RMDelegate" >&6; }
29537else
cristy8b350f62009-11-15 23:12:43 +000029538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo "no" >&6; }
29540fi
29541
29542
29543# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29544set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029546$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029547if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029548 $as_echo_n "(cached) " >&6
29549else
29550 case $SCANDecodeDelegate in
29551 [\\/]* | ?:[\\/]*)
29552 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29553 ;;
29554 *)
29555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29556for as_dir in $PATH
29557do
29558 IFS=$as_save_IFS
29559 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029560 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29562 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029564 break 2
29565 fi
29566done
cristy8b350f62009-11-15 23:12:43 +000029567 done
cristy3ed852e2009-09-05 21:47:34 +000029568IFS=$as_save_IFS
29569
29570 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29571 ;;
29572esac
29573fi
29574SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29575if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029577$as_echo "$SCANDecodeDelegate" >&6; }
29578else
cristy8b350f62009-11-15 23:12:43 +000029579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029580$as_echo "no" >&6; }
29581fi
29582
29583
29584# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29585set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029587$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029588if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029589 $as_echo_n "(cached) " >&6
29590else
29591 case $TXTDelegate in
29592 [\\/]* | ?:[\\/]*)
29593 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29594 ;;
29595 *)
29596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29597for as_dir in $PATH
29598do
29599 IFS=$as_save_IFS
29600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29603 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029605 break 2
29606 fi
29607done
cristy8b350f62009-11-15 23:12:43 +000029608 done
cristy3ed852e2009-09-05 21:47:34 +000029609IFS=$as_save_IFS
29610
29611 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29612 ;;
29613esac
29614fi
29615TXTDelegate=$ac_cv_path_TXTDelegate
29616if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029618$as_echo "$TXTDelegate" >&6; }
29619else
cristy8b350f62009-11-15 23:12:43 +000029620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029621$as_echo "no" >&6; }
29622fi
29623
29624
29625# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29626set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029628$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029629if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029630 $as_echo_n "(cached) " >&6
29631else
29632 case $WMFDecodeDelegate in
29633 [\\/]* | ?:[\\/]*)
29634 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29635 ;;
29636 *)
29637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29638for as_dir in $PATH
29639do
29640 IFS=$as_save_IFS
29641 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29644 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029646 break 2
29647 fi
29648done
cristy8b350f62009-11-15 23:12:43 +000029649 done
cristy3ed852e2009-09-05 21:47:34 +000029650IFS=$as_save_IFS
29651
29652 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29653 ;;
29654esac
29655fi
29656WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29657if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo "$WMFDecodeDelegate" >&6; }
29660else
cristy8b350f62009-11-15 23:12:43 +000029661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029662$as_echo "no" >&6; }
29663fi
29664
29665
29666# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29667set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029669$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029670if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029671 $as_echo_n "(cached) " >&6
29672else
29673 case $WWWDecodeDelegate in
29674 [\\/]* | ?:[\\/]*)
29675 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29676 ;;
29677 *)
29678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29679for as_dir in $PATH
29680do
29681 IFS=$as_save_IFS
29682 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029683 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29685 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029687 break 2
29688 fi
29689done
cristy8b350f62009-11-15 23:12:43 +000029690 done
cristy3ed852e2009-09-05 21:47:34 +000029691IFS=$as_save_IFS
29692
29693 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29694 ;;
29695esac
29696fi
29697WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29698if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029700$as_echo "$WWWDecodeDelegate" >&6; }
29701else
cristy8b350f62009-11-15 23:12:43 +000029702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029703$as_echo "no" >&6; }
29704fi
29705
29706
29707# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29708set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029710$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029711if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029712 $as_echo_n "(cached) " >&6
29713else
29714 case $XPSDelegate in
29715 [\\/]* | ?:[\\/]*)
29716 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29717 ;;
29718 *)
29719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29720for as_dir in $PATH
29721do
29722 IFS=$as_save_IFS
29723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29726 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029728 break 2
29729 fi
29730done
cristy8b350f62009-11-15 23:12:43 +000029731 done
cristy3ed852e2009-09-05 21:47:34 +000029732IFS=$as_save_IFS
29733
29734 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29735 ;;
29736esac
29737fi
29738XPSDelegate=$ac_cv_path_XPSDelegate
29739if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029741$as_echo "$XPSDelegate" >&6; }
29742else
cristy8b350f62009-11-15 23:12:43 +000029743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029744$as_echo "no" >&6; }
29745fi
29746
29747
29748# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29749set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029751$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029752if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029753 $as_echo_n "(cached) " >&6
29754else
29755 case $ZipDelegate in
29756 [\\/]* | ?:[\\/]*)
29757 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29758 ;;
29759 *)
29760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29761for as_dir in $PATH
29762do
29763 IFS=$as_save_IFS
29764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29767 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029769 break 2
29770 fi
29771done
cristy8b350f62009-11-15 23:12:43 +000029772 done
cristy3ed852e2009-09-05 21:47:34 +000029773IFS=$as_save_IFS
29774
29775 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29776 ;;
29777esac
29778fi
29779ZipDelegate=$ac_cv_path_ZipDelegate
29780if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029782$as_echo "$ZipDelegate" >&6; }
29783else
cristy8b350f62009-11-15 23:12:43 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029785$as_echo "no" >&6; }
29786fi
29787
29788
29789
29790# Prefer lpr to lp; lp needs options tacked on.
29791if test "$LPRDelegate" != no; then
29792 PrintDelegate="$LPRDelegate"
29793else
29794 PrintDelegate="$LPDelegate -c -s"
29795fi
29796
29797
29798# Installed ImageMagick utiltity paths
29799ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29800DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29801MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29802
29803# Set delegate booleans
29804have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29805have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29806have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29807have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29808have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29809have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29810have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29811have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29812have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29813have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29814have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29815
29816#
29817# Test for font directories
29818#
29819type_include_files=''
29820
29821# Windows
29822windows_font_dir=''
29823if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29824 windows_font_dir="${with_windows_font_dir}/"
29825fi
29826if test -n "$windows_font_dir"; then
29827 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29828 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29829 fi
29830 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29831 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29832 fi
29833 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29834 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29835 fi
29836fi
29837if test -n "$windows_font_dir"; then
29838 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29839fi
29840
29841
29842# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029844$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29845ghostscript_font_dir=''
29846if test "${with_gs_font_dir}" != 'default'; then
29847 ghostscript_font_dir="${with_gs_font_dir}/"
29848else
29849 if test "${native_win32_build}" = 'yes'; then
29850 # Native Windows Build
29851 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29852 if test -f "${font_dir}a010013l.pfb"; then
29853 ghostscript_font_dir="$font_dir"
29854 break 1
29855 fi
29856 done
29857 if test "${PSDelegate}" != 'gswin32c'; then
29858 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29859 fi
29860 else
29861 # Linux / Mac OS X / Unix Build
29862 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
29863 if test -f "${font_dir}a010013l.pfb"; then
29864 ghostscript_font_dir="${font_dir}"
29865 break 1
29866 fi
29867 done
29868 if test "${ghostscript_font_dir}x" = 'x'; then
29869 if test "$PSDelegate" != 'gs'; then
29870 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29871 fi
29872 fi
29873 fi
29874fi
29875if test "${ghostscript_font_dir}x" != 'x'; then
29876 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029878$as_echo "$ghostscript_font_dir" >&6; }
29879else
cristy8b350f62009-11-15 23:12:43 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881$as_echo "not found!" >&6; };
29882fi
29883
29884case "${build_os}" in
29885 mingw* )
29886 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29887 ;;
29888esac
29889
29890
29891
29892#
29893# Handle case where user doesn't want frozen paths
29894#
29895if test "$with_frozenpaths" != 'yes'; then
29896 # Re-set delegate definitions to default (no paths)
29897 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29898 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29899 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29900 BZIPDelegate="$BZIPDelegateDefault"
29901 BrowseDelegate="$BrowseDelegateDefault"
29902 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29903 CatDelegate="$CatDelegateDefault"
29904 ConvertDelegate="$ConvertDelegateDefault"
29905 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29906 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29907 EchoDelegate="$EchoDelegateDefault"
29908 EditorDelegate="$EditorDelegateDefault"
29909 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29910 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29911 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29912 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
29913 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
29914 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
29915 LPDelegate="$LPDelegateDefault"
29916 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
29917 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
29918 LaunchDelegate="$LaunchDelegateDefault"
29919 MANDelegate="$MANDelegateDefault"
29920 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
29921 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
29922 MVDelegate="$MVDelegateDefault"
29923 MogrifyDelegate="$MogrifyDelegateDefault"
29924 PCLDelegate="$PCLDelegateDefault"
29925 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
29926 POVDelegate="$POVDelegateDefault"
29927 PSDelegate="$PSDelegateDefault"
29928 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
29929 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
29930 RMDelegate="$RMDelegateDefault"
29931 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
29932 ShowImageDelegate="$ShowImageDelegateDefault"
29933 TXTDelegate="$TXTDelegateDefault"
29934 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
29935 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
29936 XPSDelegate="$XPSDelegateDefault"
29937 ZipDelegate="$ZipDelegateDefault"
29938fi
29939
29940# Delegate substitutions
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983#
29984# RPM support.
29985#
29986RPM=''
29987for ac_prog in gnutar gtar tar
29988do
29989 # Extract the first word of "$ac_prog", so it can be a program name with args.
29990set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029992$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029993if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029994 $as_echo_n "(cached) " >&6
29995else
29996 if test -n "$TAR"; then
29997 ac_cv_prog_TAR="$TAR" # Let the user override the test.
29998else
29999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30000for as_dir in $PATH
30001do
30002 IFS=$as_save_IFS
30003 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30006 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030008 break 2
30009 fi
30010done
cristy8b350f62009-11-15 23:12:43 +000030011 done
cristy3ed852e2009-09-05 21:47:34 +000030012IFS=$as_save_IFS
30013
30014fi
30015fi
30016TAR=$ac_cv_prog_TAR
30017if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030019$as_echo "$TAR" >&6; }
30020else
cristy8b350f62009-11-15 23:12:43 +000030021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030022$as_echo "no" >&6; }
30023fi
30024
30025
30026 test -n "$TAR" && break
30027done
30028
30029for ac_prog in perl
30030do
30031 # Extract the first word of "$ac_prog", so it can be a program name with args.
30032set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030035if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030036 $as_echo_n "(cached) " >&6
30037else
30038 if test -n "$PERL"; then
30039 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30040else
30041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042for as_dir in $PATH
30043do
30044 IFS=$as_save_IFS
30045 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030046 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030050 break 2
30051 fi
30052done
cristy8b350f62009-11-15 23:12:43 +000030053 done
cristy3ed852e2009-09-05 21:47:34 +000030054IFS=$as_save_IFS
30055
30056fi
30057fi
30058PERL=$ac_cv_prog_PERL
30059if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "$PERL" >&6; }
30062else
cristy8b350f62009-11-15 23:12:43 +000030063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo "no" >&6; }
30065fi
30066
30067
30068 test -n "$PERL" && break
30069done
30070
30071for ac_prog in rpmbuild rpm
30072do
30073 # Extract the first word of "$ac_prog", so it can be a program name with args.
30074set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030077if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030078 $as_echo_n "(cached) " >&6
30079else
30080 if test -n "$RPM"; then
30081 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30082else
30083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30084for as_dir in $PATH
30085do
30086 IFS=$as_save_IFS
30087 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030088 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30090 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030092 break 2
30093 fi
30094done
cristy8b350f62009-11-15 23:12:43 +000030095 done
cristy3ed852e2009-09-05 21:47:34 +000030096IFS=$as_save_IFS
30097
30098fi
30099fi
30100RPM=$ac_cv_prog_RPM
30101if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "$RPM" >&6; }
30104else
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo "no" >&6; }
30107fi
30108
30109
30110 test -n "$RPM" && break
30111done
30112
30113
30114ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30115
30116
30117AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30118
30119
30120AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30121
30122
30123AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30124
30125
30126 if test "x$RPM" != "x" ; then
30127 RPM_DELEGATE_TRUE=
30128 RPM_DELEGATE_FALSE='#'
30129else
30130 RPM_DELEGATE_TRUE='#'
30131 RPM_DELEGATE_FALSE=
30132fi
30133
30134
30135#
30136# 7ZIP support (http://p7zip.sourceforge.net/)
30137#
30138P7ZIP=''
30139for ac_prog in 7za
30140do
30141 # Extract the first word of "$ac_prog", so it can be a program name with args.
30142set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030144$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030145if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030146 $as_echo_n "(cached) " >&6
30147else
30148 if test -n "$P7ZIP"; then
30149 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30150else
30151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30152for as_dir in $PATH
30153do
30154 IFS=$as_save_IFS
30155 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030156 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30158 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160 break 2
30161 fi
30162done
cristy8b350f62009-11-15 23:12:43 +000030163 done
cristy3ed852e2009-09-05 21:47:34 +000030164IFS=$as_save_IFS
30165
30166fi
30167fi
30168P7ZIP=$ac_cv_prog_P7ZIP
30169if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030171$as_echo "$P7ZIP" >&6; }
30172else
cristy8b350f62009-11-15 23:12:43 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174$as_echo "no" >&6; }
30175fi
30176
30177
30178 test -n "$P7ZIP" && break
30179done
30180
30181
30182 if test "x$P7ZIP" != "x" ; then
30183 P7ZIP_DELEGATE_TRUE=
30184 P7ZIP_DELEGATE_FALSE='#'
30185else
30186 P7ZIP_DELEGATE_TRUE='#'
30187 P7ZIP_DELEGATE_FALSE=
30188fi
30189
30190
30191#
30192# ZIP support (http://www.info-zip.org/Zip.html)
30193#
30194ZIP=''
30195for ac_prog in zip
30196do
30197 # Extract the first word of "$ac_prog", so it can be a program name with args.
30198set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030201if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030202 $as_echo_n "(cached) " >&6
30203else
30204 if test -n "$ZIP"; then
30205 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30206else
30207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30208for as_dir in $PATH
30209do
30210 IFS=$as_save_IFS
30211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30214 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216 break 2
30217 fi
30218done
cristy8b350f62009-11-15 23:12:43 +000030219 done
cristy3ed852e2009-09-05 21:47:34 +000030220IFS=$as_save_IFS
30221
30222fi
30223fi
30224ZIP=$ac_cv_prog_ZIP
30225if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030227$as_echo "$ZIP" >&6; }
30228else
cristy8b350f62009-11-15 23:12:43 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030230$as_echo "no" >&6; }
30231fi
30232
30233
30234 test -n "$ZIP" && break
30235done
30236
30237
30238 if test "x$ZIP" != "x" ; then
30239 ZIP_DELEGATE_TRUE=
30240 ZIP_DELEGATE_FALSE='#'
30241else
30242 ZIP_DELEGATE_TRUE='#'
30243 ZIP_DELEGATE_FALSE=
30244fi
30245
30246
30247#
30248# GhostPCL related configuration.
30249#
30250PCLColorDevice=ppmraw
30251PCLCMYKDevice=bmpsep8
30252PCLMonoDevice=pbmraw
30253if test -z "$PCLVersion"; then
30254 PCLVersion='unknown'
30255fi
30256if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030258$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030262$as_echo "" >&6; }
30263 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030265$as_echo_n "checking for pcl color device... " >&6; }
30266 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30267 :
30268 else
30269 PCLColorDevice=ppmraw
30270 fi
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo "$PCLColorDevice" >&6; }
30273
30274 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo_n "checking for pcl CMYK device... " >&6; }
30277 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30278 :
30279 else
30280 PCLCMYKDevice=$PCLColorDevice
30281 fi
cristy8b350f62009-11-15 23:12:43 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030283$as_echo "$PCLCMYKDevice" >&6; }
30284
30285 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287$as_echo_n "checking for pcl mono device... " >&6; }
30288 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30289 :
30290 else
30291 PCLMonoDevice=$PCLColorDevice
30292 fi
cristy8b350f62009-11-15 23:12:43 +000030293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$PCLMonoDevice" >&6; }
30295fi
30296
30297
30298
30299
30300
30301
30302#
30303# GhostXPS related configuration.
30304#
30305XPSColorDevice=ppmraw
30306XPSCMYKDevice=bmpsep8
30307XPSMonoDevice=pbmraw
30308if test -z "$XPSVersion"; then
30309 XPSVersion='unknown'
30310fi
30311if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030313$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030315$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030317$as_echo "" >&6; }
30318 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030320$as_echo_n "checking for xps color device... " >&6; }
30321 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30322 :
30323 else
30324 XPSColorDevice=ppmraw
30325 fi
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo "$XPSColorDevice" >&6; }
30328
30329 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo_n "checking for xps CMYK device... " >&6; }
30332 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30333 :
30334 else
30335 XPSCMYKDevice=$XPSColorDevice
30336 fi
cristy8b350f62009-11-15 23:12:43 +000030337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030338$as_echo "$XPSCMYKDevice" >&6; }
30339
30340 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030342$as_echo_n "checking for xps mono device... " >&6; }
30343 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30344 :
30345 else
30346 XPSMonoDevice=$XPSColorDevice
30347 fi
cristy8b350f62009-11-15 23:12:43 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030349$as_echo "$XPSMonoDevice" >&6; }
30350fi
30351
30352
30353
30354
30355
30356
30357#
30358# Ghostscript related configuration.
30359#
30360if test "$have_png" = 'yes'; then
30361 GSAlphaDevice=pngalpha
30362else
30363 GSAlphaDevice=pnmraw
30364fi
30365GSColorDevice=pnmraw
30366GSCMYKDevice=pam
30367GSMonoDevice=pbmraw
30368GSPDFDevice=pdfwrite
30369GSPSDevice=pswrite
30370GSEPSDevice=epswrite
30371GSVersion='unknown'
30372if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030376$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030378$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030380$as_echo_n "checking for Ghostscript version... " >&6; }
30381 if GSVersion=`$PSDelegate --version`; then
30382 :
30383 else
30384 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30385 fi
cristy8b350f62009-11-15 23:12:43 +000030386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030387$as_echo "$GSVersion" >&6; }
30388
30389 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo_n "checking for gs alpha device... " >&6; }
30392 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30393 :
30394 else
30395 GSAlphaDevice=pnmraw
30396 fi
cristy8b350f62009-11-15 23:12:43 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030398$as_echo "$GSAlphaDevice" >&6; }
30399
30400 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030402$as_echo_n "checking for gs color device... " >&6; }
30403 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30404 :
30405 else
30406 GSColorDevice=pnmraw
30407 fi
cristy8b350f62009-11-15 23:12:43 +000030408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030409$as_echo "$GSColorDevice" >&6; }
30410
30411 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo_n "checking for gs CMYK device... " >&6; }
30414 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30415 :
30416 else
30417 GSCMYKDevice=bmpsep8
30418 fi
cristy8b350f62009-11-15 23:12:43 +000030419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030420$as_echo "$GSCMYKDevice" >&6; }
30421
30422 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030424$as_echo_n "checking for gs mono device... " >&6; }
30425 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30426 :
30427 else
30428 GSMonoDevice=$GSColorDevice
30429 fi
cristy8b350f62009-11-15 23:12:43 +000030430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030431$as_echo "$GSMonoDevice" >&6; }
30432
30433 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030435$as_echo_n "checking for gs PDF writing device... " >&6; }
30436 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30437 :
30438 else
30439 GSPDFDevice=nodevice
30440 fi
cristy8b350f62009-11-15 23:12:43 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo "$GSPDFDevice" >&6; }
30443
30444 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030446$as_echo_n "checking for gs PS writing device... " >&6; }
30447 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30448 :
30449 else
30450 GSPSDevice=nodevice
30451 fi
cristy8b350f62009-11-15 23:12:43 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030453$as_echo "$GSPSDevice" >&6; }
30454
30455 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030457$as_echo_n "checking for gs EPS writing device... " >&6; }
30458 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30459 :
30460 else
30461 GSEPSDevice=nodevice
30462 fi
cristy8b350f62009-11-15 23:12:43 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030464$as_echo "$GSEPSDevice" >&6; }
30465fi
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476#
30477# PerlMagick-related configuration
30478#
30479
30480# Look for PERL if PerlMagick requested
30481# If name/path of desired PERL interpreter is specified, look for that one first
30482have_perl='no'
30483if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030485$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030487$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030489$as_echo "" >&6; }
30490 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030492$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030493if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030494 $as_echo_n "(cached) " >&6
30495else
30496 ac_cv_path_PERL="$with_perl"
30497fi
cristy8b350f62009-11-15 23:12:43 +000030498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo "$ac_cv_path_PERL" >&6; };
30500 PERL=$ac_cv_path_PERL
30501 have_perl="$ac_cv_path_PERL"
30502 else
30503 for ac_prog in perl perl5
30504do
30505 # Extract the first word of "$ac_prog", so it can be a program name with args.
30506set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030509if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030510 $as_echo_n "(cached) " >&6
30511else
30512 case $PERL in
30513 [\\/]* | ?:[\\/]*)
30514 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30515 ;;
30516 *)
30517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30518for as_dir in $PATH
30519do
30520 IFS=$as_save_IFS
30521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30524 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030526 break 2
30527 fi
30528done
cristy8b350f62009-11-15 23:12:43 +000030529 done
cristy3ed852e2009-09-05 21:47:34 +000030530IFS=$as_save_IFS
30531
30532 ;;
30533esac
30534fi
30535PERL=$ac_cv_path_PERL
30536if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538$as_echo "$PERL" >&6; }
30539else
cristy8b350f62009-11-15 23:12:43 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030541$as_echo "no" >&6; }
30542fi
30543
30544
30545 test -n "$PERL" && break
30546done
30547 if test "$ac_cv_path_PERL"; then
30548 have_perl="$ac_cv_path_PERL"
30549 fi
30550 fi
30551fi
30552
cristy949301e2010-01-06 01:38:40 +000030553if test "$with_perl" != 'yes' ; then
30554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
30555fi
30556
30557PERL_SUPPORTS_DESTDIR='no'
30558
cristy3ed852e2009-09-05 21:47:34 +000030559with_perl_static='no'
30560with_perl_dynamic='no'
30561if test "$have_perl" != 'no'; then
30562 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30563 with_perl_static='yes'
30564 fi
30565 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30566 with_perl_dynamic='yes'
30567 fi
30568 # Is PERL's MakeMaker new enough to support DESTDIR?
30569 # Make sure we have perl
30570if test -z "$PERL"; then
30571# Extract the first word of "perl", so it can be a program name with args.
30572set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030574$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030575if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030576 $as_echo_n "(cached) " >&6
30577else
30578 if test -n "$PERL"; then
30579 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30580else
30581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30582for as_dir in $PATH
30583do
30584 IFS=$as_save_IFS
30585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30588 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030590 break 2
30591 fi
30592done
cristy8b350f62009-11-15 23:12:43 +000030593 done
cristy3ed852e2009-09-05 21:47:34 +000030594IFS=$as_save_IFS
30595
30596fi
30597fi
30598PERL=$ac_cv_prog_PERL
30599if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo "$PERL" >&6; }
30602else
cristy8b350f62009-11-15 23:12:43 +000030603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030604$as_echo "no" >&6; }
30605fi
30606
30607
30608fi
30609
30610# Check if version of Perl is sufficient
30611ac_perl_version="5.8.1"
30612
30613if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030615$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30616 # NB: It would be nice to log the error if there is one, but we cannot rely
30617 # on autoconf internals
30618 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30619 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030621$as_echo "no" >&6; };
30622 PERL_SUPPORTS_DESTDIR='no'
30623 else
cristy8b350f62009-11-15 23:12:43 +000030624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030625$as_echo "ok" >&6; };
30626 PERL_SUPPORTS_DESTDIR='yes'
30627 fi
30628else
cristy8b350f62009-11-15 23:12:43 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030630$as_echo "$as_me: WARNING: could not find perl" >&2;}
30631fi
30632
30633fi
30634 if test "$have_perl" != 'no'; then
30635 WITH_PERL_TRUE=
30636 WITH_PERL_FALSE='#'
30637else
30638 WITH_PERL_TRUE='#'
30639 WITH_PERL_FALSE=
30640fi
30641
30642 if test $with_perl_static = 'yes'; then
30643 WITH_PERL_STATIC_TRUE=
30644 WITH_PERL_STATIC_FALSE='#'
30645else
30646 WITH_PERL_STATIC_TRUE='#'
30647 WITH_PERL_STATIC_FALSE=
30648fi
30649
30650 if test $with_perl_dynamic = 'yes'; then
30651 WITH_PERL_DYNAMIC_TRUE=
30652 WITH_PERL_DYNAMIC_FALSE='#'
30653else
30654 WITH_PERL_DYNAMIC_TRUE='#'
30655 WITH_PERL_DYNAMIC_FALSE=
30656fi
30657
30658
30659
30660# Determine path to pick up MagickCore library from for use with building PerlMagick
30661MAGICKCORE_PATH="${LIB_DIR}"
30662if test $with_perl_static = 'yes'; then
30663 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30664 libtool_objdir=$objdir
30665
30666 # Linker search path to library, followed by -lMagickCore
30667 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30668fi
30669
30670
30671# Create a simple string containing format names for all delegate libraries
30672DELEGATES=''
30673if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30674if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30675if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30676if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30677if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30678if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30679if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30680if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30681if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30682if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30683if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30684if test "$have_jpeg" = 'yes'; then
30685 DELEGATES="$DELEGATES jpeg";
30686 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30687fi
30688if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30689if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30690if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30691if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30692if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30693if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30694if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30695if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30696if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30697if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30698if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30699if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30700
30701
30702
30703#
30704# Handle special compiler flags
30705#
30706
30707# Add '-p' if prof source profiling support enabled
30708if test "$enable_prof" = 'yes'; then
30709 CFLAGS="-p $CFLAGS"
30710 CXXFLAGS="-p $CXXFLAGS"
30711 LDFLAGS="-p $LDFLAGS"
30712fi
30713
30714# Add '-pg' if gprof source profiling support enabled
30715if test "$enable_gprof" = 'yes'; then
30716 CFLAGS="-pg $CFLAGS"
30717 CXXFLAGS="-pg $CXXFLAGS"
30718 LDFLAGS="-pg $LDFLAGS"
30719fi
30720
30721# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30722# This is a gcc-specific feature
30723if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030725$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030726if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030727 $as_echo_n "(cached) " >&6
30728else
30729 ac_check_lib_save_LIBS=$LIBS
30730LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030732/* end confdefs.h. */
30733
30734/* Override any GCC internal prototype to avoid an error.
30735 Use char because int might match the return type of a GCC
30736 builtin and then its argument prototype would still apply. */
30737#ifdef __cplusplus
30738extern "C"
30739#endif
30740char _gcov_init ();
30741int
30742main ()
30743{
30744return _gcov_init ();
30745 ;
30746 return 0;
30747}
30748_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030749if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030750 ac_cv_lib_gcov__gcov_init=yes
30751else
cristy8b350f62009-11-15 23:12:43 +000030752 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030753fi
cristy8b350f62009-11-15 23:12:43 +000030754rm -f core conftest.err conftest.$ac_objext \
30755 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030756LIBS=$ac_check_lib_save_LIBS
30757fi
cristy8b350f62009-11-15 23:12:43 +000030758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030760if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030761 cat >>confdefs.h <<_ACEOF
30762#define HAVE_LIBGCOV 1
30763_ACEOF
30764
30765 LIBS="-lgcov $LIBS"
30766
30767fi
30768
cristy8b350f62009-11-15 23:12:43 +000030769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030770$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030771if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030772 $as_echo_n "(cached) " >&6
30773else
30774 ac_check_lib_save_LIBS=$LIBS
30775LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030777/* end confdefs.h. */
30778
30779/* Override any GCC internal prototype to avoid an error.
30780 Use char because int might match the return type of a GCC
30781 builtin and then its argument prototype would still apply. */
30782#ifdef __cplusplus
30783extern "C"
30784#endif
30785char __gcov_init ();
30786int
30787main ()
30788{
30789return __gcov_init ();
30790 ;
30791 return 0;
30792}
30793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030794if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030795 ac_cv_lib_gcov___gcov_init=yes
30796else
cristy8b350f62009-11-15 23:12:43 +000030797 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030798fi
cristy8b350f62009-11-15 23:12:43 +000030799rm -f core conftest.err conftest.$ac_objext \
30800 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030801LIBS=$ac_check_lib_save_LIBS
30802fi
cristy8b350f62009-11-15 23:12:43 +000030803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030804$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030805if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030806 cat >>confdefs.h <<_ACEOF
30807#define HAVE_LIBGCOV 1
30808_ACEOF
30809
30810 LIBS="-lgcov $LIBS"
30811
30812fi
30813
30814 case "$target_os" in
30815 darwin*)
30816 OSX_GCOV_LDFLAG="-Wl,-single_module"
30817 ;;
30818 *)
30819 OSX_GCOV_LDFLAG=""
30820 ;;
30821 esac
30822
30823 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30824 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30825 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30826fi
30827
30828#
30829# Build library dependency list for libMagickCore
30830#
30831
30832MAGICK_LIBLTDL='' # Libltdl for build
30833MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30834MAGICK_LTDLDEPS='' # extra libltdl dependencies
30835if test "$with_ltdl" != 'no'
30836then
30837 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30838 MAGICK_API_LIBLTDL='-lltdl'
30839 fi
30840 MAGICK_LIBLTDL=${LIBLTDL}
30841 MAGICK_LTDLDEPS=${LTDLDEPS}
30842fi
30843
30844
30845
30846if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030847 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 +000030848else
cristy2e8b51d2009-10-17 18:26:15 +000030849 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 +000030850fi
30851
30852
30853#
30854# Remove extraneous spaces from output variables (asthetic)
30855#
30856X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30857X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30858X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30859X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30860
30861CC=`echo $CC | sed -e 's/ */ /g'`
30862CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30863CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30864CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30865DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30866DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30867LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30868TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30869MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30870#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30871
30872# Pass only user-provided LIBS as "global" libraries
30873LIBS=$USER_LIBS
30874
30875#AC_SUBST(CPPFLAGS)
30876
30877#AC_SUBST(LDFLAGS)
30878#AC_SUBST(X_PRE_LIBS)
30879#AC_SUBST(X_LIBS)
30880#AC_SUBST(X_EXTRA_LIBS)
30881
30882MAGICK_CFLAGS=$CFLAGS
30883MAGICK_CXXFLAGS="$CXXFLAGS"
30884MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30885MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30886MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30887MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30888
30889
30890
30891
30892
30893
30894
30895
30896# Set configured scripts to executable.
30897ac_config_commands="$ac_config_commands default"
30898
30899ac_config_commands="$ac_config_commands MagickCore-config.in"
30900
30901ac_config_commands="$ac_config_commands Magick-config.in"
30902
30903ac_config_commands="$ac_config_commands MagickWand-config.in"
30904
30905ac_config_commands="$ac_config_commands Wand-config.in"
30906
30907ac_config_commands="$ac_config_commands Magick++-config.in"
30908
30909ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30910
30911
cristy8b350f62009-11-15 23:12:43 +000030912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030913$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030915$as_echo "Update ImageMagick configuration" >&6; }
30916cat >confcache <<\_ACEOF
30917# This file is a shell script that caches the results of configure
30918# tests run on this system so they can be shared between configure
30919# scripts and configure runs, see configure's option --config-cache.
30920# It is not useful on other systems. If it contains results you don't
30921# want to keep, you may remove or edit it.
30922#
30923# config.status only pays attention to the cache file if you give it
30924# the --recheck option to rerun configure.
30925#
30926# `ac_cv_env_foo' variables (set or unset) will be overridden when
30927# loading this file, other *unset* `ac_cv_foo' will be assigned the
30928# following values.
30929
30930_ACEOF
30931
30932# The following way of writing the cache mishandles newlines in values,
30933# but we know of no workaround that is simple, portable, and efficient.
30934# So, we kill variables containing newlines.
30935# Ultrix sh set writes to stderr and can't be redirected directly,
30936# and sets the high bit in the cache file unless we assign to the vars.
30937(
30938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30939 eval ac_val=\$$ac_var
30940 case $ac_val in #(
30941 *${as_nl}*)
30942 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000030943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000030944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30945 esac
30946 case $ac_var in #(
30947 _ | IFS | as_nl) ;; #(
30948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000030949 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000030950 esac ;;
30951 esac
30952 done
30953
30954 (set) 2>&1 |
30955 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30956 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000030957 # `set' does not quote correctly, so add quotes: double-quote
30958 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000030959 sed -n \
30960 "s/'/'\\\\''/g;
30961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30962 ;; #(
30963 *)
30964 # `set' quotes correctly as required by POSIX, so do not add quotes.
30965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30966 ;;
30967 esac |
30968 sort
30969) |
30970 sed '
30971 /^ac_cv_env_/b end
30972 t clear
30973 :clear
30974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30975 t end
30976 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30977 :end' >>confcache
30978if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30979 if test -w "$cache_file"; then
30980 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000030981 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030982$as_echo "$as_me: updating cache $cache_file" >&6;}
30983 cat confcache >$cache_file
30984 else
cristy8b350f62009-11-15 23:12:43 +000030985 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030986$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30987 fi
30988fi
30989rm -f confcache
30990
30991test "x$prefix" = xNONE && prefix=$ac_default_prefix
30992# Let make expand exec_prefix.
30993test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30994
30995DEFS=-DHAVE_CONFIG_H
30996
30997ac_libobjs=
30998ac_ltlibobjs=
30999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31000 # 1. Remove the extension, and $U if already installed.
31001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31002 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31004 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031005 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31006 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031007done
31008LIBOBJS=$ac_libobjs
31009
31010LTLIBOBJS=$ac_ltlibobjs
31011
31012
31013 if test -n "$EXEEXT"; then
31014 am__EXEEXT_TRUE=
31015 am__EXEEXT_FALSE='#'
31016else
31017 am__EXEEXT_TRUE='#'
31018 am__EXEEXT_FALSE=
31019fi
31020
31021if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031022 as_fn_error "conditional \"AMDEP\" was never defined.
31023Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031024fi
31025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031026 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31027Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031028fi
31029if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031030 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31031Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031032fi
31033if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031034 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31035Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031036fi
31037if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031038 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31039Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031040fi
31041if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031042 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31043Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031044fi
31045if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031046 as_fn_error "conditional \"USING_CL\" was never defined.
31047Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031048fi
cristy18304f92009-11-22 15:48:26 +000031049if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31050 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31051Usually this means the macro was only invoked conditionally." "$LINENO" 5
31052fi
cristy3ed852e2009-09-05 21:47:34 +000031053if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031054 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31055Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031056fi
31057if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031058 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31059Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031060fi
31061LT_CONFIG_H=config/config.h
31062
31063 _ltdl_libobjs=
31064 _ltdl_ltlibobjs=
31065 if test -n "$_LT_LIBOBJS"; then
31066 # Remove the extension.
31067 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31068 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31069 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31070 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31071 done
31072 fi
31073 ltdl_LIBOBJS=$_ltdl_libobjs
31074
31075 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31076
31077
cristyfa112112010-01-04 17:48:07 +000031078if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
31079 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
31080Usually this means the macro was only invoked conditionally." "$LINENO" 5
31081fi
cristy3ed852e2009-09-05 21:47:34 +000031082if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031083 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31084Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031085fi
31086if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031087 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31088Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031089fi
31090if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031091 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31092Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031093fi
31094
31095if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031096 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31097Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031098fi
31099if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031100 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31101Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031102fi
31103if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031104 as_fn_error "conditional \"HasUMEM\" was never defined.
31105Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031106fi
31107if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031108 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31109Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031110fi
31111if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031112 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31113Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031114fi
31115if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031116 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31117Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031118fi
31119if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031120 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31121Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031122fi
31123if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031124 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31125Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031126fi
31127if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031128 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31129Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031130fi
31131if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031132 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31133Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031134fi
31135if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031136 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31137Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031138fi
31139if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031140 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31141Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031142fi
31143if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031144 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31145Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031146fi
31147if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031148 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31149Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031150fi
31151if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031152 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31153Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031154fi
31155if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031156 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31157Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031158fi
31159if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031160 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31161Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031162fi
31163if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031164 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31165Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031166fi
31167if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031168 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31169Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031170fi
31171if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031172 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31173Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031174fi
31175if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031176 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31177Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031178fi
31179if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031180 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31181Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031182fi
31183if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031184 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31185Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031186fi
31187if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031188 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31189Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031190fi
31191if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031192 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31193Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031194fi
31195if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031196 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31197Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031198fi
31199if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031200 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31201Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031202fi
31203if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031204 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31205Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031206fi
31207if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031208 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31209Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031210fi
31211if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031212 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31213Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031214fi
31215if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031216 as_fn_error "conditional \"WITH_PERL\" was never defined.
31217Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031218fi
31219if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031220 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31221Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031222fi
31223if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031224 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31225Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031226fi
31227
31228: ${CONFIG_STATUS=./config.status}
31229ac_write_fail=0
31230ac_clean_files_save=$ac_clean_files
31231ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031232{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031233$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031234as_write_fail=0
31235cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031236#! $SHELL
31237# Generated by $as_me.
31238# Run this file to recreate the current configuration.
31239# Compiler output produced by configure, useful for debugging
31240# configure, is in config.log if it exists.
31241
31242debug=false
31243ac_cs_recheck=false
31244ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031245
cristy8b350f62009-11-15 23:12:43 +000031246SHELL=\${CONFIG_SHELL-$SHELL}
31247export SHELL
31248_ASEOF
31249cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31250## -------------------- ##
31251## M4sh Initialization. ##
31252## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031253
31254# Be more Bourne compatible
31255DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031256if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031257 emulate sh
31258 NULLCMD=:
31259 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31260 # is contrary to our usage. Disable this feature.
31261 alias -g '${1+"$@"}'='"$@"'
31262 setopt NO_GLOB_SUBST
31263else
cristy8b350f62009-11-15 23:12:43 +000031264 case `(set -o) 2>/dev/null` in #(
31265 *posix*) :
31266 set -o posix ;; #(
31267 *) :
31268 ;;
cristy3ed852e2009-09-05 21:47:34 +000031269esac
cristy3ed852e2009-09-05 21:47:34 +000031270fi
31271
31272
cristy3ed852e2009-09-05 21:47:34 +000031273as_nl='
31274'
31275export as_nl
31276# Printing a long string crashes Solaris 7 /usr/bin/printf.
31277as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31279as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031280# Prefer a ksh shell builtin over an external printf program on Solaris,
31281# but without wasting forks for bash or zsh.
31282if test -z "$BASH_VERSION$ZSH_VERSION" \
31283 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31284 as_echo='print -r --'
31285 as_echo_n='print -rn --'
31286elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031287 as_echo='printf %s\n'
31288 as_echo_n='printf %s'
31289else
31290 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31291 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31292 as_echo_n='/usr/ucb/echo -n'
31293 else
31294 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31295 as_echo_n_body='eval
31296 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031297 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031298 *"$as_nl"*)
31299 expr "X$arg" : "X\\(.*\\)$as_nl";
31300 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31301 esac;
31302 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31303 '
31304 export as_echo_n_body
31305 as_echo_n='sh -c $as_echo_n_body as_echo'
31306 fi
31307 export as_echo_body
31308 as_echo='sh -c $as_echo_body as_echo'
31309fi
31310
31311# The user is always right.
31312if test "${PATH_SEPARATOR+set}" != set; then
31313 PATH_SEPARATOR=:
31314 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31315 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31316 PATH_SEPARATOR=';'
31317 }
31318fi
31319
cristy3ed852e2009-09-05 21:47:34 +000031320
31321# IFS
31322# We need space, tab and new line, in precisely that order. Quoting is
31323# there to prevent editors from complaining about space-tab.
31324# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31325# splitting by setting IFS to empty value.)
31326IFS=" "" $as_nl"
31327
31328# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031329case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031330 *[\\/]* ) as_myself=$0 ;;
31331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31332for as_dir in $PATH
31333do
31334 IFS=$as_save_IFS
31335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31337 done
cristy3ed852e2009-09-05 21:47:34 +000031338IFS=$as_save_IFS
31339
31340 ;;
31341esac
31342# We did not find ourselves, most probably we were run as `sh COMMAND'
31343# in which case we are not to be found in the path.
31344if test "x$as_myself" = x; then
31345 as_myself=$0
31346fi
31347if test ! -f "$as_myself"; then
31348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031349 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031350fi
31351
cristy8b350f62009-11-15 23:12:43 +000031352# Unset variables that we do not need and which cause bugs (e.g. in
31353# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31354# suppresses any "Segmentation fault" message there. '((' could
31355# trigger a bug in pdksh 5.2.14.
31356for as_var in BASH_ENV ENV MAIL MAILPATH
31357do eval test x\${$as_var+set} = xset \
31358 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031359done
31360PS1='$ '
31361PS2='> '
31362PS4='+ '
31363
31364# NLS nuisances.
31365LC_ALL=C
31366export LC_ALL
31367LANGUAGE=C
31368export LANGUAGE
31369
cristy8b350f62009-11-15 23:12:43 +000031370# CDPATH.
31371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31372
31373
31374# as_fn_error ERROR [LINENO LOG_FD]
31375# ---------------------------------
31376# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31377# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31378# script with status $?, using 1 if that was 0.
31379as_fn_error ()
31380{
31381 as_status=$?; test $as_status -eq 0 && as_status=1
31382 if test "$3"; then
31383 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31385 fi
31386 $as_echo "$as_me: error: $1" >&2
31387 as_fn_exit $as_status
31388} # as_fn_error
31389
31390
31391# as_fn_set_status STATUS
31392# -----------------------
31393# Set $? to STATUS, without forking.
31394as_fn_set_status ()
31395{
31396 return $1
31397} # as_fn_set_status
31398
31399# as_fn_exit STATUS
31400# -----------------
31401# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31402as_fn_exit ()
31403{
31404 set +e
31405 as_fn_set_status $1
31406 exit $1
31407} # as_fn_exit
31408
31409# as_fn_unset VAR
31410# ---------------
31411# Portably unset VAR.
31412as_fn_unset ()
31413{
31414 { eval $1=; unset $1;}
31415}
31416as_unset=as_fn_unset
31417# as_fn_append VAR VALUE
31418# ----------------------
31419# Append the text in VALUE to the end of the definition contained in VAR. Take
31420# advantage of any shell optimizations that allow amortized linear growth over
31421# repeated appends, instead of the typical quadratic growth present in naive
31422# implementations.
31423if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31424 eval 'as_fn_append ()
31425 {
31426 eval $1+=\$2
31427 }'
31428else
31429 as_fn_append ()
31430 {
31431 eval $1=\$$1\$2
31432 }
31433fi # as_fn_append
31434
31435# as_fn_arith ARG...
31436# ------------------
31437# Perform arithmetic evaluation on the ARGs, and store the result in the
31438# global $as_val. Take advantage of shells that can avoid forks. The arguments
31439# must be portable across $(()) and expr.
31440if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31441 eval 'as_fn_arith ()
31442 {
31443 as_val=$(( $* ))
31444 }'
31445else
31446 as_fn_arith ()
31447 {
31448 as_val=`expr "$@" || test $? -eq 1`
31449 }
31450fi # as_fn_arith
31451
31452
cristy3ed852e2009-09-05 21:47:34 +000031453if expr a : '\(a\)' >/dev/null 2>&1 &&
31454 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31455 as_expr=expr
31456else
31457 as_expr=false
31458fi
31459
31460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31461 as_basename=basename
31462else
31463 as_basename=false
31464fi
31465
cristy8b350f62009-11-15 23:12:43 +000031466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31467 as_dirname=dirname
31468else
31469 as_dirname=false
31470fi
cristy3ed852e2009-09-05 21:47:34 +000031471
cristy3ed852e2009-09-05 21:47:34 +000031472as_me=`$as_basename -- "$0" ||
31473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31474 X"$0" : 'X\(//\)$' \| \
31475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31476$as_echo X/"$0" |
31477 sed '/^.*\/\([^/][^/]*\)\/*$/{
31478 s//\1/
31479 q
31480 }
31481 /^X\/\(\/\/\)$/{
31482 s//\1/
31483 q
31484 }
31485 /^X\/\(\/\).*/{
31486 s//\1/
31487 q
31488 }
31489 s/.*/./; q'`
31490
cristy8b350f62009-11-15 23:12:43 +000031491# Avoid depending upon Character Ranges.
31492as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31494as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31495as_cr_digits='0123456789'
31496as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031497
31498ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031499case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031500-n*)
cristy8b350f62009-11-15 23:12:43 +000031501 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031503 xy) ECHO_C='\c';;
31504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31505 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031506 esac;;
31507*)
31508 ECHO_N='-n';;
31509esac
cristy3ed852e2009-09-05 21:47:34 +000031510
31511rm -f conf$$ conf$$.exe conf$$.file
31512if test -d conf$$.dir; then
31513 rm -f conf$$.dir/conf$$.file
31514else
31515 rm -f conf$$.dir
31516 mkdir conf$$.dir 2>/dev/null
31517fi
31518if (echo >conf$$.file) 2>/dev/null; then
31519 if ln -s conf$$.file conf$$ 2>/dev/null; then
31520 as_ln_s='ln -s'
31521 # ... but there are two gotchas:
31522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31524 # In both cases, we have to default to `cp -p'.
31525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31526 as_ln_s='cp -p'
31527 elif ln conf$$.file conf$$ 2>/dev/null; then
31528 as_ln_s=ln
31529 else
31530 as_ln_s='cp -p'
31531 fi
31532else
31533 as_ln_s='cp -p'
31534fi
31535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31536rmdir conf$$.dir 2>/dev/null
31537
cristy8b350f62009-11-15 23:12:43 +000031538
31539# as_fn_mkdir_p
31540# -------------
31541# Create "$as_dir" as a directory, including parents if necessary.
31542as_fn_mkdir_p ()
31543{
31544
31545 case $as_dir in #(
31546 -*) as_dir=./$as_dir;;
31547 esac
31548 test -d "$as_dir" || eval $as_mkdir_p || {
31549 as_dirs=
31550 while :; do
31551 case $as_dir in #(
31552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31553 *) as_qdir=$as_dir;;
31554 esac
31555 as_dirs="'$as_qdir' $as_dirs"
31556 as_dir=`$as_dirname -- "$as_dir" ||
31557$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31558 X"$as_dir" : 'X\(//\)[^/]' \| \
31559 X"$as_dir" : 'X\(//\)$' \| \
31560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31561$as_echo X"$as_dir" |
31562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31563 s//\1/
31564 q
31565 }
31566 /^X\(\/\/\)[^/].*/{
31567 s//\1/
31568 q
31569 }
31570 /^X\(\/\/\)$/{
31571 s//\1/
31572 q
31573 }
31574 /^X\(\/\).*/{
31575 s//\1/
31576 q
31577 }
31578 s/.*/./; q'`
31579 test -d "$as_dir" && break
31580 done
31581 test -z "$as_dirs" || eval "mkdir $as_dirs"
31582 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31583
31584
31585} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031586if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031587 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031588else
31589 test -d ./-p && rmdir ./-p
31590 as_mkdir_p=false
31591fi
31592
31593if test -x / >/dev/null 2>&1; then
31594 as_test_x='test -x'
31595else
31596 if ls -dL / >/dev/null 2>&1; then
31597 as_ls_L_option=L
31598 else
31599 as_ls_L_option=
31600 fi
31601 as_test_x='
31602 eval sh -c '\''
31603 if test -d "$1"; then
31604 test -d "$1/.";
31605 else
cristy8b350f62009-11-15 23:12:43 +000031606 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031607 -*)set "./$1";;
31608 esac;
cristy8b350f62009-11-15 23:12:43 +000031609 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031610 ???[sx]*):;;*)false;;esac;fi
31611 '\'' sh
31612 '
31613fi
31614as_executable_p=$as_test_x
31615
31616# Sed expression to map a string onto a valid CPP name.
31617as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31618
31619# Sed expression to map a string onto a valid variable name.
31620as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31621
31622
31623exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031624## ----------------------------------- ##
31625## Main body of $CONFIG_STATUS script. ##
31626## ----------------------------------- ##
31627_ASEOF
31628test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031629
cristy8b350f62009-11-15 23:12:43 +000031630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31631# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031632# report actual input values of CONFIG_FILES etc. instead of their
31633# values after options handling.
31634ac_log="
cristydc0f0892009-12-29 02:21:55 +000031635This file was extended by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +000031636generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031637
31638 CONFIG_FILES = $CONFIG_FILES
31639 CONFIG_HEADERS = $CONFIG_HEADERS
31640 CONFIG_LINKS = $CONFIG_LINKS
31641 CONFIG_COMMANDS = $CONFIG_COMMANDS
31642 $ $0 $@
31643
31644on `(hostname || uname -n) 2>/dev/null | sed 1q`
31645"
31646
31647_ACEOF
31648
31649case $ac_config_files in *"
31650"*) set x $ac_config_files; shift; ac_config_files=$*;;
31651esac
31652
31653case $ac_config_headers in *"
31654"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31655esac
31656
31657
31658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31659# Files that config.status was made for.
31660config_files="$ac_config_files"
31661config_headers="$ac_config_headers"
31662config_commands="$ac_config_commands"
31663
31664_ACEOF
31665
31666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31667ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031668\`$as_me' instantiates files and other configuration actions
31669from templates according to the current configuration. Unless the files
31670and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031671
cristy8b350f62009-11-15 23:12:43 +000031672Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031673
31674 -h, --help print this help, then exit
31675 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031676 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031677 -q, --quiet, --silent
31678 do not print progress messages
31679 -d, --debug don't remove temporary files
31680 --recheck update $as_me by reconfiguring in the same conditions
31681 --file=FILE[:TEMPLATE]
31682 instantiate the configuration file FILE
31683 --header=FILE[:TEMPLATE]
31684 instantiate the configuration header FILE
31685
31686Configuration files:
31687$config_files
31688
31689Configuration headers:
31690$config_headers
31691
31692Configuration commands:
31693$config_commands
31694
cristy8b350f62009-11-15 23:12:43 +000031695Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031696
31697_ACEOF
31698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031699ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031700ac_cs_version="\\
cristydc0f0892009-12-29 02:21:55 +000031701ImageMagick config.status 6.5.9
cristycd4c5312009-11-22 01:19:08 +000031702configured by $0, generated by GNU Autoconf 2.65,
31703 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031704
cristy8b350f62009-11-15 23:12:43 +000031705Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031706This config.status script is free software; the Free Software Foundation
31707gives unlimited permission to copy, distribute and modify it."
31708
31709ac_pwd='$ac_pwd'
31710srcdir='$srcdir'
31711INSTALL='$INSTALL'
31712MKDIR_P='$MKDIR_P'
31713AWK='$AWK'
31714test -n "\$AWK" || AWK=awk
31715_ACEOF
31716
31717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31718# The default lists apply if the user does not specify any file.
31719ac_need_defaults=:
31720while test $# != 0
31721do
31722 case $1 in
31723 --*=*)
31724 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31725 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31726 ac_shift=:
31727 ;;
31728 *)
31729 ac_option=$1
31730 ac_optarg=$2
31731 ac_shift=shift
31732 ;;
31733 esac
31734
31735 case $ac_option in
31736 # Handling of the options.
31737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31738 ac_cs_recheck=: ;;
31739 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31740 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031741 --config | --confi | --conf | --con | --co | --c )
31742 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031743 --debug | --debu | --deb | --de | --d | -d )
31744 debug=: ;;
31745 --file | --fil | --fi | --f )
31746 $ac_shift
31747 case $ac_optarg in
31748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31749 esac
cristy8b350f62009-11-15 23:12:43 +000031750 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031751 ac_need_defaults=false;;
31752 --header | --heade | --head | --hea )
31753 $ac_shift
31754 case $ac_optarg in
31755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31756 esac
cristy8b350f62009-11-15 23:12:43 +000031757 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031758 ac_need_defaults=false;;
31759 --he | --h)
31760 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031761 as_fn_error "ambiguous option: \`$1'
31762Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031763 --help | --hel | -h )
31764 $as_echo "$ac_cs_usage"; exit ;;
31765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31766 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31767 ac_cs_silent=: ;;
31768
31769 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031770 -*) as_fn_error "unrecognized option: \`$1'
31771Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031772
cristy8b350f62009-11-15 23:12:43 +000031773 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031774 ac_need_defaults=false ;;
31775
31776 esac
31777 shift
31778done
31779
31780ac_configure_extra_args=
31781
31782if $ac_cs_silent; then
31783 exec 6>/dev/null
31784 ac_configure_extra_args="$ac_configure_extra_args --silent"
31785fi
31786
31787_ACEOF
31788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31789if \$ac_cs_recheck; then
31790 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31791 shift
31792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31793 CONFIG_SHELL='$SHELL'
31794 export CONFIG_SHELL
31795 exec "\$@"
31796fi
31797
31798_ACEOF
31799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31800exec 5>>config.log
31801{
31802 echo
31803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31804## Running $as_me. ##
31805_ASBOX
31806 $as_echo "$ac_log"
31807} >&5
31808
31809_ACEOF
31810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31811#
31812# INIT-COMMANDS
31813#
31814PACKAGE="$PACKAGE"
31815AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31816
31817
31818# The HP-UX ksh and POSIX shell print the target directory to stdout
31819# if CDPATH is set.
31820(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31821
31822sed_quote_subst='$sed_quote_subst'
31823double_quote_subst='$double_quote_subst'
31824delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031825SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31826Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31827GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31828EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31829FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31830LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31831macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31832macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31833AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31834DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31835OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31836enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31837enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31838pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31839enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31840host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31841host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31842host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31843build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31844build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31845build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31846NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31847LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31848max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31849ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31850exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31851lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31852lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31853lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31854reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31855reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31856deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31857file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31858AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31859AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31860STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31861RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31862old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31863old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31864old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31865CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31866CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31867compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31868GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31869lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31870lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31871lt_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"`'
31872lt_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"`'
31873objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31874SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31875ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31876MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31877lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31878lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31879lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31880lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31881lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31882need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31883DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31884NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31885LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31886OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31887OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31888libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31889shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31890extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31891archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31892enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31893export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31894whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31895compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31896old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31897old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31898archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31899archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31900module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31901module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31902with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31903allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31904no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31905hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31906hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31907hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31908hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31909hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31910hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31911hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31912hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31913inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31914link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31915fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31916always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31917export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31918exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31919include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31920prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31921file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31922variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31923need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31924need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31925version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31926runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31927shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31928shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31929libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31930library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31931soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31932postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31933postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31934finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31935finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31936hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31937sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31938sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31939hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31940enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31941enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31942enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31943old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31944striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31945compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31946predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31947postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31948predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31949postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31950compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31951LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31952old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31953compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31954GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31955lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31956lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31957lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31958lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31959lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31960archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31961enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31962export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31963whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31964compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31965old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31966old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31967archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31968archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31969module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31970module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31971with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31972allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31973no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31974hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31975hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31976hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31977hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31978hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31979hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31980hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31981hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31982inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31983link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31984fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31985always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31986export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31987exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31988include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31989prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31990file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31991hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31992compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31993predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31994postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31995predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31996postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31997compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000031998
31999LTCC='$LTCC'
32000LTCFLAGS='$LTCFLAGS'
32001compiler='$compiler_DEFAULT'
32002
32003# Quote evaled strings.
32004for var in SED \
32005GREP \
32006EGREP \
32007FGREP \
32008LD \
32009NM \
32010LN_S \
32011lt_SP2NL \
32012lt_NL2SP \
32013reload_flag \
32014deplibs_check_method \
32015file_magic_cmd \
32016AR \
32017AR_FLAGS \
32018STRIP \
32019RANLIB \
32020CC \
32021CFLAGS \
32022compiler \
32023lt_cv_sys_global_symbol_pipe \
32024lt_cv_sys_global_symbol_to_cdecl \
32025lt_cv_sys_global_symbol_to_c_name_address \
32026lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032027SHELL \
32028ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032029lt_prog_compiler_no_builtin_flag \
32030lt_prog_compiler_wl \
32031lt_prog_compiler_pic \
32032lt_prog_compiler_static \
32033lt_cv_prog_compiler_c_o \
32034need_locks \
32035DSYMUTIL \
32036NMEDIT \
32037LIPO \
32038OTOOL \
32039OTOOL64 \
32040shrext_cmds \
32041export_dynamic_flag_spec \
32042whole_archive_flag_spec \
32043compiler_needs_object \
32044with_gnu_ld \
32045allow_undefined_flag \
32046no_undefined_flag \
32047hardcode_libdir_flag_spec \
32048hardcode_libdir_flag_spec_ld \
32049hardcode_libdir_separator \
32050fix_srcfile_path \
32051exclude_expsyms \
32052include_expsyms \
32053file_list_spec \
32054variables_saved_for_relink \
32055libname_spec \
32056library_names_spec \
32057soname_spec \
32058finish_eval \
32059old_striplib \
32060striplib \
32061compiler_lib_search_dirs \
32062predep_objects \
32063postdep_objects \
32064predeps \
32065postdeps \
32066compiler_lib_search_path \
32067LD_CXX \
32068compiler_CXX \
32069lt_prog_compiler_no_builtin_flag_CXX \
32070lt_prog_compiler_wl_CXX \
32071lt_prog_compiler_pic_CXX \
32072lt_prog_compiler_static_CXX \
32073lt_cv_prog_compiler_c_o_CXX \
32074export_dynamic_flag_spec_CXX \
32075whole_archive_flag_spec_CXX \
32076compiler_needs_object_CXX \
32077with_gnu_ld_CXX \
32078allow_undefined_flag_CXX \
32079no_undefined_flag_CXX \
32080hardcode_libdir_flag_spec_CXX \
32081hardcode_libdir_flag_spec_ld_CXX \
32082hardcode_libdir_separator_CXX \
32083fix_srcfile_path_CXX \
32084exclude_expsyms_CXX \
32085include_expsyms_CXX \
32086file_list_spec_CXX \
32087compiler_lib_search_dirs_CXX \
32088predep_objects_CXX \
32089postdep_objects_CXX \
32090predeps_CXX \
32091postdeps_CXX \
32092compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032094 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032096 ;;
32097 *)
32098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32099 ;;
32100 esac
32101done
32102
32103# Double-quote double-evaled strings.
32104for var in reload_cmds \
32105old_postinstall_cmds \
32106old_postuninstall_cmds \
32107old_archive_cmds \
32108extract_expsyms_cmds \
32109old_archive_from_new_cmds \
32110old_archive_from_expsyms_cmds \
32111archive_cmds \
32112archive_expsym_cmds \
32113module_cmds \
32114module_expsym_cmds \
32115export_symbols_cmds \
32116prelink_cmds \
32117postinstall_cmds \
32118postuninstall_cmds \
32119finish_cmds \
32120sys_lib_search_path_spec \
32121sys_lib_dlsearch_path_spec \
32122old_archive_cmds_CXX \
32123old_archive_from_new_cmds_CXX \
32124old_archive_from_expsyms_cmds_CXX \
32125archive_cmds_CXX \
32126archive_expsym_cmds_CXX \
32127module_cmds_CXX \
32128module_expsym_cmds_CXX \
32129export_symbols_cmds_CXX \
32130prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032131 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032132 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032133 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 +000032134 ;;
32135 *)
32136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32137 ;;
32138 esac
32139done
32140
cristy18304f92009-11-22 15:48:26 +000032141# Fix-up fallback echo if it was mangled by the above quoting rules.
32142case \$lt_ECHO in
32143*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32144 ;;
32145esac
32146
cristy3ed852e2009-09-05 21:47:34 +000032147ac_aux_dir='$ac_aux_dir'
32148xsi_shell='$xsi_shell'
32149lt_shell_append='$lt_shell_append'
32150
32151# See if we are running on zsh, and set the options which allow our
32152# commands through without removal of \ escapes INIT.
32153if test -n "\${ZSH_VERSION+set}" ; then
32154 setopt NO_GLOB_SUBST
32155fi
32156
32157
32158 PACKAGE='$PACKAGE'
32159 VERSION='$VERSION'
32160 TIMESTAMP='$TIMESTAMP'
32161 RM='$RM'
32162 ofile='$ofile'
32163
32164
32165
32166
32167
32168
32169_ACEOF
32170
32171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32172
32173# Handling of arguments.
32174for ac_config_target in $ac_config_targets
32175do
32176 case $ac_config_target in
32177 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32178 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32179 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32180 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32181 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32182 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32183 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32184 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32185 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32186 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32187 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32188 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32189 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32190 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32191 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32192 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32193 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32194 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32195 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32197 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32198 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32199 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32200 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32201 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32202 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32203 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32204 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32205 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32206 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32207 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32208 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32209 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32210 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32211 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32212 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32213 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32214 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32215 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32216 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32217 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32218 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32219 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32220 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32221 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32222 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32223 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32224 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32225 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32226
cristy8b350f62009-11-15 23:12:43 +000032227 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032228 esac
32229done
32230
32231
32232# If the user did not use the arguments to specify the items to instantiate,
32233# then the envvar interface is used. Set only those that are not.
32234# We use the long form for the default assignment because of an extremely
32235# bizarre bug on SunOS 4.1.3.
32236if $ac_need_defaults; then
32237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32240fi
32241
32242# Have a temporary directory for convenience. Make it in the build tree
32243# simply because there is no reason against having it here, and in addition,
32244# creating and moving files from /tmp can sometimes cause problems.
32245# Hook for its removal unless debugging.
32246# Note that there is a small window in which the directory will not be cleaned:
32247# after its creation but before its name has been assigned to `$tmp'.
32248$debug ||
32249{
32250 tmp=
32251 trap 'exit_status=$?
32252 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32253' 0
cristy8b350f62009-11-15 23:12:43 +000032254 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032255}
32256# Create a (secure) tmp directory for tmp files.
32257
32258{
32259 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32260 test -n "$tmp" && test -d "$tmp"
32261} ||
32262{
32263 tmp=./conf$$-$RANDOM
32264 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032265} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032266
32267# Set up the scripts for CONFIG_FILES section.
32268# No need to generate them if there are no CONFIG_FILES.
32269# This happens for instance with `./config.status config.h'.
32270if test -n "$CONFIG_FILES"; then
32271
32272
cristy8b350f62009-11-15 23:12:43 +000032273ac_cr=`echo X | tr X '\015'`
32274# On cygwin, bash can eat \r inside `` if the user requested igncr.
32275# But we know of no other shell where ac_cr would be empty at this
32276# point, so we can use a bashism as a fallback.
32277if test "x$ac_cr" = x; then
32278 eval ac_cr=\$\'\\r\'
32279fi
cristy3ed852e2009-09-05 21:47:34 +000032280ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32281if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032282 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032283else
32284 ac_cs_awk_cr=$ac_cr
32285fi
32286
32287echo 'BEGIN {' >"$tmp/subs1.awk" &&
32288_ACEOF
32289
32290
32291{
32292 echo "cat >conf$$subs.awk <<_ACEOF" &&
32293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32294 echo "_ACEOF"
32295} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032297ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32298ac_delim='%!_!# '
32299for ac_last_try in false false false false false :; do
32300 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032302
32303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32304 if test $ac_delim_n = $ac_delim_num; then
32305 break
32306 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032308 else
32309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32310 fi
32311done
32312rm -f conf$$subs.sh
32313
32314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32315cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32316_ACEOF
32317sed -n '
32318h
32319s/^/S["/; s/!.*/"]=/
32320p
32321g
32322s/^[^!]*!//
32323:repl
32324t repl
32325s/'"$ac_delim"'$//
32326t delim
32327:nl
32328h
cristycd4c5312009-11-22 01:19:08 +000032329s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032330t more1
32331s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32332p
32333n
32334b repl
32335:more1
32336s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32337p
32338g
32339s/.\{148\}//
32340t nl
32341:delim
32342h
cristycd4c5312009-11-22 01:19:08 +000032343s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032344t more2
32345s/["\\]/\\&/g; s/^/"/; s/$/"/
32346p
32347b
32348:more2
32349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32350p
32351g
32352s/.\{148\}//
32353t delim
32354' <conf$$subs.awk | sed '
32355/^[^""]/{
32356 N
32357 s/\n//
32358}
32359' >>$CONFIG_STATUS || ac_write_fail=1
32360rm -f conf$$subs.awk
32361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32362_ACAWK
32363cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32364 for (key in S) S_is_set[key] = 1
32365 FS = ""
32366
32367}
32368{
32369 line = $ 0
32370 nfields = split(line, field, "@")
32371 substed = 0
32372 len = length(field[1])
32373 for (i = 2; i < nfields; i++) {
32374 key = field[i]
32375 keylen = length(key)
32376 if (S_is_set[key]) {
32377 value = S[key]
32378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32379 len += length(value) + length(field[++i])
32380 substed = 1
32381 } else
32382 len += 1 + keylen
32383 }
32384
32385 print line
32386}
32387
32388_ACAWK
32389_ACEOF
32390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32391if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32392 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32393else
32394 cat
32395fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032396 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032397_ACEOF
32398
32399# VPATH may cause trouble with some makes, so we remove $(srcdir),
32400# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32401# trailing colons and then remove the whole line if VPATH becomes empty
32402# (actually we leave an empty line to preserve line numbers).
32403if test "x$srcdir" = x.; then
32404 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32405s/:*\$(srcdir):*/:/
32406s/:*\${srcdir}:*/:/
32407s/:*@srcdir@:*/:/
32408s/^\([^=]*=[ ]*\):*/\1/
32409s/:*$//
32410s/^[^=]*=[ ]*$//
32411}'
32412fi
32413
32414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32415fi # test -n "$CONFIG_FILES"
32416
32417# Set up the scripts for CONFIG_HEADERS section.
32418# No need to generate them if there are no CONFIG_HEADERS.
32419# This happens for instance with `./config.status Makefile'.
32420if test -n "$CONFIG_HEADERS"; then
32421cat >"$tmp/defines.awk" <<\_ACAWK ||
32422BEGIN {
32423_ACEOF
32424
32425# Transform confdefs.h into an awk script `defines.awk', embedded as
32426# here-document in config.status, that substitutes the proper values into
32427# config.h.in to produce config.h.
32428
32429# Create a delimiter string that does not exist in confdefs.h, to ease
32430# handling of long lines.
32431ac_delim='%!_!# '
32432for ac_last_try in false false :; do
32433 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32434 if test -z "$ac_t"; then
32435 break
32436 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032437 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032438 else
32439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32440 fi
32441done
32442
32443# For the awk script, D is an array of macro values keyed by name,
32444# likewise P contains macro parameters if any. Preserve backslash
32445# newline sequences.
32446
32447ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32448sed -n '
32449s/.\{148\}/&'"$ac_delim"'/g
32450t rset
32451:rset
32452s/^[ ]*#[ ]*define[ ][ ]*/ /
32453t def
32454d
32455:def
32456s/\\$//
32457t bsnl
32458s/["\\]/\\&/g
32459s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32460D["\1"]=" \3"/p
32461s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32462d
32463:bsnl
32464s/["\\]/\\&/g
32465s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32466D["\1"]=" \3\\\\\\n"\\/p
32467t cont
32468s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32469t cont
32470d
32471:cont
32472n
32473s/.\{148\}/&'"$ac_delim"'/g
32474t clear
32475:clear
32476s/\\$//
32477t bsnlc
32478s/["\\]/\\&/g; s/^/"/; s/$/"/p
32479d
32480:bsnlc
32481s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32482b cont
32483' <confdefs.h | sed '
32484s/'"$ac_delim"'/"\\\
32485"/g' >>$CONFIG_STATUS || ac_write_fail=1
32486
32487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32488 for (key in D) D_is_set[key] = 1
32489 FS = ""
32490}
32491/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32492 line = \$ 0
32493 split(line, arg, " ")
32494 if (arg[1] == "#") {
32495 defundef = arg[2]
32496 mac1 = arg[3]
32497 } else {
32498 defundef = substr(arg[1], 2)
32499 mac1 = arg[2]
32500 }
32501 split(mac1, mac2, "(") #)
32502 macro = mac2[1]
32503 prefix = substr(line, 1, index(line, defundef) - 1)
32504 if (D_is_set[macro]) {
32505 # Preserve the white space surrounding the "#".
32506 print prefix "define", macro P[macro] D[macro]
32507 next
32508 } else {
32509 # Replace #undef with comments. This is necessary, for example,
32510 # in the case of _POSIX_SOURCE, which is predefined and required
32511 # on some systems where configure will not decide to define it.
32512 if (defundef == "undef") {
32513 print "/*", prefix defundef, macro, "*/"
32514 next
32515 }
32516 }
32517}
32518{ print }
32519_ACAWK
32520_ACEOF
32521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032522 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032523fi # test -n "$CONFIG_HEADERS"
32524
32525
32526eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32527shift
32528for ac_tag
32529do
32530 case $ac_tag in
32531 :[FHLC]) ac_mode=$ac_tag; continue;;
32532 esac
32533 case $ac_mode$ac_tag in
32534 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032535 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032536 :[FH]-) ac_tag=-:-;;
32537 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32538 esac
32539 ac_save_IFS=$IFS
32540 IFS=:
32541 set x $ac_tag
32542 IFS=$ac_save_IFS
32543 shift
32544 ac_file=$1
32545 shift
32546
32547 case $ac_mode in
32548 :L) ac_source=$1;;
32549 :[FH])
32550 ac_file_inputs=
32551 for ac_f
32552 do
32553 case $ac_f in
32554 -) ac_f="$tmp/stdin";;
32555 *) # Look for the file first in the build tree, then in the source tree
32556 # (if the path is not absolute). The absolute path cannot be DOS-style,
32557 # because $ac_f cannot contain `:'.
32558 test -f "$ac_f" ||
32559 case $ac_f in
32560 [\\/$]*) false;;
32561 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32562 esac ||
cristy8b350f62009-11-15 23:12:43 +000032563 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032564 esac
32565 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032566 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032567 done
32568
32569 # Let's still pretend it is `configure' which instantiates (i.e., don't
32570 # use $as_me), people would be surprised to read:
32571 # /* config.h. Generated by config.status. */
32572 configure_input='Generated from '`
32573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32574 `' by configure.'
32575 if test x"$ac_file" != x-; then
32576 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032578$as_echo "$as_me: creating $ac_file" >&6;}
32579 fi
32580 # Neutralize special characters interpreted by sed in replacement strings.
32581 case $configure_input in #(
32582 *\&* | *\|* | *\\* )
32583 ac_sed_conf_input=`$as_echo "$configure_input" |
32584 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32585 *) ac_sed_conf_input=$configure_input;;
32586 esac
32587
32588 case $ac_tag in
32589 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032590 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032591 esac
32592 ;;
32593 esac
32594
32595 ac_dir=`$as_dirname -- "$ac_file" ||
32596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32597 X"$ac_file" : 'X\(//\)[^/]' \| \
32598 X"$ac_file" : 'X\(//\)$' \| \
32599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32600$as_echo X"$ac_file" |
32601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32602 s//\1/
32603 q
32604 }
32605 /^X\(\/\/\)[^/].*/{
32606 s//\1/
32607 q
32608 }
32609 /^X\(\/\/\)$/{
32610 s//\1/
32611 q
32612 }
32613 /^X\(\/\).*/{
32614 s//\1/
32615 q
32616 }
32617 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032618 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032619 ac_builddir=.
32620
32621case "$ac_dir" in
32622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32623*)
32624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32625 # A ".." for each directory in $ac_dir_suffix.
32626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32627 case $ac_top_builddir_sub in
32628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32630 esac ;;
32631esac
32632ac_abs_top_builddir=$ac_pwd
32633ac_abs_builddir=$ac_pwd$ac_dir_suffix
32634# for backward compatibility:
32635ac_top_builddir=$ac_top_build_prefix
32636
32637case $srcdir in
32638 .) # We are building in place.
32639 ac_srcdir=.
32640 ac_top_srcdir=$ac_top_builddir_sub
32641 ac_abs_top_srcdir=$ac_pwd ;;
32642 [\\/]* | ?:[\\/]* ) # Absolute name.
32643 ac_srcdir=$srcdir$ac_dir_suffix;
32644 ac_top_srcdir=$srcdir
32645 ac_abs_top_srcdir=$srcdir ;;
32646 *) # Relative name.
32647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32648 ac_top_srcdir=$ac_top_build_prefix$srcdir
32649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32650esac
32651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32652
32653
32654 case $ac_mode in
32655 :F)
32656 #
32657 # CONFIG_FILE
32658 #
32659
32660 case $INSTALL in
32661 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32662 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32663 esac
32664 ac_MKDIR_P=$MKDIR_P
32665 case $MKDIR_P in
32666 [\\/$]* | ?:[\\/]* ) ;;
32667 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32668 esac
32669_ACEOF
32670
32671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32672# If the template does not know about datarootdir, expand it.
32673# FIXME: This hack should be removed a few years after 2.60.
32674ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032675ac_sed_dataroot='
32676/datarootdir/ {
32677 p
32678 q
32679}
32680/@datadir@/p
32681/@docdir@/p
32682/@infodir@/p
32683/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032684/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032685case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32686*datarootdir*) ac_datarootdir_seen=yes;;
32687*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032689$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32690_ACEOF
32691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32692 ac_datarootdir_hack='
32693 s&@datadir@&$datadir&g
32694 s&@docdir@&$docdir&g
32695 s&@infodir@&$infodir&g
32696 s&@localedir@&$localedir&g
32697 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032698 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032699esac
32700_ACEOF
32701
32702# Neutralize VPATH when `$srcdir' = `.'.
32703# Shell code in configure.ac might set extrasub.
32704# FIXME: do we really want to maintain this feature?
32705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32706ac_sed_extra="$ac_vpsub
32707$extrasub
32708_ACEOF
32709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32710:t
32711/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32712s|@configure_input@|$ac_sed_conf_input|;t t
32713s&@top_builddir@&$ac_top_builddir_sub&;t t
32714s&@top_build_prefix@&$ac_top_build_prefix&;t t
32715s&@srcdir@&$ac_srcdir&;t t
32716s&@abs_srcdir@&$ac_abs_srcdir&;t t
32717s&@top_srcdir@&$ac_top_srcdir&;t t
32718s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32719s&@builddir@&$ac_builddir&;t t
32720s&@abs_builddir@&$ac_abs_builddir&;t t
32721s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32722s&@INSTALL@&$ac_INSTALL&;t t
32723s&@MKDIR_P@&$ac_MKDIR_P&;t t
32724$ac_datarootdir_hack
32725"
32726eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032727 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032728
32729test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32730 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32731 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032733which seems to be undefined. Please make sure it is defined." >&5
32734$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32735which seems to be undefined. Please make sure it is defined." >&2;}
32736
32737 rm -f "$tmp/stdin"
32738 case $ac_file in
32739 -) cat "$tmp/out" && rm -f "$tmp/out";;
32740 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32741 esac \
cristy8b350f62009-11-15 23:12:43 +000032742 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032743 ;;
32744 :H)
32745 #
32746 # CONFIG_HEADER
32747 #
32748 if test x"$ac_file" != x-; then
32749 {
32750 $as_echo "/* $configure_input */" \
32751 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32752 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032753 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032754 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032755 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032756$as_echo "$as_me: $ac_file is unchanged" >&6;}
32757 else
32758 rm -f "$ac_file"
32759 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032760 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032761 fi
32762 else
32763 $as_echo "/* $configure_input */" \
32764 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032765 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032766 fi
32767# Compute "$ac_file"'s index in $config_headers.
32768_am_arg="$ac_file"
32769_am_stamp_count=1
32770for _am_header in $config_headers :; do
32771 case $_am_header in
32772 $_am_arg | $_am_arg:* )
32773 break ;;
32774 * )
32775 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32776 esac
32777done
32778echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32779$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32780 X"$_am_arg" : 'X\(//\)[^/]' \| \
32781 X"$_am_arg" : 'X\(//\)$' \| \
32782 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32783$as_echo X"$_am_arg" |
32784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32785 s//\1/
32786 q
32787 }
32788 /^X\(\/\/\)[^/].*/{
32789 s//\1/
32790 q
32791 }
32792 /^X\(\/\/\)$/{
32793 s//\1/
32794 q
32795 }
32796 /^X\(\/\).*/{
32797 s//\1/
32798 q
32799 }
32800 s/.*/./; q'`/stamp-h$_am_stamp_count
32801 ;;
32802
cristy8b350f62009-11-15 23:12:43 +000032803 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032804$as_echo "$as_me: executing $ac_file commands" >&6;}
32805 ;;
32806 esac
32807
32808
32809 case $ac_file$ac_mode in
32810 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32811ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32812ac_prefix_conf_PKG=`echo MagickCore`
32813ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32814ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32815ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32816if test ".$ac_prefix_conf_INP" = "."; then
32817 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32818 case "$ac_file" in
32819 *.h) ac_prefix_conf_INP=$ac_file ;;
32820 *)
32821 esac
32822 test ".$ac_prefix_conf_INP" != "." && break
32823 done
32824fi
32825if test ".$ac_prefix_conf_INP" = "."; then
32826 case "$ac_prefix_conf_OUT" in
32827 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32828 ;;
32829 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32830 ;;
32831 *) ac_prefix_conf_INP=config.h
32832 ;;
32833 esac
32834fi
32835if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032836 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032837else
32838 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32839 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32840 fi fi
cristy8b350f62009-11-15 23:12:43 +000032841 { $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 +000032842$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32843 if test -f $ac_prefix_conf_INP ; then
32844 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32845 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32846 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32847 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32848 echo "#endif/" >>conftest.prefix
32849 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32850 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32851 echo "#endif/" >> conftest.prefix
32852 # now executing _script on _DEF input to create _OUT output file
32853 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32854 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32855 echo ' ' >>$tmp/pconfig.h
32856 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32857
32858 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32859 echo ' ' >>$tmp/pconfig.h
32860 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32861 echo "#endif" >>$tmp/pconfig.h
32862 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032863 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032864$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32865 else
32866 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32867$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32868 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32869 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32870 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32871$as_echo X"$ac_prefix_conf_OUT" |
32872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32873 s//\1/
32874 q
32875 }
32876 /^X\(\/\/\)[^/].*/{
32877 s//\1/
32878 q
32879 }
32880 /^X\(\/\/\)$/{
32881 s//\1/
32882 q
32883 }
32884 /^X\(\/\).*/{
32885 s//\1/
32886 q
32887 }
32888 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032889 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032890 rm -f "$ac_prefix_conf_OUT"
32891 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32892 fi
32893 cp conftest.prefix _configs.sed
32894 else
cristy8b350f62009-11-15 23:12:43 +000032895 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 +000032896 fi
32897 rm -f conftest.*
32898fi
32899 ;;
32900 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32901 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32902 # are listed without --file. Let's play safe and only enable the eval
32903 # if we detect the quoting.
32904 case $CONFIG_FILES in
32905 *\'*) eval set x "$CONFIG_FILES" ;;
32906 *) set x $CONFIG_FILES ;;
32907 esac
32908 shift
32909 for mf
32910 do
32911 # Strip MF so we end up with the name of the file.
32912 mf=`echo "$mf" | sed -e 's/:.*$//'`
32913 # Check whether this is an Automake generated Makefile or not.
32914 # We used to match only the files named `Makefile.in', but
32915 # some people rename them; so instead we look at the file content.
32916 # Grep'ing the first line is not enough: some people post-process
32917 # each Makefile.in and add a new line on top of each file to say so.
32918 # Grep'ing the whole file is not good either: AIX grep has a line
32919 # limit of 2048, but all sed's we know have understand at least 4000.
32920 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32921 dirpart=`$as_dirname -- "$mf" ||
32922$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32923 X"$mf" : 'X\(//\)[^/]' \| \
32924 X"$mf" : 'X\(//\)$' \| \
32925 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32926$as_echo X"$mf" |
32927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32928 s//\1/
32929 q
32930 }
32931 /^X\(\/\/\)[^/].*/{
32932 s//\1/
32933 q
32934 }
32935 /^X\(\/\/\)$/{
32936 s//\1/
32937 q
32938 }
32939 /^X\(\/\).*/{
32940 s//\1/
32941 q
32942 }
32943 s/.*/./; q'`
32944 else
32945 continue
32946 fi
32947 # Extract the definition of DEPDIR, am__include, and am__quote
32948 # from the Makefile without running `make'.
32949 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32950 test -z "$DEPDIR" && continue
32951 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32952 test -z "am__include" && continue
32953 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32954 # When using ansi2knr, U may be empty or an underscore; expand it
32955 U=`sed -n 's/^U = //p' < "$mf"`
32956 # Find all dependency output files, they are included files with
32957 # $(DEPDIR) in their names. We invoke sed twice because it is the
32958 # simplest approach to changing $(DEPDIR) to its actual value in the
32959 # expansion.
32960 for file in `sed -n "
32961 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32962 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32963 # Make sure the directory exists.
32964 test -f "$dirpart/$file" && continue
32965 fdir=`$as_dirname -- "$file" ||
32966$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32967 X"$file" : 'X\(//\)[^/]' \| \
32968 X"$file" : 'X\(//\)$' \| \
32969 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32970$as_echo X"$file" |
32971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32972 s//\1/
32973 q
32974 }
32975 /^X\(\/\/\)[^/].*/{
32976 s//\1/
32977 q
32978 }
32979 /^X\(\/\/\)$/{
32980 s//\1/
32981 q
32982 }
32983 /^X\(\/\).*/{
32984 s//\1/
32985 q
32986 }
32987 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032988 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032989 # echo "creating $dirpart/$file"
32990 echo '# dummy' > "$dirpart/$file"
32991 done
32992 done
32993}
32994 ;;
32995 "libtool":C)
32996
32997 # See if we are running on zsh, and set the options which allow our
32998 # commands through without removal of \ escapes.
32999 if test -n "${ZSH_VERSION+set}" ; then
33000 setopt NO_GLOB_SUBST
33001 fi
33002
33003 cfgfile="${ofile}T"
33004 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33005 $RM "$cfgfile"
33006
33007 cat <<_LT_EOF >> "$cfgfile"
33008#! $SHELL
33009
33010# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33011# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33013# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33014#
33015# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033016# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033017# Written by Gordon Matzigkeit, 1996
33018#
33019# This file is part of GNU Libtool.
33020#
33021# GNU Libtool is free software; you can redistribute it and/or
33022# modify it under the terms of the GNU General Public License as
33023# published by the Free Software Foundation; either version 2 of
33024# the License, or (at your option) any later version.
33025#
33026# As a special exception to the GNU General Public License,
33027# if you distribute this file as part of a program or library that
33028# is built using GNU Libtool, you may include this file under the
33029# same distribution terms that you use for the rest of that program.
33030#
33031# GNU Libtool is distributed in the hope that it will be useful,
33032# but WITHOUT ANY WARRANTY; without even the implied warranty of
33033# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33034# GNU General Public License for more details.
33035#
33036# You should have received a copy of the GNU General Public License
33037# along with GNU Libtool; see the file COPYING. If not, a copy
33038# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33039# obtained by writing to the Free Software Foundation, Inc.,
33040# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33041
33042
33043# The names of the tagged configurations supported by this script.
33044available_tags="CXX "
33045
33046# ### BEGIN LIBTOOL CONFIG
33047
33048# A sed program that does not truncate output.
33049SED=$lt_SED
33050
33051# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33052Xsed="\$SED -e 1s/^X//"
33053
33054# A grep program that handles long lines.
33055GREP=$lt_GREP
33056
33057# An ERE matcher.
33058EGREP=$lt_EGREP
33059
33060# A literal string matcher.
33061FGREP=$lt_FGREP
33062
33063# Which release of libtool.m4 was used?
33064macro_version=$macro_version
33065macro_revision=$macro_revision
33066
33067# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033068AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033069
33070# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033071DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033072
33073# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033074OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033075
33076# Whether or not to build shared libraries.
33077build_libtool_libs=$enable_shared
33078
33079# Whether or not to build static libraries.
33080build_old_libs=$enable_static
33081
33082# What type of objects to build.
33083pic_mode=$pic_mode
33084
33085# Whether or not to optimize for fast installation.
33086fast_install=$enable_fast_install
33087
33088# The host system.
33089host_alias=$host_alias
33090host=$host
33091host_os=$host_os
33092
33093# The build system.
33094build_alias=$build_alias
33095build=$build
33096build_os=$build_os
33097
33098# A BSD- or MS-compatible name lister.
33099NM=$lt_NM
33100
33101# Whether we need soft or hard links.
33102LN_S=$lt_LN_S
33103
33104# What is the maximum length of a command?
33105max_cmd_len=$max_cmd_len
33106
33107# Object file suffix (normally "o").
33108objext=$ac_objext
33109
33110# Executable file suffix (normally "").
33111exeext=$exeext
33112
33113# whether the shell understands "unset".
33114lt_unset=$lt_unset
33115
33116# turn spaces into newlines.
33117SP2NL=$lt_lt_SP2NL
33118
33119# turn newlines into spaces.
33120NL2SP=$lt_lt_NL2SP
33121
cristy18304f92009-11-22 15:48:26 +000033122# How to create reloadable object files.
33123reload_flag=$lt_reload_flag
33124reload_cmds=$lt_reload_cmds
33125
cristy3ed852e2009-09-05 21:47:34 +000033126# Method to check whether dependent libraries are shared objects.
33127deplibs_check_method=$lt_deplibs_check_method
33128
33129# Command to use when deplibs_check_method == "file_magic".
33130file_magic_cmd=$lt_file_magic_cmd
33131
33132# The archiver.
33133AR=$lt_AR
33134AR_FLAGS=$lt_AR_FLAGS
33135
33136# A symbol stripping program.
33137STRIP=$lt_STRIP
33138
33139# Commands used to install an old-style archive.
33140RANLIB=$lt_RANLIB
33141old_postinstall_cmds=$lt_old_postinstall_cmds
33142old_postuninstall_cmds=$lt_old_postuninstall_cmds
33143
33144# A C compiler.
33145LTCC=$lt_CC
33146
33147# LTCC compiler flags.
33148LTCFLAGS=$lt_CFLAGS
33149
33150# Take the output of nm and produce a listing of raw symbols and C names.
33151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33152
33153# Transform the output of nm in a proper C declaration.
33154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33155
33156# Transform the output of nm in a C name address pair.
33157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33158
33159# Transform the output of nm in a C name address pair when lib prefix is needed.
33160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33161
33162# The name of the directory that contains temporary libtool files.
33163objdir=$objdir
33164
cristy18304f92009-11-22 15:48:26 +000033165# Shell to use when invoking shell scripts.
33166SHELL=$lt_SHELL
33167
33168# An echo program that does not interpret backslashes.
33169ECHO=$lt_ECHO
33170
cristy3ed852e2009-09-05 21:47:34 +000033171# Used to examine libraries when file_magic_cmd begins with "file".
33172MAGIC_CMD=$MAGIC_CMD
33173
33174# Must we lock files when doing compilation?
33175need_locks=$lt_need_locks
33176
33177# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33178DSYMUTIL=$lt_DSYMUTIL
33179
33180# Tool to change global to local symbols on Mac OS X.
33181NMEDIT=$lt_NMEDIT
33182
33183# Tool to manipulate fat objects and archives on Mac OS X.
33184LIPO=$lt_LIPO
33185
33186# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33187OTOOL=$lt_OTOOL
33188
33189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33190OTOOL64=$lt_OTOOL64
33191
33192# Old archive suffix (normally "a").
33193libext=$libext
33194
33195# Shared library suffix (normally ".so").
33196shrext_cmds=$lt_shrext_cmds
33197
33198# The commands to extract the exported symbol list from a shared archive.
33199extract_expsyms_cmds=$lt_extract_expsyms_cmds
33200
33201# Variables whose values should be saved in libtool wrapper scripts and
33202# restored at link time.
33203variables_saved_for_relink=$lt_variables_saved_for_relink
33204
33205# Do we need the "lib" prefix for modules?
33206need_lib_prefix=$need_lib_prefix
33207
33208# Do we need a version for libraries?
33209need_version=$need_version
33210
33211# Library versioning type.
33212version_type=$version_type
33213
33214# Shared library runtime path variable.
33215runpath_var=$runpath_var
33216
33217# Shared library path variable.
33218shlibpath_var=$shlibpath_var
33219
33220# Is shlibpath searched before the hard-coded library search path?
33221shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33222
33223# Format of library name prefix.
33224libname_spec=$lt_libname_spec
33225
33226# List of archive names. First name is the real one, the rest are links.
33227# The last name is the one that the linker finds with -lNAME
33228library_names_spec=$lt_library_names_spec
33229
33230# The coded name of the library, if different from the real name.
33231soname_spec=$lt_soname_spec
33232
33233# Command to use after installation of a shared archive.
33234postinstall_cmds=$lt_postinstall_cmds
33235
33236# Command to use after uninstallation of a shared archive.
33237postuninstall_cmds=$lt_postuninstall_cmds
33238
33239# Commands used to finish a libtool library installation in a directory.
33240finish_cmds=$lt_finish_cmds
33241
33242# As "finish_cmds", except a single script fragment to be evaled but
33243# not shown.
33244finish_eval=$lt_finish_eval
33245
33246# Whether we should hardcode library paths into libraries.
33247hardcode_into_libs=$hardcode_into_libs
33248
33249# Compile-time system search path for libraries.
33250sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33251
33252# Run-time system search path for libraries.
33253sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33254
33255# Whether dlopen is supported.
33256dlopen_support=$enable_dlopen
33257
33258# Whether dlopen of programs is supported.
33259dlopen_self=$enable_dlopen_self
33260
33261# Whether dlopen of statically linked programs is supported.
33262dlopen_self_static=$enable_dlopen_self_static
33263
33264# Commands to strip libraries.
33265old_striplib=$lt_old_striplib
33266striplib=$lt_striplib
33267
33268
33269# The linker used to build libraries.
33270LD=$lt_LD
33271
33272# Commands used to build an old-style archive.
33273old_archive_cmds=$lt_old_archive_cmds
33274
33275# A language specific compiler.
33276CC=$lt_compiler
33277
33278# Is the compiler the GNU compiler?
33279with_gcc=$GCC
33280
33281# Compiler flag to turn off builtin functions.
33282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33283
33284# How to pass a linker flag through the compiler.
33285wl=$lt_lt_prog_compiler_wl
33286
33287# Additional compiler flags for building library objects.
33288pic_flag=$lt_lt_prog_compiler_pic
33289
33290# Compiler flag to prevent dynamic linking.
33291link_static_flag=$lt_lt_prog_compiler_static
33292
33293# Does compiler simultaneously support -c and -o options?
33294compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33295
33296# Whether or not to add -lc for building shared libraries.
33297build_libtool_need_lc=$archive_cmds_need_lc
33298
33299# Whether or not to disallow shared libs when runtime libs are static.
33300allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33301
33302# Compiler flag to allow reflexive dlopens.
33303export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33304
33305# Compiler flag to generate shared objects directly from archives.
33306whole_archive_flag_spec=$lt_whole_archive_flag_spec
33307
33308# Whether the compiler copes with passing no objects directly.
33309compiler_needs_object=$lt_compiler_needs_object
33310
33311# Create an old-style archive from a shared archive.
33312old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33313
33314# Create a temporary old-style archive to link instead of a shared archive.
33315old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33316
33317# Commands used to build a shared archive.
33318archive_cmds=$lt_archive_cmds
33319archive_expsym_cmds=$lt_archive_expsym_cmds
33320
33321# Commands used to build a loadable module if different from building
33322# a shared archive.
33323module_cmds=$lt_module_cmds
33324module_expsym_cmds=$lt_module_expsym_cmds
33325
33326# Whether we are building with GNU ld or not.
33327with_gnu_ld=$lt_with_gnu_ld
33328
33329# Flag that allows shared libraries with undefined symbols to be built.
33330allow_undefined_flag=$lt_allow_undefined_flag
33331
33332# Flag that enforces no undefined symbols.
33333no_undefined_flag=$lt_no_undefined_flag
33334
33335# Flag to hardcode \$libdir into a binary during linking.
33336# This must work even if \$libdir does not exist
33337hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33338
33339# If ld is used when linking, flag to hardcode \$libdir into a binary
33340# during linking. This must work even if \$libdir does not exist.
33341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33342
33343# Whether we need a single "-rpath" flag with a separated argument.
33344hardcode_libdir_separator=$lt_hardcode_libdir_separator
33345
33346# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33347# DIR into the resulting binary.
33348hardcode_direct=$hardcode_direct
33349
33350# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33351# DIR into the resulting binary and the resulting library dependency is
33352# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33353# library is relocated.
33354hardcode_direct_absolute=$hardcode_direct_absolute
33355
33356# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33357# into the resulting binary.
33358hardcode_minus_L=$hardcode_minus_L
33359
33360# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33361# into the resulting binary.
33362hardcode_shlibpath_var=$hardcode_shlibpath_var
33363
33364# Set to "yes" if building a shared library automatically hardcodes DIR
33365# into the library and all subsequent libraries and executables linked
33366# against it.
33367hardcode_automatic=$hardcode_automatic
33368
33369# Set to yes if linker adds runtime paths of dependent libraries
33370# to runtime path list.
33371inherit_rpath=$inherit_rpath
33372
33373# Whether libtool must link a program against all its dependency libraries.
33374link_all_deplibs=$link_all_deplibs
33375
33376# Fix the shell variable \$srcfile for the compiler.
33377fix_srcfile_path=$lt_fix_srcfile_path
33378
33379# Set to "yes" if exported symbols are required.
33380always_export_symbols=$always_export_symbols
33381
33382# The commands to list exported symbols.
33383export_symbols_cmds=$lt_export_symbols_cmds
33384
33385# Symbols that should not be listed in the preloaded symbols.
33386exclude_expsyms=$lt_exclude_expsyms
33387
33388# Symbols that must always be exported.
33389include_expsyms=$lt_include_expsyms
33390
33391# Commands necessary for linking programs (against libraries) with templates.
33392prelink_cmds=$lt_prelink_cmds
33393
33394# Specify filename containing input files.
33395file_list_spec=$lt_file_list_spec
33396
33397# How to hardcode a shared library path into an executable.
33398hardcode_action=$hardcode_action
33399
33400# The directories searched by this compiler when creating a shared library.
33401compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33402
33403# Dependencies to place before and after the objects being linked to
33404# create a shared library.
33405predep_objects=$lt_predep_objects
33406postdep_objects=$lt_postdep_objects
33407predeps=$lt_predeps
33408postdeps=$lt_postdeps
33409
33410# The library search path used internally by the compiler when linking
33411# a shared library.
33412compiler_lib_search_path=$lt_compiler_lib_search_path
33413
33414# ### END LIBTOOL CONFIG
33415
33416_LT_EOF
33417
33418 case $host_os in
33419 aix3*)
33420 cat <<\_LT_EOF >> "$cfgfile"
33421# AIX sometimes has problems with the GCC collect2 program. For some
33422# reason, if we set the COLLECT_NAMES environment variable, the problems
33423# vanish in a puff of smoke.
33424if test "X${COLLECT_NAMES+set}" != Xset; then
33425 COLLECT_NAMES=
33426 export COLLECT_NAMES
33427fi
33428_LT_EOF
33429 ;;
33430 esac
33431
33432
33433ltmain="$ac_aux_dir/ltmain.sh"
33434
33435
33436 # We use sed instead of cat because bash on DJGPP gets confused if
33437 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33438 # text mode, it properly converts lines to CR/LF. This bash problem
33439 # is reportedly fixed, but why not run on old versions too?
33440 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33441 || (rm -f "$cfgfile"; exit 1)
33442
33443 case $xsi_shell in
33444 yes)
33445 cat << \_LT_EOF >> "$cfgfile"
33446
33447# func_dirname file append nondir_replacement
33448# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33449# otherwise set result to NONDIR_REPLACEMENT.
33450func_dirname ()
33451{
33452 case ${1} in
33453 */*) func_dirname_result="${1%/*}${2}" ;;
33454 * ) func_dirname_result="${3}" ;;
33455 esac
33456}
33457
33458# func_basename file
33459func_basename ()
33460{
33461 func_basename_result="${1##*/}"
33462}
33463
33464# func_dirname_and_basename file append nondir_replacement
33465# perform func_basename and func_dirname in a single function
33466# call:
33467# dirname: Compute the dirname of FILE. If nonempty,
33468# add APPEND to the result, otherwise set result
33469# to NONDIR_REPLACEMENT.
33470# value returned in "$func_dirname_result"
33471# basename: Compute filename of FILE.
33472# value retuned in "$func_basename_result"
33473# Implementation must be kept synchronized with func_dirname
33474# and func_basename. For efficiency, we do not delegate to
33475# those functions but instead duplicate the functionality here.
33476func_dirname_and_basename ()
33477{
33478 case ${1} in
33479 */*) func_dirname_result="${1%/*}${2}" ;;
33480 * ) func_dirname_result="${3}" ;;
33481 esac
33482 func_basename_result="${1##*/}"
33483}
33484
33485# func_stripname prefix suffix name
33486# strip PREFIX and SUFFIX off of NAME.
33487# PREFIX and SUFFIX must not contain globbing or regex special
33488# characters, hashes, percent signs, but SUFFIX may contain a leading
33489# dot (in which case that matches only a dot).
33490func_stripname ()
33491{
33492 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33493 # positional parameters, so assign one to ordinary parameter first.
33494 func_stripname_result=${3}
33495 func_stripname_result=${func_stripname_result#"${1}"}
33496 func_stripname_result=${func_stripname_result%"${2}"}
33497}
33498
33499# func_opt_split
33500func_opt_split ()
33501{
33502 func_opt_split_opt=${1%%=*}
33503 func_opt_split_arg=${1#*=}
33504}
33505
33506# func_lo2o object
33507func_lo2o ()
33508{
33509 case ${1} in
33510 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33511 *) func_lo2o_result=${1} ;;
33512 esac
33513}
33514
33515# func_xform libobj-or-source
33516func_xform ()
33517{
33518 func_xform_result=${1%.*}.lo
33519}
33520
33521# func_arith arithmetic-term...
33522func_arith ()
33523{
33524 func_arith_result=$(( $* ))
33525}
33526
33527# func_len string
33528# STRING may not start with a hyphen.
33529func_len ()
33530{
33531 func_len_result=${#1}
33532}
33533
33534_LT_EOF
33535 ;;
33536 *) # Bourne compatible functions.
33537 cat << \_LT_EOF >> "$cfgfile"
33538
33539# func_dirname file append nondir_replacement
33540# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33541# otherwise set result to NONDIR_REPLACEMENT.
33542func_dirname ()
33543{
33544 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033545 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033546 if test "X$func_dirname_result" = "X${1}"; then
33547 func_dirname_result="${3}"
33548 else
33549 func_dirname_result="$func_dirname_result${2}"
33550 fi
33551}
33552
33553# func_basename file
33554func_basename ()
33555{
cristy18304f92009-11-22 15:48:26 +000033556 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033557}
33558
33559
33560# func_stripname prefix suffix name
33561# strip PREFIX and SUFFIX off of NAME.
33562# PREFIX and SUFFIX must not contain globbing or regex special
33563# characters, hashes, percent signs, but SUFFIX may contain a leading
33564# dot (in which case that matches only a dot).
33565# func_strip_suffix prefix name
33566func_stripname ()
33567{
33568 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033569 .*) func_stripname_result=`$ECHO "X${3}" \
33570 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33571 *) func_stripname_result=`$ECHO "X${3}" \
33572 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033573 esac
33574}
33575
33576# sed scripts:
33577my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33578my_sed_long_arg='1s/^-[^=]*=//'
33579
33580# func_opt_split
33581func_opt_split ()
33582{
cristy18304f92009-11-22 15:48:26 +000033583 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33584 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033585}
33586
33587# func_lo2o object
33588func_lo2o ()
33589{
cristy18304f92009-11-22 15:48:26 +000033590 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033591}
33592
33593# func_xform libobj-or-source
33594func_xform ()
33595{
cristy18304f92009-11-22 15:48:26 +000033596 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033597}
33598
33599# func_arith arithmetic-term...
33600func_arith ()
33601{
33602 func_arith_result=`expr "$@"`
33603}
33604
33605# func_len string
33606# STRING may not start with a hyphen.
33607func_len ()
33608{
33609 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33610}
33611
33612_LT_EOF
33613esac
33614
33615case $lt_shell_append in
33616 yes)
33617 cat << \_LT_EOF >> "$cfgfile"
33618
33619# func_append var value
33620# Append VALUE to the end of shell variable VAR.
33621func_append ()
33622{
33623 eval "$1+=\$2"
33624}
33625_LT_EOF
33626 ;;
33627 *)
33628 cat << \_LT_EOF >> "$cfgfile"
33629
33630# func_append var value
33631# Append VALUE to the end of shell variable VAR.
33632func_append ()
33633{
33634 eval "$1=\$$1\$2"
33635}
33636
33637_LT_EOF
33638 ;;
33639 esac
33640
33641
33642 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33643 || (rm -f "$cfgfile"; exit 1)
33644
33645 mv -f "$cfgfile" "$ofile" ||
33646 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33647 chmod +x "$ofile"
33648
33649
33650 cat <<_LT_EOF >> "$ofile"
33651
33652# ### BEGIN LIBTOOL TAG CONFIG: CXX
33653
33654# The linker used to build libraries.
33655LD=$lt_LD_CXX
33656
33657# Commands used to build an old-style archive.
33658old_archive_cmds=$lt_old_archive_cmds_CXX
33659
33660# A language specific compiler.
33661CC=$lt_compiler_CXX
33662
33663# Is the compiler the GNU compiler?
33664with_gcc=$GCC_CXX
33665
33666# Compiler flag to turn off builtin functions.
33667no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33668
33669# How to pass a linker flag through the compiler.
33670wl=$lt_lt_prog_compiler_wl_CXX
33671
33672# Additional compiler flags for building library objects.
33673pic_flag=$lt_lt_prog_compiler_pic_CXX
33674
33675# Compiler flag to prevent dynamic linking.
33676link_static_flag=$lt_lt_prog_compiler_static_CXX
33677
33678# Does compiler simultaneously support -c and -o options?
33679compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33680
33681# Whether or not to add -lc for building shared libraries.
33682build_libtool_need_lc=$archive_cmds_need_lc_CXX
33683
33684# Whether or not to disallow shared libs when runtime libs are static.
33685allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33686
33687# Compiler flag to allow reflexive dlopens.
33688export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33689
33690# Compiler flag to generate shared objects directly from archives.
33691whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33692
33693# Whether the compiler copes with passing no objects directly.
33694compiler_needs_object=$lt_compiler_needs_object_CXX
33695
33696# Create an old-style archive from a shared archive.
33697old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33698
33699# Create a temporary old-style archive to link instead of a shared archive.
33700old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33701
33702# Commands used to build a shared archive.
33703archive_cmds=$lt_archive_cmds_CXX
33704archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33705
33706# Commands used to build a loadable module if different from building
33707# a shared archive.
33708module_cmds=$lt_module_cmds_CXX
33709module_expsym_cmds=$lt_module_expsym_cmds_CXX
33710
33711# Whether we are building with GNU ld or not.
33712with_gnu_ld=$lt_with_gnu_ld_CXX
33713
33714# Flag that allows shared libraries with undefined symbols to be built.
33715allow_undefined_flag=$lt_allow_undefined_flag_CXX
33716
33717# Flag that enforces no undefined symbols.
33718no_undefined_flag=$lt_no_undefined_flag_CXX
33719
33720# Flag to hardcode \$libdir into a binary during linking.
33721# This must work even if \$libdir does not exist
33722hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33723
33724# If ld is used when linking, flag to hardcode \$libdir into a binary
33725# during linking. This must work even if \$libdir does not exist.
33726hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33727
33728# Whether we need a single "-rpath" flag with a separated argument.
33729hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33730
33731# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33732# DIR into the resulting binary.
33733hardcode_direct=$hardcode_direct_CXX
33734
33735# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33736# DIR into the resulting binary and the resulting library dependency is
33737# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33738# library is relocated.
33739hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33740
33741# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33742# into the resulting binary.
33743hardcode_minus_L=$hardcode_minus_L_CXX
33744
33745# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33746# into the resulting binary.
33747hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33748
33749# Set to "yes" if building a shared library automatically hardcodes DIR
33750# into the library and all subsequent libraries and executables linked
33751# against it.
33752hardcode_automatic=$hardcode_automatic_CXX
33753
33754# Set to yes if linker adds runtime paths of dependent libraries
33755# to runtime path list.
33756inherit_rpath=$inherit_rpath_CXX
33757
33758# Whether libtool must link a program against all its dependency libraries.
33759link_all_deplibs=$link_all_deplibs_CXX
33760
33761# Fix the shell variable \$srcfile for the compiler.
33762fix_srcfile_path=$lt_fix_srcfile_path_CXX
33763
33764# Set to "yes" if exported symbols are required.
33765always_export_symbols=$always_export_symbols_CXX
33766
33767# The commands to list exported symbols.
33768export_symbols_cmds=$lt_export_symbols_cmds_CXX
33769
33770# Symbols that should not be listed in the preloaded symbols.
33771exclude_expsyms=$lt_exclude_expsyms_CXX
33772
33773# Symbols that must always be exported.
33774include_expsyms=$lt_include_expsyms_CXX
33775
33776# Commands necessary for linking programs (against libraries) with templates.
33777prelink_cmds=$lt_prelink_cmds_CXX
33778
33779# Specify filename containing input files.
33780file_list_spec=$lt_file_list_spec_CXX
33781
33782# How to hardcode a shared library path into an executable.
33783hardcode_action=$hardcode_action_CXX
33784
33785# The directories searched by this compiler when creating a shared library.
33786compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33787
33788# Dependencies to place before and after the objects being linked to
33789# create a shared library.
33790predep_objects=$lt_predep_objects_CXX
33791postdep_objects=$lt_postdep_objects_CXX
33792predeps=$lt_predeps_CXX
33793postdeps=$lt_postdeps_CXX
33794
33795# The library search path used internally by the compiler when linking
33796# a shared library.
33797compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33798
33799# ### END LIBTOOL TAG CONFIG: CXX
33800_LT_EOF
33801
33802 ;;
33803 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33804 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33805 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33806 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33807 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33808 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33809
33810 esac
33811done # for ac_tag
33812
33813
cristy8b350f62009-11-15 23:12:43 +000033814as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033815_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033816ac_clean_files=$ac_clean_files_save
33817
33818test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033819 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033820
33821
33822# configure is writing to config.log, and then calls config.status.
33823# config.status does its own redirection, appending to config.log.
33824# Unfortunately, on DOS this fails, as config.log is still kept open
33825# by configure, so config.status won't be able to write to it; its
33826# output is simply discarded. So we exec the FD to /dev/null,
33827# effectively closing config.log, so it can be properly (re)opened and
33828# appended to by config.status. When coming back to configure, we
33829# need to make the FD available again.
33830if test "$no_create" != yes; then
33831 ac_cs_success=:
33832 ac_config_status_args=
33833 test "$silent" = yes &&
33834 ac_config_status_args="$ac_config_status_args --quiet"
33835 exec 5>/dev/null
33836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33837 exec 5>>config.log
33838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33839 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033840 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033841fi
33842if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033844$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33845fi
33846
33847
33848rm -f magick-version
33849
33850result_ghostscript_font_dir='none'
33851if test "${ghostscript_font_dir}x" != 'x'; then
33852 result_ghostscript_font_dir=$ghostscript_font_dir
33853fi
33854
33855result_windows_font_dir='none'
33856if test "${windows_font_dir}x" != 'x'; then
33857 result_windows_font_dir=${windows_font_dir}
33858fi
33859
cristy8b350f62009-11-15 23:12:43 +000033860{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033861ImageMagick is configured as follows. Please verify that this configuration
33862matches your expectations.
33863
33864Host system type: $host
33865Build system type: $build
33866
33867 Option Value
33868-------------------------------------------------------------------------------
33869Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33870Static libraries --enable-static=$enable_static $libtool_build_static_libs
33871Module support --with-modules=$with_modules $with_modules
33872GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33873Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33874High Dynamic Range Imagery
33875 --enable-hdri=$enable_hdri $enable_hdri
33876
33877Delegate Configuration:
33878BZLIB --with-bzlib=$with_bzlib $have_bzlib
33879Autotrace --with-autotrace=$with_autotrace $have_autotrace
33880DJVU --with-djvu=$with_djvu $have_djvu
33881DPS --with-dps=$with_dps $have_dps
33882FFTW --with-fftw=$with_fftw $have_fftw
33883FlashPIX --with-fpx=$with_fpx $have_fpx
33884FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33885FreeType --with-freetype=$with_freetype $have_freetype
33886GhostPCL None $PCLDelegate ($PCLVersion)
33887GhostXPS None $XPSDelegate ($XPSVersion)
33888Ghostscript None $PSDelegate ($GSVersion)
33889Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33890Ghostscript lib --with-gslib=$with_gslib $have_gslib
33891Graphviz --with-gvc=$with_gvc $have_gvc
33892JBIG --with-jbig=$with_jbig $have_jbig
33893JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33894JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33895LCMS --with-lcms=$with_lcms $have_lcms
33896LQR --with-lqr=$with_lqr $have_lqr
33897Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33898OpenEXR --with-openexr=$with_openexr $have_openexr
33899PERL --with-perl=$with_perl $have_perl
33900PNG --with-png=$with_png $have_png
33901RSVG --with-rsvg=$with_rsvg $have_rsvg
33902TIFF --with-tiff=$with_tiff $have_tiff
33903Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33904WMF --with-wmf=$with_wmf $have_wmf
33905X11 --with-x=$with_x $have_x
33906XML --with-xml=$with_xml $have_xml
33907ZLIB --with-zlib=$with_zlib $have_zlib
33908
33909X11 Configuration:
33910 X_CFLAGS = $X_CFLAGS
33911 X_PRE_LIBS = $X_PRE_LIBS
33912 X_LIBS = $X_LIBS
33913 X_EXTRA_LIBS = $X_EXTRA_LIBS
33914
33915Options used to compile and link:
33916 PREFIX = $PREFIX_DIR
33917 EXEC-PREFIX = $EXEC_PREFIX_DIR
33918 VERSION = $PACKAGE_VERSION
33919 CC = $CC
33920 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033921 CPPFLAGS = $MAGICK_CPPFLAGS
33922 PCFLAGS = $MAGICK_PCFLAGS
33923 DEFS = $DEFS
33924 LDFLAGS = $LDFLAGS
33925 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33926 LIBS = $MAGICK_LIBS
33927 CXX = $CXX
33928 CXXFLAGS = $CXXFLAGS
33929" >&5
33930$as_echo "
33931ImageMagick is configured as follows. Please verify that this configuration
33932matches your expectations.
33933
33934Host system type: $host
33935Build system type: $build
33936
33937 Option Value
33938-------------------------------------------------------------------------------
33939Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33940Static libraries --enable-static=$enable_static $libtool_build_static_libs
33941Module support --with-modules=$with_modules $with_modules
33942GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33943Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33944High Dynamic Range Imagery
33945 --enable-hdri=$enable_hdri $enable_hdri
33946
33947Delegate Configuration:
33948BZLIB --with-bzlib=$with_bzlib $have_bzlib
33949Autotrace --with-autotrace=$with_autotrace $have_autotrace
33950DJVU --with-djvu=$with_djvu $have_djvu
33951DPS --with-dps=$with_dps $have_dps
33952FFTW --with-fftw=$with_fftw $have_fftw
33953FlashPIX --with-fpx=$with_fpx $have_fpx
33954FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33955FreeType --with-freetype=$with_freetype $have_freetype
33956GhostPCL None $PCLDelegate ($PCLVersion)
33957GhostXPS None $XPSDelegate ($XPSVersion)
33958Ghostscript None $PSDelegate ($GSVersion)
33959Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33960Ghostscript lib --with-gslib=$with_gslib $have_gslib
33961Graphviz --with-gvc=$with_gvc $have_gvc
33962JBIG --with-jbig=$with_jbig $have_jbig
33963JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33964JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33965LCMS --with-lcms=$with_lcms $have_lcms
33966LQR --with-lqr=$with_lqr $have_lqr
33967Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33968OpenEXR --with-openexr=$with_openexr $have_openexr
33969PERL --with-perl=$with_perl $have_perl
33970PNG --with-png=$with_png $have_png
33971RSVG --with-rsvg=$with_rsvg $have_rsvg
33972TIFF --with-tiff=$with_tiff $have_tiff
33973Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33974WMF --with-wmf=$with_wmf $have_wmf
33975X11 --with-x=$with_x $have_x
33976XML --with-xml=$with_xml $have_xml
33977ZLIB --with-zlib=$with_zlib $have_zlib
33978
33979X11 Configuration:
33980 X_CFLAGS = $X_CFLAGS
33981 X_PRE_LIBS = $X_PRE_LIBS
33982 X_LIBS = $X_LIBS
33983 X_EXTRA_LIBS = $X_EXTRA_LIBS
33984
33985Options used to compile and link:
33986 PREFIX = $PREFIX_DIR
33987 EXEC-PREFIX = $EXEC_PREFIX_DIR
33988 VERSION = $PACKAGE_VERSION
33989 CC = $CC
33990 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033991 CPPFLAGS = $MAGICK_CPPFLAGS
33992 PCFLAGS = $MAGICK_PCFLAGS
33993 DEFS = $DEFS
33994 LDFLAGS = $LDFLAGS
33995 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33996 LIBS = $MAGICK_LIBS
33997 CXX = $CXX
33998 CXXFLAGS = $CXXFLAGS
33999" >&6; }