blob: 273c6ff6b6a490028a836b8611d25e5cc42b60c6 [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
cristy43596fe2010-01-21 16:46:08 +00001191enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001192enable_largefile
1193enable_shared
1194enable_static
1195with_pic
1196enable_fast_install
1197enable_libtool_lock
1198with_included_ltdl
1199with_ltdl_include
1200with_ltdl_lib
1201enable_ltdl_install
1202with_modules
1203enable_delegate_build
1204enable_deprecated
1205enable_installed
1206enable_cipher
1207enable_embeddable
1208enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001209enable_assert
1210enable_maintainer_mode
1211enable_ccmalloc
1212enable_efence
1213enable_prof
1214enable_gprof
1215enable_gcov
1216with_method_prefix
1217with_quantum_depth
1218with_cache
1219with_frozenpaths
1220with_magick_plus_plus
1221with_perl
1222with_perl_options
1223with_umem
1224with_libstdc
1225with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001226with_x
cristy3ed852e2009-09-05 21:47:34 +00001227with_zlib
1228with_autotrace
1229with_dps
1230with_djvu
1231with_fftw
1232with_fpx
1233with_fontconfig
1234with_freetype
1235with_gslib
1236with_fontpath
1237with_gs_font_dir
1238with_gvc
1239with_jbig
1240with_jpeg
1241with_jp2
1242with_lcms
1243with_lqr
1244with_openexr
1245with_png
1246with_rsvg
1247with_tiff
1248with_windows_font_dir
1249with_wmf
1250with_xml
1251'
1252 ac_precious_vars='build_alias
1253host_alias
1254target_alias
1255CC
1256CFLAGS
1257LDFLAGS
1258LIBS
1259CPPFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001260CXX
1261CXXFLAGS
1262CCC
cristy95646052009-11-28 23:05:30 +00001263CPP
cristy3ed852e2009-09-05 21:47:34 +00001264PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001265CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001266XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001267AUTOTRACE_CFLAGS
1268AUTOTRACE_LIBS
1269FONTCONFIG_CFLAGS
1270FONTCONFIG_LIBS
1271GVC_CFLAGS
1272GVC_LIBS
1273LQR_CFLAGS
1274LQR_LIBS
1275OPENEXR_CFLAGS
1276OPENEXR_LIBS
1277RSVG_CFLAGS
1278RSVG_LIBS
1279CAIRO_SVG_CFLAGS
1280CAIRO_SVG_LIBS'
1281
1282
1283# Initialize some variables set by options.
1284ac_init_help=
1285ac_init_version=false
1286ac_unrecognized_opts=
1287ac_unrecognized_sep=
1288# The variables have the same names as the options, with
1289# dashes changed to underlines.
1290cache_file=/dev/null
1291exec_prefix=NONE
1292no_create=
1293no_recursion=
1294prefix=NONE
1295program_prefix=NONE
1296program_suffix=NONE
1297program_transform_name=s,x,x,
1298silent=
1299site=
1300srcdir=
1301verbose=
1302x_includes=NONE
1303x_libraries=NONE
1304
1305# Installation directory options.
1306# These are left unexpanded so users can "make install exec_prefix=/foo"
1307# and all the variables that are supposed to be based on exec_prefix
1308# by default will actually change.
1309# Use braces instead of parens because sh, perl, etc. also accept them.
1310# (The list follows the same order as the GNU Coding Standards.)
1311bindir='${exec_prefix}/bin'
1312sbindir='${exec_prefix}/sbin'
1313libexecdir='${exec_prefix}/libexec'
1314datarootdir='${prefix}/share'
1315datadir='${datarootdir}'
1316sysconfdir='${prefix}/etc'
1317sharedstatedir='${prefix}/com'
1318localstatedir='${prefix}/var'
1319includedir='${prefix}/include'
1320oldincludedir='/usr/include'
1321docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1322infodir='${datarootdir}/info'
1323htmldir='${docdir}'
1324dvidir='${docdir}'
1325pdfdir='${docdir}'
1326psdir='${docdir}'
1327libdir='${exec_prefix}/lib'
1328localedir='${datarootdir}/locale'
1329mandir='${datarootdir}/man'
1330
1331ac_prev=
1332ac_dashdash=
1333for ac_option
1334do
1335 # If the previous option needs an argument, assign it.
1336 if test -n "$ac_prev"; then
1337 eval $ac_prev=\$ac_option
1338 ac_prev=
1339 continue
1340 fi
1341
1342 case $ac_option in
1343 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1344 *) ac_optarg=yes ;;
1345 esac
1346
1347 # Accept the important Cygnus configure options, so we can diagnose typos.
1348
1349 case $ac_dashdash$ac_option in
1350 --)
1351 ac_dashdash=yes ;;
1352
1353 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1354 ac_prev=bindir ;;
1355 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1356 bindir=$ac_optarg ;;
1357
1358 -build | --build | --buil | --bui | --bu)
1359 ac_prev=build_alias ;;
1360 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1361 build_alias=$ac_optarg ;;
1362
1363 -cache-file | --cache-file | --cache-fil | --cache-fi \
1364 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1365 ac_prev=cache_file ;;
1366 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1367 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1368 cache_file=$ac_optarg ;;
1369
1370 --config-cache | -C)
1371 cache_file=config.cache ;;
1372
1373 -datadir | --datadir | --datadi | --datad)
1374 ac_prev=datadir ;;
1375 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1376 datadir=$ac_optarg ;;
1377
1378 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1379 | --dataroo | --dataro | --datar)
1380 ac_prev=datarootdir ;;
1381 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1382 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1383 datarootdir=$ac_optarg ;;
1384
1385 -disable-* | --disable-*)
1386 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001389 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001390 ac_useropt_orig=$ac_useropt
1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1393 *"
1394"enable_$ac_useropt"
1395"*) ;;
1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1397 ac_unrecognized_sep=', ';;
1398 esac
1399 eval enable_$ac_useropt=no ;;
1400
1401 -docdir | --docdir | --docdi | --doc | --do)
1402 ac_prev=docdir ;;
1403 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1404 docdir=$ac_optarg ;;
1405
1406 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1407 ac_prev=dvidir ;;
1408 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1409 dvidir=$ac_optarg ;;
1410
1411 -enable-* | --enable-*)
1412 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1413 # Reject names that are not valid shell variable names.
1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001415 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001416 ac_useropt_orig=$ac_useropt
1417 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418 case $ac_user_opts in
1419 *"
1420"enable_$ac_useropt"
1421"*) ;;
1422 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1423 ac_unrecognized_sep=', ';;
1424 esac
1425 eval enable_$ac_useropt=\$ac_optarg ;;
1426
1427 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1428 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1429 | --exec | --exe | --ex)
1430 ac_prev=exec_prefix ;;
1431 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1432 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1433 | --exec=* | --exe=* | --ex=*)
1434 exec_prefix=$ac_optarg ;;
1435
1436 -gas | --gas | --ga | --g)
1437 # Obsolete; use --with-gas.
1438 with_gas=yes ;;
1439
1440 -help | --help | --hel | --he | -h)
1441 ac_init_help=long ;;
1442 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1443 ac_init_help=recursive ;;
1444 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1445 ac_init_help=short ;;
1446
1447 -host | --host | --hos | --ho)
1448 ac_prev=host_alias ;;
1449 -host=* | --host=* | --hos=* | --ho=*)
1450 host_alias=$ac_optarg ;;
1451
1452 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1453 ac_prev=htmldir ;;
1454 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1455 | --ht=*)
1456 htmldir=$ac_optarg ;;
1457
1458 -includedir | --includedir | --includedi | --included | --include \
1459 | --includ | --inclu | --incl | --inc)
1460 ac_prev=includedir ;;
1461 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1462 | --includ=* | --inclu=* | --incl=* | --inc=*)
1463 includedir=$ac_optarg ;;
1464
1465 -infodir | --infodir | --infodi | --infod | --info | --inf)
1466 ac_prev=infodir ;;
1467 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1468 infodir=$ac_optarg ;;
1469
1470 -libdir | --libdir | --libdi | --libd)
1471 ac_prev=libdir ;;
1472 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1473 libdir=$ac_optarg ;;
1474
1475 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1476 | --libexe | --libex | --libe)
1477 ac_prev=libexecdir ;;
1478 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1479 | --libexe=* | --libex=* | --libe=*)
1480 libexecdir=$ac_optarg ;;
1481
1482 -localedir | --localedir | --localedi | --localed | --locale)
1483 ac_prev=localedir ;;
1484 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1485 localedir=$ac_optarg ;;
1486
1487 -localstatedir | --localstatedir | --localstatedi | --localstated \
1488 | --localstate | --localstat | --localsta | --localst | --locals)
1489 ac_prev=localstatedir ;;
1490 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1491 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1492 localstatedir=$ac_optarg ;;
1493
1494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1495 ac_prev=mandir ;;
1496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1497 mandir=$ac_optarg ;;
1498
1499 -nfp | --nfp | --nf)
1500 # Obsolete; use --without-fp.
1501 with_fp=no ;;
1502
1503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1504 | --no-cr | --no-c | -n)
1505 no_create=yes ;;
1506
1507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1509 no_recursion=yes ;;
1510
1511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1513 | --oldin | --oldi | --old | --ol | --o)
1514 ac_prev=oldincludedir ;;
1515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1518 oldincludedir=$ac_optarg ;;
1519
1520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1521 ac_prev=prefix ;;
1522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1523 prefix=$ac_optarg ;;
1524
1525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1526 | --program-pre | --program-pr | --program-p)
1527 ac_prev=program_prefix ;;
1528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1530 program_prefix=$ac_optarg ;;
1531
1532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1533 | --program-suf | --program-su | --program-s)
1534 ac_prev=program_suffix ;;
1535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1537 program_suffix=$ac_optarg ;;
1538
1539 -program-transform-name | --program-transform-name \
1540 | --program-transform-nam | --program-transform-na \
1541 | --program-transform-n | --program-transform- \
1542 | --program-transform | --program-transfor \
1543 | --program-transfo | --program-transf \
1544 | --program-trans | --program-tran \
1545 | --progr-tra | --program-tr | --program-t)
1546 ac_prev=program_transform_name ;;
1547 -program-transform-name=* | --program-transform-name=* \
1548 | --program-transform-nam=* | --program-transform-na=* \
1549 | --program-transform-n=* | --program-transform-=* \
1550 | --program-transform=* | --program-transfor=* \
1551 | --program-transfo=* | --program-transf=* \
1552 | --program-trans=* | --program-tran=* \
1553 | --progr-tra=* | --program-tr=* | --program-t=*)
1554 program_transform_name=$ac_optarg ;;
1555
1556 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1557 ac_prev=pdfdir ;;
1558 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1559 pdfdir=$ac_optarg ;;
1560
1561 -psdir | --psdir | --psdi | --psd | --ps)
1562 ac_prev=psdir ;;
1563 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1564 psdir=$ac_optarg ;;
1565
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1568 silent=yes ;;
1569
1570 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1571 ac_prev=sbindir ;;
1572 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1573 | --sbi=* | --sb=*)
1574 sbindir=$ac_optarg ;;
1575
1576 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1577 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1578 | --sharedst | --shareds | --shared | --share | --shar \
1579 | --sha | --sh)
1580 ac_prev=sharedstatedir ;;
1581 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1582 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1583 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1584 | --sha=* | --sh=*)
1585 sharedstatedir=$ac_optarg ;;
1586
1587 -site | --site | --sit)
1588 ac_prev=site ;;
1589 -site=* | --site=* | --sit=*)
1590 site=$ac_optarg ;;
1591
1592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1593 ac_prev=srcdir ;;
1594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1595 srcdir=$ac_optarg ;;
1596
1597 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1598 | --syscon | --sysco | --sysc | --sys | --sy)
1599 ac_prev=sysconfdir ;;
1600 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1601 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1602 sysconfdir=$ac_optarg ;;
1603
1604 -target | --target | --targe | --targ | --tar | --ta | --t)
1605 ac_prev=target_alias ;;
1606 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1607 target_alias=$ac_optarg ;;
1608
1609 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1610 verbose=yes ;;
1611
1612 -version | --version | --versio | --versi | --vers | -V)
1613 ac_init_version=: ;;
1614
1615 -with-* | --with-*)
1616 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1617 # Reject names that are not valid shell variable names.
1618 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001619 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001620 ac_useropt_orig=$ac_useropt
1621 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1622 case $ac_user_opts in
1623 *"
1624"with_$ac_useropt"
1625"*) ;;
1626 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1627 ac_unrecognized_sep=', ';;
1628 esac
1629 eval with_$ac_useropt=\$ac_optarg ;;
1630
1631 -without-* | --without-*)
1632 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1633 # Reject names that are not valid shell variable names.
1634 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001635 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001636 ac_useropt_orig=$ac_useropt
1637 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1638 case $ac_user_opts in
1639 *"
1640"with_$ac_useropt"
1641"*) ;;
1642 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1643 ac_unrecognized_sep=', ';;
1644 esac
1645 eval with_$ac_useropt=no ;;
1646
1647 --x)
1648 # Obsolete; use --with-x.
1649 with_x=yes ;;
1650
1651 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1652 | --x-incl | --x-inc | --x-in | --x-i)
1653 ac_prev=x_includes ;;
1654 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1655 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1656 x_includes=$ac_optarg ;;
1657
1658 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1659 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1660 ac_prev=x_libraries ;;
1661 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1662 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1663 x_libraries=$ac_optarg ;;
1664
cristy8b350f62009-11-15 23:12:43 +00001665 -*) as_fn_error "unrecognized option: \`$ac_option'
1666Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001667 ;;
1668
1669 *=*)
1670 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1671 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001672 case $ac_envvar in #(
1673 '' | [0-9]* | *[!_$as_cr_alnum]* )
1674 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1675 esac
cristy3ed852e2009-09-05 21:47:34 +00001676 eval $ac_envvar=\$ac_optarg
1677 export $ac_envvar ;;
1678
1679 *)
1680 # FIXME: should be removed in autoconf 3.0.
1681 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1682 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1683 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1684 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1685 ;;
1686
1687 esac
1688done
1689
1690if test -n "$ac_prev"; then
1691 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001692 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001693fi
1694
1695if test -n "$ac_unrecognized_opts"; then
1696 case $enable_option_checking in
1697 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001698 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001699 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1700 esac
1701fi
1702
1703# Check all directory arguments for consistency.
1704for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1705 datadir sysconfdir sharedstatedir localstatedir includedir \
1706 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1707 libdir localedir mandir
1708do
1709 eval ac_val=\$$ac_var
1710 # Remove trailing slashes.
1711 case $ac_val in
1712 */ )
1713 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1714 eval $ac_var=\$ac_val;;
1715 esac
1716 # Be sure to have absolute directory names.
1717 case $ac_val in
1718 [\\/$]* | ?:[\\/]* ) continue;;
1719 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1720 esac
cristy8b350f62009-11-15 23:12:43 +00001721 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001722done
1723
1724# There might be people who depend on the old broken behavior: `$host'
1725# used to hold the argument of --host etc.
1726# FIXME: To remove some day.
1727build=$build_alias
1728host=$host_alias
1729target=$target_alias
1730
1731# FIXME: To remove some day.
1732if test "x$host_alias" != x; then
1733 if test "x$build_alias" = x; then
1734 cross_compiling=maybe
1735 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1736 If a cross compiler is detected then cross compile mode will be used." >&2
1737 elif test "x$build_alias" != "x$host_alias"; then
1738 cross_compiling=yes
1739 fi
1740fi
1741
1742ac_tool_prefix=
1743test -n "$host_alias" && ac_tool_prefix=$host_alias-
1744
1745test "$silent" = yes && exec 6>/dev/null
1746
1747
1748ac_pwd=`pwd` && test -n "$ac_pwd" &&
1749ac_ls_di=`ls -di .` &&
1750ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001751 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001752test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001753 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001754
1755
1756# Find the source files, if location was not specified.
1757if test -z "$srcdir"; then
1758 ac_srcdir_defaulted=yes
1759 # Try the directory containing this script, then the parent directory.
1760 ac_confdir=`$as_dirname -- "$as_myself" ||
1761$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1762 X"$as_myself" : 'X\(//\)[^/]' \| \
1763 X"$as_myself" : 'X\(//\)$' \| \
1764 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1765$as_echo X"$as_myself" |
1766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1767 s//\1/
1768 q
1769 }
1770 /^X\(\/\/\)[^/].*/{
1771 s//\1/
1772 q
1773 }
1774 /^X\(\/\/\)$/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\).*/{
1779 s//\1/
1780 q
1781 }
1782 s/.*/./; q'`
1783 srcdir=$ac_confdir
1784 if test ! -r "$srcdir/$ac_unique_file"; then
1785 srcdir=..
1786 fi
1787else
1788 ac_srcdir_defaulted=no
1789fi
1790if test ! -r "$srcdir/$ac_unique_file"; then
1791 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001792 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001793fi
1794ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1795ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001796 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001797 pwd)`
1798# When building in place, set srcdir=.
1799if test "$ac_abs_confdir" = "$ac_pwd"; then
1800 srcdir=.
1801fi
1802# Remove unnecessary trailing slashes from srcdir.
1803# Double slashes in file names in object file debugging info
1804# mess up M-x gdb in Emacs.
1805case $srcdir in
1806*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1807esac
1808for ac_var in $ac_precious_vars; do
1809 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_env_${ac_var}_value=\$${ac_var}
1811 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1812 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1813done
1814
1815#
1816# Report the --help message.
1817#
1818if test "$ac_init_help" = "long"; then
1819 # Omit some internal or obsolete options to make the list less imposing.
1820 # This message is too long to be a string in the A/UX 3.1 sh.
1821 cat <<_ACEOF
cristydc0f0892009-12-29 02:21:55 +00001822\`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001823
1824Usage: $0 [OPTION]... [VAR=VALUE]...
1825
1826To assign environment variables (e.g., CC, CFLAGS...), specify them as
1827VAR=VALUE. See below for descriptions of some of the useful variables.
1828
1829Defaults for the options are specified in brackets.
1830
1831Configuration:
1832 -h, --help display this help and exit
1833 --help=short display options specific to this package
1834 --help=recursive display the short help of all the included packages
1835 -V, --version display version information and exit
1836 -q, --quiet, --silent do not print \`checking...' messages
1837 --cache-file=FILE cache test results in FILE [disabled]
1838 -C, --config-cache alias for \`--cache-file=config.cache'
1839 -n, --no-create do not create output files
1840 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1841
1842Installation directories:
1843 --prefix=PREFIX install architecture-independent files in PREFIX
1844 [$ac_default_prefix]
1845 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1846 [PREFIX]
1847
1848By default, \`make install' will install all the files in
1849\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1850an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1851for instance \`--prefix=\$HOME'.
1852
1853For better control, use the options below.
1854
1855Fine tuning of the installation directories:
1856 --bindir=DIR user executables [EPREFIX/bin]
1857 --sbindir=DIR system admin executables [EPREFIX/sbin]
1858 --libexecdir=DIR program executables [EPREFIX/libexec]
1859 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1860 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1861 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1862 --libdir=DIR object code libraries [EPREFIX/lib]
1863 --includedir=DIR C header files [PREFIX/include]
1864 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1865 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1866 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1867 --infodir=DIR info documentation [DATAROOTDIR/info]
1868 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1869 --mandir=DIR man documentation [DATAROOTDIR/man]
1870 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1871 --htmldir=DIR html documentation [DOCDIR]
1872 --dvidir=DIR dvi documentation [DOCDIR]
1873 --pdfdir=DIR pdf documentation [DOCDIR]
1874 --psdir=DIR ps documentation [DOCDIR]
1875_ACEOF
1876
1877 cat <<\_ACEOF
1878
1879Program names:
1880 --program-prefix=PREFIX prepend PREFIX to installed program names
1881 --program-suffix=SUFFIX append SUFFIX to installed program names
1882 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1883
1884X features:
1885 --x-includes=DIR X include files are in DIR
1886 --x-libraries=DIR X library files are in DIR
1887
1888System types:
1889 --build=BUILD configure for building on BUILD [guessed]
1890 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1891 --target=TARGET configure for building compilers for TARGET [HOST]
1892_ACEOF
1893fi
1894
1895if test -n "$ac_init_help"; then
1896 case $ac_init_help in
cristydc0f0892009-12-29 02:21:55 +00001897 short | recursive ) echo "Configuration of ImageMagick 6.5.9:";;
cristy3ed852e2009-09-05 21:47:34 +00001898 esac
1899 cat <<\_ACEOF
1900
1901Optional Features:
1902 --disable-option-checking ignore unrecognized --enable/--with options
1903 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1904 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1905 --enable-silent-rules less verbose build output (undo: `make V=1')
1906 --disable-silent-rules verbose build output (undo: `make V=0')
1907 --disable-dependency-tracking speeds up one-time build
1908 --enable-dependency-tracking do not reject slow dependency extractors
1909 --bounds-checking enable run-time bounds-checking
1910 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001911 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001912 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001913 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001914 --disable-largefile omit support for large files
1915 --enable-shared[=PKGS] build shared libraries [default=yes]
1916 --enable-static[=PKGS] build static libraries [default=yes]
1917 --enable-fast-install[=PKGS]
1918 optimize for fast installation [default=yes]
1919 --disable-libtool-lock avoid locking (might break parallel builds)
1920 --enable-ltdl-install install libltdl
1921 --enable-delegate-build look for delegate libraries in build directory
1922 --disable-deprecated exclude deprecated methods in MagickCore and
1923 MagickWand API's
1924 --disable-installed Formally install ImageMagick under PREFIX
1925 --disable-cipher disable enciphering and deciphering image pixels
1926 --enable-embeddable enable self-contained, embeddable,
1927 zero-configuration ImageMagick
1928 --enable-hdri accurately represent the wide range of intensity
1929 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001930 --disable-assert disable assert() statements in build
1931 --enable-maintainer-mode enable make rules and dependencies not useful
1932 (and sometimes confusing) to the casual installer
1933 --enable-ccmalloc enable 'ccmalloc' memory debug support
1934 --enable-efence enable 'efence' memory debug support
1935 --enable-prof enable 'prof' profiling support
1936 --enable-gprof enable 'gprof' profiling support
1937 --enable-gcov enable 'gcov' profiling support
1938
1939Optional Packages:
1940 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1941 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1942 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1943 --without-maximum-compile-warnings
1944 Disable maximum warning verbosity
1945 --with-dmalloc use dmalloc, as in
1946 http://www.dmalloc.com/dmalloc.tar.gz
1947 --without-threads disable threads support
1948 --with-pic try to use only PIC/non-PIC objects [default=use
1949 both]
1950 --with-included-ltdl use the GNU ltdl sources included here
1951 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1952 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1953 --with-modules enable building dynamically loadable modules
1954 --with-method-prefix=PREFIX
1955 prefix MagickCore API methods
1956 --with-quantum-depth=DEPTH
1957 number of bits in a pixel quantum (default 16)
1958 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1959 memory)
1960 --with-frozenpaths freeze delegate paths
1961 --without-magick-plus-plus
1962 disable build/install of Magick++
1963 --with-perl enable build/install of PerlMagick
1964 --with-perl-options=OPTIONS
1965 options to pass on command-line when generating
1966 PerlMagick's build file
1967 --with-umem enable umem memory allocation library support
1968 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1969 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001970 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001971 --without-zlib disable ZLIB support
1972 --with-autotrace enable autotrace support
1973 --without-dps disable Display Postscript support
1974 --without-djvu disable DjVu support
1975 --without-fftw disable FFTW support
1976 --without-fpx disable FlashPIX support
1977 --without-fontconfig disable fontconfig support
1978 --without-freetype disable Freetype support
1979 --without-gslib enable Ghostscript library support
1980 --with-fontpath=DIR prepend to default font search path
1981 --with-gs-font-dir=DIR Ghostscript font directory
1982 --without-gvc disable GVC support
1983 --without-jbig disable JBIG support
1984 --without-jpeg disable JPEG support
1985 --without-jp2 disable JPEG-2000 support
1986 --without-lcms disable LCMS support
1987 --without-lqr disable Liquid Rescale support (experimental)
1988 --without-openexr disable OpenEXR support
1989 --without-png disable PNG support
1990 --without-rsvg disable RSVG support
1991 --without-tiff disable TIFF support
1992 --with-windows-font-dir=DIR
1993 directory containing MS-Windows fonts
1994 --without-wmf disable WMF support
1995 --without-xml disable XML support
1996
1997Some influential environment variables:
1998 CC C compiler command
1999 CFLAGS C compiler flags
2000 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2001 nonstandard directory <lib dir>
2002 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002003 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002004 you have headers in a nonstandard directory <include dir>
cristy3ed852e2009-09-05 21:47:34 +00002005 CXX C++ compiler command
2006 CXXFLAGS C++ compiler flags
cristy95646052009-11-28 23:05:30 +00002007 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002008 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002009 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002010 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002011 AUTOTRACE_CFLAGS
2012 C compiler flags for AUTOTRACE, overriding pkg-config
2013 AUTOTRACE_LIBS
2014 linker flags for AUTOTRACE, overriding pkg-config
2015 FONTCONFIG_CFLAGS
2016 C compiler flags for FONTCONFIG, overriding pkg-config
2017 FONTCONFIG_LIBS
2018 linker flags for FONTCONFIG, overriding pkg-config
2019 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2020 GVC_LIBS linker flags for GVC, overriding pkg-config
2021 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2022 LQR_LIBS linker flags for LQR, overriding pkg-config
2023 OPENEXR_CFLAGS
2024 C compiler flags for OPENEXR, overriding pkg-config
2025 OPENEXR_LIBS
2026 linker flags for OPENEXR, overriding pkg-config
2027 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2028 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2029 CAIRO_SVG_CFLAGS
2030 C compiler flags for CAIRO_SVG, overriding pkg-config
2031 CAIRO_SVG_LIBS
2032 linker flags for CAIRO_SVG, overriding pkg-config
2033
2034Use these variables to override the choices made by `configure' or to help
2035it to find libraries and programs with nonstandard names/locations.
2036
2037Report bugs to <http://www.imagemagick.org>.
2038_ACEOF
2039ac_status=$?
2040fi
2041
2042if test "$ac_init_help" = "recursive"; then
2043 # If there are subdirs, report their specific --help.
2044 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2045 test -d "$ac_dir" ||
2046 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2047 continue
2048 ac_builddir=.
2049
2050case "$ac_dir" in
2051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2052*)
2053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2054 # A ".." for each directory in $ac_dir_suffix.
2055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2056 case $ac_top_builddir_sub in
2057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2059 esac ;;
2060esac
2061ac_abs_top_builddir=$ac_pwd
2062ac_abs_builddir=$ac_pwd$ac_dir_suffix
2063# for backward compatibility:
2064ac_top_builddir=$ac_top_build_prefix
2065
2066case $srcdir in
2067 .) # We are building in place.
2068 ac_srcdir=.
2069 ac_top_srcdir=$ac_top_builddir_sub
2070 ac_abs_top_srcdir=$ac_pwd ;;
2071 [\\/]* | ?:[\\/]* ) # Absolute name.
2072 ac_srcdir=$srcdir$ac_dir_suffix;
2073 ac_top_srcdir=$srcdir
2074 ac_abs_top_srcdir=$srcdir ;;
2075 *) # Relative name.
2076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2077 ac_top_srcdir=$ac_top_build_prefix$srcdir
2078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2079esac
2080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2081
2082 cd "$ac_dir" || { ac_status=$?; continue; }
2083 # Check for guested configure.
2084 if test -f "$ac_srcdir/configure.gnu"; then
2085 echo &&
2086 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2087 elif test -f "$ac_srcdir/configure"; then
2088 echo &&
2089 $SHELL "$ac_srcdir/configure" --help=recursive
2090 else
2091 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2092 fi || ac_status=$?
2093 cd "$ac_pwd" || { ac_status=$?; break; }
2094 done
2095fi
2096
2097test -n "$ac_init_help" && exit $ac_status
2098if $ac_init_version; then
2099 cat <<\_ACEOF
cristydc0f0892009-12-29 02:21:55 +00002100ImageMagick configure 6.5.9
cristycd4c5312009-11-22 01:19:08 +00002101generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002102
cristy8b350f62009-11-15 23:12:43 +00002103Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002104This configure script is free software; the Free Software Foundation
2105gives unlimited permission to copy, distribute and modify it.
2106_ACEOF
2107 exit
2108fi
cristy8b350f62009-11-15 23:12:43 +00002109
2110## ------------------------ ##
2111## Autoconf initialization. ##
2112## ------------------------ ##
2113
2114# ac_fn_c_try_compile LINENO
2115# --------------------------
2116# Try to compile conftest.$ac_ext, and return whether this succeeded.
2117ac_fn_c_try_compile ()
2118{
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 rm -f conftest.$ac_objext
2121 if { { ac_try="$ac_compile"
2122case "(($ac_try" in
2123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124 *) ac_try_echo=$ac_try;;
2125esac
2126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2127$as_echo "$ac_try_echo"; } >&5
2128 (eval "$ac_compile") 2>conftest.err
2129 ac_status=$?
2130 if test -s conftest.err; then
2131 grep -v '^ *+' conftest.err >conftest.er1
2132 cat conftest.er1 >&5
2133 mv -f conftest.er1 conftest.err
2134 fi
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136 test $ac_status = 0; } && {
2137 test -z "$ac_c_werror_flag" ||
2138 test ! -s conftest.err
2139 } && test -s conftest.$ac_objext; then :
2140 ac_retval=0
2141else
2142 $as_echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 ac_retval=1
2146fi
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002148 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002149
2150} # ac_fn_c_try_compile
2151
cristy8b350f62009-11-15 23:12:43 +00002152# ac_fn_cxx_try_compile LINENO
2153# ----------------------------
2154# Try to compile conftest.$ac_ext, and return whether this succeeded.
2155ac_fn_cxx_try_compile ()
2156{
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 rm -f conftest.$ac_objext
2159 if { { ac_try="$ac_compile"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165$as_echo "$ac_try_echo"; } >&5
2166 (eval "$ac_compile") 2>conftest.err
2167 ac_status=$?
2168 if test -s conftest.err; then
2169 grep -v '^ *+' conftest.err >conftest.er1
2170 cat conftest.er1 >&5
2171 mv -f conftest.er1 conftest.err
2172 fi
2173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174 test $ac_status = 0; } && {
2175 test -z "$ac_cxx_werror_flag" ||
2176 test ! -s conftest.err
2177 } && test -s conftest.$ac_objext; then :
2178 ac_retval=0
2179else
2180 $as_echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 ac_retval=1
2184fi
2185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002186 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002187
2188} # ac_fn_cxx_try_compile
2189
cristy95646052009-11-28 23:05:30 +00002190# ac_fn_c_try_cpp LINENO
2191# ----------------------
2192# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2193ac_fn_c_try_cpp ()
2194{
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 if { { ac_try="$ac_cpp conftest.$ac_ext"
2197case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200esac
2201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202$as_echo "$ac_try_echo"; } >&5
2203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2204 ac_status=$?
2205 if test -s conftest.err; then
2206 grep -v '^ *+' conftest.err >conftest.er1
2207 cat conftest.er1 >&5
2208 mv -f conftest.er1 conftest.err
2209 fi
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; } >/dev/null && {
2212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2213 test ! -s conftest.err
2214 }; then :
2215 ac_retval=0
2216else
2217 $as_echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_retval=1
2221fi
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 as_fn_set_status $ac_retval
2224
2225} # ac_fn_c_try_cpp
2226
cristy8b350f62009-11-15 23:12:43 +00002227# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2228# -------------------------------------------------------
2229# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2230# the include files in INCLUDES and setting the cache variable VAR
2231# accordingly.
2232ac_fn_c_check_header_mongrel ()
2233{
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237$as_echo_n "checking for $2... " >&6; }
2238if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240fi
2241eval ac_res=\$$3
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243$as_echo "$ac_res" >&6; }
2244else
2245 # Is the header compilable?
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2247$as_echo_n "checking $2 usability... " >&6; }
2248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250$4
2251#include <$2>
2252_ACEOF
2253if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_header_compiler=yes
2255else
2256 ac_header_compiler=no
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2260$as_echo "$ac_header_compiler" >&6; }
2261
2262# Is the header present?
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2264$as_echo_n "checking $2 presence... " >&6; }
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267#include <$2>
2268_ACEOF
2269if ac_fn_c_try_cpp "$LINENO"; then :
2270 ac_header_preproc=yes
2271else
2272 ac_header_preproc=no
2273fi
2274rm -f conftest.err conftest.$ac_ext
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2276$as_echo "$ac_header_preproc" >&6; }
2277
2278# So? What about this header?
2279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2280 yes:no: )
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2282$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2284$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2285 ;;
2286 no:yes:* )
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2288$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2290$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2292$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2294$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2296$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2297( cat <<\_ASBOX
2298## ----------------------------------------- ##
2299## Report this to http://www.imagemagick.org ##
2300## ----------------------------------------- ##
2301_ASBOX
2302 ) | sed "s/^/$as_me: WARNING: /" >&2
2303 ;;
2304esac
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306$as_echo_n "checking for $2... " >&6; }
2307if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2308 $as_echo_n "(cached) " >&6
2309else
2310 eval "$3=\$ac_header_compiler"
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
2315fi
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2317
2318} # ac_fn_c_check_header_mongrel
2319
2320# ac_fn_c_try_run LINENO
2321# ----------------------
2322# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2323# that executables *can* be run.
2324ac_fn_c_try_run ()
2325{
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 if { { ac_try="$ac_link"
2328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333$as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_link") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2338 { { case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343$as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_try") 2>&5
2345 ac_status=$?
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; }; }; then :
2348 ac_retval=0
2349else
2350 $as_echo "$as_me: program exited with status $ac_status" >&5
2351 $as_echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 ac_retval=$ac_status
2355fi
2356 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002358 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002359
2360} # ac_fn_c_try_run
2361
2362# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2363# -------------------------------------------------------
2364# Tests whether HEADER exists and can be compiled using the include files in
2365# INCLUDES, setting the cache variable VAR accordingly.
2366ac_fn_c_check_header_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370$as_echo_n "checking for $2... " >&6; }
2371if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2372 $as_echo_n "(cached) " >&6
2373else
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375/* end confdefs.h. */
2376$4
2377#include <$2>
2378_ACEOF
2379if ac_fn_c_try_compile "$LINENO"; then :
2380 eval "$3=yes"
2381else
2382 eval "$3=no"
2383fi
2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385fi
2386eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388$as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390
2391} # ac_fn_c_check_header_compile
2392
2393# ac_fn_c_try_link LINENO
2394# -----------------------
2395# Try to link conftest.$ac_ext, and return whether this succeeded.
2396ac_fn_c_try_link ()
2397{
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { { ac_try="$ac_link"
2401case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406$as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_link") 2>conftest.err
2408 ac_status=$?
2409 if test -s conftest.err; then
2410 grep -v '^ *+' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2412 mv -f conftest.er1 conftest.err
2413 fi
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest$ac_exeext && {
2419 test "$cross_compiling" = yes ||
2420 $as_test_x conftest$ac_exeext
2421 }; then :
2422 ac_retval=0
2423else
2424 $as_echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_retval=1
2428fi
2429 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2430 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2431 # interfere with the next link command; also delete a directory that is
2432 # left behind by Apple's compiler. We do this before executing the actions.
2433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002435 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002436
2437} # ac_fn_c_try_link
2438
2439# ac_fn_c_check_func LINENO FUNC VAR
2440# ----------------------------------
2441# Tests whether FUNC exists, setting the cache variable VAR accordingly
2442ac_fn_c_check_func ()
2443{
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2446$as_echo_n "checking for $2... " >&6; }
2447if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2448 $as_echo_n "(cached) " >&6
2449else
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451/* end confdefs.h. */
2452/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2454#define $2 innocuous_$2
2455
2456/* System header to define __stub macros and hopefully few prototypes,
2457 which can conflict with char $2 (); below.
2458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2459 <limits.h> exists even on freestanding compilers. */
2460
2461#ifdef __STDC__
2462# include <limits.h>
2463#else
2464# include <assert.h>
2465#endif
2466
2467#undef $2
2468
2469/* Override any GCC internal prototype to avoid an error.
2470 Use char because int might match the return type of a GCC
2471 builtin and then its argument prototype would still apply. */
2472#ifdef __cplusplus
2473extern "C"
2474#endif
2475char $2 ();
2476/* The GNU C library defines this for functions which it implements
2477 to always fail with ENOSYS. Some functions are actually named
2478 something starting with __ and the normal name is an alias. */
2479#if defined __stub_$2 || defined __stub___$2
2480choke me
2481#endif
2482
2483int
2484main ()
2485{
2486return $2 ();
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491if ac_fn_c_try_link "$LINENO"; then :
2492 eval "$3=yes"
2493else
2494 eval "$3=no"
2495fi
2496rm -f core conftest.err conftest.$ac_objext \
2497 conftest$ac_exeext conftest.$ac_ext
2498fi
2499eval ac_res=\$$3
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501$as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503
2504} # ac_fn_c_check_func
2505
2506# ac_fn_cxx_try_cpp LINENO
2507# ------------------------
2508# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2509ac_fn_cxx_try_cpp ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 if { { ac_try="$ac_cpp conftest.$ac_ext"
2513case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516esac
2517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518$as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2520 ac_status=$?
2521 if test -s conftest.err; then
2522 grep -v '^ *+' conftest.err >conftest.er1
2523 cat conftest.er1 >&5
2524 mv -f conftest.er1 conftest.err
2525 fi
2526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; } >/dev/null && {
2528 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2529 test ! -s conftest.err
2530 }; then :
2531 ac_retval=0
2532else
2533 $as_echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 ac_retval=1
2537fi
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002539 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002540
2541} # ac_fn_cxx_try_cpp
2542
2543# ac_fn_cxx_try_link LINENO
2544# -------------------------
2545# Try to link conftest.$ac_ext, and return whether this succeeded.
2546ac_fn_cxx_try_link ()
2547{
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 rm -f conftest.$ac_objext conftest$ac_exeext
2550 if { { ac_try="$ac_link"
2551case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554esac
2555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556$as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_link") 2>conftest.err
2558 ac_status=$?
2559 if test -s conftest.err; then
2560 grep -v '^ *+' conftest.err >conftest.er1
2561 cat conftest.er1 >&5
2562 mv -f conftest.er1 conftest.err
2563 fi
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; } && {
2566 test -z "$ac_cxx_werror_flag" ||
2567 test ! -s conftest.err
2568 } && test -s conftest$ac_exeext && {
2569 test "$cross_compiling" = yes ||
2570 $as_test_x conftest$ac_exeext
2571 }; then :
2572 ac_retval=0
2573else
2574 $as_echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_retval=1
2578fi
2579 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2580 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2581 # interfere with the next link command; also delete a directory that is
2582 # left behind by Apple's compiler. We do this before executing the actions.
2583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002585 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002586
2587} # ac_fn_cxx_try_link
2588
2589# ac_fn_c_check_decl LINENO SYMBOL VAR
2590# ------------------------------------
2591# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2592ac_fn_c_check_decl ()
2593{
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2596$as_echo_n "checking whether $2 is declared... " >&6; }
2597if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2598 $as_echo_n "(cached) " >&6
2599else
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601/* end confdefs.h. */
2602$4
2603int
2604main ()
2605{
2606#ifndef $2
2607 (void) $2;
2608#endif
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614if ac_fn_c_try_compile "$LINENO"; then :
2615 eval "$3=yes"
2616else
2617 eval "$3=no"
2618fi
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620fi
2621eval ac_res=\$$3
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2623$as_echo "$ac_res" >&6; }
2624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2625
2626} # ac_fn_c_check_decl
2627
2628# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2629# -------------------------------------------
2630# Tests whether TYPE exists after having included INCLUDES, setting cache
2631# variable VAR accordingly.
2632ac_fn_c_check_type ()
2633{
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2636$as_echo_n "checking for $2... " >&6; }
2637if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2638 $as_echo_n "(cached) " >&6
2639else
2640 eval "$3=no"
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642/* end confdefs.h. */
2643$4
2644int
2645main ()
2646{
2647if (sizeof ($2))
2648 return 0;
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653if ac_fn_c_try_compile "$LINENO"; then :
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655/* end confdefs.h. */
2656$4
2657int
2658main ()
2659{
2660if (sizeof (($2)))
2661 return 0;
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666if ac_fn_c_try_compile "$LINENO"; then :
2667
2668else
2669 eval "$3=yes"
2670fi
2671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672fi
2673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674fi
2675eval ac_res=\$$3
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2677$as_echo "$ac_res" >&6; }
2678 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2679
2680} # ac_fn_c_check_type
2681
2682# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2683# --------------------------------------------
2684# Tries to find the compile-time value of EXPR in a program that includes
2685# INCLUDES, setting VAR accordingly. Returns whether the value could be
2686# computed
2687ac_fn_c_compute_int ()
2688{
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 if test "$cross_compiling" = yes; then
2691 # Depending upon the size, compute the lo and hi bounds.
2692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693/* end confdefs.h. */
2694$4
2695int
2696main ()
2697{
2698static int test_array [1 - 2 * !(($2) >= 0)];
2699test_array [0] = 0
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705if ac_fn_c_try_compile "$LINENO"; then :
2706 ac_lo=0 ac_mid=0
2707 while :; do
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709/* end confdefs.h. */
2710$4
2711int
2712main ()
2713{
2714static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2715test_array [0] = 0
2716
2717 ;
2718 return 0;
2719}
2720_ACEOF
2721if ac_fn_c_try_compile "$LINENO"; then :
2722 ac_hi=$ac_mid; break
2723else
2724 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2725 if test $ac_lo -le $ac_mid; then
2726 ac_lo= ac_hi=
2727 break
2728 fi
2729 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2730fi
2731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 done
2733else
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735/* end confdefs.h. */
2736$4
2737int
2738main ()
2739{
2740static int test_array [1 - 2 * !(($2) < 0)];
2741test_array [0] = 0
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747if ac_fn_c_try_compile "$LINENO"; then :
2748 ac_hi=-1 ac_mid=-1
2749 while :; do
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751/* end confdefs.h. */
2752$4
2753int
2754main ()
2755{
2756static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2757test_array [0] = 0
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763if ac_fn_c_try_compile "$LINENO"; then :
2764 ac_lo=$ac_mid; break
2765else
2766 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2767 if test $ac_mid -le $ac_hi; then
2768 ac_lo= ac_hi=
2769 break
2770 fi
2771 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2772fi
2773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 done
2775else
2776 ac_lo= ac_hi=
2777fi
2778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779fi
2780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781# Binary search between lo and hi bounds.
2782while test "x$ac_lo" != "x$ac_hi"; do
2783 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785/* end confdefs.h. */
2786$4
2787int
2788main ()
2789{
2790static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2791test_array [0] = 0
2792
2793 ;
2794 return 0;
2795}
2796_ACEOF
2797if ac_fn_c_try_compile "$LINENO"; then :
2798 ac_hi=$ac_mid
2799else
2800 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2801fi
2802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803done
2804case $ac_lo in #((
2805?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2806'') ac_retval=1 ;;
2807esac
2808 else
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810/* end confdefs.h. */
2811$4
2812static long int longval () { return $2; }
2813static unsigned long int ulongval () { return $2; }
2814#include <stdio.h>
2815#include <stdlib.h>
2816int
2817main ()
2818{
2819
2820 FILE *f = fopen ("conftest.val", "w");
2821 if (! f)
2822 return 1;
2823 if (($2) < 0)
2824 {
2825 long int i = longval ();
2826 if (i != ($2))
2827 return 1;
2828 fprintf (f, "%ld", i);
2829 }
2830 else
2831 {
2832 unsigned long int i = ulongval ();
2833 if (i != ($2))
2834 return 1;
2835 fprintf (f, "%lu", i);
2836 }
2837 /* Do not output a trailing newline, as this causes \r\n confusion
2838 on some platforms. */
2839 return ferror (f) || fclose (f) != 0;
2840
2841 ;
2842 return 0;
2843}
2844_ACEOF
2845if ac_fn_c_try_run "$LINENO"; then :
2846 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2847else
2848 ac_retval=1
2849fi
2850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2851 conftest.$ac_objext conftest.beam conftest.$ac_ext
2852rm -f conftest.val
2853
2854 fi
2855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002856 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002857
2858} # ac_fn_c_compute_int
2859
2860# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2861# ---------------------------------------------------------
2862# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2863# the include files in INCLUDES and setting the cache variable VAR
2864# accordingly.
2865ac_fn_cxx_check_header_mongrel ()
2866{
2867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2870$as_echo_n "checking for $2... " >&6; }
2871if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2872 $as_echo_n "(cached) " >&6
2873fi
2874eval ac_res=\$$3
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2876$as_echo "$ac_res" >&6; }
2877else
2878 # Is the header compilable?
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2880$as_echo_n "checking $2 usability... " >&6; }
2881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883$4
2884#include <$2>
2885_ACEOF
2886if ac_fn_cxx_try_compile "$LINENO"; then :
2887 ac_header_compiler=yes
2888else
2889 ac_header_compiler=no
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2893$as_echo "$ac_header_compiler" >&6; }
2894
2895# Is the header present?
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2897$as_echo_n "checking $2 presence... " >&6; }
2898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2899/* end confdefs.h. */
2900#include <$2>
2901_ACEOF
2902if ac_fn_cxx_try_cpp "$LINENO"; then :
2903 ac_header_preproc=yes
2904else
2905 ac_header_preproc=no
2906fi
2907rm -f conftest.err conftest.$ac_ext
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2909$as_echo "$ac_header_preproc" >&6; }
2910
2911# So? What about this header?
2912case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2913 yes:no: )
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2915$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2917$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2918 ;;
2919 no:yes:* )
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2921$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2923$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2925$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2927$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2929$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2930( cat <<\_ASBOX
2931## ----------------------------------------- ##
2932## Report this to http://www.imagemagick.org ##
2933## ----------------------------------------- ##
2934_ASBOX
2935 ) | sed "s/^/$as_me: WARNING: /" >&2
2936 ;;
2937esac
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2939$as_echo_n "checking for $2... " >&6; }
2940if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2941 $as_echo_n "(cached) " >&6
2942else
2943 eval "$3=\$ac_header_compiler"
2944fi
2945eval ac_res=\$$3
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947$as_echo "$ac_res" >&6; }
2948fi
2949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2950
2951} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002952cat >config.log <<_ACEOF
2953This file contains any messages produced by compilers while
2954running configure, to aid debugging if configure makes a mistake.
2955
cristydc0f0892009-12-29 02:21:55 +00002956It was created by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +00002957generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002958
2959 $ $0 $@
2960
2961_ACEOF
2962exec 5>>config.log
2963{
2964cat <<_ASUNAME
2965## --------- ##
2966## Platform. ##
2967## --------- ##
2968
2969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2970uname -m = `(uname -m) 2>/dev/null || echo unknown`
2971uname -r = `(uname -r) 2>/dev/null || echo unknown`
2972uname -s = `(uname -s) 2>/dev/null || echo unknown`
2973uname -v = `(uname -v) 2>/dev/null || echo unknown`
2974
2975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2976/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2977
2978/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2979/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2981/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2982/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2983/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2984/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2985
2986_ASUNAME
2987
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002993 $as_echo "PATH: $as_dir"
2994 done
cristy3ed852e2009-09-05 21:47:34 +00002995IFS=$as_save_IFS
2996
2997} >&5
2998
2999cat >&5 <<_ACEOF
3000
3001
3002## ----------- ##
3003## Core tests. ##
3004## ----------- ##
3005
3006_ACEOF
3007
3008
3009# Keep a trace of the command line.
3010# Strip out --no-create and --no-recursion so they do not pile up.
3011# Strip out --silent because we don't want to record it for future runs.
3012# Also quote any args containing shell meta-characters.
3013# Make two passes to allow for proper duplicate-argument suppression.
3014ac_configure_args=
3015ac_configure_args0=
3016ac_configure_args1=
3017ac_must_keep_next=false
3018for ac_pass in 1 2
3019do
3020 for ac_arg
3021 do
3022 case $ac_arg in
3023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3025 | -silent | --silent | --silen | --sile | --sil)
3026 continue ;;
3027 *\'*)
3028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3029 esac
3030 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003032 2)
cristy8b350f62009-11-15 23:12:43 +00003033 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003034 if test $ac_must_keep_next = true; then
3035 ac_must_keep_next=false # Got value, back to normal.
3036 else
3037 case $ac_arg in
3038 *=* | --config-cache | -C | -disable-* | --disable-* \
3039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3041 | -with-* | --with-* | -without-* | --without-* | --x)
3042 case "$ac_configure_args0 " in
3043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3044 esac
3045 ;;
3046 -* ) ac_must_keep_next=true ;;
3047 esac
3048 fi
cristy8b350f62009-11-15 23:12:43 +00003049 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003050 ;;
3051 esac
3052 done
3053done
cristy8b350f62009-11-15 23:12:43 +00003054{ ac_configure_args0=; unset ac_configure_args0;}
3055{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003056
3057# When interrupted or exit'd, cleanup temporary files, and complete
3058# config.log. We remove comments because anyway the quotes in there
3059# would cause problems or look ugly.
3060# WARNING: Use '\'' to represent an apostrophe within the trap.
3061# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3062trap 'exit_status=$?
3063 # Save into config.log some information that might help in debugging.
3064 {
3065 echo
3066
3067 cat <<\_ASBOX
3068## ---------------- ##
3069## Cache variables. ##
3070## ---------------- ##
3071_ASBOX
3072 echo
3073 # The following way of writing the cache mishandles newlines in values,
3074(
3075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3076 eval ac_val=\$$ac_var
3077 case $ac_val in #(
3078 *${as_nl}*)
3079 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3082 esac
3083 case $ac_var in #(
3084 _ | IFS | as_nl) ;; #(
3085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003086 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003087 esac ;;
3088 esac
3089 done
3090 (set) 2>&1 |
3091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3092 *${as_nl}ac_space=\ *)
3093 sed -n \
3094 "s/'\''/'\''\\\\'\'''\''/g;
3095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3096 ;; #(
3097 *)
3098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3099 ;;
3100 esac |
3101 sort
3102)
3103 echo
3104
3105 cat <<\_ASBOX
3106## ----------------- ##
3107## Output variables. ##
3108## ----------------- ##
3109_ASBOX
3110 echo
3111 for ac_var in $ac_subst_vars
3112 do
3113 eval ac_val=\$$ac_var
3114 case $ac_val in
3115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3116 esac
3117 $as_echo "$ac_var='\''$ac_val'\''"
3118 done | sort
3119 echo
3120
3121 if test -n "$ac_subst_files"; then
3122 cat <<\_ASBOX
3123## ------------------- ##
3124## File substitutions. ##
3125## ------------------- ##
3126_ASBOX
3127 echo
3128 for ac_var in $ac_subst_files
3129 do
3130 eval ac_val=\$$ac_var
3131 case $ac_val in
3132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3133 esac
3134 $as_echo "$ac_var='\''$ac_val'\''"
3135 done | sort
3136 echo
3137 fi
3138
3139 if test -s confdefs.h; then
3140 cat <<\_ASBOX
3141## ----------- ##
3142## confdefs.h. ##
3143## ----------- ##
3144_ASBOX
3145 echo
3146 cat confdefs.h
3147 echo
3148 fi
3149 test "$ac_signal" != 0 &&
3150 $as_echo "$as_me: caught signal $ac_signal"
3151 $as_echo "$as_me: exit $exit_status"
3152 } >&5
3153 rm -f core *.core core.conftest.* &&
3154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3155 exit $exit_status
3156' 0
3157for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003159done
3160ac_signal=0
3161
3162# confdefs.h avoids OS command line length limits that DEFS can exceed.
3163rm -f -r conftest* confdefs.h
3164
cristy8b350f62009-11-15 23:12:43 +00003165$as_echo "/* confdefs.h */" > confdefs.h
3166
cristy3ed852e2009-09-05 21:47:34 +00003167# Predefined preprocessor variables.
3168
3169cat >>confdefs.h <<_ACEOF
3170#define PACKAGE_NAME "$PACKAGE_NAME"
3171_ACEOF
3172
cristy3ed852e2009-09-05 21:47:34 +00003173cat >>confdefs.h <<_ACEOF
3174#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3175_ACEOF
3176
cristy3ed852e2009-09-05 21:47:34 +00003177cat >>confdefs.h <<_ACEOF
3178#define PACKAGE_VERSION "$PACKAGE_VERSION"
3179_ACEOF
3180
cristy3ed852e2009-09-05 21:47:34 +00003181cat >>confdefs.h <<_ACEOF
3182#define PACKAGE_STRING "$PACKAGE_STRING"
3183_ACEOF
3184
cristy3ed852e2009-09-05 21:47:34 +00003185cat >>confdefs.h <<_ACEOF
3186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3187_ACEOF
3188
cristy8b350f62009-11-15 23:12:43 +00003189cat >>confdefs.h <<_ACEOF
3190#define PACKAGE_URL "$PACKAGE_URL"
3191_ACEOF
3192
cristy3ed852e2009-09-05 21:47:34 +00003193
3194# Let the site file select an alternate cache file if it wants to.
3195# Prefer an explicitly selected file to automatically selected ones.
3196ac_site_file1=NONE
3197ac_site_file2=NONE
3198if test -n "$CONFIG_SITE"; then
3199 ac_site_file1=$CONFIG_SITE
3200elif test "x$prefix" != xNONE; then
3201 ac_site_file1=$prefix/share/config.site
3202 ac_site_file2=$prefix/etc/config.site
3203else
3204 ac_site_file1=$ac_default_prefix/share/config.site
3205 ac_site_file2=$ac_default_prefix/etc/config.site
3206fi
3207for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3208do
3209 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003212$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3213 sed 's/^/| /' "$ac_site_file" >&5
3214 . "$ac_site_file"
3215 fi
3216done
3217
3218if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003219 # Some versions of bash will fail to source /dev/null (special files
3220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003223$as_echo "$as_me: loading cache $cache_file" >&6;}
3224 case $cache_file in
3225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3226 *) . "./$cache_file";;
3227 esac
3228 fi
3229else
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: creating cache $cache_file" >&6;}
3232 >$cache_file
3233fi
3234
cristycd4c5312009-11-22 01:19:08 +00003235as_fn_append ac_header_list " stdlib.h"
3236as_fn_append ac_header_list " unistd.h"
3237as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003238# Check that the precious variables saved in the cache have kept the same
3239# value.
3240ac_cache_corrupted=false
3241for ac_var in $ac_precious_vars; do
3242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3243 eval ac_new_set=\$ac_env_${ac_var}_set
3244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3245 eval ac_new_val=\$ac_env_${ac_var}_value
3246 case $ac_old_set,$ac_new_set in
3247 set,)
cristy8b350f62009-11-15 23:12:43 +00003248 { $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 +00003249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3250 ac_cache_corrupted=: ;;
3251 ,set)
cristy8b350f62009-11-15 23:12:43 +00003252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3254 ac_cache_corrupted=: ;;
3255 ,);;
3256 *)
3257 if test "x$ac_old_val" != "x$ac_new_val"; then
3258 # differences in whitespace do not lead to failure.
3259 ac_old_val_w=`echo x $ac_old_val`
3260 ac_new_val_w=`echo x $ac_new_val`
3261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3264 ac_cache_corrupted=:
3265 else
cristy8b350f62009-11-15 23:12:43 +00003266 { $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 +00003267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3268 eval $ac_var=\$ac_old_val
3269 fi
cristy8b350f62009-11-15 23:12:43 +00003270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003271$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003273$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3274 fi;;
3275 esac
3276 # Pass precious variables to config.status.
3277 if test "$ac_new_set" = set; then
3278 case $ac_new_val in
3279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3280 *) ac_arg=$ac_var=$ac_new_val ;;
3281 esac
3282 case " $ac_configure_args " in
3283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003285 esac
3286 fi
3287done
3288if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003293 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003294fi
cristy8b350f62009-11-15 23:12:43 +00003295## -------------------- ##
3296## Main body of script. ##
3297## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003298
3299ac_ext=c
3300ac_cpp='$CPP $CPPFLAGS'
3301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304
3305
3306
3307ac_aux_dir=
3308for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003309 for ac_t in install-sh install.sh shtool; do
3310 if test -f "$ac_dir/$ac_t"; then
3311 ac_aux_dir=$ac_dir
3312 ac_install_sh="$ac_aux_dir/$ac_t -c"
3313 break 2
3314 fi
3315 done
cristy3ed852e2009-09-05 21:47:34 +00003316done
3317if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003318 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003319fi
3320
3321# These three variables are undocumented and unsupported,
3322# and are intended to be withdrawn in a future Autoconf release.
3323# They can cause serious problems if a builder's source tree is in a directory
3324# whose full name contains unusual characters.
3325ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3326ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3327ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3328
3329
3330
3331
3332ac_config_headers="$ac_config_headers config/config.h"
3333
3334ac_config_commands="$ac_config_commands magick/magick-config.h"
3335
3336ac_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"
3337
3338
3339#
3340# Save initial user-tunable values
3341#
3342USER_LIBS=$LIBS
3343for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3344 eval isset=\${$var+set}
3345 if test "$isset" = 'set'; then
3346 eval val=$`echo $var`
3347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3348 fi
3349done
3350
3351
3352CONFIGURE_ARGS="$0 ${ac_configure_args}"
3353
3354
3355# Source file containing package/library versioning information.
3356. ${srcdir}/version.sh
3357
3358echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3359# Make sure we can run config.sub.
3360$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003361 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003362
cristy8b350f62009-11-15 23:12:43 +00003363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003364$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003365if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003366 $as_echo_n "(cached) " >&6
3367else
3368 ac_build_alias=$build_alias
3369test "x$ac_build_alias" = x &&
3370 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3371test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003372 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003373ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003374 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003375
3376fi
cristy8b350f62009-11-15 23:12:43 +00003377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$ac_cv_build" >&6; }
3379case $ac_cv_build in
3380*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003381*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003382esac
3383build=$ac_cv_build
3384ac_save_IFS=$IFS; IFS='-'
3385set x $ac_cv_build
3386shift
3387build_cpu=$1
3388build_vendor=$2
3389shift; shift
3390# Remember, the first character of IFS is used to create $*,
3391# except with old shells:
3392build_os=$*
3393IFS=$ac_save_IFS
3394case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3395
3396
cristy8b350f62009-11-15 23:12:43 +00003397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003398$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003399if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003400 $as_echo_n "(cached) " >&6
3401else
3402 if test "x$host_alias" = x; then
3403 ac_cv_host=$ac_cv_build
3404else
3405 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003406 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003407fi
3408
3409fi
cristy8b350f62009-11-15 23:12:43 +00003410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$ac_cv_host" >&6; }
3412case $ac_cv_host in
3413*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003414*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003415esac
3416host=$ac_cv_host
3417ac_save_IFS=$IFS; IFS='-'
3418set x $ac_cv_host
3419shift
3420host_cpu=$1
3421host_vendor=$2
3422shift; shift
3423# Remember, the first character of IFS is used to create $*,
3424# except with old shells:
3425host_os=$*
3426IFS=$ac_save_IFS
3427case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3428
3429
cristy8b350f62009-11-15 23:12:43 +00003430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003431$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003432if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003433 $as_echo_n "(cached) " >&6
3434else
3435 if test "x$target_alias" = x; then
3436 ac_cv_target=$ac_cv_host
3437else
3438 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003439 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003440fi
3441
3442fi
cristy8b350f62009-11-15 23:12:43 +00003443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$ac_cv_target" >&6; }
3445case $ac_cv_target in
3446*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003447*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003448esac
3449target=$ac_cv_target
3450ac_save_IFS=$IFS; IFS='-'
3451set x $ac_cv_target
3452shift
3453target_cpu=$1
3454target_vendor=$2
3455shift; shift
3456# Remember, the first character of IFS is used to create $*,
3457# except with old shells:
3458target_os=$*
3459IFS=$ac_save_IFS
3460case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3461
3462
3463# The aliases save the names the user supplied, while $host etc.
3464# will get canonicalized.
3465test -n "$target_alias" &&
3466 test "$program_prefix$program_suffix$program_transform_name" = \
3467 NONENONEs,x,x, &&
3468 program_prefix=${target_alias}-
3469
3470# Substitute library versioning
3471
3472
3473# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003475$as_echo_n "checking whether build environment is sane... " >&6; }
3476# Just in case
3477sleep 1
3478echo timestamp > conftest.file
3479# Reject unsafe characters in $srcdir or the absolute working directory
3480# name. Accept space and tab only in the latter.
3481am_lf='
3482'
3483case `pwd` in
3484 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003485 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003486esac
3487case $srcdir in
3488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003489 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003490esac
3491
3492# Do `set' in a subshell so we don't clobber the current shell's
3493# arguments. Must try -L first in case configure is actually a
3494# symlink; some systems play weird games with the mod time of symlinks
3495# (eg FreeBSD returns the mod time of the symlink's containing
3496# directory).
3497if (
3498 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3499 if test "$*" = "X"; then
3500 # -L didn't work.
3501 set X `ls -t "$srcdir/configure" conftest.file`
3502 fi
3503 rm -f conftest.file
3504 if test "$*" != "X $srcdir/configure conftest.file" \
3505 && test "$*" != "X conftest.file $srcdir/configure"; then
3506
3507 # If neither matched, then we have a broken ls. This can happen
3508 # if, for instance, CONFIG_SHELL is bash and it inherits a
3509 # broken ls alias from the environment. This has actually
3510 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003511 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3512alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003513 fi
3514
3515 test "$2" = conftest.file
3516 )
3517then
3518 # Ok.
3519 :
3520else
cristy8b350f62009-11-15 23:12:43 +00003521 as_fn_error "newly created file is older than distributed files!
3522Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
cristy8b350f62009-11-15 23:12:43 +00003524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003525$as_echo "yes" >&6; }
3526
3527am__api_version='1.11'
3528
3529# Find a good install program. We prefer a C program (faster),
3530# so one script is as good as another. But avoid the broken or
3531# incompatible versions:
3532# SysV /etc/install, /usr/sbin/install
3533# SunOS /usr/etc/install
3534# IRIX /sbin/install
3535# AIX /bin/install
3536# AmigaOS /C/install, which installs bootblocks on floppy discs
3537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3540# OS/2's system install, which has a completely different semantic
3541# ./install, which can be erroneously created by make from ./install.sh.
3542# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003544$as_echo_n "checking for a BSD-compatible install... " >&6; }
3545if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003546if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003547 $as_echo_n "(cached) " >&6
3548else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003554 # Account for people who put trailing slashes in PATH elements.
3555case $as_dir/ in #((
3556 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003559 /usr/ucb/* ) ;;
3560 *)
3561 # OSF1 and SCO ODT 3.0 have their own names for install.
3562 # Don't use installbsd from OSF since it installs stuff as root
3563 # by default.
3564 for ac_prog in ginstall scoinst install; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3567 if test $ac_prog = install &&
3568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3569 # AIX install. It has an incompatible calling convention.
3570 :
3571 elif test $ac_prog = install &&
3572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3573 # program-specific install script used by HP pwplus--don't use.
3574 :
3575 else
3576 rm -rf conftest.one conftest.two conftest.dir
3577 echo one > conftest.one
3578 echo two > conftest.two
3579 mkdir conftest.dir
3580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3581 test -s conftest.one && test -s conftest.two &&
3582 test -s conftest.dir/conftest.one &&
3583 test -s conftest.dir/conftest.two
3584 then
3585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3586 break 3
3587 fi
3588 fi
3589 fi
3590 done
3591 done
3592 ;;
3593esac
3594
cristy8b350f62009-11-15 23:12:43 +00003595 done
cristy3ed852e2009-09-05 21:47:34 +00003596IFS=$as_save_IFS
3597
3598rm -rf conftest.one conftest.two conftest.dir
3599
3600fi
3601 if test "${ac_cv_path_install+set}" = set; then
3602 INSTALL=$ac_cv_path_install
3603 else
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for INSTALL within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 INSTALL=$ac_install_sh
3609 fi
3610fi
cristy8b350f62009-11-15 23:12:43 +00003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003612$as_echo "$INSTALL" >&6; }
3613
3614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3615# It thinks the first close brace ends the variable substitution.
3616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3617
3618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3619
3620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3621
3622test "$program_prefix" != NONE &&
3623 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3624# Use a double $ so make ignores it.
3625test "$program_suffix" != NONE &&
3626 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3627# Double any \ or $.
3628# By default was `s,x,x', remove it if useless.
3629ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3630program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3631
3632# expand $ac_aux_dir to an absolute path
3633am_aux_dir=`cd $ac_aux_dir && pwd`
3634
3635if test x"${MISSING+set}" != xset; then
3636 case $am_aux_dir in
3637 *\ * | *\ *)
3638 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3639 *)
3640 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3641 esac
3642fi
3643# Use eval to expand $SHELL
3644if eval "$MISSING --run true"; then
3645 am_missing_run="$MISSING --run "
3646else
3647 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003649$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3650fi
3651
3652if test x"${install_sh}" != xset; then
3653 case $am_aux_dir in
3654 *\ * | *\ *)
3655 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3656 *)
3657 install_sh="\${SHELL} $am_aux_dir/install-sh"
3658 esac
3659fi
3660
3661# Installed binaries are usually stripped using `strip' when the user
3662# run `make install-strip'. However `strip' might not be the right
3663# tool to use in cross-compilation environments, therefore Automake
3664# will honor the `STRIP' environment variable to overrule this program.
3665if test "$cross_compiling" != no; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3668set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003671if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003672 $as_echo_n "(cached) " >&6
3673else
3674 if test -n "$STRIP"; then
3675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3676else
3677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003682 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003686 break 2
3687 fi
3688done
cristy8b350f62009-11-15 23:12:43 +00003689 done
cristy3ed852e2009-09-05 21:47:34 +00003690IFS=$as_save_IFS
3691
3692fi
3693fi
3694STRIP=$ac_cv_prog_STRIP
3695if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003697$as_echo "$STRIP" >&6; }
3698else
cristy8b350f62009-11-15 23:12:43 +00003699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003700$as_echo "no" >&6; }
3701fi
3702
3703
3704fi
3705if test -z "$ac_cv_prog_STRIP"; then
3706 ac_ct_STRIP=$STRIP
3707 # Extract the first word of "strip", so it can be a program name with args.
3708set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003710$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003711if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003712 $as_echo_n "(cached) " >&6
3713else
3714 if test -n "$ac_ct_STRIP"; then
3715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3716else
3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718for as_dir in $PATH
3719do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003722 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003726 break 2
3727 fi
3728done
cristy8b350f62009-11-15 23:12:43 +00003729 done
cristy3ed852e2009-09-05 21:47:34 +00003730IFS=$as_save_IFS
3731
3732fi
3733fi
3734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3735if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003737$as_echo "$ac_ct_STRIP" >&6; }
3738else
cristy8b350f62009-11-15 23:12:43 +00003739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003740$as_echo "no" >&6; }
3741fi
3742
3743 if test "x$ac_ct_STRIP" = x; then
3744 STRIP=":"
3745 else
3746 case $cross_compiling:$ac_tool_warned in
3747yes:)
cristy8b350f62009-11-15 23:12:43 +00003748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750ac_tool_warned=yes ;;
3751esac
3752 STRIP=$ac_ct_STRIP
3753 fi
3754else
3755 STRIP="$ac_cv_prog_STRIP"
3756fi
3757
3758fi
3759INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3760
cristy8b350f62009-11-15 23:12:43 +00003761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003762$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3763if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003764 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003765 $as_echo_n "(cached) " >&6
3766else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003772 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3776 'mkdir (GNU coreutils) '* | \
3777 'mkdir (coreutils) '* | \
3778 'mkdir (fileutils) '4.1*)
3779 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3780 break 3;;
3781 esac
3782 done
3783 done
cristy8b350f62009-11-15 23:12:43 +00003784 done
cristy3ed852e2009-09-05 21:47:34 +00003785IFS=$as_save_IFS
3786
3787fi
3788
cristycd4c5312009-11-22 01:19:08 +00003789 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003790 if test "${ac_cv_path_mkdir+set}" = set; then
3791 MKDIR_P="$ac_cv_path_mkdir -p"
3792 else
3793 # As a last resort, use the slow shell script. Don't cache a
3794 # value for MKDIR_P within a source directory, because that will
3795 # break other packages using the cache if that directory is
3796 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003797 MKDIR_P="$ac_install_sh -d"
3798 fi
3799fi
cristy8b350f62009-11-15 23:12:43 +00003800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003801$as_echo "$MKDIR_P" >&6; }
3802
3803mkdir_p="$MKDIR_P"
3804case $mkdir_p in
3805 [\\/$]* | ?:[\\/]*) ;;
3806 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3807esac
3808
3809for ac_prog in gawk mawk nawk awk
3810do
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003814$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003815if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003816 $as_echo_n "(cached) " >&6
3817else
3818 if test -n "$AWK"; then
3819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3820else
3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3828 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003830 break 2
3831 fi
3832done
cristy8b350f62009-11-15 23:12:43 +00003833 done
cristy3ed852e2009-09-05 21:47:34 +00003834IFS=$as_save_IFS
3835
3836fi
3837fi
3838AWK=$ac_cv_prog_AWK
3839if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003841$as_echo "$AWK" >&6; }
3842else
cristy8b350f62009-11-15 23:12:43 +00003843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003844$as_echo "no" >&6; }
3845fi
3846
3847
3848 test -n "$AWK" && break
3849done
3850
cristy8b350f62009-11-15 23:12:43 +00003851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3853set x ${MAKE-make}
3854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003855if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003856 $as_echo_n "(cached) " >&6
3857else
3858 cat >conftest.make <<\_ACEOF
3859SHELL = /bin/sh
3860all:
3861 @echo '@@@%%%=$(MAKE)=@@@%%%'
3862_ACEOF
3863# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3864case `${MAKE-make} -f conftest.make 2>/dev/null` in
3865 *@@@%%%=?*=@@@%%%*)
3866 eval ac_cv_prog_make_${ac_make}_set=yes;;
3867 *)
3868 eval ac_cv_prog_make_${ac_make}_set=no;;
3869esac
3870rm -f conftest.make
3871fi
3872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003874$as_echo "yes" >&6; }
3875 SET_MAKE=
3876else
cristy8b350f62009-11-15 23:12:43 +00003877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003878$as_echo "no" >&6; }
3879 SET_MAKE="MAKE=${MAKE-make}"
3880fi
3881
3882rm -rf .tst 2>/dev/null
3883mkdir .tst 2>/dev/null
3884if test -d .tst; then
3885 am__leading_dot=.
3886else
3887 am__leading_dot=_
3888fi
3889rmdir .tst 2>/dev/null
3890
3891if test "`cd $srcdir && pwd`" != "`pwd`"; then
3892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3893 # is not polluted with repeated "-I."
3894 am__isrc=' -I$(srcdir)'
3895 # test to see if srcdir already configured
3896 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003897 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003898 fi
3899fi
3900
3901# test whether we have cygpath
3902if test -z "$CYGPATH_W"; then
3903 if (cygpath --version) >/dev/null 2>/dev/null; then
3904 CYGPATH_W='cygpath -w'
3905 else
3906 CYGPATH_W=echo
3907 fi
3908fi
3909
3910
3911# Define the identity of the package.
3912 PACKAGE=$PACKAGE_NAME
3913 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3914
3915
3916# Some tools Automake needs.
3917
3918ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3919
3920
3921AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3922
3923
3924AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3925
3926
3927AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3928
3929
3930MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3931
3932# We need awk for the "check" target. The system "awk" is bad on
3933# some platforms.
3934# Always define AMTAR for backward compatibility.
3935
3936AMTAR=${AMTAR-"${am_missing_run}tar"}
3937
3938am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3939
3940
3941
3942
3943
3944
3945# Enable support for silent build rules
3946# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003947if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003948 enableval=$enable_silent_rules;
3949fi
3950
3951case $enable_silent_rules in
3952yes) AM_DEFAULT_VERBOSITY=0;;
3953no) AM_DEFAULT_VERBOSITY=1;;
3954*) AM_DEFAULT_VERBOSITY=0;;
3955esac
3956AM_BACKSLASH='\'
3957
3958
3959MAGICK_LIB_VERSION="0x"
3960if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3961 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3962fi
3963MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3964if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3965 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3966fi
3967MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3968if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3969 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3970fi
3971MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3972
3973
3974# Definition used to define MagickLibVersionText in version.h
3975MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3976
3977
3978# Definition used to define MagickLibVersionNumber in version.h
3979MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3980
3981
3982# Regenerate config.status if ChangeLog or version.sh is updated.
3983CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3984
3985
3986PERLMAINCC=$CC
3987
3988MAGICK_CFLAGS=''
3989MAGICK_CPPFLAGS=$CPPFLAGS_USER
3990MAGICK_PCFLAGS=$CPPFLAGS_USER
3991MAGICK_LDFLAGS=''
3992MAGICK_LIBS=''
3993
3994#
3995# Evaluate shell variable equivalents to Makefile directory variables
3996#
3997if test "x$prefix" = xNONE; then
3998 prefix=$ac_default_prefix
3999fi
4000# Let make expand exec_prefix.
4001if test "x$exec_prefix" = xNONE; then
4002 exec_prefix='${prefix}'
4003fi
4004
4005#
4006eval "eval PREFIX_DIR=${prefix}"
4007
4008eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4009
4010eval "eval BIN_DIR=$bindir"
4011
4012eval "eval SBIN_DIR=$sbindir"
4013
4014eval "eval LIBEXEC_DIR=$libexecdir"
4015
4016eval "eval DATA_DIR=$datadir"
4017
4018eval "eval SYSCONF_DIR=$sysconfdir"
4019
4020eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4021
4022eval "eval LOCALSTATE_DIR=$localstatedir"
4023
4024eval "eval LIB_DIR=$libdir"
4025
4026eval "eval INCLUDE_DIR=$includedir"
4027
4028eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4029
4030eval "eval INFO_DIR=$infodir"
4031
4032eval "eval MAN_DIR=$mandir"
4033
4034
4035# Get full paths to source and build directories
4036srcdirfull="`cd $srcdir && pwd`"
4037builddir="`pwd`"
4038
4039#
4040# Compute variables useful for running uninstalled software.
4041#
4042MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4043MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4044MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4045MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4046DIRSEP=':'
4047case "${build_os}" in
4048 mingw* )
4049 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4050 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4051 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4052 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4053 DIRSEP=';'
4054 ;;
4055esac
4056case "${host_os}" in
4057 mingw* )
4058 DIRSEP=';'
4059 ;;
4060esac
4061
4062
4063
4064
4065
4066
4067# Check for programs
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4075set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004077$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004078if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004079 $as_echo_n "(cached) " >&6
4080else
4081 if test -n "$CC"; then
4082 ac_cv_prog_CC="$CC" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004093 break 2
4094 fi
4095done
cristy8b350f62009-11-15 23:12:43 +00004096 done
cristy3ed852e2009-09-05 21:47:34 +00004097IFS=$as_save_IFS
4098
4099fi
4100fi
4101CC=$ac_cv_prog_CC
4102if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004104$as_echo "$CC" >&6; }
4105else
cristy8b350f62009-11-15 23:12:43 +00004106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004107$as_echo "no" >&6; }
4108fi
4109
4110
4111fi
4112if test -z "$ac_cv_prog_CC"; then
4113 ac_ct_CC=$CC
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004117$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004118if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004119 $as_echo_n "(cached) " >&6
4120else
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004129 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004133 break 2
4134 fi
4135done
cristy8b350f62009-11-15 23:12:43 +00004136 done
cristy3ed852e2009-09-05 21:47:34 +00004137IFS=$as_save_IFS
4138
4139fi
4140fi
4141ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004144$as_echo "$ac_ct_CC" >&6; }
4145else
cristy8b350f62009-11-15 23:12:43 +00004146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004147$as_echo "no" >&6; }
4148fi
4149
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154yes:)
cristy8b350f62009-11-15 23:12:43 +00004155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157ac_tool_warned=yes ;;
4158esac
4159 CC=$ac_ct_CC
4160 fi
4161else
4162 CC="$ac_cv_prog_CC"
4163fi
4164
4165if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004171if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004172 $as_echo_n "(cached) " >&6
4173else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004186 break 2
4187 fi
4188done
cristy8b350f62009-11-15 23:12:43 +00004189 done
cristy3ed852e2009-09-05 21:47:34 +00004190IFS=$as_save_IFS
4191
4192fi
4193fi
4194CC=$ac_cv_prog_CC
4195if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004197$as_echo "$CC" >&6; }
4198else
cristy8b350f62009-11-15 23:12:43 +00004199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004200$as_echo "no" >&6; }
4201fi
4202
4203
4204 fi
4205fi
4206if test -z "$CC"; then
4207 # Extract the first word of "cc", so it can be a program name with args.
4208set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004211if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004212 $as_echo_n "(cached) " >&6
4213else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216else
4217 ac_prog_rejected=no
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004223 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4226 ac_prog_rejected=yes
4227 continue
4228 fi
4229 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004231 break 2
4232 fi
4233done
cristy8b350f62009-11-15 23:12:43 +00004234 done
cristy3ed852e2009-09-05 21:47:34 +00004235IFS=$as_save_IFS
4236
4237if test $ac_prog_rejected = yes; then
4238 # We found a bogon in the path, so make sure we never use it.
4239 set dummy $ac_cv_prog_CC
4240 shift
4241 if test $# != 0; then
4242 # We chose a different compiler from the bogus one.
4243 # However, it has the same basename, so the bogon will be chosen
4244 # first if we set CC to just the basename; use the full file name.
4245 shift
4246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4247 fi
4248fi
4249fi
4250fi
4251CC=$ac_cv_prog_CC
4252if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004254$as_echo "$CC" >&6; }
4255else
cristy8b350f62009-11-15 23:12:43 +00004256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004257$as_echo "no" >&6; }
4258fi
4259
4260
4261fi
4262if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in cl.exe
4265 do
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004269$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004270if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004271 $as_echo_n "(cached) " >&6
4272else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004285 break 2
4286 fi
4287done
cristy8b350f62009-11-15 23:12:43 +00004288 done
cristy3ed852e2009-09-05 21:47:34 +00004289IFS=$as_save_IFS
4290
4291fi
4292fi
4293CC=$ac_cv_prog_CC
4294if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo "$CC" >&6; }
4297else
cristy8b350f62009-11-15 23:12:43 +00004298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004299$as_echo "no" >&6; }
4300fi
4301
4302
4303 test -n "$CC" && break
4304 done
4305fi
4306if test -z "$CC"; then
4307 ac_ct_CC=$CC
4308 for ac_prog in cl.exe
4309do
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004313$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004315 $as_echo_n "(cached) " >&6
4316else
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004325 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004329 break 2
4330 fi
4331done
cristy8b350f62009-11-15 23:12:43 +00004332 done
cristy3ed852e2009-09-05 21:47:34 +00004333IFS=$as_save_IFS
4334
4335fi
4336fi
4337ac_ct_CC=$ac_cv_prog_ac_ct_CC
4338if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004340$as_echo "$ac_ct_CC" >&6; }
4341else
cristy8b350f62009-11-15 23:12:43 +00004342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004343$as_echo "no" >&6; }
4344fi
4345
4346
4347 test -n "$ac_ct_CC" && break
4348done
4349
4350 if test "x$ac_ct_CC" = x; then
4351 CC=""
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354yes:)
cristy8b350f62009-11-15 23:12:43 +00004355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357ac_tool_warned=yes ;;
4358esac
4359 CC=$ac_ct_CC
4360 fi
4361fi
4362
4363fi
4364
4365
cristy8b350f62009-11-15 23:12:43 +00004366test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004368as_fn_error "no acceptable C compiler found in \$PATH
4369See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004370
4371# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004372$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004373set X $ac_compile
4374ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004375for ac_option in --version -v -V -qversion; do
4376 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004377case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380esac
cristy8b350f62009-11-15 23:12:43 +00004381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382$as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004384 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004385 if test -s conftest.err; then
4386 sed '10a\
4387... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004390 fi
cristycd4c5312009-11-22 01:19:08 +00004391 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394done
cristy3ed852e2009-09-05 21:47:34 +00004395
cristy8b350f62009-11-15 23:12:43 +00004396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004397/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004398
cristy3ed852e2009-09-05 21:47:34 +00004399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004408ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004409# Try to create an executable without -o first, disregard a.out.
4410# It will help us diagnose broken compilers, and finding out an intuition
4411# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4413$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004414ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4415
4416# The possible output files:
4417ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4418
4419ac_rmfiles=
4420for ac_file in $ac_files
4421do
4422 case $ac_file in
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4425 esac
4426done
4427rm -f $ac_rmfiles
4428
cristy8b350f62009-11-15 23:12:43 +00004429if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
cristy8b350f62009-11-15 23:12:43 +00004434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004436 (eval "$ac_link_default") 2>&5
4437 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4441# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4442# in a Makefile. We should not override ac_cv_exeext if it was cached,
4443# so that the user can short-circuit this test for compilers unknown to
4444# Autoconf.
4445for ac_file in $ac_files ''
4446do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4450 ;;
4451 [ab].out )
4452 # We found the default executable, but exeext='' is most
4453 # certainly right.
4454 break;;
4455 *.* )
cristy8b350f62009-11-15 23:12:43 +00004456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004457 then :; else
4458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4459 fi
4460 # We set ac_cv_exeext here because the later test for it is not
4461 # safe: cross compilers may not add the suffix if given an `-o'
4462 # argument, so we may need to know it at that point already.
4463 # Even if this section looks crufty: it has the advantage of
4464 # actually working.
4465 break;;
4466 * )
4467 break;;
4468 esac
4469done
4470test "$ac_cv_exeext" = no && ac_cv_exeext=
4471
4472else
4473 ac_file=''
4474fi
cristy8b350f62009-11-15 23:12:43 +00004475if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477$as_echo "no" >&6; }
4478$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479sed 's/^/| /' conftest.$ac_ext >&5
4480
cristy8b350f62009-11-15 23:12:43 +00004481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004483{ as_fn_set_status 77
4484as_fn_error "C compiler cannot create executables
4485See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004486else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4488$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004489fi
cristycd4c5312009-11-22 01:19:08 +00004490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4491$as_echo_n "checking for C compiler default output file name... " >&6; }
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4493$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004494ac_exeext=$ac_cv_exeext
4495
cristycd4c5312009-11-22 01:19:08 +00004496rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004497ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004499$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004500if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
cristy8b350f62009-11-15 23:12:43 +00004505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004507 (eval "$ac_link") 2>&5
4508 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4512# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4513# work properly (i.e., refer to `conftest.exe'), while it won't with
4514# `rm'.
4515for ac_file in conftest.exe conftest conftest.*; do
4516 test -f "$ac_file" || continue
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 break;;
4521 * ) break;;
4522 esac
4523done
4524else
cristy8b350f62009-11-15 23:12:43 +00004525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004527as_fn_error "cannot compute suffix of executables: cannot compile and link
4528See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004529fi
cristycd4c5312009-11-22 01:19:08 +00004530rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "$ac_cv_exeext" >&6; }
4533
4534rm -f conftest.$ac_ext
4535EXEEXT=$ac_cv_exeext
4536ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h. */
4539#include <stdio.h>
4540int
4541main ()
4542{
4543FILE *f = fopen ("conftest.out", "w");
4544 return ferror (f) || fclose (f) != 0;
4545
4546 ;
4547 return 0;
4548}
4549_ACEOF
4550ac_clean_files="$ac_clean_files conftest.out"
4551# Check that the compiler produces executables we can run. If not, either
4552# the compiler is broken, or we cross compile.
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4554$as_echo_n "checking whether we are cross compiling... " >&6; }
4555if test "$cross_compiling" != yes; then
4556 { { ac_try="$ac_link"
4557case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560esac
4561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562$as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_link") 2>&5
4564 ac_status=$?
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }
4567 if { ac_try='./conftest$ac_cv_exeext'
4568 { { case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571esac
4572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573$as_echo "$ac_try_echo"; } >&5
4574 (eval "$ac_try") 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }; }; then
4578 cross_compiling=no
4579 else
4580 if test "$cross_compiling" = maybe; then
4581 cross_compiling=yes
4582 else
4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585as_fn_error "cannot run C compiled programs.
4586If you meant to cross compile, use \`--host'.
4587See \`config.log' for more details." "$LINENO" 5; }
4588 fi
4589 fi
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4592$as_echo "$cross_compiling" >&6; }
4593
4594rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4595ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004597$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004598if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004599 $as_echo_n "(cached) " >&6
4600else
cristy8b350f62009-11-15 23:12:43 +00004601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004613if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
cristy8b350f62009-11-15 23:12:43 +00004618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004620 (eval "$ac_compile") 2>&5
4621 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004624 for ac_file in conftest.o conftest.obj conftest.*; do
4625 test -f "$ac_file" || continue;
4626 case $ac_file in
4627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4629 break;;
4630 esac
4631done
4632else
4633 $as_echo "$as_me: failed program was:" >&5
4634sed 's/^/| /' conftest.$ac_ext >&5
4635
cristy8b350f62009-11-15 23:12:43 +00004636{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004638as_fn_error "cannot compute suffix of object files: cannot compile
4639See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004640fi
cristy3ed852e2009-09-05 21:47:34 +00004641rm -f conftest.$ac_cv_objext conftest.$ac_ext
4642fi
cristy8b350f62009-11-15 23:12:43 +00004643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004644$as_echo "$ac_cv_objext" >&6; }
4645OBJEXT=$ac_cv_objext
4646ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004649if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004650 $as_echo_n "(cached) " >&6
4651else
cristy8b350f62009-11-15 23:12:43 +00004652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004653/* end confdefs.h. */
4654
4655int
4656main ()
4657{
4658#ifndef __GNUC__
4659 choke me
4660#endif
4661
4662 ;
4663 return 0;
4664}
4665_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004666if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004667 ac_compiler_gnu=yes
4668else
cristy8b350f62009-11-15 23:12:43 +00004669 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004670fi
cristy3ed852e2009-09-05 21:47:34 +00004671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672ac_cv_c_compiler_gnu=$ac_compiler_gnu
4673
4674fi
cristy8b350f62009-11-15 23:12:43 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4677if test $ac_compiler_gnu = yes; then
4678 GCC=yes
4679else
4680 GCC=
4681fi
4682ac_test_CFLAGS=${CFLAGS+set}
4683ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004686if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004687 $as_echo_n "(cached) " >&6
4688else
4689 ac_save_c_werror_flag=$ac_c_werror_flag
4690 ac_c_werror_flag=yes
4691 ac_cv_prog_cc_g=no
4692 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004694/* end confdefs.h. */
4695
4696int
4697main ()
4698{
4699
4700 ;
4701 return 0;
4702}
4703_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004704if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004705 ac_cv_prog_cc_g=yes
4706else
cristy8b350f62009-11-15 23:12:43 +00004707 CFLAGS=""
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004709/* end confdefs.h. */
4710
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004720
cristy8b350f62009-11-15 23:12:43 +00004721else
4722 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004723 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004725/* end confdefs.h. */
4726
4727int
4728main ()
4729{
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004735if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004736 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004737fi
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
4741fi
cristy3ed852e2009-09-05 21:47:34 +00004742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 ac_c_werror_flag=$ac_save_c_werror_flag
4744fi
cristy8b350f62009-11-15 23:12:43 +00004745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004746$as_echo "$ac_cv_prog_cc_g" >&6; }
4747if test "$ac_test_CFLAGS" = set; then
4748 CFLAGS=$ac_save_CFLAGS
4749elif test $ac_cv_prog_cc_g = yes; then
4750 if test "$GCC" = yes; then
4751 CFLAGS="-g -O2"
4752 else
4753 CFLAGS="-g"
4754 fi
4755else
4756 if test "$GCC" = yes; then
4757 CFLAGS="-O2"
4758 else
4759 CFLAGS=
4760 fi
4761fi
cristy8b350f62009-11-15 23:12:43 +00004762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004764if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004765 $as_echo_n "(cached) " >&6
4766else
4767 ac_cv_prog_cc_c89=no
4768ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004770/* end confdefs.h. */
4771#include <stdarg.h>
4772#include <stdio.h>
4773#include <sys/types.h>
4774#include <sys/stat.h>
4775/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4776struct buf { int x; };
4777FILE * (*rcsopen) (struct buf *, struct stat *, int);
4778static char *e (p, i)
4779 char **p;
4780 int i;
4781{
4782 return p[i];
4783}
4784static char *f (char * (*g) (char **, int), char **p, ...)
4785{
4786 char *s;
4787 va_list v;
4788 va_start (v,p);
4789 s = g (p, va_arg (v,int));
4790 va_end (v);
4791 return s;
4792}
4793
4794/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4795 function prototypes and stuff, but not '\xHH' hex character constants.
4796 These don't provoke an error unfortunately, instead are silently treated
4797 as 'x'. The following induces an error, until -std is added to get
4798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4799 array size at least. It's necessary to write '\x00'==0 to get something
4800 that's true only with -std. */
4801int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4802
4803/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4804 inside strings and character constants. */
4805#define FOO(x) 'x'
4806int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4807
4808int test (int i, double x);
4809struct s1 {int (*f) (int a);};
4810struct s2 {int (*f) (double a);};
4811int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812int argc;
4813char **argv;
4814int
4815main ()
4816{
4817return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4824do
4825 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004826 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004827 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004828fi
cristy3ed852e2009-09-05 21:47:34 +00004829rm -f core conftest.err conftest.$ac_objext
4830 test "x$ac_cv_prog_cc_c89" != "xno" && break
4831done
4832rm -f conftest.$ac_ext
4833CC=$ac_save_CC
4834
4835fi
4836# AC_CACHE_VAL
4837case "x$ac_cv_prog_cc_c89" in
4838 x)
cristy8b350f62009-11-15 23:12:43 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004840$as_echo "none needed" >&6; } ;;
4841 xno)
cristy8b350f62009-11-15 23:12:43 +00004842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004843$as_echo "unsupported" >&6; } ;;
4844 *)
4845 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4848esac
cristy8b350f62009-11-15 23:12:43 +00004849if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004850
cristy8b350f62009-11-15 23:12:43 +00004851fi
cristy3ed852e2009-09-05 21:47:34 +00004852
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858DEPDIR="${am__leading_dot}deps"
4859
4860ac_config_commands="$ac_config_commands depfiles"
4861
4862
4863am_make=${MAKE-make}
4864cat > confinc << 'END'
4865am__doit:
4866 @echo this is the am__doit target
4867.PHONY: am__doit
4868END
4869# If we don't find an include directive, just comment out the code.
cristy8b350f62009-11-15 23:12:43 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo_n "checking for style of include used by $am_make... " >&6; }
4872am__include="#"
4873am__quote=
4874_am_result=none
4875# First try GNU make style include.
4876echo "include confinc" > confmf
4877# Ignore all kinds of additional output from `make'.
4878case `$am_make -s -f confmf 2> /dev/null` in #(
4879*the\ am__doit\ target*)
4880 am__include=include
4881 am__quote=
4882 _am_result=GNU
4883 ;;
4884esac
4885# Now try BSD make style include.
4886if test "$am__include" = "#"; then
4887 echo '.include "confinc"' > confmf
4888 case `$am_make -s -f confmf 2> /dev/null` in #(
4889 *the\ am__doit\ target*)
4890 am__include=.include
4891 am__quote="\""
4892 _am_result=BSD
4893 ;;
4894 esac
4895fi
4896
4897
cristy8b350f62009-11-15 23:12:43 +00004898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$_am_result" >&6; }
4900rm -f confinc confmf
4901
4902# Check whether --enable-dependency-tracking was given.
cristy8b350f62009-11-15 23:12:43 +00004903if test "${enable_dependency_tracking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004904 enableval=$enable_dependency_tracking;
4905fi
4906
4907if test "x$enable_dependency_tracking" != xno; then
4908 am_depcomp="$ac_aux_dir/depcomp"
4909 AMDEPBACKSLASH='\'
4910fi
4911 if test "x$enable_dependency_tracking" != xno; then
4912 AMDEP_TRUE=
4913 AMDEP_FALSE='#'
4914else
4915 AMDEP_TRUE='#'
4916 AMDEP_FALSE=
4917fi
4918
4919
4920
4921depcc="$CC" am_compiler_list=
4922
cristy8b350f62009-11-15 23:12:43 +00004923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00004924$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004925if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004926 $as_echo_n "(cached) " >&6
4927else
4928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4929 # We make a subdir and do the tests there. Otherwise we can end up
4930 # making bogus files that we don't know about and never remove. For
4931 # instance it was reported that on HP-UX the gcc test will end up
4932 # making a dummy file named `D' -- because `-MD' means `put the output
4933 # in D'.
4934 mkdir conftest.dir
4935 # Copy depcomp to subdir because otherwise we won't find it if we're
4936 # using a relative directory.
4937 cp "$am_depcomp" conftest.dir
4938 cd conftest.dir
4939 # We will build objects and dependencies in a subdirectory because
4940 # it helps to detect inapplicable dependency modes. For instance
4941 # both Tru64's cc and ICC support -MD to output dependencies as a
4942 # side effect of compilation, but ICC will put the dependencies in
4943 # the current directory while Tru64 will put them in the object
4944 # directory.
4945 mkdir sub
4946
4947 am_cv_CC_dependencies_compiler_type=none
4948 if test "$am_compiler_list" = ""; then
4949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4950 fi
4951 am__universal=false
4952 case " $depcc " in #(
4953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4954 esac
4955
4956 for depmode in $am_compiler_list; do
4957 # Setup a source with many dependencies, because some compilers
4958 # like to wrap large dependency lists on column 80 (with \), and
4959 # we should not choose a depcomp mode which is confused by this.
4960 #
4961 # We need to recreate these files for each test, as the compiler may
4962 # overwrite some of them when testing with obscure command lines.
4963 # This happens at least with the AIX C compiler.
4964 : > sub/conftest.c
4965 for i in 1 2 3 4 5 6; do
4966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4967 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4968 # Solaris 8's {/usr,}/bin/sh.
4969 touch sub/conftst$i.h
4970 done
4971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4972
4973 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4974 # mode. It turns out that the SunPro C++ compiler does not properly
4975 # handle `-M -o', and we need to detect this. Also, some Intel
4976 # versions had trouble with output in subdirs
4977 am__obj=sub/conftest.${OBJEXT-o}
4978 am__minus_obj="-o $am__obj"
4979 case $depmode in
4980 gcc)
4981 # This depmode causes a compiler race in universal mode.
4982 test "$am__universal" = false || continue
4983 ;;
4984 nosideeffect)
4985 # after this tag, mechanisms are not by side-effect, so they'll
4986 # only be used when explicitly requested
4987 if test "x$enable_dependency_tracking" = xyes; then
4988 continue
4989 else
4990 break
4991 fi
4992 ;;
4993 msvisualcpp | msvcmsys)
4994 # This compiler won't grok `-c -o', but also, the minuso test has
4995 # not run yet. These depmodes are late enough in the game, and
4996 # so weak that their functioning should not be impacted.
4997 am__obj=conftest.${OBJEXT-o}
4998 am__minus_obj=
4999 ;;
5000 none) break ;;
5001 esac
5002 if depmode=$depmode \
5003 source=sub/conftest.c object=$am__obj \
5004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5006 >/dev/null 2>conftest.err &&
5007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5011 # icc doesn't choke on unknown options, it will just issue warnings
5012 # or remarks (even with -Werror). So we grep stderr for any message
5013 # that says an option was ignored or not supported.
5014 # When given -MP, icc 7.0 and 7.1 complain thusly:
5015 # icc: Command line warning: ignoring option '-M'; no argument required
5016 # The diagnosis changed in icc 8.0:
5017 # icc: Command line remark: option '-MP' not supported
5018 if (grep 'ignoring option' conftest.err ||
5019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5020 am_cv_CC_dependencies_compiler_type=$depmode
5021 break
5022 fi
5023 fi
5024 done
5025
5026 cd ..
5027 rm -rf conftest.dir
5028else
5029 am_cv_CC_dependencies_compiler_type=none
5030fi
5031
5032fi
cristy8b350f62009-11-15 23:12:43 +00005033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00005034$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5035CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5036
5037 if
5038 test "x$enable_dependency_tracking" != xno \
5039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5040 am__fastdepCC_TRUE=
5041 am__fastdepCC_FALSE='#'
5042else
5043 am__fastdepCC_TRUE='#'
5044 am__fastdepCC_FALSE=
5045fi
5046
5047
cristy95646052009-11-28 23:05:30 +00005048ac_ext=cpp
5049ac_cpp='$CXXCPP $CPPFLAGS'
5050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053if test -z "$CXX"; then
5054 if test -n "$CCC"; then
5055 CXX=$CCC
5056 else
5057 if test -n "$ac_tool_prefix"; then
5058 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5059 do
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063$as_echo_n "checking for $ac_word... " >&6; }
5064if test "${ac_cv_prog_CXX+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 if test -n "$CXX"; then
5068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5069else
5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082 done
5083IFS=$as_save_IFS
5084
5085fi
5086fi
5087CXX=$ac_cv_prog_CXX
5088if test -n "$CXX"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5090$as_echo "$CXX" >&6; }
5091else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094fi
5095
5096
5097 test -n "$CXX" && break
5098 done
5099fi
5100if test -z "$CXX"; then
5101 ac_ct_CXX=$CXX
5102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5103do
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105set dummy $ac_prog; ac_word=$2
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107$as_echo_n "checking for $ac_word... " >&6; }
5108if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110else
5111 if test -n "$ac_ct_CXX"; then
5112 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CXX="$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125done
5126 done
5127IFS=$as_save_IFS
5128
5129fi
5130fi
5131ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5132if test -n "$ac_ct_CXX"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5134$as_echo "$ac_ct_CXX" >&6; }
5135else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137$as_echo "no" >&6; }
5138fi
5139
5140
5141 test -n "$ac_ct_CXX" && break
5142done
5143
5144 if test "x$ac_ct_CXX" = x; then
5145 CXX="g++"
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151ac_tool_warned=yes ;;
5152esac
5153 CXX=$ac_ct_CXX
5154 fi
5155fi
5156
5157 fi
5158fi
5159# Provide some information about the compiler.
5160$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5161set X $ac_compile
5162ac_compiler=$2
5163for ac_option in --version -v -V -qversion; do
5164 { { ac_try="$ac_compiler $ac_option >&5"
5165case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170$as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5172 ac_status=$?
5173 if test -s conftest.err; then
5174 sed '10a\
5175... rest of stderr output deleted ...
5176 10q' conftest.err >conftest.er1
5177 cat conftest.er1 >&5
5178 fi
5179 rm -f conftest.er1 conftest.err
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }
5182done
5183
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5185$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5186if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h. */
5191
5192int
5193main ()
5194{
5195#ifndef __GNUC__
5196 choke me
5197#endif
5198
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203if ac_fn_cxx_try_compile "$LINENO"; then :
5204 ac_compiler_gnu=yes
5205else
5206 ac_compiler_gnu=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5210
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5213$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5214if test $ac_compiler_gnu = yes; then
5215 GXX=yes
5216else
5217 GXX=
5218fi
5219ac_test_CXXFLAGS=${CXXFLAGS+set}
5220ac_save_CXXFLAGS=$CXXFLAGS
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5222$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5223if test "${ac_cv_prog_cxx_g+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225else
5226 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5227 ac_cxx_werror_flag=yes
5228 ac_cv_prog_cxx_g=no
5229 CXXFLAGS="-g"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h. */
5232
5233int
5234main ()
5235{
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241if ac_fn_cxx_try_compile "$LINENO"; then :
5242 ac_cv_prog_cxx_g=yes
5243else
5244 CXXFLAGS=""
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246/* end confdefs.h. */
5247
5248int
5249main ()
5250{
5251
5252 ;
5253 return 0;
5254}
5255_ACEOF
5256if ac_fn_cxx_try_compile "$LINENO"; then :
5257
5258else
5259 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5260 CXXFLAGS="-g"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h. */
5263
5264int
5265main ()
5266{
5267
5268 ;
5269 return 0;
5270}
5271_ACEOF
5272if ac_fn_cxx_try_compile "$LINENO"; then :
5273 ac_cv_prog_cxx_g=yes
5274fi
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278fi
5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5281fi
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5283$as_echo "$ac_cv_prog_cxx_g" >&6; }
5284if test "$ac_test_CXXFLAGS" = set; then
5285 CXXFLAGS=$ac_save_CXXFLAGS
5286elif test $ac_cv_prog_cxx_g = yes; then
5287 if test "$GXX" = yes; then
5288 CXXFLAGS="-g -O2"
5289 else
5290 CXXFLAGS="-g"
5291 fi
5292else
5293 if test "$GXX" = yes; then
5294 CXXFLAGS="-O2"
5295 else
5296 CXXFLAGS=
5297 fi
5298fi
5299ac_ext=c
5300ac_cpp='$CPP $CPPFLAGS'
5301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5303ac_compiler_gnu=$ac_cv_c_compiler_gnu
5304
5305depcc="$CXX" am_compiler_list=
5306
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5308$as_echo_n "checking dependency style of $depcc... " >&6; }
5309if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311else
5312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5313 # We make a subdir and do the tests there. Otherwise we can end up
5314 # making bogus files that we don't know about and never remove. For
5315 # instance it was reported that on HP-UX the gcc test will end up
5316 # making a dummy file named `D' -- because `-MD' means `put the output
5317 # in D'.
5318 mkdir conftest.dir
5319 # Copy depcomp to subdir because otherwise we won't find it if we're
5320 # using a relative directory.
5321 cp "$am_depcomp" conftest.dir
5322 cd conftest.dir
5323 # We will build objects and dependencies in a subdirectory because
5324 # it helps to detect inapplicable dependency modes. For instance
5325 # both Tru64's cc and ICC support -MD to output dependencies as a
5326 # side effect of compilation, but ICC will put the dependencies in
5327 # the current directory while Tru64 will put them in the object
5328 # directory.
5329 mkdir sub
5330
5331 am_cv_CXX_dependencies_compiler_type=none
5332 if test "$am_compiler_list" = ""; then
5333 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5334 fi
5335 am__universal=false
5336 case " $depcc " in #(
5337 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5338 esac
5339
5340 for depmode in $am_compiler_list; do
5341 # Setup a source with many dependencies, because some compilers
5342 # like to wrap large dependency lists on column 80 (with \), and
5343 # we should not choose a depcomp mode which is confused by this.
5344 #
5345 # We need to recreate these files for each test, as the compiler may
5346 # overwrite some of them when testing with obscure command lines.
5347 # This happens at least with the AIX C compiler.
5348 : > sub/conftest.c
5349 for i in 1 2 3 4 5 6; do
5350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5352 # Solaris 8's {/usr,}/bin/sh.
5353 touch sub/conftst$i.h
5354 done
5355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5356
5357 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5358 # mode. It turns out that the SunPro C++ compiler does not properly
5359 # handle `-M -o', and we need to detect this. Also, some Intel
5360 # versions had trouble with output in subdirs
5361 am__obj=sub/conftest.${OBJEXT-o}
5362 am__minus_obj="-o $am__obj"
5363 case $depmode in
5364 gcc)
5365 # This depmode causes a compiler race in universal mode.
5366 test "$am__universal" = false || continue
5367 ;;
5368 nosideeffect)
5369 # after this tag, mechanisms are not by side-effect, so they'll
5370 # only be used when explicitly requested
5371 if test "x$enable_dependency_tracking" = xyes; then
5372 continue
5373 else
5374 break
5375 fi
5376 ;;
5377 msvisualcpp | msvcmsys)
5378 # This compiler won't grok `-c -o', but also, the minuso test has
5379 # not run yet. These depmodes are late enough in the game, and
5380 # so weak that their functioning should not be impacted.
5381 am__obj=conftest.${OBJEXT-o}
5382 am__minus_obj=
5383 ;;
5384 none) break ;;
5385 esac
5386 if depmode=$depmode \
5387 source=sub/conftest.c object=$am__obj \
5388 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5389 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5390 >/dev/null 2>conftest.err &&
5391 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5392 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5393 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5394 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5395 # icc doesn't choke on unknown options, it will just issue warnings
5396 # or remarks (even with -Werror). So we grep stderr for any message
5397 # that says an option was ignored or not supported.
5398 # When given -MP, icc 7.0 and 7.1 complain thusly:
5399 # icc: Command line warning: ignoring option '-M'; no argument required
5400 # The diagnosis changed in icc 8.0:
5401 # icc: Command line remark: option '-MP' not supported
5402 if (grep 'ignoring option' conftest.err ||
5403 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5404 am_cv_CXX_dependencies_compiler_type=$depmode
5405 break
5406 fi
5407 fi
5408 done
5409
5410 cd ..
5411 rm -rf conftest.dir
5412else
5413 am_cv_CXX_dependencies_compiler_type=none
5414fi
5415
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5418$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5419CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5420
5421 if
5422 test "x$enable_dependency_tracking" != xno \
5423 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5424 am__fastdepCXX_TRUE=
5425 am__fastdepCXX_FALSE='#'
5426else
5427 am__fastdepCXX_TRUE='#'
5428 am__fastdepCXX_FALSE=
5429fi
5430
5431
cristy8b350f62009-11-15 23:12:43 +00005432 case $ac_cv_prog_cc_stdc in #(
5433 no) :
5434 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5435 *) :
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005437$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005438if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005439 $as_echo_n "(cached) " >&6
5440else
5441 ac_cv_prog_cc_c99=no
5442ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005444/* end confdefs.h. */
5445#include <stdarg.h>
5446#include <stdbool.h>
5447#include <stdlib.h>
5448#include <wchar.h>
5449#include <stdio.h>
5450
5451// Check varargs macros. These examples are taken from C99 6.10.3.5.
5452#define debug(...) fprintf (stderr, __VA_ARGS__)
5453#define showlist(...) puts (#__VA_ARGS__)
5454#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5455static void
5456test_varargs_macros (void)
5457{
5458 int x = 1234;
5459 int y = 5678;
5460 debug ("Flag");
5461 debug ("X = %d\n", x);
5462 showlist (The first, second, and third items.);
5463 report (x>y, "x is %d but y is %d", x, y);
5464}
5465
5466// Check long long types.
5467#define BIG64 18446744073709551615ull
5468#define BIG32 4294967295ul
5469#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5470#if !BIG_OK
5471 your preprocessor is broken;
5472#endif
5473#if BIG_OK
5474#else
5475 your preprocessor is broken;
5476#endif
5477static long long int bignum = -9223372036854775807LL;
5478static unsigned long long int ubignum = BIG64;
5479
5480struct incomplete_array
5481{
5482 int datasize;
5483 double data[];
5484};
5485
5486struct named_init {
5487 int number;
5488 const wchar_t *name;
5489 double average;
5490};
5491
5492typedef const char *ccp;
5493
5494static inline int
5495test_restrict (ccp restrict text)
5496{
5497 // See if C++-style comments work.
5498 // Iterate through items via the restricted pointer.
5499 // Also check for declarations in for loops.
5500 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5501 continue;
5502 return 0;
5503}
5504
5505// Check varargs and va_copy.
5506static void
5507test_varargs (const char *format, ...)
5508{
5509 va_list args;
5510 va_start (args, format);
5511 va_list args_copy;
5512 va_copy (args_copy, args);
5513
5514 const char *str;
5515 int number;
5516 float fnumber;
5517
5518 while (*format)
5519 {
5520 switch (*format++)
5521 {
5522 case 's': // string
5523 str = va_arg (args_copy, const char *);
5524 break;
5525 case 'd': // int
5526 number = va_arg (args_copy, int);
5527 break;
5528 case 'f': // float
5529 fnumber = va_arg (args_copy, double);
5530 break;
5531 default:
5532 break;
5533 }
5534 }
5535 va_end (args_copy);
5536 va_end (args);
5537}
5538
5539int
5540main ()
5541{
5542
5543 // Check bool.
5544 _Bool success = false;
5545
5546 // Check restrict.
5547 if (test_restrict ("String literal") == 0)
5548 success = true;
5549 char *restrict newvar = "Another string";
5550
5551 // Check varargs.
5552 test_varargs ("s, d' f .", "string", 65, 34.234);
5553 test_varargs_macros ();
5554
5555 // Check flexible array members.
5556 struct incomplete_array *ia =
5557 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5558 ia->datasize = 10;
5559 for (int i = 0; i < ia->datasize; ++i)
5560 ia->data[i] = i * 1.234;
5561
5562 // Check named initializers.
5563 struct named_init ni = {
5564 .number = 34,
5565 .name = L"Test wide string",
5566 .average = 543.34343,
5567 };
5568
5569 ni.number = 58;
5570
5571 int dynamic_array[ni.number];
5572 dynamic_array[ni.number - 1] = 543;
5573
5574 // work around unused variable warnings
5575 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5576 || dynamic_array[ni.number - 1] != 543);
5577
5578 ;
5579 return 0;
5580}
5581_ACEOF
5582for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5583do
5584 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005585 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005586 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005587fi
cristy3ed852e2009-09-05 21:47:34 +00005588rm -f core conftest.err conftest.$ac_objext
5589 test "x$ac_cv_prog_cc_c99" != "xno" && break
5590done
5591rm -f conftest.$ac_ext
5592CC=$ac_save_CC
5593
5594fi
5595# AC_CACHE_VAL
5596case "x$ac_cv_prog_cc_c99" in
5597 x)
cristy8b350f62009-11-15 23:12:43 +00005598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005599$as_echo "none needed" >&6; } ;;
5600 xno)
cristy8b350f62009-11-15 23:12:43 +00005601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005602$as_echo "unsupported" >&6; } ;;
5603 *)
5604 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00005605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00005606$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5607esac
cristy8b350f62009-11-15 23:12:43 +00005608if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005609 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5610else
cristy8b350f62009-11-15 23:12:43 +00005611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005612$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005613if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005614 $as_echo_n "(cached) " >&6
5615else
5616 ac_cv_prog_cc_c89=no
5617ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005619/* end confdefs.h. */
5620#include <stdarg.h>
5621#include <stdio.h>
5622#include <sys/types.h>
5623#include <sys/stat.h>
5624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5625struct buf { int x; };
5626FILE * (*rcsopen) (struct buf *, struct stat *, int);
5627static char *e (p, i)
5628 char **p;
5629 int i;
5630{
5631 return p[i];
5632}
5633static char *f (char * (*g) (char **, int), char **p, ...)
5634{
5635 char *s;
5636 va_list v;
5637 va_start (v,p);
5638 s = g (p, va_arg (v,int));
5639 va_end (v);
5640 return s;
5641}
5642
5643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5644 function prototypes and stuff, but not '\xHH' hex character constants.
5645 These don't provoke an error unfortunately, instead are silently treated
5646 as 'x'. The following induces an error, until -std is added to get
5647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5648 array size at least. It's necessary to write '\x00'==0 to get something
5649 that's true only with -std. */
5650int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5651
5652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5653 inside strings and character constants. */
5654#define FOO(x) 'x'
5655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5656
5657int test (int i, double x);
5658struct s1 {int (*f) (int a);};
5659struct s2 {int (*f) (double a);};
5660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5661int argc;
5662char **argv;
5663int
5664main ()
5665{
5666return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5673do
5674 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005675 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005676 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005677fi
cristy3ed852e2009-09-05 21:47:34 +00005678rm -f core conftest.err conftest.$ac_objext
5679 test "x$ac_cv_prog_cc_c89" != "xno" && break
5680done
5681rm -f conftest.$ac_ext
5682CC=$ac_save_CC
5683
5684fi
5685# AC_CACHE_VAL
5686case "x$ac_cv_prog_cc_c89" in
5687 x)
cristy8b350f62009-11-15 23:12:43 +00005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005689$as_echo "none needed" >&6; } ;;
5690 xno)
cristy8b350f62009-11-15 23:12:43 +00005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005692$as_echo "unsupported" >&6; } ;;
5693 *)
5694 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005696$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5697esac
cristy8b350f62009-11-15 23:12:43 +00005698if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005699 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5700else
5701 ac_cv_prog_cc_stdc=no
5702fi
5703
cristy3ed852e2009-09-05 21:47:34 +00005704fi
cristy3ed852e2009-09-05 21:47:34 +00005705 ;;
5706esac
cristy8b350f62009-11-15 23:12:43 +00005707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00005708$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005709 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005710 $as_echo_n "(cached) " >&6
5711fi
5712
cristy8b350f62009-11-15 23:12:43 +00005713 case $ac_cv_prog_cc_stdc in #(
5714 no) :
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5716$as_echo "unsupported" >&6; } ;; #(
5717 '') :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5719$as_echo "none needed" >&6; } ;; #(
5720 *) :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00005722$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5723esac
5724
cristy3ed852e2009-09-05 21:47:34 +00005725ac_ext=c
5726ac_cpp='$CPP $CPPFLAGS'
5727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00005730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00005731$as_echo_n "checking how to run the C preprocessor... " >&6; }
5732# On Suns, sometimes $CPP names a directory.
5733if test -n "$CPP" && test -d "$CPP"; then
5734 CPP=
5735fi
5736if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00005737 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005738 $as_echo_n "(cached) " >&6
5739else
5740 # Double quotes because CPP needs to be expanded
5741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5742 do
5743 ac_preproc_ok=false
5744for ac_c_preproc_warn_flag in '' yes
5745do
5746 # Use a header file that comes with gcc, so configuring glibc
5747 # with a fresh cross-compiler works.
5748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749 # <limits.h> exists even on freestanding compilers.
5750 # On the NeXT, cc -E runs the code through the compiler's parser,
5751 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005753/* end confdefs.h. */
5754#ifdef __STDC__
5755# include <limits.h>
5756#else
5757# include <assert.h>
5758#endif
5759 Syntax error
5760_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005761if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005762
cristy8b350f62009-11-15 23:12:43 +00005763else
cristy3ed852e2009-09-05 21:47:34 +00005764 # Broken: fails on valid input.
5765continue
5766fi
cristy3ed852e2009-09-05 21:47:34 +00005767rm -f conftest.err conftest.$ac_ext
5768
5769 # OK, works on sane cases. Now check whether nonexistent headers
5770 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005772/* end confdefs.h. */
5773#include <ac_nonexistent.h>
5774_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005775if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005776 # Broken: success on invalid input.
5777continue
5778else
cristy3ed852e2009-09-05 21:47:34 +00005779 # Passes both tests.
5780ac_preproc_ok=:
5781break
5782fi
cristy3ed852e2009-09-05 21:47:34 +00005783rm -f conftest.err conftest.$ac_ext
5784
5785done
5786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5787rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005788if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00005789 break
5790fi
5791
5792 done
5793 ac_cv_prog_CPP=$CPP
5794
5795fi
5796 CPP=$ac_cv_prog_CPP
5797else
5798 ac_cv_prog_CPP=$CPP
5799fi
cristy8b350f62009-11-15 23:12:43 +00005800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00005801$as_echo "$CPP" >&6; }
5802ac_preproc_ok=false
5803for ac_c_preproc_warn_flag in '' yes
5804do
5805 # Use a header file that comes with gcc, so configuring glibc
5806 # with a fresh cross-compiler works.
5807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 # <limits.h> exists even on freestanding compilers.
5809 # On the NeXT, cc -E runs the code through the compiler's parser,
5810 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00005811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005812/* end confdefs.h. */
5813#ifdef __STDC__
5814# include <limits.h>
5815#else
5816# include <assert.h>
5817#endif
5818 Syntax error
5819_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005820if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005821
cristy8b350f62009-11-15 23:12:43 +00005822else
cristy3ed852e2009-09-05 21:47:34 +00005823 # Broken: fails on valid input.
5824continue
5825fi
cristy3ed852e2009-09-05 21:47:34 +00005826rm -f conftest.err conftest.$ac_ext
5827
5828 # OK, works on sane cases. Now check whether nonexistent headers
5829 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00005830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005831/* end confdefs.h. */
5832#include <ac_nonexistent.h>
5833_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005834if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005835 # Broken: success on invalid input.
5836continue
5837else
cristy3ed852e2009-09-05 21:47:34 +00005838 # Passes both tests.
5839ac_preproc_ok=:
5840break
5841fi
cristy3ed852e2009-09-05 21:47:34 +00005842rm -f conftest.err conftest.$ac_ext
5843
5844done
5845# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00005847if $ac_preproc_ok; then :
5848
cristy3ed852e2009-09-05 21:47:34 +00005849else
cristy8b350f62009-11-15 23:12:43 +00005850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00005852as_fn_error "C preprocessor \"$CPP\" fails sanity check
5853See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005854fi
5855
5856ac_ext=c
5857ac_cpp='$CPP $CPPFLAGS'
5858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861
cristy8b350f62009-11-15 23:12:43 +00005862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00005863$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005864if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005865 $as_echo_n "(cached) " >&6
5866else
5867 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5868 for ac_i in 1 2 3 4 5 6 7; do
5869 ac_script="$ac_script$as_nl$ac_script"
5870 done
5871 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00005872 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00005873 if test -z "$SED"; then
5874 ac_path_SED_found=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005881 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00005882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5884 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5885# Check for GNU ac_path_SED and select it if it is found.
5886 # Check for GNU $ac_path_SED
5887case `"$ac_path_SED" --version 2>&1` in
5888*GNU*)
5889 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5890*)
5891 ac_count=0
5892 $as_echo_n 0123456789 >"conftest.in"
5893 while :
5894 do
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo '' >> "conftest.nl"
5899 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005901 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005902 if test $ac_count -gt ${ac_path_SED_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_SED="$ac_path_SED"
5905 ac_path_SED_max=$ac_count
5906 fi
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5909 done
5910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5911esac
5912
5913 $ac_path_SED_found && break 3
5914 done
5915 done
cristy8b350f62009-11-15 23:12:43 +00005916 done
cristy3ed852e2009-09-05 21:47:34 +00005917IFS=$as_save_IFS
5918 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00005919 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005920 fi
5921else
5922 ac_cv_path_SED=$SED
5923fi
5924
5925fi
cristy8b350f62009-11-15 23:12:43 +00005926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00005927$as_echo "$ac_cv_path_SED" >&6; }
5928 SED="$ac_cv_path_SED"
5929 rm -f conftest.sed
5930
5931test -z "$SED" && SED=sed
5932Xsed="$SED -e 1s/^X//"
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
cristy8b350f62009-11-15 23:12:43 +00005944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
cristy3ed852e2009-09-05 21:47:34 +00005945$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005946if test "${ac_cv_path_GREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00005947 $as_echo_n "(cached) " >&6
5948else
5949 if test -z "$GREP"; then
5950 ac_path_GREP_found=false
5951 # Loop through the user's path and test for each of PROGNAME-LIST
5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005957 for ac_prog in grep ggrep; do
cristy3ed852e2009-09-05 21:47:34 +00005958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5960 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5961# Check for GNU ac_path_GREP and select it if it is found.
5962 # Check for GNU $ac_path_GREP
5963case `"$ac_path_GREP" --version 2>&1` in
5964*GNU*)
5965 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5966*)
5967 ac_count=0
5968 $as_echo_n 0123456789 >"conftest.in"
5969 while :
5970 do
5971 cat "conftest.in" "conftest.in" >"conftest.tmp"
5972 mv "conftest.tmp" "conftest.in"
5973 cp "conftest.in" "conftest.nl"
5974 $as_echo 'GREP' >> "conftest.nl"
5975 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00005977 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00005978 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5979 # Best one so far, save it but keep looking for a better one
5980 ac_cv_path_GREP="$ac_path_GREP"
5981 ac_path_GREP_max=$ac_count
5982 fi
5983 # 10*(2^10) chars as input seems more than enough
5984 test $ac_count -gt 10 && break
5985 done
5986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5987esac
5988
5989 $ac_path_GREP_found && break 3
5990 done
5991 done
cristy8b350f62009-11-15 23:12:43 +00005992 done
cristy3ed852e2009-09-05 21:47:34 +00005993IFS=$as_save_IFS
5994 if test -z "$ac_cv_path_GREP"; then
cristy8b350f62009-11-15 23:12:43 +00005995 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00005996 fi
5997else
5998 ac_cv_path_GREP=$GREP
5999fi
6000
6001fi
cristy8b350f62009-11-15 23:12:43 +00006002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006003$as_echo "$ac_cv_path_GREP" >&6; }
6004 GREP="$ac_cv_path_GREP"
6005
6006
cristy8b350f62009-11-15 23:12:43 +00006007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006008$as_echo_n "checking for egrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006009if test "${ac_cv_path_EGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006010 $as_echo_n "(cached) " >&6
6011else
6012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6013 then ac_cv_path_EGREP="$GREP -E"
6014 else
6015 if test -z "$EGREP"; then
6016 ac_path_EGREP_found=false
6017 # Loop through the user's path and test for each of PROGNAME-LIST
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006023 for ac_prog in egrep; do
cristy3ed852e2009-09-05 21:47:34 +00006024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6026 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6027# Check for GNU ac_path_EGREP and select it if it is found.
6028 # Check for GNU $ac_path_EGREP
6029case `"$ac_path_EGREP" --version 2>&1` in
6030*GNU*)
6031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6032*)
6033 ac_count=0
6034 $as_echo_n 0123456789 >"conftest.in"
6035 while :
6036 do
6037 cat "conftest.in" "conftest.in" >"conftest.tmp"
6038 mv "conftest.tmp" "conftest.in"
6039 cp "conftest.in" "conftest.nl"
6040 $as_echo 'EGREP' >> "conftest.nl"
6041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006043 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6045 # Best one so far, save it but keep looking for a better one
6046 ac_cv_path_EGREP="$ac_path_EGREP"
6047 ac_path_EGREP_max=$ac_count
6048 fi
6049 # 10*(2^10) chars as input seems more than enough
6050 test $ac_count -gt 10 && break
6051 done
6052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6053esac
6054
6055 $ac_path_EGREP_found && break 3
6056 done
6057 done
cristy8b350f62009-11-15 23:12:43 +00006058 done
cristy3ed852e2009-09-05 21:47:34 +00006059IFS=$as_save_IFS
6060 if test -z "$ac_cv_path_EGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006061 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006062 fi
6063else
6064 ac_cv_path_EGREP=$EGREP
6065fi
6066
6067 fi
6068fi
cristy8b350f62009-11-15 23:12:43 +00006069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006070$as_echo "$ac_cv_path_EGREP" >&6; }
6071 EGREP="$ac_cv_path_EGREP"
6072
6073
cristy8b350f62009-11-15 23:12:43 +00006074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00006075$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006076if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006077 $as_echo_n "(cached) " >&6
6078else
6079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6080 then ac_cv_path_FGREP="$GREP -F"
6081 else
6082 if test -z "$FGREP"; then
6083 ac_path_FGREP_found=false
6084 # Loop through the user's path and test for each of PROGNAME-LIST
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006090 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00006091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6093 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6094# Check for GNU ac_path_FGREP and select it if it is found.
6095 # Check for GNU $ac_path_FGREP
6096case `"$ac_path_FGREP" --version 2>&1` in
6097*GNU*)
6098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6099*)
6100 ac_count=0
6101 $as_echo_n 0123456789 >"conftest.in"
6102 while :
6103 do
6104 cat "conftest.in" "conftest.in" >"conftest.tmp"
6105 mv "conftest.tmp" "conftest.in"
6106 cp "conftest.in" "conftest.nl"
6107 $as_echo 'FGREP' >> "conftest.nl"
6108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00006110 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00006111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6112 # Best one so far, save it but keep looking for a better one
6113 ac_cv_path_FGREP="$ac_path_FGREP"
6114 ac_path_FGREP_max=$ac_count
6115 fi
6116 # 10*(2^10) chars as input seems more than enough
6117 test $ac_count -gt 10 && break
6118 done
6119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6120esac
6121
6122 $ac_path_FGREP_found && break 3
6123 done
6124 done
cristy8b350f62009-11-15 23:12:43 +00006125 done
cristy3ed852e2009-09-05 21:47:34 +00006126IFS=$as_save_IFS
6127 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00006128 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006129 fi
6130else
6131 ac_cv_path_FGREP=$FGREP
6132fi
6133
6134 fi
6135fi
cristy8b350f62009-11-15 23:12:43 +00006136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006137$as_echo "$ac_cv_path_FGREP" >&6; }
6138 FGREP="$ac_cv_path_FGREP"
6139
6140
6141test -z "$GREP" && GREP=grep
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00006162if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6164else
6165 with_gnu_ld=no
6166fi
6167
6168ac_prog=ld
6169if test "$GCC" = yes; then
6170 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00006171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00006172$as_echo_n "checking for ld used by $CC... " >&6; }
6173 case $host in
6174 *-*-mingw*)
6175 # gcc leaves a trailing carriage return which upsets mingw
6176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6177 *)
6178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6179 esac
6180 case $ac_prog in
6181 # Accept absolute paths.
6182 [\\/]* | ?:[\\/]*)
6183 re_direlt='/[^/][^/]*/\.\./'
6184 # Canonicalize the pathname of ld
6185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6188 done
6189 test -z "$LD" && LD="$ac_prog"
6190 ;;
6191 "")
6192 # If it fails, then pretend we aren't using GCC.
6193 ac_prog=ld
6194 ;;
6195 *)
6196 # If it is relative, then search for the first ld in PATH.
6197 with_gnu_ld=unknown
6198 ;;
6199 esac
6200elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006202$as_echo_n "checking for GNU ld... " >&6; }
6203else
cristy8b350f62009-11-15 23:12:43 +00006204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006205$as_echo_n "checking for non-GNU ld... " >&6; }
6206fi
cristy8b350f62009-11-15 23:12:43 +00006207if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006208 $as_echo_n "(cached) " >&6
6209else
6210 if test -z "$LD"; then
6211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6212 for ac_dir in $PATH; do
6213 IFS="$lt_save_ifs"
6214 test -z "$ac_dir" && ac_dir=.
6215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6216 lt_cv_path_LD="$ac_dir/$ac_prog"
6217 # Check to see if the program is GNU ld. I'd rather use --version,
6218 # but apparently some variants of GNU ld only accept -v.
6219 # Break only if it was the GNU/non-GNU ld that we prefer.
6220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6221 *GNU* | *'with BFD'*)
6222 test "$with_gnu_ld" != no && break
6223 ;;
6224 *)
6225 test "$with_gnu_ld" != yes && break
6226 ;;
6227 esac
6228 fi
6229 done
6230 IFS="$lt_save_ifs"
6231else
6232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6233fi
6234fi
6235
6236LD="$lt_cv_path_LD"
6237if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00006238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00006239$as_echo "$LD" >&6; }
6240else
cristy8b350f62009-11-15 23:12:43 +00006241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006242$as_echo "no" >&6; }
6243fi
cristy8b350f62009-11-15 23:12:43 +00006244test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006246$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006247if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006248 $as_echo_n "(cached) " >&6
6249else
6250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6251case `$LD -v 2>&1 </dev/null` in
6252*GNU* | *'with BFD'*)
6253 lt_cv_prog_gnu_ld=yes
6254 ;;
6255*)
6256 lt_cv_prog_gnu_ld=no
6257 ;;
6258esac
6259fi
cristy8b350f62009-11-15 23:12:43 +00006260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00006261$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6262with_gnu_ld=$lt_cv_prog_gnu_ld
6263
6264
6265
6266
6267
6268
6269
6270
6271
cristy3ed852e2009-09-05 21:47:34 +00006272
6273if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00006274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006275$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6276else
cristy8b350f62009-11-15 23:12:43 +00006277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00006278$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6279fi
6280set dummy $CC; ac_cc=`$as_echo "$2" |
6281 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00006282if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006283 $as_echo_n "(cached) " >&6
6284else
cristy8b350f62009-11-15 23:12:43 +00006285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006286/* end confdefs.h. */
6287
6288int
6289main ()
6290{
6291
6292 ;
6293 return 0;
6294}
6295_ACEOF
6296# Make sure it works both with $CC and with simple cc.
6297# We do the test twice because some compilers refuse to overwrite an
6298# existing .o file with -o, though they will create one.
6299ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6300rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006301if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
cristy8b350f62009-11-15 23:12:43 +00006305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6306$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006307 (eval "$ac_try") 2>&5
6308 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; } &&
6311 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
cristy8b350f62009-11-15 23:12:43 +00006315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6316$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006317 (eval "$ac_try") 2>&5
6318 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006321then
6322 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6323 if test "x$CC" != xcc; then
6324 # Test first that cc exists at all.
6325 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00006326 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329esac
cristy8b350f62009-11-15 23:12:43 +00006330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6331$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006332 (eval "$ac_try") 2>&5
6333 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6335 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00006336 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6337 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00006338 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
cristy8b350f62009-11-15 23:12:43 +00006342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6343$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006344 (eval "$ac_try") 2>&5
6345 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; } &&
6348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00006349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
cristy8b350f62009-11-15 23:12:43 +00006352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6353$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00006354 (eval "$ac_try") 2>&5
6355 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00006356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00006358 then
6359 # cc works too.
6360 :
6361 else
6362 # cc exists but doesn't like -o.
6363 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6364 fi
6365 fi
6366 fi
6367else
6368 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6369fi
6370rm -f core conftest*
6371
6372fi
6373if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00006374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006375$as_echo "yes" >&6; }
6376else
cristy8b350f62009-11-15 23:12:43 +00006377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006378$as_echo "no" >&6; }
6379
cristy8b350f62009-11-15 23:12:43 +00006380$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006381
6382fi
6383
6384# FIXME: we rely on the cache variable name because
6385# there is no other way.
6386set dummy $CC
6387am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6388eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6389if test "$am_t" != yes; then
6390 # Losing compiler, so override with the script.
6391 # FIXME: It is wrong to rewrite CC.
6392 # But if we don't then we get into trouble of one sort or another.
6393 # A longer-term fix would be to have automake use am__CC in this case,
6394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6395 CC="$am_aux_dir/compile $CC"
6396fi
6397
6398
cristy3ed852e2009-09-05 21:47:34 +00006399
cristy8b350f62009-11-15 23:12:43 +00006400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00006401$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6402set x ${MAKE-make}
6403ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00006404if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00006405 $as_echo_n "(cached) " >&6
6406else
6407 cat >conftest.make <<\_ACEOF
6408SHELL = /bin/sh
6409all:
6410 @echo '@@@%%%=$(MAKE)=@@@%%%'
6411_ACEOF
6412# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6413case `${MAKE-make} -f conftest.make 2>/dev/null` in
6414 *@@@%%%=?*=@@@%%%*)
6415 eval ac_cv_prog_make_${ac_make}_set=yes;;
6416 *)
6417 eval ac_cv_prog_make_${ac_make}_set=no;;
6418esac
6419rm -f conftest.make
6420fi
6421if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00006422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006423$as_echo "yes" >&6; }
6424 SET_MAKE=
6425else
cristy8b350f62009-11-15 23:12:43 +00006426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006427$as_echo "no" >&6; }
6428 SET_MAKE="MAKE=${MAKE-make}"
6429fi
6430
cristy3ed852e2009-09-05 21:47:34 +00006431
cristy8b350f62009-11-15 23:12:43 +00006432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006433$as_echo_n "checking maximum warning verbosity option... " >&6; }
6434
6435
6436
6437
6438# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00006439if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006440 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6441else
6442 ac_compile_warnings_on=""
6443fi
6444
6445
6446 if test x"$ac_compile_warnings_on" = xno
6447 then
6448 ac_compile_warnings_msg=no
6449 else
6450 if test -n "$CXX"
6451 then
6452 if test "$GXX" = "yes"
6453 then
6454 ac_compile_warnings_opt='-Wall -W'
6455 fi
6456 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6457 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6458 fi
6459
6460 if test -n "$CC"
6461 then
6462 if test "$GCC" = "yes"
6463 then
6464 ac_compile_warnings_opt='-Wall -W'
6465 fi
6466 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6467 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6468 fi
6469 fi
cristy8b350f62009-11-15 23:12:43 +00006470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00006471$as_echo "$ac_compile_warnings_msg" >&6; }
6472 unset ac_compile_warnings_msg
6473 unset ac_compile_warnings_opt
6474
cristy8b350f62009-11-15 23:12:43 +00006475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00006476$as_echo_n "checking whether ln -s works... " >&6; }
6477LN_S=$as_ln_s
6478if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00006479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006480$as_echo "yes" >&6; }
6481else
cristy8b350f62009-11-15 23:12:43 +00006482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00006483$as_echo "no, using $LN_S" >&6; }
6484fi
6485
cristy8b350f62009-11-15 23:12:43 +00006486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00006487$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6488
6489# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00006490if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006491 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00006492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006493$as_echo "yes" >&6; }
6494
cristy8b350f62009-11-15 23:12:43 +00006495$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006496
6497 LIBS="$LIBS -ldmalloc"
6498 LDFLAGS="$LDFLAGS -g"
6499else
cristy8b350f62009-11-15 23:12:43 +00006500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006501$as_echo "no" >&6; }
6502fi
6503else
cristy8b350f62009-11-15 23:12:43 +00006504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006505$as_echo "no" >&6; }
6506fi
6507
6508
6509
6510
6511if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006516$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006517if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006518 $as_echo_n "(cached) " >&6
6519else
6520 case $PKG_CONFIG in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6523 ;;
6524 *)
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006534 break 2
6535 fi
6536done
cristy8b350f62009-11-15 23:12:43 +00006537 done
cristy3ed852e2009-09-05 21:47:34 +00006538IFS=$as_save_IFS
6539
6540 ;;
6541esac
6542fi
6543PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6544if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006546$as_echo "$PKG_CONFIG" >&6; }
6547else
cristy8b350f62009-11-15 23:12:43 +00006548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006549$as_echo "no" >&6; }
6550fi
6551
6552
6553fi
6554if test -z "$ac_cv_path_PKG_CONFIG"; then
6555 ac_pt_PKG_CONFIG=$PKG_CONFIG
6556 # Extract the first word of "pkg-config", so it can be a program name with args.
6557set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00006558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00006559$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006560if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006561 $as_echo_n "(cached) " >&6
6562else
6563 case $ac_pt_PKG_CONFIG in
6564 [\\/]* | ?:[\\/]*)
6565 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6566 ;;
6567 *)
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00006573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00006574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00006576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00006577 break 2
6578 fi
6579done
cristy8b350f62009-11-15 23:12:43 +00006580 done
cristy3ed852e2009-09-05 21:47:34 +00006581IFS=$as_save_IFS
6582
6583 ;;
6584esac
6585fi
6586ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6587if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00006588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00006589$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6590else
cristy8b350f62009-11-15 23:12:43 +00006591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006592$as_echo "no" >&6; }
6593fi
6594
6595 if test "x$ac_pt_PKG_CONFIG" = x; then
6596 PKG_CONFIG=""
6597 else
6598 case $cross_compiling:$ac_tool_warned in
6599yes:)
cristy8b350f62009-11-15 23:12:43 +00006600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00006601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602ac_tool_warned=yes ;;
6603esac
6604 PKG_CONFIG=$ac_pt_PKG_CONFIG
6605 fi
6606else
6607 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6608fi
6609
6610fi
6611if test -n "$PKG_CONFIG"; then
6612 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00006613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00006614$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6615 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00006616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00006617$as_echo "yes" >&6; }
6618 else
cristy8b350f62009-11-15 23:12:43 +00006619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00006620$as_echo "no" >&6; }
6621 PKG_CONFIG=""
6622 fi
6623
6624fi
6625
6626#
6627# Enable OS features.
6628#
6629
6630
cristy8b350f62009-11-15 23:12:43 +00006631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +00006632$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006633if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006634 $as_echo_n "(cached) " >&6
6635else
cristy8b350f62009-11-15 23:12:43 +00006636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006637/* end confdefs.h. */
6638#include <stdlib.h>
6639#include <stdarg.h>
6640#include <string.h>
6641#include <float.h>
6642
6643int
6644main ()
6645{
6646
6647 ;
6648 return 0;
6649}
6650_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006652 ac_cv_header_stdc=yes
6653else
cristy8b350f62009-11-15 23:12:43 +00006654 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006655fi
cristy3ed852e2009-09-05 21:47:34 +00006656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657
6658if test $ac_cv_header_stdc = yes; then
6659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006661/* end confdefs.h. */
6662#include <string.h>
6663
6664_ACEOF
6665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006666 $EGREP "memchr" >/dev/null 2>&1; then :
6667
cristy3ed852e2009-09-05 21:47:34 +00006668else
6669 ac_cv_header_stdc=no
6670fi
6671rm -f conftest*
6672
6673fi
6674
6675if test $ac_cv_header_stdc = yes; then
6676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +00006677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006678/* end confdefs.h. */
6679#include <stdlib.h>
6680
6681_ACEOF
6682if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +00006683 $EGREP "free" >/dev/null 2>&1; then :
6684
cristy3ed852e2009-09-05 21:47:34 +00006685else
6686 ac_cv_header_stdc=no
6687fi
6688rm -f conftest*
6689
6690fi
6691
6692if test $ac_cv_header_stdc = yes; then
6693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +00006694 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006695 :
6696else
cristy8b350f62009-11-15 23:12:43 +00006697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006698/* end confdefs.h. */
6699#include <ctype.h>
6700#include <stdlib.h>
6701#if ((' ' & 0x0FF) == 0x020)
6702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6704#else
6705# define ISLOWER(c) \
6706 (('a' <= (c) && (c) <= 'i') \
6707 || ('j' <= (c) && (c) <= 'r') \
6708 || ('s' <= (c) && (c) <= 'z'))
6709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6710#endif
6711
6712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6713int
6714main ()
6715{
6716 int i;
6717 for (i = 0; i < 256; i++)
6718 if (XOR (islower (i), ISLOWER (i))
6719 || toupper (i) != TOUPPER (i))
6720 return 2;
6721 return 0;
6722}
6723_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006724if ac_fn_c_try_run "$LINENO"; then :
6725
cristy3ed852e2009-09-05 21:47:34 +00006726else
cristy8b350f62009-11-15 23:12:43 +00006727 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +00006728fi
cristy8b350f62009-11-15 23:12:43 +00006729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6730 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006731fi
6732
cristy3ed852e2009-09-05 21:47:34 +00006733fi
6734fi
cristy8b350f62009-11-15 23:12:43 +00006735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006736$as_echo "$ac_cv_header_stdc" >&6; }
6737if test $ac_cv_header_stdc = yes; then
6738
cristy8b350f62009-11-15 23:12:43 +00006739$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006740
6741fi
6742
6743# On IRIX 5.3, sys/types and inttypes.h are conflicting.
cristy3ed852e2009-09-05 21:47:34 +00006744for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6745 inttypes.h stdint.h unistd.h
cristy8b350f62009-11-15 23:12:43 +00006746do :
6747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6748ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6749"
6750eval as_val=\$$as_ac_Header
6751 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006752 cat >>confdefs.h <<_ACEOF
6753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754_ACEOF
6755
6756fi
6757
6758done
6759
6760
6761
cristy8b350f62009-11-15 23:12:43 +00006762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6763if test "x$ac_cv_header_minix_config_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +00006764 MINIX=yes
6765else
6766 MINIX=
6767fi
6768
6769
6770 if test "$MINIX" = yes; then
6771
cristy8b350f62009-11-15 23:12:43 +00006772$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006773
6774
cristy8b350f62009-11-15 23:12:43 +00006775$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006776
6777
cristy8b350f62009-11-15 23:12:43 +00006778$as_echo "#define _MINIX 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006779
6780 fi
6781
6782
cristy8b350f62009-11-15 23:12:43 +00006783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006784$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006785if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006786 $as_echo_n "(cached) " >&6
6787else
cristy8b350f62009-11-15 23:12:43 +00006788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006789/* end confdefs.h. */
6790
6791# define __EXTENSIONS__ 1
6792 $ac_includes_default
6793int
6794main ()
6795{
6796
6797 ;
6798 return 0;
6799}
6800_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006801if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006802 ac_cv_safe_to_define___extensions__=yes
6803else
cristy8b350f62009-11-15 23:12:43 +00006804 ac_cv_safe_to_define___extensions__=no
cristy3ed852e2009-09-05 21:47:34 +00006805fi
cristy3ed852e2009-09-05 21:47:34 +00006806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
cristy8b350f62009-11-15 23:12:43 +00006808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
cristy3ed852e2009-09-05 21:47:34 +00006809$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6810 test $ac_cv_safe_to_define___extensions__ = yes &&
cristy8b350f62009-11-15 23:12:43 +00006811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006812
cristy8b350f62009-11-15 23:12:43 +00006813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006814
cristy8b350f62009-11-15 23:12:43 +00006815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006816
cristy8b350f62009-11-15 23:12:43 +00006817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006818
cristy8b350f62009-11-15 23:12:43 +00006819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6820
cristy3ed852e2009-09-05 21:47:34 +00006821
6822
cristy3ed852e2009-09-05 21:47:34 +00006823#
6824# Enable run-time checking.
6825#
6826# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00006827if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006828 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6829else
6830 enable_bounds_checking='no'
6831fi
6832
6833
6834if test "$enable_bounds_checking" = yes; then
6835
cristy8b350f62009-11-15 23:12:43 +00006836$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006837
6838fi
6839
6840#
6841# Tests for Windows
6842#
6843
6844
6845
6846GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00006847native_win32_build='no'
6848cygwin_build='no'
6849case "${host_os}" in
6850 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00006851 cygwin_build='yes'
6852 GDI32_LIBS='-lgdi32'
6853 ;;
6854 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00006855 native_win32_build='yes'
6856 GDI32_LIBS='-lgdi32'
6857 ;;
6858esac
6859if test "${GDI32_LIBS}x" != 'x'; then
6860
cristy8b350f62009-11-15 23:12:43 +00006861$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00006862
6863fi
6864
6865 if test "${GDI32_LIBS}x" != 'x' ; then
6866 WINGDI32_DELEGATE_TRUE=
6867 WINGDI32_DELEGATE_FALSE='#'
6868else
6869 WINGDI32_DELEGATE_TRUE='#'
6870 WINGDI32_DELEGATE_FALSE=
6871fi
6872
6873 if test "${native_win32_build}" = 'yes' ; then
6874 WIN32_NATIVE_BUILD_TRUE=
6875 WIN32_NATIVE_BUILD_FALSE='#'
6876else
6877 WIN32_NATIVE_BUILD_TRUE='#'
6878 WIN32_NATIVE_BUILD_FALSE=
6879fi
6880
6881 if test "${cygwin_build}" = 'yes' ; then
6882 CYGWIN_BUILD_TRUE=
6883 CYGWIN_BUILD_FALSE='#'
6884else
6885 CYGWIN_BUILD_TRUE='#'
6886 CYGWIN_BUILD_FALSE=
6887fi
6888
6889 if test "x${CC}" = 'xcl.exe' ; then
6890 USING_CL_TRUE=
6891 USING_CL_FALSE='#'
6892else
6893 USING_CL_TRUE='#'
6894 USING_CL_FALSE=
6895fi
6896
6897
6898WinPathScript="${srcdirfull}/winpath.sh"
6899
6900
6901#
6902# Compiler flags tweaks
6903#
6904if test "${GCC}" != "yes"; then
6905 case "${host}" in
6906 *-*-hpux* )
6907 # aCC: HP ANSI C++ B3910B A.03.34
6908 CFLAGS="${CFLAGS} -Wp,-H30000"
6909 if test -n "${CXXFLAGS}"; then
6910 CXXFLAGS='-AA'
6911 else
6912 CXXFLAGS="${CXXFLAGS} -AA"
6913 fi
6914 ;;
6915 *-dec-osf5.* )
6916 # Compaq alphaev68-dec-osf5.1 compiler
6917 if test -n "${CXXFLAGS}"; then
6918 CXXFLAGS='-std strict_ansi -noimplicit_include'
6919 else
6920 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
6921 fi
6922 esac
6923fi
6924
6925# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00006926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00006927$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006928if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006929 $as_echo_n "(cached) " >&6
6930else
6931
6932im_cv_ld_lazyload='none'
6933case "${host}" in
6934 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
6935 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
6936 im_cv_ld_lazyload='-Wl,-zlazyload'
6937 fi
6938 ;;
6939esac
6940
6941fi
cristy8b350f62009-11-15 23:12:43 +00006942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00006943$as_echo "$im_cv_ld_lazyload" >&6; }
6944if test "${im_cv_ld_lazyload}" != 'none' ; then
6945 if test -z "${LDFLAGS}" ; then
6946 LDFLAGS="${im_cv_ld_lazyload}"
6947 else
6948 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
6949 fi
6950fi
6951
6952case "$host" in
6953*darwin* | *-macos10*)
6954 if test -d /opt/local ; then
6955 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
6956 LDFLAGS="$LDFLAGS -L/opt/local/lib"
6957 elif test -d /sw ; then
6958 CPPFLAGS="$CPPFLAGS -I/sw/include"
6959 LDFLAGS="$LDFLAGS -L/sw/lib"
6960 fi
6961 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00006962if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006963 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
6964else
6965 build_osxuniversal=no
6966fi
6967
6968
6969 if test "${build_osxuniversal}" != no ; then
6970 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00006971 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00006972Please re-run configure with these options:
6973 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00006974 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00006975 fi
6976 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6977 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6978 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
6979 fi
6980 ;;
6981esac
6982
6983# Enable support for threads
6984
6985# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00006986if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006987 withval=$with_threads; with_threads=$withval
6988else
6989 with_threads='yes'
6990fi
6991
6992
6993have_threads=no
6994if test "$with_threads" != 'no'; then
6995
6996
6997
6998ac_ext=c
6999ac_cpp='$CPP $CPPFLAGS'
7000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004acx_pthread_ok=no
7005
7006# We used to check for pthread.h first, but this fails if pthread.h
7007# requires special compiler flags (e.g. on True64 or Sequent).
7008# It gets checked for in the link test anyway.
7009
7010# First of all, check if the user has set any of the PTHREAD_LIBS,
7011# etcetera environment variables, and if threads linking works using
7012# them:
7013if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7014 save_CFLAGS="$CFLAGS"
7015 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7016 save_LIBS="$LIBS"
7017 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00007018 { $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 +00007019$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007021/* end confdefs.h. */
7022
7023/* Override any GCC internal prototype to avoid an error.
7024 Use char because int might match the return type of a GCC
7025 builtin and then its argument prototype would still apply. */
7026#ifdef __cplusplus
7027extern "C"
7028#endif
7029char pthread_join ();
7030int
7031main ()
7032{
7033return pthread_join ();
7034 ;
7035 return 0;
7036}
7037_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007038if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007040fi
cristy8b350f62009-11-15 23:12:43 +00007041rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007044$as_echo "$acx_pthread_ok" >&6; }
7045 if test x"$acx_pthread_ok" = xno; then
7046 PTHREAD_LIBS=""
7047 PTHREAD_CFLAGS=""
7048 fi
7049 LIBS="$save_LIBS"
7050 CFLAGS="$save_CFLAGS"
7051fi
7052
7053# We must check for the threads library under a number of different
7054# names; the ordering is very important because some systems
7055# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7056# libraries is broken (non-POSIX).
7057
7058# Create a list of thread flags to try. Items starting with a "-" are
7059# C compiler flags, and other items are library names, except for "none"
7060# which indicates that we try without any flags at all, and "pthread-config"
7061# which is a program returning the flags for the Pth emulation library.
7062
7063acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7064
7065# The ordering *is* (sometimes) important. Some notes on the
7066# individual items follow:
7067
7068# pthreads: AIX (must check this before -lpthread)
7069# none: in case threads are in libc; should be tried before -Kthread and
7070# other compiler flags to prevent continual compiler warnings
7071# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7072# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7073# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7074# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7075# -pthreads: Solaris/gcc
7076# -mthreads: Mingw32/gcc, Lynx/gcc
7077# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7078# doesn't hurt to check since this sometimes defines pthreads too;
7079# also defines -D_REENTRANT)
7080# ... -mt is also the pthreads flag for HP/aCC
7081# pthread: Linux, etcetera
7082# --thread-safe: KAI C++
7083# pthread-config: use pthread-config program (for GNU Pth library)
7084
7085case "${host_cpu}-${host_os}" in
7086 *solaris*)
7087
7088 # On Solaris (at least, for some versions), libc contains stubbed
7089 # (non-functional) versions of the pthreads routines, so link-based
7090 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7091 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7092 # a function called by this macro, so we could check for that, but
7093 # who knows whether they'll stub that too in a future libc.) So,
7094 # we'll just look for -pthreads and -lpthread first:
7095
7096 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7097 ;;
cristy3ed852e2009-09-05 21:47:34 +00007098esac
7099
7100if test x"$acx_pthread_ok" = xno; then
7101for flag in $acx_pthread_flags; do
7102
7103 case $flag in
7104 none)
cristy8b350f62009-11-15 23:12:43 +00007105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00007106$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7107 ;;
7108
7109 -*)
cristy8b350f62009-11-15 23:12:43 +00007110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007111$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7112 PTHREAD_CFLAGS="$flag"
7113 ;;
7114
7115 pthread-config)
7116 # Extract the first word of "pthread-config", so it can be a program name with args.
7117set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007119$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007120if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007121 $as_echo_n "(cached) " >&6
7122else
7123 if test -n "$acx_pthread_config"; then
7124 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00007134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135 break 2
7136 fi
7137done
cristy8b350f62009-11-15 23:12:43 +00007138 done
cristy3ed852e2009-09-05 21:47:34 +00007139IFS=$as_save_IFS
7140
7141 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7142fi
7143fi
7144acx_pthread_config=$ac_cv_prog_acx_pthread_config
7145if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00007146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00007147$as_echo "$acx_pthread_config" >&6; }
7148else
cristy8b350f62009-11-15 23:12:43 +00007149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "no" >&6; }
7151fi
7152
7153
7154 if test x"$acx_pthread_config" = xno; then continue; fi
7155 PTHREAD_CFLAGS="`pthread-config --cflags`"
7156 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7157 ;;
7158
7159 *)
cristy8b350f62009-11-15 23:12:43 +00007160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00007161$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7162 PTHREAD_LIBS="-l$flag"
7163 ;;
7164 esac
7165
7166 save_LIBS="$LIBS"
7167 save_CFLAGS="$CFLAGS"
7168 LIBS="$PTHREAD_LIBS $LIBS"
7169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7170
7171 # Check for various functions. We must include pthread.h,
7172 # since some functions may be macros. (On the Sequent, we
7173 # need a special flag -Kthread to make this header compile.)
7174 # We check for pthread_join because it is in -lpthread on IRIX
7175 # while pthread_create is in libc. We check for pthread_attr_init
7176 # due to DEC craziness with -lpthreads. We check for
7177 # pthread_cleanup_push because it is one of the few pthread
7178 # functions on Solaris that doesn't have a non-functional libc stub.
7179 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00007180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007181/* end confdefs.h. */
7182#include <pthread.h>
7183int
7184main ()
7185{
7186pthread_t th; pthread_join(th, 0);
7187 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7188 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7189 ;
7190 return 0;
7191}
7192_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007193if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007194 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00007195fi
cristy8b350f62009-11-15 23:12:43 +00007196rm -f core conftest.err conftest.$ac_objext \
7197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007198
7199 LIBS="$save_LIBS"
7200 CFLAGS="$save_CFLAGS"
7201
cristy8b350f62009-11-15 23:12:43 +00007202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00007203$as_echo "$acx_pthread_ok" >&6; }
7204 if test "x$acx_pthread_ok" = xyes; then
7205 break;
7206 fi
7207
7208 PTHREAD_LIBS=""
7209 PTHREAD_CFLAGS=""
7210done
7211fi
7212
7213# Various other checks:
7214if test "x$acx_pthread_ok" = xyes; then
7215 save_LIBS="$LIBS"
7216 LIBS="$PTHREAD_LIBS $LIBS"
7217 save_CFLAGS="$CFLAGS"
7218 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7219
7220 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00007221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo_n "checking for joinable pthread attribute... " >&6; }
7223 attr_name=unknown
7224 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00007225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007226/* end confdefs.h. */
7227#include <pthread.h>
7228int
7229main ()
7230{
7231int attr=$attr; return attr;
7232 ;
7233 return 0;
7234}
7235_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007236if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007237 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00007238fi
cristy8b350f62009-11-15 23:12:43 +00007239rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007241 done
cristy8b350f62009-11-15 23:12:43 +00007242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00007243$as_echo "$attr_name" >&6; }
7244 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7245
7246cat >>confdefs.h <<_ACEOF
7247#define PTHREAD_CREATE_JOINABLE $attr_name
7248_ACEOF
7249
7250 fi
7251
cristy8b350f62009-11-15 23:12:43 +00007252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00007253$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7254 flag=no
7255 case "${host_cpu}-${host_os}" in
7256 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7257 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7258 esac
cristy8b350f62009-11-15 23:12:43 +00007259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo "${flag}" >&6; }
7261 if test "x$flag" != xno; then
7262 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7263 fi
7264
7265 LIBS="$save_LIBS"
7266 CFLAGS="$save_CFLAGS"
7267
7268 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007269 if test x"$GCC" != xyes; then
7270 for ac_prog in xlc_r cc_r
7271do
7272 # Extract the first word of "$ac_prog", so it can be a program name with args.
7273set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007275$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007276if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007277 $as_echo_n "(cached) " >&6
7278else
7279 if test -n "$PTHREAD_CC"; then
7280 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7281else
7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007288 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 +00007289 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00007290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007291 break 2
7292 fi
7293done
cristy8b350f62009-11-15 23:12:43 +00007294 done
cristy3ed852e2009-09-05 21:47:34 +00007295IFS=$as_save_IFS
7296
cristy3ed852e2009-09-05 21:47:34 +00007297fi
7298fi
7299PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7300if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007302$as_echo "$PTHREAD_CC" >&6; }
7303else
cristy8b350f62009-11-15 23:12:43 +00007304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007305$as_echo "no" >&6; }
7306fi
7307
cristy736173a2009-09-20 21:18:22 +00007308
7309 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007310done
cristy736173a2009-09-20 21:18:22 +00007311test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007312
cristy736173a2009-09-20 21:18:22 +00007313 else
7314 PTHREAD_CC=$CC
7315 fi
cristy3ed852e2009-09-05 21:47:34 +00007316else
cristy736173a2009-09-20 21:18:22 +00007317 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007318fi
7319
cristy3ed852e2009-09-05 21:47:34 +00007320
7321
7322
7323
7324# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7325if test x"$acx_pthread_ok" = xyes; then
7326
cristy8b350f62009-11-15 23:12:43 +00007327$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007328
7329 :
7330else
7331 acx_pthread_ok=no
7332
7333fi
7334ac_ext=c
7335ac_cpp='$CPP $CPPFLAGS'
7336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340
7341 if test "$acx_pthread_ok" = yes; then
7342 have_threads=yes
7343 DEF_THREAD="$PTHREAD_CFLAGS"
7344 CFLAGS="$CFLAGS $DEF_THREAD"
7345 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7346 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00007347 { $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 +00007348$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7349 CC="$PTHREAD_CC"
7350 fi
7351 fi
7352fi
7353
7354# Enable support for OpenMP
7355if test "$have_threads" != 'yes'; then
7356 ac_cv_prog_c_openmp=unsupported
7357fi
7358
7359 OPENMP_CFLAGS=
7360 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00007361if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007362 enableval=$enable_openmp;
7363fi
7364
7365 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00007366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007367$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007368if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007369 $as_echo_n "(cached) " >&6
7370else
cristy8b350f62009-11-15 23:12:43 +00007371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007373
7374#ifndef _OPENMP
7375 choke me
7376#endif
7377#include <omp.h>
7378int main () { return omp_get_num_threads (); }
7379
7380_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007382 ac_cv_prog_c_openmp='none needed'
7383else
cristy8b350f62009-11-15 23:12:43 +00007384 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00007385 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7386 ac_save_CFLAGS=$CFLAGS
7387 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00007388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007390
7391#ifndef _OPENMP
7392 choke me
7393#endif
7394#include <omp.h>
7395int main () { return omp_get_num_threads (); }
7396
7397_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007399 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00007400fi
cristy8b350f62009-11-15 23:12:43 +00007401rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007403 CFLAGS=$ac_save_CFLAGS
7404 if test "$ac_cv_prog_c_openmp" != unsupported; then
7405 break
7406 fi
7407 done
7408fi
cristy8b350f62009-11-15 23:12:43 +00007409rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007411fi
cristy8b350f62009-11-15 23:12:43 +00007412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00007413$as_echo "$ac_cv_prog_c_openmp" >&6; }
7414 case $ac_cv_prog_c_openmp in #(
7415 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00007416 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00007417 *)
cristy8b350f62009-11-15 23:12:43 +00007418 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00007419 esac
7420 fi
7421
7422
7423CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7424MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7425
7426
cristy736173a2009-09-20 21:18:22 +00007427# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007428
cristy43596fe2010-01-21 16:46:08 +00007429# Check whether --enable-opencl was given.
7430if test "${enable_opencl+set}" = set; then :
7431 enableval=$enable_opencl; disable_opencl=$enableval
7432else
7433 disable_opencl='yes'
7434fi
7435
7436
7437if test "$disable_opencl" = 'yes'; then
7438 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00007439ac_cpp='$CPP $CPPFLAGS'
7440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443
cristy43596fe2010-01-21 16:46:08 +00007444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00007445$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007446if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007447 $as_echo_n "(cached) " >&6
7448else
cristy8b350f62009-11-15 23:12:43 +00007449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007450/* end confdefs.h. */
7451
7452int
7453main ()
7454{
7455#ifndef _MSC_VER
7456 choke me
7457#endif
7458
7459 ;
7460 return 0;
7461}
7462_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007463if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007464 ax_compiler_ms=yes
7465else
cristy8b350f62009-11-15 23:12:43 +00007466 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00007467fi
cristy736173a2009-09-20 21:18:22 +00007468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469ax_cv_c_compiler_ms=$ax_compiler_ms
7470
7471fi
cristy8b350f62009-11-15 23:12:43 +00007472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00007473$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00007474 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007475 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7476fi
7477
cristy43596fe2010-01-21 16:46:08 +00007478 ax_save_CPPFLAGS=$CPPFLAGS
7479 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7480 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00007481do :
7482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7483ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7484eval as_val=\$$as_ac_Header
7485 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007486 cat >>confdefs.h <<_ACEOF
7487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7488_ACEOF
7489
7490fi
7491
7492done
7493
cristy43596fe2010-01-21 16:46:08 +00007494 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00007495
cristy43596fe2010-01-21 16:46:08 +00007496 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00007497do :
7498 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7499if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00007500 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007501#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00007502_ACEOF
7503
7504fi
7505
7506done
7507
7508
7509
7510
cristy43596fe2010-01-21 16:46:08 +00007511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00007512$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007513if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00007514 $as_echo_n "(cached) " >&6
7515else
7516 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00007517 case $host_cpu in
7518 x86_64) ax_check_cl_libdir=lib64 ;;
7519 *) ax_check_cl_libdir=lib ;;
7520 esac
7521 ax_save_CPPFLAGS=$CPPFLAGS
7522 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7523 ax_save_LIBS=$LIBS
7524 LIBS=""
7525 ax_check_libs="-lOpenCL -lCL -lclparser"
7526 for ax_lib in $ax_check_libs; do
7527 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007528 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7529else
7530 ax_try_lib=$ax_lib
7531fi
cristy43596fe2010-01-21 16:46:08 +00007532 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007534/* end confdefs.h. */
7535
cristy43596fe2010-01-21 16:46:08 +00007536 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7537 # include <windows.h>
7538 # endif
7539 # ifdef HAVE_CL_CL_H
7540 # include <CL/cl.h>
7541 # elif defined(HAVE_OPENCL_CL_H)
7542 # include <OpenCL/cl.h>
7543 # else
7544 # error no CL.h
7545 # endif
cristy736173a2009-09-20 21:18:22 +00007546int
7547main ()
7548{
cristyc7083c12009-10-14 03:16:55 +00007549clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007550 ;
7551 return 0;
7552}
7553_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007554if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007555 ax_cv_check_cl_libcl=$ax_try_lib; break
7556else
cristy8b350f62009-11-15 23:12:43 +00007557 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00007558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007559/* end confdefs.h. */
7560
cristy43596fe2010-01-21 16:46:08 +00007561 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7562 # include <windows.h>
7563 # endif
7564 # ifdef HAVE_CL_CL_H
7565 # include <CL/cl.h>
7566 # elif defined(HAVE_OPENCL_CL_H)
7567 # include <OpenCL/cl.h>
7568 # else
7569 # error no CL.h
7570 # endif
cristy736173a2009-09-20 21:18:22 +00007571int
7572main ()
7573{
cristyc7083c12009-10-14 03:16:55 +00007574clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007575 ;
7576 return 0;
7577}
7578_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007579if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007580 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7581else
cristy4dc44432009-12-30 23:30:06 +00007582 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
cristy43596fe2010-01-21 16:46:08 +00007583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007584/* end confdefs.h. */
7585
cristy43596fe2010-01-21 16:46:08 +00007586 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7587 # include <windows.h>
7588 # endif
7589 # ifdef HAVE_CL_CL_H
7590 # include <CL/cl.h>
7591 # elif defined(HAVE_OPENCL_CL_H)
7592 # include <OpenCL/cl.h>
7593 # else
7594 # error no CL.h
7595 # endif
cristy736173a2009-09-20 21:18:22 +00007596int
7597main ()
7598{
cristyc7083c12009-10-14 03:16:55 +00007599clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007600 ;
7601 return 0;
7602}
7603_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007604if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007605 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00007606fi
cristy8b350f62009-11-15 23:12:43 +00007607rm -f core conftest.err conftest.$ac_objext \
7608 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007609fi
cristy8b350f62009-11-15 23:12:43 +00007610rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007612fi
cristy8b350f62009-11-15 23:12:43 +00007613rm -f core conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00007615 done
cristy736173a2009-09-20 21:18:22 +00007616
cristy43596fe2010-01-21 16:46:08 +00007617 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00007618 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00007619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007620/* end confdefs.h. */
7621
cristy43596fe2010-01-21 16:46:08 +00007622 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7623 # include <windows.h>
7624 # endif
7625 # ifdef HAVE_CL_CL_H
7626 # include <CL/cl.h>
7627 # elif defined(HAVE_OPENCL_CL_H)
7628 # include <OpenCL/cl.h>
7629 # else
7630 # error no CL.h
7631 # endif
cristy736173a2009-09-20 21:18:22 +00007632int
7633main ()
7634{
cristyc7083c12009-10-14 03:16:55 +00007635clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00007636 ;
7637 return 0;
7638}
7639_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007640if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00007641 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00007642fi
cristy8b350f62009-11-15 23:12:43 +00007643rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00007645fi
7646
cristy43596fe2010-01-21 16:46:08 +00007647 LIBS=$ax_save_LIBS
7648 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00007649fi
cristy8b350f62009-11-15 23:12:43 +00007650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00007651$as_echo "$ax_cv_check_cl_libcl" >&6; }
7652
cristy43596fe2010-01-21 16:46:08 +00007653 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00007654 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7655else
cristy99cc3002010-01-21 14:50:11 +00007656 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
7657$as_echo "#define _OPENCL 1" >>confdefs.h
7658
cristy736173a2009-09-20 21:18:22 +00007659fi
cristy43596fe2010-01-21 16:46:08 +00007660 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00007661ac_cpp='$CPP $CPPFLAGS'
7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665
cristy43596fe2010-01-21 16:46:08 +00007666fi
cristy736173a2009-09-20 21:18:22 +00007667
7668
7669
7670
cristyc7083c12009-10-14 03:16:55 +00007671CFLAGS="$CL_CFLAGS $CFLAGS"
7672LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00007673
cristy2e8b51d2009-10-17 18:26:15 +00007674
cristy3ed852e2009-09-05 21:47:34 +00007675########
7676#
7677# Check for large file support
7678#
7679########
7680# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00007681if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007682 enableval=$enable_largefile;
7683fi
7684
7685if test "$enable_largefile" != no; then
7686
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007689if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007690 $as_echo_n "(cached) " >&6
7691else
7692 ac_cv_sys_largefile_CC=no
7693 if test "$GCC" != yes; then
7694 ac_save_CC=$CC
7695 while :; do
7696 # IRIX 6.2 and later do not support large files by default,
7697 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00007698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007699/* end confdefs.h. */
7700#include <sys/types.h>
7701 /* Check that off_t can represent 2**63 - 1 correctly.
7702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7703 since some C++ compilers masquerading as C compilers
7704 incorrectly reject 9223372036854775807. */
7705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7707 && LARGE_OFF_T % 2147483647 == 1)
7708 ? 1 : -1];
7709int
7710main ()
7711{
7712
7713 ;
7714 return 0;
7715}
7716_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007717 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007718 break
cristy3ed852e2009-09-05 21:47:34 +00007719fi
cristy3ed852e2009-09-05 21:47:34 +00007720rm -f core conftest.err conftest.$ac_objext
7721 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00007722 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007723 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00007724fi
cristy3ed852e2009-09-05 21:47:34 +00007725rm -f core conftest.err conftest.$ac_objext
7726 break
7727 done
7728 CC=$ac_save_CC
7729 rm -f conftest.$ac_ext
7730 fi
7731fi
cristy8b350f62009-11-15 23:12:43 +00007732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007733$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7734 if test "$ac_cv_sys_largefile_CC" != no; then
7735 CC=$CC$ac_cv_sys_largefile_CC
7736 fi
7737
cristy8b350f62009-11-15 23:12:43 +00007738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007739$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007740if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007741 $as_echo_n "(cached) " >&6
7742else
7743 while :; do
cristy8b350f62009-11-15 23:12:43 +00007744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007745/* end confdefs.h. */
7746#include <sys/types.h>
7747 /* Check that off_t can represent 2**63 - 1 correctly.
7748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7749 since some C++ compilers masquerading as C compilers
7750 incorrectly reject 9223372036854775807. */
7751#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7753 && LARGE_OFF_T % 2147483647 == 1)
7754 ? 1 : -1];
7755int
7756main ()
7757{
7758
7759 ;
7760 return 0;
7761}
7762_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007764 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00007765fi
cristy3ed852e2009-09-05 21:47:34 +00007766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007768/* end confdefs.h. */
7769#define _FILE_OFFSET_BITS 64
7770#include <sys/types.h>
7771 /* Check that off_t can represent 2**63 - 1 correctly.
7772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7773 since some C++ compilers masquerading as C compilers
7774 incorrectly reject 9223372036854775807. */
7775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7777 && LARGE_OFF_T % 2147483647 == 1)
7778 ? 1 : -1];
7779int
7780main ()
7781{
7782
7783 ;
7784 return 0;
7785}
7786_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007787if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007788 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00007789fi
cristy3ed852e2009-09-05 21:47:34 +00007790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 ac_cv_sys_file_offset_bits=unknown
7792 break
7793done
7794fi
cristy8b350f62009-11-15 23:12:43 +00007795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7797case $ac_cv_sys_file_offset_bits in #(
7798 no | unknown) ;;
7799 *)
7800cat >>confdefs.h <<_ACEOF
7801#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7802_ACEOF
7803;;
7804esac
7805rm -rf conftest*
7806 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00007807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007808$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007809if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007810 $as_echo_n "(cached) " >&6
7811else
7812 while :; do
cristy8b350f62009-11-15 23:12:43 +00007813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007814/* end confdefs.h. */
7815#include <sys/types.h>
7816 /* Check that off_t can represent 2**63 - 1 correctly.
7817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7818 since some C++ compilers masquerading as C compilers
7819 incorrectly reject 9223372036854775807. */
7820#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7822 && LARGE_OFF_T % 2147483647 == 1)
7823 ? 1 : -1];
7824int
7825main ()
7826{
7827
7828 ;
7829 return 0;
7830}
7831_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007832if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007833 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00007834fi
cristy3ed852e2009-09-05 21:47:34 +00007835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007837/* end confdefs.h. */
7838#define _LARGE_FILES 1
7839#include <sys/types.h>
7840 /* Check that off_t can represent 2**63 - 1 correctly.
7841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7842 since some C++ compilers masquerading as C compilers
7843 incorrectly reject 9223372036854775807. */
7844#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7846 && LARGE_OFF_T % 2147483647 == 1)
7847 ? 1 : -1];
7848int
7849main ()
7850{
7851
7852 ;
7853 return 0;
7854}
7855_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007856if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007857 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00007858fi
cristy3ed852e2009-09-05 21:47:34 +00007859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 ac_cv_sys_large_files=unknown
7861 break
7862done
7863fi
cristy8b350f62009-11-15 23:12:43 +00007864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007865$as_echo "$ac_cv_sys_large_files" >&6; }
7866case $ac_cv_sys_large_files in #(
7867 no | unknown) ;;
7868 *)
7869cat >>confdefs.h <<_ACEOF
7870#define _LARGE_FILES $ac_cv_sys_large_files
7871_ACEOF
7872;;
7873esac
7874rm -rf conftest*
7875 fi
7876fi
7877
cristy8b350f62009-11-15 23:12:43 +00007878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00007879$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007880if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007881 $as_echo_n "(cached) " >&6
7882else
7883 while :; do
cristy8b350f62009-11-15 23:12:43 +00007884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007885/* end confdefs.h. */
7886#include <sys/types.h> /* for off_t */
7887 #include <stdio.h>
7888int
7889main ()
7890{
7891int (*fp) (FILE *, off_t, int) = fseeko;
7892 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7893 ;
7894 return 0;
7895}
7896_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007898 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00007899fi
cristy8b350f62009-11-15 23:12:43 +00007900rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007903/* end confdefs.h. */
7904#define _LARGEFILE_SOURCE 1
7905#include <sys/types.h> /* for off_t */
7906 #include <stdio.h>
7907int
7908main ()
7909{
7910int (*fp) (FILE *, off_t, int) = fseeko;
7911 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7912 ;
7913 return 0;
7914}
7915_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007916if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007917 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00007918fi
cristy8b350f62009-11-15 23:12:43 +00007919rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007921 ac_cv_sys_largefile_source=unknown
7922 break
7923done
7924fi
cristy8b350f62009-11-15 23:12:43 +00007925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00007926$as_echo "$ac_cv_sys_largefile_source" >&6; }
7927case $ac_cv_sys_largefile_source in #(
7928 no | unknown) ;;
7929 *)
7930cat >>confdefs.h <<_ACEOF
7931#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7932_ACEOF
7933;;
7934esac
7935rm -rf conftest*
7936
7937# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7938# in glibc 2.1.3, but that breaks too many other things.
7939# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7940if test $ac_cv_sys_largefile_source != unknown; then
7941
cristy8b350f62009-11-15 23:12:43 +00007942$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007943
7944fi
7945
7946LFS_CPPFLAGS=''
7947if test "$enable_largefile" != no; then
7948 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
7949 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
7950 else
cristy8b350f62009-11-15 23:12:43 +00007951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00007952$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007953 if test "$cross_compiling" = yes; then :
7954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007956as_fn_error "cannot run test program while cross compiling
7957See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007958else
cristy8b350f62009-11-15 23:12:43 +00007959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00007961#include <unistd.h>
7962 main () {
7963 exit(!(sizeof(off_t) == 8));
7964 }
7965_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007966if ac_fn_c_try_run "$LINENO"; then :
7967 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007968
cristy8b350f62009-11-15 23:12:43 +00007969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007970$as_echo "yes" >&6; }
7971else
cristy8b350f62009-11-15 23:12:43 +00007972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007973$as_echo "no" >&6; }
7974fi
cristy8b350f62009-11-15 23:12:43 +00007975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7976 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007977fi
7978
cristy3ed852e2009-09-05 21:47:34 +00007979 fi
7980 if test "$ac_cv_sys_large_files" != 'no'; then
7981 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
7982 fi
7983 if test "$ac_cv_sys_largefile_source" != 'no'; then
7984 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
7985 fi
7986fi
7987
7988
7989#
7990# Configure libtool & libltdl
7991#
7992# Configure libtool
7993enable_dlopen=yes
7994
7995
7996
7997case `pwd` in
7998 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00007999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008000$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8001esac
8002
8003
8004
cristy18304f92009-11-22 15:48:26 +00008005macro_version='2.2.6b'
8006macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00008007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020ltmain="$ac_aux_dir/ltmain.sh"
8021
cristy8b350f62009-11-15 23:12:43 +00008022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00008023$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008024if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008025 $as_echo_n "(cached) " >&6
8026else
8027 if test -n "$NM"; then
8028 # Let the user override the test.
8029 lt_cv_path_NM="$NM"
8030else
8031 lt_nm_to_check="${ac_tool_prefix}nm"
8032 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8033 lt_nm_to_check="$lt_nm_to_check nm"
8034 fi
8035 for lt_tmp_nm in $lt_nm_to_check; do
8036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8038 IFS="$lt_save_ifs"
8039 test -z "$ac_dir" && ac_dir=.
8040 tmp_nm="$ac_dir/$lt_tmp_nm"
8041 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8042 # Check to see if the nm accepts a BSD-compat flag.
8043 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8044 # nm: unknown option "B" ignored
8045 # Tru64's nm complains that /dev/null is an invalid object file
8046 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8047 */dev/null* | *'Invalid file or object type'*)
8048 lt_cv_path_NM="$tmp_nm -B"
8049 break
8050 ;;
8051 *)
8052 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8053 */dev/null*)
8054 lt_cv_path_NM="$tmp_nm -p"
8055 break
8056 ;;
8057 *)
8058 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8059 continue # so that we can try to find one that supports BSD flags
8060 ;;
8061 esac
8062 ;;
8063 esac
8064 fi
8065 done
8066 IFS="$lt_save_ifs"
8067 done
8068 : ${lt_cv_path_NM=no}
8069fi
8070fi
cristy8b350f62009-11-15 23:12:43 +00008071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00008072$as_echo "$lt_cv_path_NM" >&6; }
8073if test "$lt_cv_path_NM" != "no"; then
8074 NM="$lt_cv_path_NM"
8075else
8076 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00008077 if test -n "$ac_tool_prefix"; then
8078 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008079 do
8080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008083$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008084if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008085 $as_echo_n "(cached) " >&6
8086else
8087 if test -n "$DUMPBIN"; then
8088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8089else
8090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091for as_dir in $PATH
8092do
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008099 break 2
8100 fi
8101done
cristy8b350f62009-11-15 23:12:43 +00008102 done
cristy3ed852e2009-09-05 21:47:34 +00008103IFS=$as_save_IFS
8104
8105fi
8106fi
8107DUMPBIN=$ac_cv_prog_DUMPBIN
8108if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008110$as_echo "$DUMPBIN" >&6; }
8111else
cristy8b350f62009-11-15 23:12:43 +00008112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008113$as_echo "no" >&6; }
8114fi
8115
8116
8117 test -n "$DUMPBIN" && break
8118 done
8119fi
8120if test -z "$DUMPBIN"; then
8121 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00008122 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00008123do
8124 # Extract the first word of "$ac_prog", so it can be a program name with args.
8125set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008127$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008128if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008129 $as_echo_n "(cached) " >&6
8130else
8131 if test -n "$ac_ct_DUMPBIN"; then
8132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8133else
8134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135for as_dir in $PATH
8136do
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008139 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008143 break 2
8144 fi
8145done
cristy8b350f62009-11-15 23:12:43 +00008146 done
cristy3ed852e2009-09-05 21:47:34 +00008147IFS=$as_save_IFS
8148
8149fi
8150fi
8151ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8152if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00008153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00008154$as_echo "$ac_ct_DUMPBIN" >&6; }
8155else
cristy8b350f62009-11-15 23:12:43 +00008156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008157$as_echo "no" >&6; }
8158fi
8159
8160
8161 test -n "$ac_ct_DUMPBIN" && break
8162done
8163
8164 if test "x$ac_ct_DUMPBIN" = x; then
8165 DUMPBIN=":"
8166 else
8167 case $cross_compiling:$ac_tool_warned in
8168yes:)
cristy8b350f62009-11-15 23:12:43 +00008169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171ac_tool_warned=yes ;;
8172esac
8173 DUMPBIN=$ac_ct_DUMPBIN
8174 fi
8175fi
8176
8177
8178 if test "$DUMPBIN" != ":"; then
8179 NM="$DUMPBIN"
8180 fi
8181fi
8182test -z "$NM" && NM=nm
8183
8184
8185
8186
8187
8188
cristy8b350f62009-11-15 23:12:43 +00008189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008190$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008191if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008192 $as_echo_n "(cached) " >&6
8193else
8194 lt_cv_nm_interface="BSD nm"
8195 echo "int some_variable = 0;" > conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008196 (eval echo "\"\$as_me:8196: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008197 (eval "$ac_compile" 2>conftest.err)
8198 cat conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +00008199 (eval echo "\"\$as_me:8199: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008200 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8201 cat conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +00008202 (eval echo "\"\$as_me:8202: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00008203 cat conftest.out >&5
8204 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8205 lt_cv_nm_interface="MS dumpbin"
8206 fi
8207 rm -f conftest*
8208fi
cristy8b350f62009-11-15 23:12:43 +00008209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00008210$as_echo "$lt_cv_nm_interface" >&6; }
8211
8212# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00008213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00008214$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008215if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008216 $as_echo_n "(cached) " >&6
8217else
8218 i=0
8219 teststring="ABCD"
8220
8221 case $build_os in
8222 msdosdjgpp*)
8223 # On DJGPP, this test can blow up pretty badly due to problems in libc
8224 # (any single argument exceeding 2000 bytes causes a buffer overrun
8225 # during glob expansion). Even if it were fixed, the result of this
8226 # check would be larger than it should be.
8227 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8228 ;;
8229
8230 gnu*)
8231 # Under GNU Hurd, this test is not required because there is
8232 # no limit to the length of command line arguments.
8233 # Libtool will interpret -1 as no limit whatsoever
8234 lt_cv_sys_max_cmd_len=-1;
8235 ;;
8236
8237 cygwin* | mingw* | cegcc*)
8238 # On Win9x/ME, this test blows up -- it succeeds, but takes
8239 # about 5 minutes as the teststring grows exponentially.
8240 # Worse, since 9x/ME are not pre-emptively multitasking,
8241 # you end up with a "frozen" computer, even though with patience
8242 # the test eventually succeeds (with a max line length of 256k).
8243 # Instead, let's just punt: use the minimum linelength reported by
8244 # all of the supported platforms: 8192 (on NT/2K/XP).
8245 lt_cv_sys_max_cmd_len=8192;
8246 ;;
8247
8248 amigaos*)
8249 # On AmigaOS with pdksh, this test takes hours, literally.
8250 # So we just punt and use a minimum line length of 8192.
8251 lt_cv_sys_max_cmd_len=8192;
8252 ;;
8253
8254 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8255 # This has been around since 386BSD, at least. Likely further.
8256 if test -x /sbin/sysctl; then
8257 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8258 elif test -x /usr/sbin/sysctl; then
8259 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8260 else
8261 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8262 fi
8263 # And add a safety zone
8264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8266 ;;
8267
8268 interix*)
8269 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8270 lt_cv_sys_max_cmd_len=196608
8271 ;;
8272
8273 osf*)
8274 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8275 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8276 # nice to cause kernel panics so lets avoid the loop below.
8277 # First set a reasonable default.
8278 lt_cv_sys_max_cmd_len=16384
8279 #
8280 if test -x /sbin/sysconfig; then
8281 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8282 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8283 esac
8284 fi
8285 ;;
8286 sco3.2v5*)
8287 lt_cv_sys_max_cmd_len=102400
8288 ;;
8289 sysv5* | sco5v6* | sysv4.2uw2*)
8290 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8291 if test -n "$kargmax"; then
8292 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8293 else
8294 lt_cv_sys_max_cmd_len=32768
8295 fi
8296 ;;
8297 *)
8298 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8299 if test -n "$lt_cv_sys_max_cmd_len"; then
8300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8302 else
8303 # Make teststring a little bigger before we do anything with it.
8304 # a 1K string should be a reasonable start.
8305 for i in 1 2 3 4 5 6 7 8 ; do
8306 teststring=$teststring$teststring
8307 done
8308 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8309 # If test is not a shell built-in, we'll probably end up computing a
8310 # maximum length that is only half of the actual maximum length, but
8311 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00008312 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8313 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00008314 test $i != 17 # 1/2 MB should be enough
8315 do
8316 i=`expr $i + 1`
8317 teststring=$teststring$teststring
8318 done
8319 # Only check the string length outside the loop.
8320 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8321 teststring=
8322 # Add a significant safety factor because C++ compilers can tack on
8323 # massive amounts of additional arguments before passing them to the
8324 # linker. It appears as though 1/2 is a usable value.
8325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8326 fi
8327 ;;
8328 esac
8329
8330fi
8331
8332if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00008333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00008334$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8335else
cristy8b350f62009-11-15 23:12:43 +00008336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00008337$as_echo "none" >&6; }
8338fi
8339max_cmd_len=$lt_cv_sys_max_cmd_len
8340
8341
8342
8343
8344
8345
8346: ${CP="cp -f"}
8347: ${MV="mv -f"}
8348: ${RM="rm -f"}
8349
cristy8b350f62009-11-15 23:12:43 +00008350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00008351$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8352# Try some XSI features
8353xsi_shell=no
8354( _lt_dummy="a/b/c"
8355 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8356 = c,a/b,, \
8357 && eval 'test $(( 1 + 1 )) -eq 2 \
8358 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8359 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00008360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00008361$as_echo "$xsi_shell" >&6; }
8362
8363
cristy8b350f62009-11-15 23:12:43 +00008364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00008365$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8366lt_shell_append=no
8367( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8368 >/dev/null 2>&1 \
8369 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00008370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00008371$as_echo "$lt_shell_append" >&6; }
8372
8373
8374if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8375 lt_unset=unset
8376else
8377 lt_unset=false
8378fi
8379
8380
8381
8382
8383
8384# test EBCDIC or ASCII
8385case `echo X|tr X '\101'` in
8386 A) # ASCII based system
8387 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8388 lt_SP2NL='tr \040 \012'
8389 lt_NL2SP='tr \015\012 \040\040'
8390 ;;
8391 *) # EBCDIC based system
8392 lt_SP2NL='tr \100 \n'
8393 lt_NL2SP='tr \r\n \100\100'
8394 ;;
8395esac
8396
8397
8398
8399
8400
8401
8402
8403
8404
cristy8b350f62009-11-15 23:12:43 +00008405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008406$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008407if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008408 $as_echo_n "(cached) " >&6
8409else
8410 lt_cv_ld_reload_flag='-r'
8411fi
cristy8b350f62009-11-15 23:12:43 +00008412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008413$as_echo "$lt_cv_ld_reload_flag" >&6; }
8414reload_flag=$lt_cv_ld_reload_flag
8415case $reload_flag in
8416"" | " "*) ;;
8417*) reload_flag=" $reload_flag" ;;
8418esac
8419reload_cmds='$LD$reload_flag -o $output$reload_objs'
8420case $host_os in
8421 darwin*)
8422 if test "$GCC" = yes; then
8423 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8424 else
8425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8426 fi
8427 ;;
8428esac
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438if test -n "$ac_tool_prefix"; then
8439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8440set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008442$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008443if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008444 $as_echo_n "(cached) " >&6
8445else
8446 if test -n "$OBJDUMP"; then
8447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8448else
8449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00008457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008458 break 2
8459 fi
8460done
cristy8b350f62009-11-15 23:12:43 +00008461 done
cristy3ed852e2009-09-05 21:47:34 +00008462IFS=$as_save_IFS
8463
8464fi
8465fi
8466OBJDUMP=$ac_cv_prog_OBJDUMP
8467if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008469$as_echo "$OBJDUMP" >&6; }
8470else
cristy8b350f62009-11-15 23:12:43 +00008471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008472$as_echo "no" >&6; }
8473fi
8474
8475
8476fi
8477if test -z "$ac_cv_prog_OBJDUMP"; then
8478 ac_ct_OBJDUMP=$OBJDUMP
8479 # Extract the first word of "objdump", so it can be a program name with args.
8480set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008482$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008483if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008484 $as_echo_n "(cached) " >&6
8485else
8486 if test -n "$ac_ct_OBJDUMP"; then
8487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8488else
8489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490for as_dir in $PATH
8491do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008494 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00008497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008498 break 2
8499 fi
8500done
cristy8b350f62009-11-15 23:12:43 +00008501 done
cristy3ed852e2009-09-05 21:47:34 +00008502IFS=$as_save_IFS
8503
8504fi
8505fi
8506ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8507if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00008508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008509$as_echo "$ac_ct_OBJDUMP" >&6; }
8510else
cristy8b350f62009-11-15 23:12:43 +00008511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008512$as_echo "no" >&6; }
8513fi
8514
8515 if test "x$ac_ct_OBJDUMP" = x; then
8516 OBJDUMP="false"
8517 else
8518 case $cross_compiling:$ac_tool_warned in
8519yes:)
cristy8b350f62009-11-15 23:12:43 +00008520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8522ac_tool_warned=yes ;;
8523esac
8524 OBJDUMP=$ac_ct_OBJDUMP
8525 fi
8526else
8527 OBJDUMP="$ac_cv_prog_OBJDUMP"
8528fi
8529
8530test -z "$OBJDUMP" && OBJDUMP=objdump
8531
8532
8533
8534
8535
8536
cristy8b350f62009-11-15 23:12:43 +00008537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00008538$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008539if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008540 $as_echo_n "(cached) " >&6
8541else
8542 lt_cv_file_magic_cmd='$MAGIC_CMD'
8543lt_cv_file_magic_test_file=
8544lt_cv_deplibs_check_method='unknown'
8545# Need to set the preceding variable on all platforms that support
8546# interlibrary dependencies.
8547# 'none' -- dependencies not supported.
8548# `unknown' -- same as none, but documents that we really don't know.
8549# 'pass_all' -- all dependencies passed with no checks.
8550# 'test_compile' -- check by making test program.
8551# 'file_magic [[regex]]' -- check by looking for files in library path
8552# which responds to the $file_magic_cmd with a given extended regex.
8553# If you have `file' or equivalent on your system and you're not sure
8554# whether `pass_all' will *always* work, you probably want this one.
8555
8556case $host_os in
8557aix[4-9]*)
8558 lt_cv_deplibs_check_method=pass_all
8559 ;;
8560
8561beos*)
8562 lt_cv_deplibs_check_method=pass_all
8563 ;;
8564
8565bsdi[45]*)
8566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8567 lt_cv_file_magic_cmd='/usr/bin/file -L'
8568 lt_cv_file_magic_test_file=/shlib/libc.so
8569 ;;
8570
8571cygwin*)
8572 # func_win32_libid is a shell function defined in ltmain.sh
8573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8574 lt_cv_file_magic_cmd='func_win32_libid'
8575 ;;
8576
8577mingw* | pw32*)
8578 # Base MSYS/MinGW do not provide the 'file' command needed by
8579 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8580 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00008581 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00008582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8583 lt_cv_file_magic_cmd='func_win32_libid'
8584 else
8585 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8586 lt_cv_file_magic_cmd='$OBJDUMP -f'
8587 fi
8588 ;;
8589
cristy18304f92009-11-22 15:48:26 +00008590cegcc)
cristy3ed852e2009-09-05 21:47:34 +00008591 # use the weaker test based on 'objdump'. See mingw*.
8592 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8593 lt_cv_file_magic_cmd='$OBJDUMP -f'
8594 ;;
8595
8596darwin* | rhapsody*)
8597 lt_cv_deplibs_check_method=pass_all
8598 ;;
8599
8600freebsd* | dragonfly*)
8601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8602 case $host_cpu in
8603 i*86 )
8604 # Not sure whether the presence of OpenBSD here was a mistake.
8605 # Let's accept both of them until this is cleared up.
8606 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8607 lt_cv_file_magic_cmd=/usr/bin/file
8608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8609 ;;
8610 esac
8611 else
8612 lt_cv_deplibs_check_method=pass_all
8613 fi
8614 ;;
8615
8616gnu*)
8617 lt_cv_deplibs_check_method=pass_all
8618 ;;
8619
8620hpux10.20* | hpux11*)
8621 lt_cv_file_magic_cmd=/usr/bin/file
8622 case $host_cpu in
8623 ia64*)
8624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8626 ;;
8627 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00008628 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 +00008629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8630 ;;
8631 *)
cristy18304f92009-11-22 15:48:26 +00008632 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 +00008633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8634 ;;
8635 esac
8636 ;;
8637
8638interix[3-9]*)
8639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8641 ;;
8642
8643irix5* | irix6* | nonstopux*)
8644 case $LD in
8645 *-32|*"-32 ") libmagic=32-bit;;
8646 *-n32|*"-n32 ") libmagic=N32;;
8647 *-64|*"-64 ") libmagic=64-bit;;
8648 *) libmagic=never-match;;
8649 esac
8650 lt_cv_deplibs_check_method=pass_all
8651 ;;
8652
8653# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00008654linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00008655 lt_cv_deplibs_check_method=pass_all
8656 ;;
8657
8658netbsd*)
8659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8661 else
8662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8663 fi
8664 ;;
8665
8666newos6*)
8667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8668 lt_cv_file_magic_cmd=/usr/bin/file
8669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8670 ;;
8671
8672*nto* | *qnx*)
8673 lt_cv_deplibs_check_method=pass_all
8674 ;;
8675
8676openbsd*)
8677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8679 else
8680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8681 fi
8682 ;;
8683
8684osf3* | osf4* | osf5*)
8685 lt_cv_deplibs_check_method=pass_all
8686 ;;
8687
8688rdos*)
8689 lt_cv_deplibs_check_method=pass_all
8690 ;;
8691
8692solaris*)
8693 lt_cv_deplibs_check_method=pass_all
8694 ;;
8695
8696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8697 lt_cv_deplibs_check_method=pass_all
8698 ;;
8699
8700sysv4 | sysv4.3*)
8701 case $host_vendor in
8702 motorola)
8703 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]'
8704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8705 ;;
8706 ncr)
8707 lt_cv_deplibs_check_method=pass_all
8708 ;;
8709 sequent)
8710 lt_cv_file_magic_cmd='/bin/file'
8711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8712 ;;
8713 sni)
8714 lt_cv_file_magic_cmd='/bin/file'
8715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8716 lt_cv_file_magic_test_file=/lib/libc.so
8717 ;;
8718 siemens)
8719 lt_cv_deplibs_check_method=pass_all
8720 ;;
8721 pc)
8722 lt_cv_deplibs_check_method=pass_all
8723 ;;
8724 esac
8725 ;;
8726
8727tpf*)
8728 lt_cv_deplibs_check_method=pass_all
8729 ;;
8730esac
8731
8732fi
cristy8b350f62009-11-15 23:12:43 +00008733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00008734$as_echo "$lt_cv_deplibs_check_method" >&6; }
8735file_magic_cmd=$lt_cv_file_magic_cmd
8736deplibs_check_method=$lt_cv_deplibs_check_method
8737test -z "$deplibs_check_method" && deplibs_check_method=unknown
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750if test -n "$ac_tool_prefix"; then
8751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8752set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008754$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008755if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008756 $as_echo_n "(cached) " >&6
8757else
8758 if test -n "$AR"; then
8759 ac_cv_prog_AR="$AR" # Let the user override the test.
8760else
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00008769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008770 break 2
8771 fi
8772done
cristy8b350f62009-11-15 23:12:43 +00008773 done
cristy3ed852e2009-09-05 21:47:34 +00008774IFS=$as_save_IFS
8775
8776fi
8777fi
8778AR=$ac_cv_prog_AR
8779if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00008780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008781$as_echo "$AR" >&6; }
8782else
cristy8b350f62009-11-15 23:12:43 +00008783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008784$as_echo "no" >&6; }
8785fi
8786
8787
8788fi
8789if test -z "$ac_cv_prog_AR"; then
8790 ac_ct_AR=$AR
8791 # Extract the first word of "ar", so it can be a program name with args.
8792set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008794$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008796 $as_echo_n "(cached) " >&6
8797else
8798 if test -n "$ac_ct_AR"; then
8799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8800else
8801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802for as_dir in $PATH
8803do
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008806 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00008809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008810 break 2
8811 fi
8812done
cristy8b350f62009-11-15 23:12:43 +00008813 done
cristy3ed852e2009-09-05 21:47:34 +00008814IFS=$as_save_IFS
8815
8816fi
8817fi
8818ac_ct_AR=$ac_cv_prog_ac_ct_AR
8819if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00008820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00008821$as_echo "$ac_ct_AR" >&6; }
8822else
cristy8b350f62009-11-15 23:12:43 +00008823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008824$as_echo "no" >&6; }
8825fi
8826
8827 if test "x$ac_ct_AR" = x; then
8828 AR="false"
8829 else
8830 case $cross_compiling:$ac_tool_warned in
8831yes:)
cristy8b350f62009-11-15 23:12:43 +00008832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8834ac_tool_warned=yes ;;
8835esac
8836 AR=$ac_ct_AR
8837 fi
8838else
8839 AR="$ac_cv_prog_AR"
8840fi
8841
8842test -z "$AR" && AR=ar
8843test -z "$AR_FLAGS" && AR_FLAGS=cru
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855if test -n "$ac_tool_prefix"; then
8856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8857set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008859$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008860if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008861 $as_echo_n "(cached) " >&6
8862else
8863 if test -n "$STRIP"; then
8864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8865else
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008871 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00008874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008875 break 2
8876 fi
8877done
cristy8b350f62009-11-15 23:12:43 +00008878 done
cristy3ed852e2009-09-05 21:47:34 +00008879IFS=$as_save_IFS
8880
8881fi
8882fi
8883STRIP=$ac_cv_prog_STRIP
8884if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008886$as_echo "$STRIP" >&6; }
8887else
cristy8b350f62009-11-15 23:12:43 +00008888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008889$as_echo "no" >&6; }
8890fi
8891
8892
8893fi
8894if test -z "$ac_cv_prog_STRIP"; then
8895 ac_ct_STRIP=$STRIP
8896 # Extract the first word of "strip", so it can be a program name with args.
8897set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008899$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008901 $as_echo_n "(cached) " >&6
8902else
8903 if test -n "$ac_ct_STRIP"; then
8904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8905else
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00008914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008915 break 2
8916 fi
8917done
cristy8b350f62009-11-15 23:12:43 +00008918 done
cristy3ed852e2009-09-05 21:47:34 +00008919IFS=$as_save_IFS
8920
8921fi
8922fi
8923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8924if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00008925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008926$as_echo "$ac_ct_STRIP" >&6; }
8927else
cristy8b350f62009-11-15 23:12:43 +00008928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008929$as_echo "no" >&6; }
8930fi
8931
8932 if test "x$ac_ct_STRIP" = x; then
8933 STRIP=":"
8934 else
8935 case $cross_compiling:$ac_tool_warned in
8936yes:)
cristy8b350f62009-11-15 23:12:43 +00008937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00008938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8939ac_tool_warned=yes ;;
8940esac
8941 STRIP=$ac_ct_STRIP
8942 fi
8943else
8944 STRIP="$ac_cv_prog_STRIP"
8945fi
8946
8947test -z "$STRIP" && STRIP=:
8948
8949
8950
8951
8952
8953
8954if test -n "$ac_tool_prefix"; then
8955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008959if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008960 $as_echo_n "(cached) " >&6
8961else
8962 if test -n "$RANLIB"; then
8963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8964else
8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966for as_dir in $PATH
8967do
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00008973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008974 break 2
8975 fi
8976done
cristy8b350f62009-11-15 23:12:43 +00008977 done
cristy3ed852e2009-09-05 21:47:34 +00008978IFS=$as_save_IFS
8979
8980fi
8981fi
8982RANLIB=$ac_cv_prog_RANLIB
8983if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00008984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00008985$as_echo "$RANLIB" >&6; }
8986else
cristy8b350f62009-11-15 23:12:43 +00008987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008988$as_echo "no" >&6; }
8989fi
8990
8991
8992fi
8993if test -z "$ac_cv_prog_RANLIB"; then
8994 ac_ct_RANLIB=$RANLIB
8995 # Extract the first word of "ranlib", so it can be a program name with args.
8996set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008998$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009000 $as_echo_n "(cached) " >&6
9001else
9002 if test -n "$ac_ct_RANLIB"; then
9003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9004else
9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006for as_dir in $PATH
9007do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +00009013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009014 break 2
9015 fi
9016done
cristy8b350f62009-11-15 23:12:43 +00009017 done
cristy3ed852e2009-09-05 21:47:34 +00009018IFS=$as_save_IFS
9019
9020fi
9021fi
9022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9023if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009025$as_echo "$ac_ct_RANLIB" >&6; }
9026else
cristy8b350f62009-11-15 23:12:43 +00009027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009028$as_echo "no" >&6; }
9029fi
9030
9031 if test "x$ac_ct_RANLIB" = x; then
9032 RANLIB=":"
9033 else
9034 case $cross_compiling:$ac_tool_warned in
9035yes:)
cristy8b350f62009-11-15 23:12:43 +00009036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9038ac_tool_warned=yes ;;
9039esac
9040 RANLIB=$ac_ct_RANLIB
9041 fi
9042else
9043 RANLIB="$ac_cv_prog_RANLIB"
9044fi
9045
9046test -z "$RANLIB" && RANLIB=:
9047
9048
9049
9050
9051
9052
9053# Determine commands to create old-style static archives.
9054old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9055old_postinstall_cmds='chmod 644 $oldlib'
9056old_postuninstall_cmds=
9057
9058if test -n "$RANLIB"; then
9059 case $host_os in
9060 openbsd*)
9061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9062 ;;
9063 *)
9064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9065 ;;
9066 esac
9067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9068fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103# If no C compiler was specified, use CC.
9104LTCC=${LTCC-"$CC"}
9105
9106# If no C compiler flags were specified, use CFLAGS.
9107LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9108
9109# Allow CC to be a program name with arguments.
9110compiler=$CC
9111
9112
9113# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +00009114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +00009115$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009116if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009117 $as_echo_n "(cached) " >&6
9118else
9119
9120# These are sane defaults that work on at least a few old systems.
9121# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9122
9123# Character class describing NM global symbol codes.
9124symcode='[BCDEGRST]'
9125
9126# Regexp to match symbols that can be accessed directly from C.
9127sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9128
9129# Define system-specific variables.
9130case $host_os in
9131aix*)
9132 symcode='[BCDT]'
9133 ;;
9134cygwin* | mingw* | pw32* | cegcc*)
9135 symcode='[ABCDGISTW]'
9136 ;;
9137hpux*)
9138 if test "$host_cpu" = ia64; then
9139 symcode='[ABCDEGRST]'
9140 fi
9141 ;;
9142irix* | nonstopux*)
9143 symcode='[BCDEGRST]'
9144 ;;
9145osf*)
9146 symcode='[BCDEGQRST]'
9147 ;;
9148solaris*)
9149 symcode='[BDRT]'
9150 ;;
9151sco3.2v5*)
9152 symcode='[DT]'
9153 ;;
9154sysv4.2uw2*)
9155 symcode='[DT]'
9156 ;;
9157sysv5* | sco5v6* | unixware* | OpenUNIX*)
9158 symcode='[ABDT]'
9159 ;;
9160sysv4)
9161 symcode='[DFNSTU]'
9162 ;;
9163esac
9164
9165# If we're using GNU nm, then use its standard symbol codes.
9166case `$NM -V 2>&1` in
9167*GNU* | *'with BFD'*)
9168 symcode='[ABCDGIRSTW]' ;;
9169esac
9170
9171# Transform an extracted symbol line into a proper C declaration.
9172# Some systems (esp. on ia64) link data and code symbols differently,
9173# so use this general approach.
9174lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9175
9176# Transform an extracted symbol line into symbol name and symbol address
9177lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9178lt_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'"
9179
9180# Handle CRLF in mingw tool chain
9181opt_cr=
9182case $build_os in
9183mingw*)
9184 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9185 ;;
9186esac
9187
9188# Try without a prefix underscore, then with it.
9189for ac_symprfx in "" "_"; do
9190
9191 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9192 symxfrm="\\1 $ac_symprfx\\2 \\2"
9193
9194 # Write the raw and C identifiers.
9195 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9196 # Fake it for dumpbin and say T for any non-static function
9197 # and D for any global variable.
9198 # Also find C++ and __fastcall symbols from MSVC++,
9199 # which start with @ or ?.
9200 lt_cv_sys_global_symbol_pipe="$AWK '"\
9201" {last_section=section; section=\$ 3};"\
9202" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9203" \$ 0!~/External *\|/{next};"\
9204" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9205" {if(hide[section]) next};"\
9206" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9207" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9208" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9209" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9210" ' prfx=^$ac_symprfx"
9211 else
9212 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9213 fi
9214
9215 # Check to see that the pipe works correctly.
9216 pipe_works=no
9217
9218 rm -f conftest*
9219 cat > conftest.$ac_ext <<_LT_EOF
9220#ifdef __cplusplus
9221extern "C" {
9222#endif
9223char nm_test_var;
9224void nm_test_func(void);
9225void nm_test_func(void){}
9226#ifdef __cplusplus
9227}
9228#endif
9229int main(){nm_test_var='a';nm_test_func();return(0);}
9230_LT_EOF
9231
cristy8b350f62009-11-15 23:12:43 +00009232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009233 (eval $ac_compile) 2>&5
9234 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9236 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009237 # Now try to grab the symbols.
9238 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +00009239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +00009241 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9243 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +00009244 # Try sorting and uniquifying the output.
9245 if sort "$nlist" | uniq > "$nlist"T; then
9246 mv -f "$nlist"T "$nlist"
9247 else
9248 rm -f "$nlist"T
9249 fi
9250
9251 # Make sure that we snagged all the symbols we need.
9252 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9253 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9254 cat <<_LT_EOF > conftest.$ac_ext
9255#ifdef __cplusplus
9256extern "C" {
9257#endif
9258
9259_LT_EOF
9260 # Now generate the symbol file.
9261 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9262
9263 cat <<_LT_EOF >> conftest.$ac_ext
9264
9265/* The mapping between symbol names and symbols. */
9266const struct {
9267 const char *name;
9268 void *address;
9269}
9270lt__PROGRAM__LTX_preloaded_symbols[] =
9271{
9272 { "@PROGRAM@", (void *) 0 },
9273_LT_EOF
9274 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9275 cat <<\_LT_EOF >> conftest.$ac_ext
9276 {0, (void *) 0}
9277};
9278
9279/* This works around a problem in FreeBSD linker */
9280#ifdef FREEBSD_WORKAROUND
9281static const void *lt_preloaded_setup() {
9282 return lt__PROGRAM__LTX_preloaded_symbols;
9283}
9284#endif
9285
9286#ifdef __cplusplus
9287}
9288#endif
9289_LT_EOF
9290 # Now try linking the two files.
9291 mv conftest.$ac_objext conftstm.$ac_objext
9292 lt_save_LIBS="$LIBS"
9293 lt_save_CFLAGS="$CFLAGS"
9294 LIBS="conftstm.$ac_objext"
9295 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +00009296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009297 (eval $ac_link) 2>&5
9298 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9300 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +00009301 pipe_works=yes
9302 fi
9303 LIBS="$lt_save_LIBS"
9304 CFLAGS="$lt_save_CFLAGS"
9305 else
9306 echo "cannot find nm_test_func in $nlist" >&5
9307 fi
9308 else
9309 echo "cannot find nm_test_var in $nlist" >&5
9310 fi
9311 else
9312 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9313 fi
9314 else
9315 echo "$progname: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9317 fi
9318 rm -rf conftest* conftst*
9319
9320 # Do not use the global_symbol_pipe unless it works.
9321 if test "$pipe_works" = yes; then
9322 break
9323 else
9324 lt_cv_sys_global_symbol_pipe=
9325 fi
9326done
9327
9328fi
9329
9330if test -z "$lt_cv_sys_global_symbol_pipe"; then
9331 lt_cv_sys_global_symbol_to_cdecl=
9332fi
9333if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +00009334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +00009335$as_echo "failed" >&6; }
9336else
cristy8b350f62009-11-15 23:12:43 +00009337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00009338$as_echo "ok" >&6; }
9339fi
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +00009363if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009364 enableval=$enable_libtool_lock;
9365fi
9366
9367test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9368
9369# Some flags need to be propagated to the compiler or linker for good
9370# libtool support.
9371case $host in
9372ia64-*-hpux*)
9373 # Find out which ABI we are using.
9374 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009376 (eval $ac_compile) 2>&5
9377 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9379 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009380 case `/usr/bin/file conftest.$ac_objext` in
9381 *ELF-32*)
9382 HPUX_IA64_MODE="32"
9383 ;;
9384 *ELF-64*)
9385 HPUX_IA64_MODE="64"
9386 ;;
9387 esac
9388 fi
9389 rm -rf conftest*
9390 ;;
9391*-*-irix6*)
9392 # Find out which ABI we are using.
cristy43596fe2010-01-21 16:46:08 +00009393 echo '#line 9393 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009395 (eval $ac_compile) 2>&5
9396 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9398 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009399 if test "$lt_cv_prog_gnu_ld" = yes; then
9400 case `/usr/bin/file conftest.$ac_objext` in
9401 *32-bit*)
9402 LD="${LD-ld} -melf32bsmip"
9403 ;;
9404 *N32*)
9405 LD="${LD-ld} -melf32bmipn32"
9406 ;;
9407 *64-bit*)
9408 LD="${LD-ld} -melf64bmip"
9409 ;;
9410 esac
9411 else
9412 case `/usr/bin/file conftest.$ac_objext` in
9413 *32-bit*)
9414 LD="${LD-ld} -32"
9415 ;;
9416 *N32*)
9417 LD="${LD-ld} -n32"
9418 ;;
9419 *64-bit*)
9420 LD="${LD-ld} -64"
9421 ;;
9422 esac
9423 fi
9424 fi
9425 rm -rf conftest*
9426 ;;
9427
9428x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9429s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9430 # Find out which ABI we are using.
9431 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009433 (eval $ac_compile) 2>&5
9434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9436 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009437 case `/usr/bin/file conftest.o` in
9438 *32-bit*)
9439 case $host in
9440 x86_64-*kfreebsd*-gnu)
9441 LD="${LD-ld} -m elf_i386_fbsd"
9442 ;;
9443 x86_64-*linux*)
9444 LD="${LD-ld} -m elf_i386"
9445 ;;
9446 ppc64-*linux*|powerpc64-*linux*)
9447 LD="${LD-ld} -m elf32ppclinux"
9448 ;;
9449 s390x-*linux*)
9450 LD="${LD-ld} -m elf_s390"
9451 ;;
9452 sparc64-*linux*)
9453 LD="${LD-ld} -m elf32_sparc"
9454 ;;
9455 esac
9456 ;;
9457 *64-bit*)
9458 case $host in
9459 x86_64-*kfreebsd*-gnu)
9460 LD="${LD-ld} -m elf_x86_64_fbsd"
9461 ;;
9462 x86_64-*linux*)
9463 LD="${LD-ld} -m elf_x86_64"
9464 ;;
9465 ppc*-*linux*|powerpc*-*linux*)
9466 LD="${LD-ld} -m elf64ppc"
9467 ;;
9468 s390*-*linux*|s390*-*tpf*)
9469 LD="${LD-ld} -m elf64_s390"
9470 ;;
9471 sparc*-*linux*)
9472 LD="${LD-ld} -m elf64_sparc"
9473 ;;
9474 esac
9475 ;;
9476 esac
9477 fi
9478 rm -rf conftest*
9479 ;;
9480
9481*-*-sco3.2v5*)
9482 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9483 SAVE_CFLAGS="$CFLAGS"
9484 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +00009485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009487if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009488 $as_echo_n "(cached) " >&6
9489else
9490 ac_ext=c
9491ac_cpp='$CPP $CPPFLAGS'
9492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9494ac_compiler_gnu=$ac_cv_c_compiler_gnu
9495
cristy8b350f62009-11-15 23:12:43 +00009496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009497/* end confdefs.h. */
9498
9499int
9500main ()
9501{
9502
9503 ;
9504 return 0;
9505}
9506_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009507if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009508 lt_cv_cc_needs_belf=yes
9509else
cristy8b350f62009-11-15 23:12:43 +00009510 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +00009511fi
cristy8b350f62009-11-15 23:12:43 +00009512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009514 ac_ext=c
9515ac_cpp='$CPP $CPPFLAGS'
9516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9518ac_compiler_gnu=$ac_cv_c_compiler_gnu
9519
9520fi
cristy8b350f62009-11-15 23:12:43 +00009521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +00009522$as_echo "$lt_cv_cc_needs_belf" >&6; }
9523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9525 CFLAGS="$SAVE_CFLAGS"
9526 fi
9527 ;;
9528sparc*-*solaris*)
9529 # Find out which ABI we are using.
9530 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +00009532 (eval $ac_compile) 2>&5
9533 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00009534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9535 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +00009536 case `/usr/bin/file conftest.o` in
9537 *64-bit*)
9538 case $lt_cv_prog_gnu_ld in
9539 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9540 *)
9541 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9542 LD="${LD-ld} -64"
9543 fi
9544 ;;
9545 esac
9546 ;;
9547 esac
9548 fi
9549 rm -rf conftest*
9550 ;;
9551esac
9552
9553need_locks="$enable_libtool_lock"
9554
9555
9556 case $host_os in
9557 rhapsody* | darwin*)
9558 if test -n "$ac_tool_prefix"; then
9559 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9560set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009562$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009563if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009564 $as_echo_n "(cached) " >&6
9565else
9566 if test -n "$DSYMUTIL"; then
9567 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9568else
9569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570for as_dir in $PATH
9571do
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009578 break 2
9579 fi
9580done
cristy8b350f62009-11-15 23:12:43 +00009581 done
cristy3ed852e2009-09-05 21:47:34 +00009582IFS=$as_save_IFS
9583
9584fi
9585fi
9586DSYMUTIL=$ac_cv_prog_DSYMUTIL
9587if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009589$as_echo "$DSYMUTIL" >&6; }
9590else
cristy8b350f62009-11-15 23:12:43 +00009591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009592$as_echo "no" >&6; }
9593fi
9594
9595
9596fi
9597if test -z "$ac_cv_prog_DSYMUTIL"; then
9598 ac_ct_DSYMUTIL=$DSYMUTIL
9599 # Extract the first word of "dsymutil", so it can be a program name with args.
9600set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009603if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009604 $as_echo_n "(cached) " >&6
9605else
9606 if test -n "$ac_ct_DSYMUTIL"; then
9607 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9608else
9609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610for as_dir in $PATH
9611do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +00009617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009618 break 2
9619 fi
9620done
cristy8b350f62009-11-15 23:12:43 +00009621 done
cristy3ed852e2009-09-05 21:47:34 +00009622IFS=$as_save_IFS
9623
9624fi
9625fi
9626ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9627if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +00009628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "$ac_ct_DSYMUTIL" >&6; }
9630else
cristy8b350f62009-11-15 23:12:43 +00009631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009632$as_echo "no" >&6; }
9633fi
9634
9635 if test "x$ac_ct_DSYMUTIL" = x; then
9636 DSYMUTIL=":"
9637 else
9638 case $cross_compiling:$ac_tool_warned in
9639yes:)
cristy8b350f62009-11-15 23:12:43 +00009640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9642ac_tool_warned=yes ;;
9643esac
9644 DSYMUTIL=$ac_ct_DSYMUTIL
9645 fi
9646else
9647 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9648fi
9649
9650 if test -n "$ac_tool_prefix"; then
9651 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9652set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009654$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009655if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009656 $as_echo_n "(cached) " >&6
9657else
9658 if test -n "$NMEDIT"; then
9659 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9660else
9661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $PATH
9663do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9668 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +00009669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670 break 2
9671 fi
9672done
cristy8b350f62009-11-15 23:12:43 +00009673 done
cristy3ed852e2009-09-05 21:47:34 +00009674IFS=$as_save_IFS
9675
9676fi
9677fi
9678NMEDIT=$ac_cv_prog_NMEDIT
9679if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009681$as_echo "$NMEDIT" >&6; }
9682else
cristy8b350f62009-11-15 23:12:43 +00009683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "no" >&6; }
9685fi
9686
9687
9688fi
9689if test -z "$ac_cv_prog_NMEDIT"; then
9690 ac_ct_NMEDIT=$NMEDIT
9691 # Extract the first word of "nmedit", so it can be a program name with args.
9692set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009694$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009695if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009696 $as_echo_n "(cached) " >&6
9697else
9698 if test -n "$ac_ct_NMEDIT"; then
9699 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9700else
9701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702for as_dir in $PATH
9703do
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9708 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +00009709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009710 break 2
9711 fi
9712done
cristy8b350f62009-11-15 23:12:43 +00009713 done
cristy3ed852e2009-09-05 21:47:34 +00009714IFS=$as_save_IFS
9715
9716fi
9717fi
9718ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9719if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +00009720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +00009721$as_echo "$ac_ct_NMEDIT" >&6; }
9722else
cristy8b350f62009-11-15 23:12:43 +00009723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009724$as_echo "no" >&6; }
9725fi
9726
9727 if test "x$ac_ct_NMEDIT" = x; then
9728 NMEDIT=":"
9729 else
9730 case $cross_compiling:$ac_tool_warned in
9731yes:)
cristy8b350f62009-11-15 23:12:43 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9734ac_tool_warned=yes ;;
9735esac
9736 NMEDIT=$ac_ct_NMEDIT
9737 fi
9738else
9739 NMEDIT="$ac_cv_prog_NMEDIT"
9740fi
9741
9742 if test -n "$ac_tool_prefix"; then
9743 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9744set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009746$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009747if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009748 $as_echo_n "(cached) " >&6
9749else
9750 if test -n "$LIPO"; then
9751 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9752else
9753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754for as_dir in $PATH
9755do
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +00009761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009762 break 2
9763 fi
9764done
cristy8b350f62009-11-15 23:12:43 +00009765 done
cristy3ed852e2009-09-05 21:47:34 +00009766IFS=$as_save_IFS
9767
9768fi
9769fi
9770LIPO=$ac_cv_prog_LIPO
9771if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009773$as_echo "$LIPO" >&6; }
9774else
cristy8b350f62009-11-15 23:12:43 +00009775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009776$as_echo "no" >&6; }
9777fi
9778
9779
9780fi
9781if test -z "$ac_cv_prog_LIPO"; then
9782 ac_ct_LIPO=$LIPO
9783 # Extract the first word of "lipo", so it can be a program name with args.
9784set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009786$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009787if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009788 $as_echo_n "(cached) " >&6
9789else
9790 if test -n "$ac_ct_LIPO"; then
9791 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9792else
9793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794for as_dir in $PATH
9795do
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +00009801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009802 break 2
9803 fi
9804done
cristy8b350f62009-11-15 23:12:43 +00009805 done
cristy3ed852e2009-09-05 21:47:34 +00009806IFS=$as_save_IFS
9807
9808fi
9809fi
9810ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9811if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +00009813$as_echo "$ac_ct_LIPO" >&6; }
9814else
cristy8b350f62009-11-15 23:12:43 +00009815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009816$as_echo "no" >&6; }
9817fi
9818
9819 if test "x$ac_ct_LIPO" = x; then
9820 LIPO=":"
9821 else
9822 case $cross_compiling:$ac_tool_warned in
9823yes:)
cristy8b350f62009-11-15 23:12:43 +00009824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9826ac_tool_warned=yes ;;
9827esac
9828 LIPO=$ac_ct_LIPO
9829 fi
9830else
9831 LIPO="$ac_cv_prog_LIPO"
9832fi
9833
9834 if test -n "$ac_tool_prefix"; then
9835 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9836set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009838$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009839if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009840 $as_echo_n "(cached) " >&6
9841else
9842 if test -n "$OTOOL"; then
9843 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9844else
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009850 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9852 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +00009853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009854 break 2
9855 fi
9856done
cristy8b350f62009-11-15 23:12:43 +00009857 done
cristy3ed852e2009-09-05 21:47:34 +00009858IFS=$as_save_IFS
9859
9860fi
9861fi
9862OTOOL=$ac_cv_prog_OTOOL
9863if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009865$as_echo "$OTOOL" >&6; }
9866else
cristy8b350f62009-11-15 23:12:43 +00009867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009868$as_echo "no" >&6; }
9869fi
9870
9871
9872fi
9873if test -z "$ac_cv_prog_OTOOL"; then
9874 ac_ct_OTOOL=$OTOOL
9875 # Extract the first word of "otool", so it can be a program name with args.
9876set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009878$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009879if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009880 $as_echo_n "(cached) " >&6
9881else
9882 if test -n "$ac_ct_OTOOL"; then
9883 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9884else
9885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009890 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +00009893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009894 break 2
9895 fi
9896done
cristy8b350f62009-11-15 23:12:43 +00009897 done
cristy3ed852e2009-09-05 21:47:34 +00009898IFS=$as_save_IFS
9899
9900fi
9901fi
9902ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9903if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +00009904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +00009905$as_echo "$ac_ct_OTOOL" >&6; }
9906else
cristy8b350f62009-11-15 23:12:43 +00009907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009908$as_echo "no" >&6; }
9909fi
9910
9911 if test "x$ac_ct_OTOOL" = x; then
9912 OTOOL=":"
9913 else
9914 case $cross_compiling:$ac_tool_warned in
9915yes:)
cristy8b350f62009-11-15 23:12:43 +00009916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9918ac_tool_warned=yes ;;
9919esac
9920 OTOOL=$ac_ct_OTOOL
9921 fi
9922else
9923 OTOOL="$ac_cv_prog_OTOOL"
9924fi
9925
9926 if test -n "$ac_tool_prefix"; then
9927 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9928set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009930$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009931if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009932 $as_echo_n "(cached) " >&6
9933else
9934 if test -n "$OTOOL64"; then
9935 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9936else
9937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938for as_dir in $PATH
9939do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +00009945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009946 break 2
9947 fi
9948done
cristy8b350f62009-11-15 23:12:43 +00009949 done
cristy3ed852e2009-09-05 21:47:34 +00009950IFS=$as_save_IFS
9951
9952fi
9953fi
9954OTOOL64=$ac_cv_prog_OTOOL64
9955if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +00009956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo "$OTOOL64" >&6; }
9958else
cristy8b350f62009-11-15 23:12:43 +00009959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009960$as_echo "no" >&6; }
9961fi
9962
9963
9964fi
9965if test -z "$ac_cv_prog_OTOOL64"; then
9966 ac_ct_OTOOL64=$OTOOL64
9967 # Extract the first word of "otool64", so it can be a program name with args.
9968set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009970$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009971if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009972 $as_echo_n "(cached) " >&6
9973else
9974 if test -n "$ac_ct_OTOOL64"; then
9975 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9976else
9977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978for as_dir in $PATH
9979do
9980 IFS=$as_save_IFS
9981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +00009985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009986 break 2
9987 fi
9988done
cristy8b350f62009-11-15 23:12:43 +00009989 done
cristy3ed852e2009-09-05 21:47:34 +00009990IFS=$as_save_IFS
9991
9992fi
9993fi
9994ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9995if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +00009996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo "$ac_ct_OTOOL64" >&6; }
9998else
cristy8b350f62009-11-15 23:12:43 +00009999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010000$as_echo "no" >&6; }
10001fi
10002
10003 if test "x$ac_ct_OTOOL64" = x; then
10004 OTOOL64=":"
10005 else
10006 case $cross_compiling:$ac_tool_warned in
10007yes:)
cristy8b350f62009-11-15 23:12:43 +000010008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010ac_tool_warned=yes ;;
10011esac
10012 OTOOL64=$ac_ct_OTOOL64
10013 fi
10014else
10015 OTOOL64="$ac_cv_prog_OTOOL64"
10016fi
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
cristy8b350f62009-11-15 23:12:43 +000010044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010045$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010046if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 $as_echo_n "(cached) " >&6
10048else
10049 lt_cv_apple_cc_single_mod=no
10050 if test -z "${LT_MULTI_MODULE}"; then
10051 # By default we will add the -single_module flag. You can override
10052 # by either setting the environment variable LT_MULTI_MODULE
10053 # non-empty at configure time, or by adding -multi_module to the
10054 # link flags.
10055 rm -rf libconftest.dylib*
10056 echo "int foo(void){return 1;}" > conftest.c
10057 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10058-dynamiclib -Wl,-single_module conftest.c" >&5
10059 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10060 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10061 _lt_result=$?
10062 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10063 lt_cv_apple_cc_single_mod=yes
10064 else
10065 cat conftest.err >&5
10066 fi
10067 rm -rf libconftest.dylib*
10068 rm -f conftest.*
10069 fi
10070fi
cristy8b350f62009-11-15 23:12:43 +000010071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000010072$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000010073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000010074$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010075if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010076 $as_echo_n "(cached) " >&6
10077else
10078 lt_cv_ld_exported_symbols_list=no
10079 save_LDFLAGS=$LDFLAGS
10080 echo "_main" > conftest.sym
10081 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000010082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010083/* end confdefs.h. */
10084
10085int
10086main ()
10087{
10088
10089 ;
10090 return 0;
10091}
10092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010094 lt_cv_ld_exported_symbols_list=yes
10095else
cristy8b350f62009-11-15 23:12:43 +000010096 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000010097fi
cristy8b350f62009-11-15 23:12:43 +000010098rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010100 LDFLAGS="$save_LDFLAGS"
10101
10102fi
cristy8b350f62009-11-15 23:12:43 +000010103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000010104$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10105 case $host_os in
10106 rhapsody* | darwin1.[012])
10107 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10108 darwin1.*)
10109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10110 darwin*) # darwin 5.x on
10111 # if running on 10.5 or later, the deployment target defaults
10112 # to the OS version, if on x86, and 10.4, the deployment
10113 # target defaults to 10.4. Don't you love it?
10114 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10115 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10116 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10117 10.[012]*)
10118 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10119 10.*)
10120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10121 esac
10122 ;;
10123 esac
10124 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10125 _lt_dar_single_mod='$single_module'
10126 fi
10127 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10128 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10129 else
10130 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10131 fi
cristy18304f92009-11-22 15:48:26 +000010132 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000010133 _lt_dsymutil='~$DSYMUTIL $lib || :'
10134 else
10135 _lt_dsymutil=
10136 fi
10137 ;;
10138 esac
10139
cristy3ed852e2009-09-05 21:47:34 +000010140for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000010141do :
10142 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10143"
10144if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000010145 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010146#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000010147_ACEOF
10148
10149fi
10150
10151done
10152
10153
10154
cristy18304f92009-11-22 15:48:26 +000010155ac_ext=cpp
10156ac_cpp='$CXXCPP $CPPFLAGS'
10157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10160if test -z "$CXX"; then
10161 if test -n "$CCC"; then
10162 CXX=$CCC
10163 else
10164 if test -n "$ac_tool_prefix"; then
10165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10166 do
10167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10170$as_echo_n "checking for $ac_word... " >&6; }
10171if test "${ac_cv_prog_CXX+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10173else
10174 if test -n "$CXX"; then
10175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10176else
10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
10182 for ac_exec_ext in '' $ac_executable_extensions; do
10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10186 break 2
10187 fi
10188done
10189 done
10190IFS=$as_save_IFS
10191
10192fi
10193fi
10194CXX=$ac_cv_prog_CXX
10195if test -n "$CXX"; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10197$as_echo "$CXX" >&6; }
10198else
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10200$as_echo "no" >&6; }
10201fi
10202
10203
10204 test -n "$CXX" && break
10205 done
10206fi
10207if test -z "$CXX"; then
10208 ac_ct_CXX=$CXX
10209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10210do
10211 # Extract the first word of "$ac_prog", so it can be a program name with args.
10212set dummy $ac_prog; ac_word=$2
10213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10214$as_echo_n "checking for $ac_word... " >&6; }
10215if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10216 $as_echo_n "(cached) " >&6
10217else
10218 if test -n "$ac_ct_CXX"; then
10219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10220else
10221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222for as_dir in $PATH
10223do
10224 IFS=$as_save_IFS
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228 ac_cv_prog_ac_ct_CXX="$ac_prog"
10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 break 2
10231 fi
10232done
10233 done
10234IFS=$as_save_IFS
10235
10236fi
10237fi
10238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10239if test -n "$ac_ct_CXX"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10241$as_echo "$ac_ct_CXX" >&6; }
10242else
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244$as_echo "no" >&6; }
10245fi
10246
10247
10248 test -n "$ac_ct_CXX" && break
10249done
10250
10251 if test "x$ac_ct_CXX" = x; then
10252 CXX="g++"
10253 else
10254 case $cross_compiling:$ac_tool_warned in
10255yes:)
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10258ac_tool_warned=yes ;;
10259esac
10260 CXX=$ac_ct_CXX
10261 fi
10262fi
10263
10264 fi
10265fi
10266# Provide some information about the compiler.
10267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10268set X $ac_compile
10269ac_compiler=$2
10270for ac_option in --version -v -V -qversion; do
10271 { { ac_try="$ac_compiler $ac_option >&5"
10272case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10277$as_echo "$ac_try_echo"; } >&5
10278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10279 ac_status=$?
10280 if test -s conftest.err; then
10281 sed '10a\
10282... rest of stderr output deleted ...
10283 10q' conftest.err >conftest.er1
10284 cat conftest.er1 >&5
10285 fi
10286 rm -f conftest.er1 conftest.err
10287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10288 test $ac_status = 0; }
10289done
10290
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10292$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10293if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295else
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h. */
10298
10299int
10300main ()
10301{
10302#ifndef __GNUC__
10303 choke me
10304#endif
10305
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310if ac_fn_cxx_try_compile "$LINENO"; then :
10311 ac_compiler_gnu=yes
10312else
10313 ac_compiler_gnu=no
10314fi
10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10317
10318fi
10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10320$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10321if test $ac_compiler_gnu = yes; then
10322 GXX=yes
10323else
10324 GXX=
10325fi
10326ac_test_CXXFLAGS=${CXXFLAGS+set}
10327ac_save_CXXFLAGS=$CXXFLAGS
10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10329$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10330if test "${ac_cv_prog_cxx_g+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10332else
10333 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10334 ac_cxx_werror_flag=yes
10335 ac_cv_prog_cxx_g=no
10336 CXXFLAGS="-g"
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h. */
10339
10340int
10341main ()
10342{
10343
10344 ;
10345 return 0;
10346}
10347_ACEOF
10348if ac_fn_cxx_try_compile "$LINENO"; then :
10349 ac_cv_prog_cxx_g=yes
10350else
10351 CXXFLAGS=""
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h. */
10354
10355int
10356main ()
10357{
10358
10359 ;
10360 return 0;
10361}
10362_ACEOF
10363if ac_fn_cxx_try_compile "$LINENO"; then :
10364
10365else
10366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10367 CXXFLAGS="-g"
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369/* end confdefs.h. */
10370
10371int
10372main ()
10373{
10374
10375 ;
10376 return 0;
10377}
10378_ACEOF
10379if ac_fn_cxx_try_compile "$LINENO"; then :
10380 ac_cv_prog_cxx_g=yes
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383fi
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
10386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10388fi
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10390$as_echo "$ac_cv_prog_cxx_g" >&6; }
10391if test "$ac_test_CXXFLAGS" = set; then
10392 CXXFLAGS=$ac_save_CXXFLAGS
10393elif test $ac_cv_prog_cxx_g = yes; then
10394 if test "$GXX" = yes; then
10395 CXXFLAGS="-g -O2"
10396 else
10397 CXXFLAGS="-g"
10398 fi
10399else
10400 if test "$GXX" = yes; then
10401 CXXFLAGS="-O2"
10402 else
10403 CXXFLAGS=
10404 fi
10405fi
10406ac_ext=c
10407ac_cpp='$CPP $CPPFLAGS'
10408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10410ac_compiler_gnu=$ac_cv_c_compiler_gnu
10411
10412depcc="$CXX" am_compiler_list=
10413
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10415$as_echo_n "checking dependency style of $depcc... " >&6; }
10416if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418else
10419 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10420 # We make a subdir and do the tests there. Otherwise we can end up
10421 # making bogus files that we don't know about and never remove. For
10422 # instance it was reported that on HP-UX the gcc test will end up
10423 # making a dummy file named `D' -- because `-MD' means `put the output
10424 # in D'.
10425 mkdir conftest.dir
10426 # Copy depcomp to subdir because otherwise we won't find it if we're
10427 # using a relative directory.
10428 cp "$am_depcomp" conftest.dir
10429 cd conftest.dir
10430 # We will build objects and dependencies in a subdirectory because
10431 # it helps to detect inapplicable dependency modes. For instance
10432 # both Tru64's cc and ICC support -MD to output dependencies as a
10433 # side effect of compilation, but ICC will put the dependencies in
10434 # the current directory while Tru64 will put them in the object
10435 # directory.
10436 mkdir sub
10437
10438 am_cv_CXX_dependencies_compiler_type=none
10439 if test "$am_compiler_list" = ""; then
10440 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10441 fi
10442 am__universal=false
10443 case " $depcc " in #(
10444 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10445 esac
10446
10447 for depmode in $am_compiler_list; do
10448 # Setup a source with many dependencies, because some compilers
10449 # like to wrap large dependency lists on column 80 (with \), and
10450 # we should not choose a depcomp mode which is confused by this.
10451 #
10452 # We need to recreate these files for each test, as the compiler may
10453 # overwrite some of them when testing with obscure command lines.
10454 # This happens at least with the AIX C compiler.
10455 : > sub/conftest.c
10456 for i in 1 2 3 4 5 6; do
10457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10459 # Solaris 8's {/usr,}/bin/sh.
10460 touch sub/conftst$i.h
10461 done
10462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10463
10464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10465 # mode. It turns out that the SunPro C++ compiler does not properly
10466 # handle `-M -o', and we need to detect this. Also, some Intel
10467 # versions had trouble with output in subdirs
10468 am__obj=sub/conftest.${OBJEXT-o}
10469 am__minus_obj="-o $am__obj"
10470 case $depmode in
10471 gcc)
10472 # This depmode causes a compiler race in universal mode.
10473 test "$am__universal" = false || continue
10474 ;;
10475 nosideeffect)
10476 # after this tag, mechanisms are not by side-effect, so they'll
10477 # only be used when explicitly requested
10478 if test "x$enable_dependency_tracking" = xyes; then
10479 continue
10480 else
10481 break
10482 fi
10483 ;;
10484 msvisualcpp | msvcmsys)
10485 # This compiler won't grok `-c -o', but also, the minuso test has
10486 # not run yet. These depmodes are late enough in the game, and
10487 # so weak that their functioning should not be impacted.
10488 am__obj=conftest.${OBJEXT-o}
10489 am__minus_obj=
10490 ;;
10491 none) break ;;
10492 esac
10493 if depmode=$depmode \
10494 source=sub/conftest.c object=$am__obj \
10495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10497 >/dev/null 2>conftest.err &&
10498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10502 # icc doesn't choke on unknown options, it will just issue warnings
10503 # or remarks (even with -Werror). So we grep stderr for any message
10504 # that says an option was ignored or not supported.
10505 # When given -MP, icc 7.0 and 7.1 complain thusly:
10506 # icc: Command line warning: ignoring option '-M'; no argument required
10507 # The diagnosis changed in icc 8.0:
10508 # icc: Command line remark: option '-MP' not supported
10509 if (grep 'ignoring option' conftest.err ||
10510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10511 am_cv_CXX_dependencies_compiler_type=$depmode
10512 break
10513 fi
10514 fi
10515 done
10516
10517 cd ..
10518 rm -rf conftest.dir
10519else
10520 am_cv_CXX_dependencies_compiler_type=none
10521fi
10522
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10525$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10526CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10527
10528 if
10529 test "x$enable_dependency_tracking" != xno \
10530 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10531 am__fastdepCXX_TRUE=
10532 am__fastdepCXX_FALSE='#'
10533else
10534 am__fastdepCXX_TRUE='#'
10535 am__fastdepCXX_FALSE=
10536fi
10537
10538
10539if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10540 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10541 (test "X$CXX" != "Xg++"))) ; then
10542 ac_ext=cpp
10543ac_cpp='$CXXCPP $CPPFLAGS'
10544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10548$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10549if test -z "$CXXCPP"; then
10550 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552else
10553 # Double quotes because CXXCPP needs to be expanded
10554 for CXXCPP in "$CXX -E" "/lib/cpp"
10555 do
10556 ac_preproc_ok=false
10557for ac_cxx_preproc_warn_flag in '' yes
10558do
10559 # Use a header file that comes with gcc, so configuring glibc
10560 # with a fresh cross-compiler works.
10561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562 # <limits.h> exists even on freestanding compilers.
10563 # On the NeXT, cc -E runs the code through the compiler's parser,
10564 # not just through cpp. "Syntax error" is here to catch this case.
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
10567#ifdef __STDC__
10568# include <limits.h>
10569#else
10570# include <assert.h>
10571#endif
10572 Syntax error
10573_ACEOF
10574if ac_fn_cxx_try_cpp "$LINENO"; then :
10575
10576else
10577 # Broken: fails on valid input.
10578continue
10579fi
10580rm -f conftest.err conftest.$ac_ext
10581
10582 # OK, works on sane cases. Now check whether nonexistent headers
10583 # can be detected and how.
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h. */
10586#include <ac_nonexistent.h>
10587_ACEOF
10588if ac_fn_cxx_try_cpp "$LINENO"; then :
10589 # Broken: success on invalid input.
10590continue
10591else
10592 # Passes both tests.
10593ac_preproc_ok=:
10594break
10595fi
10596rm -f conftest.err conftest.$ac_ext
10597
10598done
10599# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10600rm -f conftest.err conftest.$ac_ext
10601if $ac_preproc_ok; then :
10602 break
10603fi
10604
10605 done
10606 ac_cv_prog_CXXCPP=$CXXCPP
10607
10608fi
10609 CXXCPP=$ac_cv_prog_CXXCPP
10610else
10611 ac_cv_prog_CXXCPP=$CXXCPP
10612fi
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10614$as_echo "$CXXCPP" >&6; }
10615ac_preproc_ok=false
10616for ac_cxx_preproc_warn_flag in '' yes
10617do
10618 # Use a header file that comes with gcc, so configuring glibc
10619 # with a fresh cross-compiler works.
10620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10621 # <limits.h> exists even on freestanding compilers.
10622 # On the NeXT, cc -E runs the code through the compiler's parser,
10623 # not just through cpp. "Syntax error" is here to catch this case.
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625/* end confdefs.h. */
10626#ifdef __STDC__
10627# include <limits.h>
10628#else
10629# include <assert.h>
10630#endif
10631 Syntax error
10632_ACEOF
10633if ac_fn_cxx_try_cpp "$LINENO"; then :
10634
10635else
10636 # Broken: fails on valid input.
10637continue
10638fi
10639rm -f conftest.err conftest.$ac_ext
10640
10641 # OK, works on sane cases. Now check whether nonexistent headers
10642 # can be detected and how.
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h. */
10645#include <ac_nonexistent.h>
10646_ACEOF
10647if ac_fn_cxx_try_cpp "$LINENO"; then :
10648 # Broken: success on invalid input.
10649continue
10650else
10651 # Passes both tests.
10652ac_preproc_ok=:
10653break
10654fi
10655rm -f conftest.err conftest.$ac_ext
10656
10657done
10658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10659rm -f conftest.err conftest.$ac_ext
10660if $ac_preproc_ok; then :
10661
10662else
10663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10665_lt_caught_CXX_error=yes; }
10666fi
10667
10668ac_ext=c
10669ac_cpp='$CPP $CPPFLAGS'
10670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672ac_compiler_gnu=$ac_cv_c_compiler_gnu
10673
10674else
10675 _lt_caught_CXX_error=yes
10676fi
10677
10678
cristy3ed852e2009-09-05 21:47:34 +000010679
10680
10681
10682# Set options
10683enable_win32_dll=yes
10684
10685case $host in
cristy18304f92009-11-22 15:48:26 +000010686*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000010687 if test -n "$ac_tool_prefix"; then
10688 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10689set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010691$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010692if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010693 $as_echo_n "(cached) " >&6
10694else
10695 if test -n "$AS"; then
10696 ac_cv_prog_AS="$AS" # Let the user override the test.
10697else
10698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10699for as_dir in $PATH
10700do
10701 IFS=$as_save_IFS
10702 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010703 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10705 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000010706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010707 break 2
10708 fi
10709done
cristy8b350f62009-11-15 23:12:43 +000010710 done
cristy3ed852e2009-09-05 21:47:34 +000010711IFS=$as_save_IFS
10712
10713fi
10714fi
10715AS=$ac_cv_prog_AS
10716if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000010717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010718$as_echo "$AS" >&6; }
10719else
cristy8b350f62009-11-15 23:12:43 +000010720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010721$as_echo "no" >&6; }
10722fi
10723
10724
10725fi
10726if test -z "$ac_cv_prog_AS"; then
10727 ac_ct_AS=$AS
10728 # Extract the first word of "as", so it can be a program name with args.
10729set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010731$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010732if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010733 $as_echo_n "(cached) " >&6
10734else
10735 if test -n "$ac_ct_AS"; then
10736 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10737else
10738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739for as_dir in $PATH
10740do
10741 IFS=$as_save_IFS
10742 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010743 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000010746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010747 break 2
10748 fi
10749done
cristy8b350f62009-11-15 23:12:43 +000010750 done
cristy3ed852e2009-09-05 21:47:34 +000010751IFS=$as_save_IFS
10752
10753fi
10754fi
10755ac_ct_AS=$ac_cv_prog_ac_ct_AS
10756if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000010757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000010758$as_echo "$ac_ct_AS" >&6; }
10759else
cristy8b350f62009-11-15 23:12:43 +000010760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010761$as_echo "no" >&6; }
10762fi
10763
10764 if test "x$ac_ct_AS" = x; then
10765 AS="false"
10766 else
10767 case $cross_compiling:$ac_tool_warned in
10768yes:)
cristy8b350f62009-11-15 23:12:43 +000010769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10771ac_tool_warned=yes ;;
10772esac
10773 AS=$ac_ct_AS
10774 fi
10775else
10776 AS="$ac_cv_prog_AS"
10777fi
10778
10779 if test -n "$ac_tool_prefix"; then
10780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10781set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010783$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010784if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010785 $as_echo_n "(cached) " >&6
10786else
10787 if test -n "$DLLTOOL"; then
10788 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10789else
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10797 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000010798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010799 break 2
10800 fi
10801done
cristy8b350f62009-11-15 23:12:43 +000010802 done
cristy3ed852e2009-09-05 21:47:34 +000010803IFS=$as_save_IFS
10804
10805fi
10806fi
10807DLLTOOL=$ac_cv_prog_DLLTOOL
10808if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010810$as_echo "$DLLTOOL" >&6; }
10811else
cristy8b350f62009-11-15 23:12:43 +000010812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010813$as_echo "no" >&6; }
10814fi
10815
10816
10817fi
10818if test -z "$ac_cv_prog_DLLTOOL"; then
10819 ac_ct_DLLTOOL=$DLLTOOL
10820 # Extract the first word of "dlltool", so it can be a program name with args.
10821set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010824if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010825 $as_echo_n "(cached) " >&6
10826else
10827 if test -n "$ac_ct_DLLTOOL"; then
10828 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10829else
10830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831for as_dir in $PATH
10832do
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000010838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010839 break 2
10840 fi
10841done
cristy8b350f62009-11-15 23:12:43 +000010842 done
cristy3ed852e2009-09-05 21:47:34 +000010843IFS=$as_save_IFS
10844
10845fi
10846fi
10847ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10848if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010850$as_echo "$ac_ct_DLLTOOL" >&6; }
10851else
cristy8b350f62009-11-15 23:12:43 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010853$as_echo "no" >&6; }
10854fi
10855
10856 if test "x$ac_ct_DLLTOOL" = x; then
10857 DLLTOOL="false"
10858 else
10859 case $cross_compiling:$ac_tool_warned in
10860yes:)
cristy8b350f62009-11-15 23:12:43 +000010861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10863ac_tool_warned=yes ;;
10864esac
10865 DLLTOOL=$ac_ct_DLLTOOL
10866 fi
10867else
10868 DLLTOOL="$ac_cv_prog_DLLTOOL"
10869fi
10870
10871 if test -n "$ac_tool_prefix"; then
10872 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10873set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010876if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010877 $as_echo_n "(cached) " >&6
10878else
10879 if test -n "$OBJDUMP"; then
10880 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10881else
10882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883for as_dir in $PATH
10884do
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010887 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000010890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010891 break 2
10892 fi
10893done
cristy8b350f62009-11-15 23:12:43 +000010894 done
cristy3ed852e2009-09-05 21:47:34 +000010895IFS=$as_save_IFS
10896
10897fi
10898fi
10899OBJDUMP=$ac_cv_prog_OBJDUMP
10900if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010902$as_echo "$OBJDUMP" >&6; }
10903else
cristy8b350f62009-11-15 23:12:43 +000010904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010905$as_echo "no" >&6; }
10906fi
10907
10908
10909fi
10910if test -z "$ac_cv_prog_OBJDUMP"; then
10911 ac_ct_OBJDUMP=$OBJDUMP
10912 # Extract the first word of "objdump", so it can be a program name with args.
10913set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010915$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010916if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010917 $as_echo_n "(cached) " >&6
10918else
10919 if test -n "$ac_ct_OBJDUMP"; then
10920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010927 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010931 break 2
10932 fi
10933done
cristy8b350f62009-11-15 23:12:43 +000010934 done
cristy3ed852e2009-09-05 21:47:34 +000010935IFS=$as_save_IFS
10936
10937fi
10938fi
10939ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10940if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010942$as_echo "$ac_ct_OBJDUMP" >&6; }
10943else
cristy8b350f62009-11-15 23:12:43 +000010944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010945$as_echo "no" >&6; }
10946fi
10947
10948 if test "x$ac_ct_OBJDUMP" = x; then
10949 OBJDUMP="false"
10950 else
10951 case $cross_compiling:$ac_tool_warned in
10952yes:)
cristy8b350f62009-11-15 23:12:43 +000010953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10955ac_tool_warned=yes ;;
10956esac
10957 OBJDUMP=$ac_ct_OBJDUMP
10958 fi
10959else
10960 OBJDUMP="$ac_cv_prog_OBJDUMP"
10961fi
10962
10963 ;;
10964esac
10965
10966test -z "$AS" && AS=as
10967
10968
10969
10970
10971
10972test -z "$DLLTOOL" && DLLTOOL=dlltool
10973
10974
10975
10976
10977
10978test -z "$OBJDUMP" && OBJDUMP=objdump
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000010989if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010990 enableval=$enable_shared; p=${PACKAGE-default}
10991 case $enableval in
10992 yes) enable_shared=yes ;;
10993 no) enable_shared=no ;;
10994 *)
10995 enable_shared=no
10996 # Look at the argument we got. We use all the common list separators.
10997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10998 for pkg in $enableval; do
10999 IFS="$lt_save_ifs"
11000 if test "X$pkg" = "X$p"; then
11001 enable_shared=yes
11002 fi
11003 done
11004 IFS="$lt_save_ifs"
11005 ;;
11006 esac
11007else
11008 enable_shared=yes
11009fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000011020if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011021 enableval=$enable_static; p=${PACKAGE-default}
11022 case $enableval in
11023 yes) enable_static=yes ;;
11024 no) enable_static=no ;;
11025 *)
11026 enable_static=no
11027 # Look at the argument we got. We use all the common list separators.
11028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11029 for pkg in $enableval; do
11030 IFS="$lt_save_ifs"
11031 if test "X$pkg" = "X$p"; then
11032 enable_static=yes
11033 fi
11034 done
11035 IFS="$lt_save_ifs"
11036 ;;
11037 esac
11038else
11039 enable_static=yes
11040fi
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000011052if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011053 withval=$with_pic; pic_mode="$withval"
11054else
11055 pic_mode=default
11056fi
11057
11058
11059test -z "$pic_mode" && pic_mode=default
11060
11061
11062
11063
11064
11065
11066
11067 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000011068if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011069 enableval=$enable_fast_install; p=${PACKAGE-default}
11070 case $enableval in
11071 yes) enable_fast_install=yes ;;
11072 no) enable_fast_install=no ;;
11073 *)
11074 enable_fast_install=no
11075 # Look at the argument we got. We use all the common list separators.
11076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11077 for pkg in $enableval; do
11078 IFS="$lt_save_ifs"
11079 if test "X$pkg" = "X$p"; then
11080 enable_fast_install=yes
11081 fi
11082 done
11083 IFS="$lt_save_ifs"
11084 ;;
11085 esac
11086else
11087 enable_fast_install=yes
11088fi
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100# This can be used to rebuild libtool when needed
11101LIBTOOL_DEPS="$ltmain"
11102
11103# Always use our own libtool.
11104LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130test -z "$LN_S" && LN_S="ln -s"
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145if test -n "${ZSH_VERSION+set}" ; then
11146 setopt NO_GLOB_SUBST
11147fi
11148
cristy8b350f62009-11-15 23:12:43 +000011149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011150$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011151if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011152 $as_echo_n "(cached) " >&6
11153else
11154 rm -f .libs 2>/dev/null
11155mkdir .libs 2>/dev/null
11156if test -d .libs; then
11157 lt_cv_objdir=.libs
11158else
11159 # MS-DOS does not allow filenames that begin with a dot.
11160 lt_cv_objdir=_libs
11161fi
11162rmdir .libs 2>/dev/null
11163fi
cristy8b350f62009-11-15 23:12:43 +000011164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000011165$as_echo "$lt_cv_objdir" >&6; }
11166objdir=$lt_cv_objdir
11167
11168
11169
11170
11171
11172cat >>confdefs.h <<_ACEOF
11173#define LT_OBJDIR "$lt_cv_objdir/"
11174_ACEOF
11175
11176
11177
11178
cristy18304f92009-11-22 15:48:26 +000011179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
cristy3ed852e2009-09-05 21:47:34 +000011192case $host_os in
11193aix3*)
11194 # AIX sometimes has problems with the GCC collect2 program. For some
11195 # reason, if we set the COLLECT_NAMES environment variable, the problems
11196 # vanish in a puff of smoke.
11197 if test "X${COLLECT_NAMES+set}" != Xset; then
11198 COLLECT_NAMES=
11199 export COLLECT_NAMES
11200 fi
11201 ;;
11202esac
11203
cristy18304f92009-11-22 15:48:26 +000011204# Sed substitution that helps us do robust quoting. It backslashifies
11205# metacharacters that are still active within double-quoted strings.
11206sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11207
11208# Same as above, but do not quote variable references.
11209double_quote_subst='s/\(["`\\]\)/\\\1/g'
11210
11211# Sed substitution to delay expansion of an escaped shell variable in a
11212# double_quote_subst'ed string.
11213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11214
11215# Sed substitution to delay expansion of an escaped single quote.
11216delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11217
11218# Sed substitution to avoid accidental globbing in evaled expressions
11219no_glob_subst='s/\*/\\\*/g'
11220
cristy3ed852e2009-09-05 21:47:34 +000011221# Global variables:
11222ofile=libtool
11223can_build_shared=yes
11224
11225# All known linkers require a `.a' archive for static linking (except MSVC,
11226# which needs '.lib').
11227libext=a
11228
11229with_gnu_ld="$lt_cv_prog_gnu_ld"
11230
11231old_CC="$CC"
11232old_CFLAGS="$CFLAGS"
11233
11234# Set sane defaults for various variables
11235test -z "$CC" && CC=cc
11236test -z "$LTCC" && LTCC=$CC
11237test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11238test -z "$LD" && LD=ld
11239test -z "$ac_objext" && ac_objext=o
11240
11241for cc_temp in $compiler""; do
11242 case $cc_temp in
11243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11245 \-*) ;;
11246 *) break;;
11247 esac
11248done
cristy18304f92009-11-22 15:48:26 +000011249cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000011250
11251
11252# Only perform the check for file, if the check method requires it
11253test -z "$MAGIC_CMD" && MAGIC_CMD=file
11254case $deplibs_check_method in
11255file_magic*)
11256 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000011257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011258$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011259if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011260 $as_echo_n "(cached) " >&6
11261else
11262 case $MAGIC_CMD in
11263[\\/*] | ?:[\\/]*)
11264 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11265 ;;
11266*)
11267 lt_save_MAGIC_CMD="$MAGIC_CMD"
11268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11270 for ac_dir in $ac_dummy; do
11271 IFS="$lt_save_ifs"
11272 test -z "$ac_dir" && ac_dir=.
11273 if test -f $ac_dir/${ac_tool_prefix}file; then
11274 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11275 if test -n "$file_magic_test_file"; then
11276 case $deplibs_check_method in
11277 "file_magic "*)
11278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11281 $EGREP "$file_magic_regex" > /dev/null; then
11282 :
11283 else
11284 cat <<_LT_EOF 1>&2
11285
11286*** Warning: the command libtool uses to detect shared libraries,
11287*** $file_magic_cmd, produces output that libtool cannot recognize.
11288*** The result is that libtool may fail to recognize shared libraries
11289*** as such. This will affect the creation of libtool libraries that
11290*** depend on shared libraries, but programs linked with such libtool
11291*** libraries will work regardless of this problem. Nevertheless, you
11292*** may want to report the problem to your system manager and/or to
11293*** bug-libtool@gnu.org
11294
11295_LT_EOF
11296 fi ;;
11297 esac
11298 fi
11299 break
11300 fi
11301 done
11302 IFS="$lt_save_ifs"
11303 MAGIC_CMD="$lt_save_MAGIC_CMD"
11304 ;;
11305esac
11306fi
11307
11308MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11309if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011311$as_echo "$MAGIC_CMD" >&6; }
11312else
cristy8b350f62009-11-15 23:12:43 +000011313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011314$as_echo "no" >&6; }
11315fi
11316
11317
11318
11319
11320
11321if test -z "$lt_cv_path_MAGIC_CMD"; then
11322 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000011323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000011324$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011325if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011326 $as_echo_n "(cached) " >&6
11327else
11328 case $MAGIC_CMD in
11329[\\/*] | ?:[\\/]*)
11330 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11331 ;;
11332*)
11333 lt_save_MAGIC_CMD="$MAGIC_CMD"
11334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11335 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11336 for ac_dir in $ac_dummy; do
11337 IFS="$lt_save_ifs"
11338 test -z "$ac_dir" && ac_dir=.
11339 if test -f $ac_dir/file; then
11340 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11341 if test -n "$file_magic_test_file"; then
11342 case $deplibs_check_method in
11343 "file_magic "*)
11344 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11347 $EGREP "$file_magic_regex" > /dev/null; then
11348 :
11349 else
11350 cat <<_LT_EOF 1>&2
11351
11352*** Warning: the command libtool uses to detect shared libraries,
11353*** $file_magic_cmd, produces output that libtool cannot recognize.
11354*** The result is that libtool may fail to recognize shared libraries
11355*** as such. This will affect the creation of libtool libraries that
11356*** depend on shared libraries, but programs linked with such libtool
11357*** libraries will work regardless of this problem. Nevertheless, you
11358*** may want to report the problem to your system manager and/or to
11359*** bug-libtool@gnu.org
11360
11361_LT_EOF
11362 fi ;;
11363 esac
11364 fi
11365 break
11366 fi
11367 done
11368 IFS="$lt_save_ifs"
11369 MAGIC_CMD="$lt_save_MAGIC_CMD"
11370 ;;
11371esac
11372fi
11373
11374MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11375if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000011376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000011377$as_echo "$MAGIC_CMD" >&6; }
11378else
cristy8b350f62009-11-15 23:12:43 +000011379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011380$as_echo "no" >&6; }
11381fi
11382
11383
11384 else
11385 MAGIC_CMD=:
11386 fi
11387fi
11388
11389 fi
11390 ;;
11391esac
11392
11393# Use C for the default configuration in the libtool script
11394
11395lt_save_CC="$CC"
11396ac_ext=c
11397ac_cpp='$CPP $CPPFLAGS'
11398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11400ac_compiler_gnu=$ac_cv_c_compiler_gnu
11401
11402
11403# Source file extension for C test sources.
11404ac_ext=c
11405
11406# Object file extension for compiled C test sources.
11407objext=o
11408objext=$objext
11409
11410# Code to be used in simple compile tests
11411lt_simple_compile_test_code="int some_variable = 0;"
11412
11413# Code to be used in simple link tests
11414lt_simple_link_test_code='int main(){return(0);}'
11415
11416
11417
11418
11419
11420
11421
11422# If no C compiler was specified, use CC.
11423LTCC=${LTCC-"$CC"}
11424
11425# If no C compiler flags were specified, use CFLAGS.
11426LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11427
11428# Allow CC to be a program name with arguments.
11429compiler=$CC
11430
11431# Save the default compiler, since it gets overwritten when the other
11432# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11433compiler_DEFAULT=$CC
11434
11435# save warnings/boilerplate of simple test code
11436ac_outfile=conftest.$ac_objext
11437echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11439_lt_compiler_boilerplate=`cat conftest.err`
11440$RM conftest*
11441
11442ac_outfile=conftest.$ac_objext
11443echo "$lt_simple_link_test_code" >conftest.$ac_ext
11444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11445_lt_linker_boilerplate=`cat conftest.err`
11446$RM -r conftest*
11447
11448
11449## CAVEAT EMPTOR:
11450## There is no encapsulation within the following macros, do not change
11451## the running order or otherwise move them around unless you know exactly
11452## what you are doing...
11453if test -n "$compiler"; then
11454
11455lt_prog_compiler_no_builtin_flag=
11456
11457if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000011458 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000011459
cristy8b350f62009-11-15 23:12:43 +000011460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011461$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011463 $as_echo_n "(cached) " >&6
11464else
11465 lt_cv_prog_compiler_rtti_exceptions=no
11466 ac_outfile=conftest.$ac_objext
11467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11468 lt_compiler_flag="-fno-rtti -fno-exceptions"
11469 # Insert the option either (1) after the last *FLAGS variable, or
11470 # (2) before a word containing "conftest.", or (3) at the end.
11471 # Note that $ac_compile itself does not contain backslashes and begins
11472 # with a dollar sign (not a hyphen), so the echo should work correctly.
11473 # The option is referenced via a variable to avoid confusing sed.
11474 lt_compile=`echo "$ac_compile" | $SED \
11475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11477 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000011478 (eval echo "\"\$as_me:11478: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011479 (eval "$lt_compile" 2>conftest.err)
11480 ac_status=$?
11481 cat conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000011482 echo "$as_me:11482: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011483 if (exit $ac_status) && test -s "$ac_outfile"; then
11484 # The compiler can only warn and ignore the option if not recognized
11485 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11489 lt_cv_prog_compiler_rtti_exceptions=yes
11490 fi
11491 fi
11492 $RM conftest*
11493
11494fi
cristy8b350f62009-11-15 23:12:43 +000011495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000011496$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11497
11498if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11500else
11501 :
11502fi
11503
11504fi
11505
11506
11507
11508
11509
11510
11511 lt_prog_compiler_wl=
11512lt_prog_compiler_pic=
11513lt_prog_compiler_static=
11514
cristy8b350f62009-11-15 23:12:43 +000011515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011516$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11517
11518 if test "$GCC" = yes; then
11519 lt_prog_compiler_wl='-Wl,'
11520 lt_prog_compiler_static='-static'
11521
11522 case $host_os in
11523 aix*)
11524 # All AIX code is PIC.
11525 if test "$host_cpu" = ia64; then
11526 # AIX 5 now supports IA64 processor
11527 lt_prog_compiler_static='-Bstatic'
11528 fi
11529 ;;
11530
11531 amigaos*)
11532 case $host_cpu in
11533 powerpc)
11534 # see comment about AmigaOS4 .so support
11535 lt_prog_compiler_pic='-fPIC'
11536 ;;
11537 m68k)
11538 # FIXME: we need at least 68020 code to build shared libraries, but
11539 # adding the `-m68020' flag to GCC prevents building anything better,
11540 # like `-m68040'.
11541 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11542 ;;
11543 esac
11544 ;;
11545
11546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11547 # PIC is the default for these OSes.
11548 ;;
11549
11550 mingw* | cygwin* | pw32* | os2* | cegcc*)
11551 # This hack is so that the source file can tell whether it is being
11552 # built for inclusion in a dll (and should export symbols for example).
11553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11554 # (--disable-auto-import) libraries
11555 lt_prog_compiler_pic='-DDLL_EXPORT'
11556 ;;
11557
11558 darwin* | rhapsody*)
11559 # PIC is the default on this platform
11560 # Common symbols not allowed in MH_DYLIB files
11561 lt_prog_compiler_pic='-fno-common'
11562 ;;
11563
11564 hpux*)
11565 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11566 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11567 # sets the default TLS model and affects inlining.
11568 case $host_cpu in
11569 hppa*64*)
11570 # +Z the default
11571 ;;
11572 *)
11573 lt_prog_compiler_pic='-fPIC'
11574 ;;
11575 esac
11576 ;;
11577
11578 interix[3-9]*)
11579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11580 # Instead, we relocate shared libraries at runtime.
11581 ;;
11582
11583 msdosdjgpp*)
11584 # Just because we use GCC doesn't mean we suddenly get shared libraries
11585 # on systems that don't support them.
11586 lt_prog_compiler_can_build_shared=no
11587 enable_shared=no
11588 ;;
11589
11590 *nto* | *qnx*)
11591 # QNX uses GNU C++, but need to define -shared option too, otherwise
11592 # it will coredump.
11593 lt_prog_compiler_pic='-fPIC -shared'
11594 ;;
11595
11596 sysv4*MP*)
11597 if test -d /usr/nec; then
11598 lt_prog_compiler_pic=-Kconform_pic
11599 fi
11600 ;;
11601
11602 *)
11603 lt_prog_compiler_pic='-fPIC'
11604 ;;
11605 esac
11606 else
11607 # PORTME Check for flag to pass linker flags through the system compiler.
11608 case $host_os in
11609 aix*)
11610 lt_prog_compiler_wl='-Wl,'
11611 if test "$host_cpu" = ia64; then
11612 # AIX 5 now supports IA64 processor
11613 lt_prog_compiler_static='-Bstatic'
11614 else
11615 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11616 fi
11617 ;;
11618
11619 mingw* | cygwin* | pw32* | os2* | cegcc*)
11620 # This hack is so that the source file can tell whether it is being
11621 # built for inclusion in a dll (and should export symbols for example).
11622 lt_prog_compiler_pic='-DDLL_EXPORT'
11623 ;;
11624
11625 hpux9* | hpux10* | hpux11*)
11626 lt_prog_compiler_wl='-Wl,'
11627 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11628 # not for PA HP-UX.
11629 case $host_cpu in
11630 hppa*64*|ia64*)
11631 # +Z the default
11632 ;;
11633 *)
11634 lt_prog_compiler_pic='+Z'
11635 ;;
11636 esac
11637 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11638 lt_prog_compiler_static='${wl}-a ${wl}archive'
11639 ;;
11640
11641 irix5* | irix6* | nonstopux*)
11642 lt_prog_compiler_wl='-Wl,'
11643 # PIC (with -KPIC) is the default.
11644 lt_prog_compiler_static='-non_shared'
11645 ;;
11646
cristy18304f92009-11-22 15:48:26 +000011647 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000011648 case $cc_basename in
11649 # old Intel for x86_64 which still supported -KPIC.
11650 ecc*)
11651 lt_prog_compiler_wl='-Wl,'
11652 lt_prog_compiler_pic='-KPIC'
11653 lt_prog_compiler_static='-static'
11654 ;;
11655 # icc used to be incompatible with GCC.
11656 # ICC 10 doesn't accept -KPIC any more.
11657 icc* | ifort*)
11658 lt_prog_compiler_wl='-Wl,'
11659 lt_prog_compiler_pic='-fPIC'
11660 lt_prog_compiler_static='-static'
11661 ;;
11662 # Lahey Fortran 8.1.
11663 lf95*)
11664 lt_prog_compiler_wl='-Wl,'
11665 lt_prog_compiler_pic='--shared'
11666 lt_prog_compiler_static='--static'
11667 ;;
cristy18304f92009-11-22 15:48:26 +000011668 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000011669 # Portland Group compilers (*not* the Pentium gcc compiler,
11670 # which looks to be a dead project)
11671 lt_prog_compiler_wl='-Wl,'
11672 lt_prog_compiler_pic='-fpic'
11673 lt_prog_compiler_static='-Bstatic'
11674 ;;
11675 ccc*)
11676 lt_prog_compiler_wl='-Wl,'
11677 # All Alpha code is PIC.
11678 lt_prog_compiler_static='-non_shared'
11679 ;;
cristy18304f92009-11-22 15:48:26 +000011680 xl*)
11681 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000011682 lt_prog_compiler_wl='-Wl,'
11683 lt_prog_compiler_pic='-qpic'
11684 lt_prog_compiler_static='-qstaticlink'
11685 ;;
11686 *)
11687 case `$CC -V 2>&1 | sed 5q` in
11688 *Sun\ C*)
11689 # Sun C 5.9
11690 lt_prog_compiler_pic='-KPIC'
11691 lt_prog_compiler_static='-Bstatic'
11692 lt_prog_compiler_wl='-Wl,'
11693 ;;
cristy18304f92009-11-22 15:48:26 +000011694 *Sun\ F*)
11695 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11696 lt_prog_compiler_pic='-KPIC'
11697 lt_prog_compiler_static='-Bstatic'
11698 lt_prog_compiler_wl=''
11699 ;;
cristy3ed852e2009-09-05 21:47:34 +000011700 esac
11701 ;;
11702 esac
11703 ;;
11704
11705 newsos6)
11706 lt_prog_compiler_pic='-KPIC'
11707 lt_prog_compiler_static='-Bstatic'
11708 ;;
11709
11710 *nto* | *qnx*)
11711 # QNX uses GNU C++, but need to define -shared option too, otherwise
11712 # it will coredump.
11713 lt_prog_compiler_pic='-fPIC -shared'
11714 ;;
11715
11716 osf3* | osf4* | osf5*)
11717 lt_prog_compiler_wl='-Wl,'
11718 # All OSF/1 code is PIC.
11719 lt_prog_compiler_static='-non_shared'
11720 ;;
11721
11722 rdos*)
11723 lt_prog_compiler_static='-non_shared'
11724 ;;
11725
11726 solaris*)
11727 lt_prog_compiler_pic='-KPIC'
11728 lt_prog_compiler_static='-Bstatic'
11729 case $cc_basename in
11730 f77* | f90* | f95*)
11731 lt_prog_compiler_wl='-Qoption ld ';;
11732 *)
11733 lt_prog_compiler_wl='-Wl,';;
11734 esac
11735 ;;
11736
11737 sunos4*)
11738 lt_prog_compiler_wl='-Qoption ld '
11739 lt_prog_compiler_pic='-PIC'
11740 lt_prog_compiler_static='-Bstatic'
11741 ;;
11742
11743 sysv4 | sysv4.2uw2* | sysv4.3*)
11744 lt_prog_compiler_wl='-Wl,'
11745 lt_prog_compiler_pic='-KPIC'
11746 lt_prog_compiler_static='-Bstatic'
11747 ;;
11748
11749 sysv4*MP*)
11750 if test -d /usr/nec ;then
11751 lt_prog_compiler_pic='-Kconform_pic'
11752 lt_prog_compiler_static='-Bstatic'
11753 fi
11754 ;;
11755
11756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11757 lt_prog_compiler_wl='-Wl,'
11758 lt_prog_compiler_pic='-KPIC'
11759 lt_prog_compiler_static='-Bstatic'
11760 ;;
11761
11762 unicos*)
11763 lt_prog_compiler_wl='-Wl,'
11764 lt_prog_compiler_can_build_shared=no
11765 ;;
11766
11767 uts4*)
11768 lt_prog_compiler_pic='-pic'
11769 lt_prog_compiler_static='-Bstatic'
11770 ;;
11771
11772 *)
11773 lt_prog_compiler_can_build_shared=no
11774 ;;
11775 esac
11776 fi
11777
11778case $host_os in
11779 # For platforms which do not support PIC, -DPIC is meaningless:
11780 *djgpp*)
11781 lt_prog_compiler_pic=
11782 ;;
11783 *)
11784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11785 ;;
11786esac
cristy8b350f62009-11-15 23:12:43 +000011787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000011788$as_echo "$lt_prog_compiler_pic" >&6; }
11789
11790
11791
11792
11793
11794
11795#
11796# Check to make sure the PIC flag actually works.
11797#
11798if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000011799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011800$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011801if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011802 $as_echo_n "(cached) " >&6
11803else
11804 lt_cv_prog_compiler_pic_works=no
11805 ac_outfile=conftest.$ac_objext
11806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11807 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11808 # Insert the option either (1) after the last *FLAGS variable, or
11809 # (2) before a word containing "conftest.", or (3) at the end.
11810 # Note that $ac_compile itself does not contain backslashes and begins
11811 # with a dollar sign (not a hyphen), so the echo should work correctly.
11812 # The option is referenced via a variable to avoid confusing sed.
11813 lt_compile=`echo "$ac_compile" | $SED \
11814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000011817 (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011818 (eval "$lt_compile" 2>conftest.err)
11819 ac_status=$?
11820 cat conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000011821 echo "$as_me:11821: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011822 if (exit $ac_status) && test -s "$ac_outfile"; then
11823 # The compiler can only warn and ignore the option if not recognized
11824 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000011825 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11828 lt_cv_prog_compiler_pic_works=yes
11829 fi
11830 fi
11831 $RM conftest*
11832
11833fi
cristy8b350f62009-11-15 23:12:43 +000011834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011835$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11836
11837if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11838 case $lt_prog_compiler_pic in
11839 "" | " "*) ;;
11840 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11841 esac
11842else
11843 lt_prog_compiler_pic=
11844 lt_prog_compiler_can_build_shared=no
11845fi
11846
11847fi
11848
11849
11850
11851
11852
11853
11854#
11855# Check to make sure the static flag actually works.
11856#
11857wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000011858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011859$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011860if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011861 $as_echo_n "(cached) " >&6
11862else
11863 lt_cv_prog_compiler_static_works=no
11864 save_LDFLAGS="$LDFLAGS"
11865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11868 # The linker can only warn and ignore the option if not recognized
11869 # So say no if there are warnings
11870 if test -s conftest.err; then
11871 # Append any errors to the config.log.
11872 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000011873 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11875 if diff conftest.exp conftest.er2 >/dev/null; then
11876 lt_cv_prog_compiler_static_works=yes
11877 fi
11878 else
11879 lt_cv_prog_compiler_static_works=yes
11880 fi
11881 fi
11882 $RM -r conftest*
11883 LDFLAGS="$save_LDFLAGS"
11884
11885fi
cristy8b350f62009-11-15 23:12:43 +000011886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000011887$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11888
11889if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11890 :
11891else
11892 lt_prog_compiler_static=
11893fi
11894
11895
11896
11897
11898
11899
11900
cristy8b350f62009-11-15 23:12:43 +000011901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011903if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 lt_cv_prog_compiler_c_o=no
11907 $RM -r conftest 2>/dev/null
11908 mkdir conftest
11909 cd conftest
11910 mkdir out
11911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11912
11913 lt_compiler_flag="-o out/conftest2.$ac_objext"
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 lt_compile=`echo "$ac_compile" | $SED \
11919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11921 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000011922 (eval echo "\"\$as_me:11922: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011923 (eval "$lt_compile" 2>out/conftest.err)
11924 ac_status=$?
11925 cat out/conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000011926 echo "$as_me:11926: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011927 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11928 then
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000011931 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_c_o=yes
11935 fi
11936 fi
11937 chmod u+w . 2>&5
11938 $RM conftest*
11939 # SGI C++ compiler will create directory out/ii_files/ for
11940 # template instantiation
11941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11942 $RM out/* && rmdir out
11943 cd ..
11944 $RM -r conftest
11945 $RM conftest*
11946
11947fi
cristy8b350f62009-11-15 23:12:43 +000011948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000011949$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11950
11951
11952
11953
11954
11955
cristy8b350f62009-11-15 23:12:43 +000011956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011957$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011958if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011959 $as_echo_n "(cached) " >&6
11960else
11961 lt_cv_prog_compiler_c_o=no
11962 $RM -r conftest 2>/dev/null
11963 mkdir conftest
11964 cd conftest
11965 mkdir out
11966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11967
11968 lt_compiler_flag="-o out/conftest2.$ac_objext"
11969 # Insert the option either (1) after the last *FLAGS variable, or
11970 # (2) before a word containing "conftest.", or (3) at the end.
11971 # Note that $ac_compile itself does not contain backslashes and begins
11972 # with a dollar sign (not a hyphen), so the echo should work correctly.
11973 lt_compile=`echo "$ac_compile" | $SED \
11974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11976 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000011977 (eval echo "\"\$as_me:11977: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000011978 (eval "$lt_compile" 2>out/conftest.err)
11979 ac_status=$?
11980 cat out/conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000011981 echo "$as_me:11981: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000011982 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11983 then
11984 # The compiler can only warn and ignore the option if not recognized
11985 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000011986 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000011987 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11988 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11989 lt_cv_prog_compiler_c_o=yes
11990 fi
11991 fi
11992 chmod u+w . 2>&5
11993 $RM conftest*
11994 # SGI C++ compiler will create directory out/ii_files/ for
11995 # template instantiation
11996 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11997 $RM out/* && rmdir out
11998 cd ..
11999 $RM -r conftest
12000 $RM conftest*
12001
12002fi
cristy8b350f62009-11-15 23:12:43 +000012003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012004$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12005
12006
12007
12008
12009hard_links="nottested"
12010if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12011 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000012012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012013$as_echo_n "checking if we can lock with hard links... " >&6; }
12014 hard_links=yes
12015 $RM conftest*
12016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12017 touch conftest.a
12018 ln conftest.a conftest.b 2>&5 || hard_links=no
12019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000012020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000012021$as_echo "$hard_links" >&6; }
12022 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000012023 { $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 +000012024$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12025 need_locks=warn
12026 fi
12027else
12028 need_locks=no
12029fi
12030
12031
12032
12033
12034
12035
cristy8b350f62009-11-15 23:12:43 +000012036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000012037$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12038
12039 runpath_var=
12040 allow_undefined_flag=
12041 always_export_symbols=no
12042 archive_cmds=
12043 archive_expsym_cmds=
12044 compiler_needs_object=no
12045 enable_shared_with_static_runtimes=no
12046 export_dynamic_flag_spec=
12047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12048 hardcode_automatic=no
12049 hardcode_direct=no
12050 hardcode_direct_absolute=no
12051 hardcode_libdir_flag_spec=
12052 hardcode_libdir_flag_spec_ld=
12053 hardcode_libdir_separator=
12054 hardcode_minus_L=no
12055 hardcode_shlibpath_var=unsupported
12056 inherit_rpath=no
12057 link_all_deplibs=unknown
12058 module_cmds=
12059 module_expsym_cmds=
12060 old_archive_from_new_cmds=
12061 old_archive_from_expsyms_cmds=
12062 thread_safe_flag_spec=
12063 whole_archive_flag_spec=
12064 # include_expsyms should be a list of space-separated symbols to be *always*
12065 # included in the symbol list
12066 include_expsyms=
12067 # exclude_expsyms can be an extended regexp of symbols to exclude
12068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12070 # as well as any symbol that contains `d'.
12071 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12073 # platforms (ab)use it in PIC code, but their linkers get confused if
12074 # the symbol is explicitly referenced. Since portable code cannot
12075 # rely on this symbol name, it's probably fine to never include it in
12076 # preloaded symbol tables.
12077 # Exclude shared library initialization/finalization symbols.
12078 extract_expsyms_cmds=
12079
12080 case $host_os in
12081 cygwin* | mingw* | pw32* | cegcc*)
12082 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12083 # When not using gcc, we currently assume that we are using
12084 # Microsoft Visual C++.
12085 if test "$GCC" != yes; then
12086 with_gnu_ld=no
12087 fi
12088 ;;
12089 interix*)
12090 # we just hope/assume this is gcc and not c89 (= MSVC++)
12091 with_gnu_ld=yes
12092 ;;
12093 openbsd*)
12094 with_gnu_ld=no
12095 ;;
12096 esac
12097
12098 ld_shlibs=yes
12099 if test "$with_gnu_ld" = yes; then
12100 # If archive_cmds runs LD, not CC, wlarc should be empty
12101 wlarc='${wl}'
12102
12103 # Set some defaults for GNU ld with shared library support. These
12104 # are reset later if shared libraries are not supported. Putting them
12105 # here allows them to be overridden if necessary.
12106 runpath_var=LD_RUN_PATH
12107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12108 export_dynamic_flag_spec='${wl}--export-dynamic'
12109 # ancient GNU ld didn't support --whole-archive et. al.
12110 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12111 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12112 else
12113 whole_archive_flag_spec=
12114 fi
12115 supports_anon_versioning=no
12116 case `$LD -v 2>&1` in
12117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12120 *\ 2.11.*) ;; # other 2.11 versions
12121 *) supports_anon_versioning=yes ;;
12122 esac
12123
12124 # See if GNU ld supports shared libraries.
12125 case $host_os in
12126 aix[3-9]*)
12127 # On AIX/PPC, the GNU linker is very broken
12128 if test "$host_cpu" != ia64; then
12129 ld_shlibs=no
12130 cat <<_LT_EOF 1>&2
12131
cristy18304f92009-11-22 15:48:26 +000012132*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000012133*** to be unable to reliably create shared libraries on AIX.
12134*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000012135*** really care for shared libraries, you may want to modify your PATH
12136*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000012137
12138_LT_EOF
12139 fi
12140 ;;
12141
12142 amigaos*)
12143 case $host_cpu in
12144 powerpc)
12145 # see comment about AmigaOS4 .so support
12146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12147 archive_expsym_cmds=''
12148 ;;
12149 m68k)
12150 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)'
12151 hardcode_libdir_flag_spec='-L$libdir'
12152 hardcode_minus_L=yes
12153 ;;
12154 esac
12155 ;;
12156
12157 beos*)
12158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12159 allow_undefined_flag=unsupported
12160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12161 # support --undefined. This deserves some investigation. FIXME
12162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12163 else
12164 ld_shlibs=no
12165 fi
12166 ;;
12167
12168 cygwin* | mingw* | pw32* | cegcc*)
12169 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12170 # as there is no search path for DLLs.
12171 hardcode_libdir_flag_spec='-L$libdir'
12172 allow_undefined_flag=unsupported
12173 always_export_symbols=no
12174 enable_shared_with_static_runtimes=yes
12175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12176
12177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12179 # If the export-symbols file already is a .def file (1st line
12180 # is EXPORTS), use it as is; otherwise, prepend...
12181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12182 cp $export_symbols $output_objdir/$soname.def;
12183 else
12184 echo EXPORTS > $output_objdir/$soname.def;
12185 cat $export_symbols >> $output_objdir/$soname.def;
12186 fi~
12187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12188 else
12189 ld_shlibs=no
12190 fi
12191 ;;
12192
12193 interix[3-9]*)
12194 hardcode_direct=no
12195 hardcode_shlibpath_var=no
12196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12197 export_dynamic_flag_spec='${wl}-E'
12198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12199 # Instead, shared libraries are loaded at an image base (0x10000000 by
12200 # default) and relocated if they conflict, which is a slow very memory
12201 # consuming and fragmenting process. To avoid this, we pick a random,
12202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12205 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'
12206 ;;
12207
cristy18304f92009-11-22 15:48:26 +000012208 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012209 tmp_diet=no
12210 if test "$host_os" = linux-dietlibc; then
12211 case $cc_basename in
12212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12213 esac
12214 fi
12215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12216 && test "$tmp_diet" = no
12217 then
12218 tmp_addflag=
12219 tmp_sharedflag='-shared'
12220 case $cc_basename,$host_cpu in
12221 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000012222 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 +000012223 tmp_addflag=' $pic_flag'
12224 ;;
cristy18304f92009-11-22 15:48:26 +000012225 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12226 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 +000012227 tmp_addflag=' $pic_flag -Mnomain' ;;
12228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12229 tmp_addflag=' -i_dynamic' ;;
12230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12231 tmp_addflag=' -i_dynamic -nofor_main' ;;
12232 ifc* | ifort*) # Intel Fortran compiler
12233 tmp_addflag=' -nofor_main' ;;
12234 lf95*) # Lahey Fortran 8.1
12235 whole_archive_flag_spec=
12236 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000012237 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000012238 tmp_sharedflag='-qmkshrobj'
12239 tmp_addflag= ;;
12240 esac
12241 case `$CC -V 2>&1 | sed 5q` in
12242 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000012243 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 +000012244 compiler_needs_object=yes
12245 tmp_sharedflag='-G' ;;
12246 *Sun\ F*) # Sun Fortran 8.3
12247 tmp_sharedflag='-G' ;;
12248 esac
12249 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250
12251 if test "x$supports_anon_versioning" = xyes; then
12252 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12254 echo "local: *; };" >> $output_objdir/$libname.ver~
12255 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12256 fi
12257
12258 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000012259 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000012260 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12261 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12262 hardcode_libdir_flag_spec=
12263 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12264 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12265 if test "x$supports_anon_versioning" = xyes; then
12266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12268 echo "local: *; };" >> $output_objdir/$libname.ver~
12269 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12270 fi
12271 ;;
12272 esac
12273 else
12274 ld_shlibs=no
12275 fi
12276 ;;
12277
12278 netbsd*)
12279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12281 wlarc=
12282 else
12283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12285 fi
12286 ;;
12287
12288 solaris*)
12289 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12290 ld_shlibs=no
12291 cat <<_LT_EOF 1>&2
12292
12293*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12294*** create shared libraries on Solaris systems. Therefore, libtool
12295*** is disabling shared libraries support. We urge you to upgrade GNU
12296*** binutils to release 2.9.1 or newer. Another option is to modify
12297*** your PATH or compiler configuration so that the native linker is
12298*** used, and then restart.
12299
12300_LT_EOF
12301 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12304 else
12305 ld_shlibs=no
12306 fi
12307 ;;
12308
12309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12310 case `$LD -v 2>&1` in
12311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12312 ld_shlibs=no
12313 cat <<_LT_EOF 1>&2
12314
12315*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12316*** reliably create shared libraries on SCO systems. Therefore, libtool
12317*** is disabling shared libraries support. We urge you to upgrade GNU
12318*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12319*** your PATH or compiler configuration so that the native linker is
12320*** used, and then restart.
12321
12322_LT_EOF
12323 ;;
12324 *)
12325 # For security reasons, it is highly recommended that you always
12326 # use absolute paths for naming shared libraries, and exclude the
12327 # DT_RUNPATH tag from executables and libraries. But doing so
12328 # requires that you compile everything twice, which is a pain.
12329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12333 else
12334 ld_shlibs=no
12335 fi
12336 ;;
12337 esac
12338 ;;
12339
12340 sunos4*)
12341 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12342 wlarc=
12343 hardcode_direct=yes
12344 hardcode_shlibpath_var=no
12345 ;;
12346
12347 *)
12348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12351 else
12352 ld_shlibs=no
12353 fi
12354 ;;
12355 esac
12356
12357 if test "$ld_shlibs" = no; then
12358 runpath_var=
12359 hardcode_libdir_flag_spec=
12360 export_dynamic_flag_spec=
12361 whole_archive_flag_spec=
12362 fi
12363 else
12364 # PORTME fill in a description of your system's linker (not GNU ld)
12365 case $host_os in
12366 aix3*)
12367 allow_undefined_flag=unsupported
12368 always_export_symbols=yes
12369 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'
12370 # Note: this linker hardcodes the directories in LIBPATH if there
12371 # are no directories specified by -L.
12372 hardcode_minus_L=yes
12373 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12374 # Neither direct hardcoding nor static linking is supported with a
12375 # broken collect2.
12376 hardcode_direct=unsupported
12377 fi
12378 ;;
12379
12380 aix[4-9]*)
12381 if test "$host_cpu" = ia64; then
12382 # On IA64, the linker does run time linking by default, so we don't
12383 # have to do anything special.
12384 aix_use_runtimelinking=no
12385 exp_sym_flag='-Bexport'
12386 no_entry_flag=""
12387 else
12388 # If we're using GNU nm, then we don't want the "-C" option.
12389 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000012391 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 +000012392 else
12393 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'
12394 fi
12395 aix_use_runtimelinking=no
12396
12397 # Test if we are trying to use run time linking or normal
12398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12399 # need to do runtime linking.
12400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12401 for ld_flag in $LDFLAGS; do
12402 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12403 aix_use_runtimelinking=yes
12404 break
12405 fi
12406 done
12407 ;;
12408 esac
12409
12410 exp_sym_flag='-bexport'
12411 no_entry_flag='-bnoentry'
12412 fi
12413
12414 # When large executables or shared objects are built, AIX ld can
12415 # have problems creating the table of contents. If linking a library
12416 # or program results in "error TOC overflow" add -mminimal-toc to
12417 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12418 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12419
12420 archive_cmds=''
12421 hardcode_direct=yes
12422 hardcode_direct_absolute=yes
12423 hardcode_libdir_separator=':'
12424 link_all_deplibs=yes
12425 file_list_spec='${wl}-f,'
12426
12427 if test "$GCC" = yes; then
12428 case $host_os in aix4.[012]|aix4.[012].*)
12429 # We only want to do this on AIX 4.2 and lower, the check
12430 # below for broken collect2 doesn't work under 4.3+
12431 collect2name=`${CC} -print-prog-name=collect2`
12432 if test -f "$collect2name" &&
12433 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12434 then
12435 # We have reworked collect2
12436 :
12437 else
12438 # We have old collect2
12439 hardcode_direct=unsupported
12440 # It fails to find uninstalled libraries when the uninstalled
12441 # path is not listed in the libpath. Setting hardcode_minus_L
12442 # to unsupported forces relinking
12443 hardcode_minus_L=yes
12444 hardcode_libdir_flag_spec='-L$libdir'
12445 hardcode_libdir_separator=
12446 fi
12447 ;;
12448 esac
12449 shared_flag='-shared'
12450 if test "$aix_use_runtimelinking" = yes; then
12451 shared_flag="$shared_flag "'${wl}-G'
12452 fi
12453 else
12454 # not using gcc
12455 if test "$host_cpu" = ia64; then
12456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12457 # chokes on -Wl,-G. The following line is correct:
12458 shared_flag='-G'
12459 else
12460 if test "$aix_use_runtimelinking" = yes; then
12461 shared_flag='${wl}-G'
12462 else
12463 shared_flag='${wl}-bM:SRE'
12464 fi
12465 fi
12466 fi
12467
12468 export_dynamic_flag_spec='${wl}-bexpall'
12469 # It seems that -bexpall does not export symbols beginning with
12470 # underscore (_), so it is better to generate a list of symbols to export.
12471 always_export_symbols=yes
12472 if test "$aix_use_runtimelinking" = yes; then
12473 # Warning - without using the other runtime loading flags (-brtl),
12474 # -berok will link without error, but may produce a broken library.
12475 allow_undefined_flag='-berok'
12476 # Determine the default libpath from the value encoded in an
12477 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012479/* end confdefs.h. */
12480
12481int
12482main ()
12483{
12484
12485 ;
12486 return 0;
12487}
12488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012489if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012490
12491lt_aix_libpath_sed='
12492 /Import File Strings/,/^$/ {
12493 /^0/ {
12494 s/^0 *\(.*\)$/\1/
12495 p
12496 }
12497 }'
12498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12499# Check for a 64-bit object if we didn't find anything.
12500if test -z "$aix_libpath"; then
12501 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12502fi
cristy3ed852e2009-09-05 21:47:34 +000012503fi
cristy8b350f62009-11-15 23:12:43 +000012504rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12507
12508 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000012509 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 +000012510 else
12511 if test "$host_cpu" = ia64; then
12512 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12513 allow_undefined_flag="-z nodefs"
12514 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"
12515 else
12516 # Determine the default libpath from the value encoded in an
12517 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000012518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012519/* end confdefs.h. */
12520
12521int
12522main ()
12523{
12524
12525 ;
12526 return 0;
12527}
12528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012530
12531lt_aix_libpath_sed='
12532 /Import File Strings/,/^$/ {
12533 /^0/ {
12534 s/^0 *\(.*\)$/\1/
12535 p
12536 }
12537 }'
12538aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12539# Check for a 64-bit object if we didn't find anything.
12540if test -z "$aix_libpath"; then
12541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12542fi
cristy3ed852e2009-09-05 21:47:34 +000012543fi
cristy8b350f62009-11-15 23:12:43 +000012544rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012546if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12547
12548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12549 # Warning - without using the other run time loading flags,
12550 # -berok will link without error, but may produce a broken library.
12551 no_undefined_flag=' ${wl}-bernotok'
12552 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000012553 # Exported symbols can be pulled into shared objects from archives
12554 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000012555 archive_cmds_need_lc=yes
12556 # This is similar to how AIX traditionally builds its shared libraries.
12557 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'
12558 fi
12559 fi
12560 ;;
12561
12562 amigaos*)
12563 case $host_cpu in
12564 powerpc)
12565 # see comment about AmigaOS4 .so support
12566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12567 archive_expsym_cmds=''
12568 ;;
12569 m68k)
12570 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)'
12571 hardcode_libdir_flag_spec='-L$libdir'
12572 hardcode_minus_L=yes
12573 ;;
12574 esac
12575 ;;
12576
12577 bsdi[45]*)
12578 export_dynamic_flag_spec=-rdynamic
12579 ;;
12580
12581 cygwin* | mingw* | pw32* | cegcc*)
12582 # When not using gcc, we currently assume that we are using
12583 # Microsoft Visual C++.
12584 # hardcode_libdir_flag_spec is actually meaningless, as there is
12585 # no search path for DLLs.
12586 hardcode_libdir_flag_spec=' '
12587 allow_undefined_flag=unsupported
12588 # Tell ltmain to make .lib files, not .a files.
12589 libext=lib
12590 # Tell ltmain to make .dll files, not .so files.
12591 shrext_cmds=".dll"
12592 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000012593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000012594 # The linker will automatically build a .lib file if we build a DLL.
12595 old_archive_from_new_cmds='true'
12596 # FIXME: Should let the user specify the lib program.
12597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12598 fix_srcfile_path='`cygpath -w "$srcfile"`'
12599 enable_shared_with_static_runtimes=yes
12600 ;;
12601
12602 darwin* | rhapsody*)
12603
12604
12605 archive_cmds_need_lc=no
12606 hardcode_direct=no
12607 hardcode_automatic=yes
12608 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000012609 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000012610 link_all_deplibs=yes
12611 allow_undefined_flag="$_lt_dar_allow_undefined"
12612 case $cc_basename in
12613 ifort*) _lt_dar_can_shared=yes ;;
12614 *) _lt_dar_can_shared=$GCC ;;
12615 esac
12616 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000012617 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000012618 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12619 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12620 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}"
12621 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}"
12622
12623 else
12624 ld_shlibs=no
12625 fi
12626
12627 ;;
12628
12629 dgux*)
12630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12631 hardcode_libdir_flag_spec='-L$libdir'
12632 hardcode_shlibpath_var=no
12633 ;;
12634
12635 freebsd1*)
12636 ld_shlibs=no
12637 ;;
12638
12639 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12640 # support. Future versions do this automatically, but an explicit c++rt0.o
12641 # does not break anything, and helps significantly (at the cost of a little
12642 # extra space).
12643 freebsd2.2*)
12644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12645 hardcode_libdir_flag_spec='-R$libdir'
12646 hardcode_direct=yes
12647 hardcode_shlibpath_var=no
12648 ;;
12649
12650 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12651 freebsd2*)
12652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12653 hardcode_direct=yes
12654 hardcode_minus_L=yes
12655 hardcode_shlibpath_var=no
12656 ;;
12657
12658 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12659 freebsd* | dragonfly*)
12660 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12661 hardcode_libdir_flag_spec='-R$libdir'
12662 hardcode_direct=yes
12663 hardcode_shlibpath_var=no
12664 ;;
12665
12666 hpux9*)
12667 if test "$GCC" = yes; then
12668 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'
12669 else
12670 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'
12671 fi
12672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12673 hardcode_libdir_separator=:
12674 hardcode_direct=yes
12675
12676 # hardcode_minus_L: Not really in the search PATH,
12677 # but as the default location of the library.
12678 hardcode_minus_L=yes
12679 export_dynamic_flag_spec='${wl}-E'
12680 ;;
12681
12682 hpux10*)
cristy18304f92009-11-22 15:48:26 +000012683 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012684 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12685 else
12686 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12687 fi
12688 if test "$with_gnu_ld" = no; then
12689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12690 hardcode_libdir_flag_spec_ld='+b $libdir'
12691 hardcode_libdir_separator=:
12692 hardcode_direct=yes
12693 hardcode_direct_absolute=yes
12694 export_dynamic_flag_spec='${wl}-E'
12695 # hardcode_minus_L: Not really in the search PATH,
12696 # but as the default location of the library.
12697 hardcode_minus_L=yes
12698 fi
12699 ;;
12700
12701 hpux11*)
cristy18304f92009-11-22 15:48:26 +000012702 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000012703 case $host_cpu in
12704 hppa*64*)
12705 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 ;;
12707 ia64*)
12708 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12709 ;;
12710 *)
12711 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12712 ;;
12713 esac
12714 else
12715 case $host_cpu in
12716 hppa*64*)
12717 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12718 ;;
12719 ia64*)
12720 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12721 ;;
12722 *)
cristy18304f92009-11-22 15:48:26 +000012723 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 +000012724 ;;
12725 esac
12726 fi
12727 if test "$with_gnu_ld" = no; then
12728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12729 hardcode_libdir_separator=:
12730
12731 case $host_cpu in
12732 hppa*64*|ia64*)
12733 hardcode_direct=no
12734 hardcode_shlibpath_var=no
12735 ;;
12736 *)
12737 hardcode_direct=yes
12738 hardcode_direct_absolute=yes
12739 export_dynamic_flag_spec='${wl}-E'
12740
12741 # hardcode_minus_L: Not really in the search PATH,
12742 # but as the default location of the library.
12743 hardcode_minus_L=yes
12744 ;;
12745 esac
12746 fi
12747 ;;
12748
12749 irix5* | irix6* | nonstopux*)
12750 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012751 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 +000012752 # Try to use the -exported_symbol ld option, if it does not
12753 # work, assume that -exports_file does not work either and
12754 # implicitly export all symbols.
12755 save_LDFLAGS="$LDFLAGS"
12756 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000012757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012759int foo(void) {}
12760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012761if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000012762 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 +000012763
cristy3ed852e2009-09-05 21:47:34 +000012764fi
cristy8b350f62009-11-15 23:12:43 +000012765rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012767 LDFLAGS="$save_LDFLAGS"
12768 else
cristy18304f92009-11-22 15:48:26 +000012769 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'
12770 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 +000012771 fi
12772 archive_cmds_need_lc='no'
12773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12774 hardcode_libdir_separator=:
12775 inherit_rpath=yes
12776 link_all_deplibs=yes
12777 ;;
12778
12779 netbsd*)
12780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12782 else
12783 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12784 fi
12785 hardcode_libdir_flag_spec='-R$libdir'
12786 hardcode_direct=yes
12787 hardcode_shlibpath_var=no
12788 ;;
12789
12790 newsos6)
12791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12792 hardcode_direct=yes
12793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12794 hardcode_libdir_separator=:
12795 hardcode_shlibpath_var=no
12796 ;;
12797
12798 *nto* | *qnx*)
12799 ;;
12800
12801 openbsd*)
12802 if test -f /usr/libexec/ld.so; then
12803 hardcode_direct=yes
12804 hardcode_shlibpath_var=no
12805 hardcode_direct_absolute=yes
12806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12808 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12810 export_dynamic_flag_spec='${wl}-E'
12811 else
12812 case $host_os in
12813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12815 hardcode_libdir_flag_spec='-R$libdir'
12816 ;;
12817 *)
12818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12820 ;;
12821 esac
12822 fi
12823 else
12824 ld_shlibs=no
12825 fi
12826 ;;
12827
12828 os2*)
12829 hardcode_libdir_flag_spec='-L$libdir'
12830 hardcode_minus_L=yes
12831 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000012832 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 +000012833 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12834 ;;
12835
12836 osf3*)
12837 if test "$GCC" = yes; then
12838 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012839 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 +000012840 else
12841 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012842 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 +000012843 fi
12844 archive_cmds_need_lc='no'
12845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12846 hardcode_libdir_separator=:
12847 ;;
12848
12849 osf4* | osf5*) # as osf3* with the addition of -msym flag
12850 if test "$GCC" = yes; then
12851 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000012852 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 +000012853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12854 else
12855 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000012856 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 +000012857 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 +000012858 $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 +000012859
12860 # Both c and cxx compiler support -rpath directly
12861 hardcode_libdir_flag_spec='-rpath $libdir'
12862 fi
12863 archive_cmds_need_lc='no'
12864 hardcode_libdir_separator=:
12865 ;;
12866
12867 solaris*)
12868 no_undefined_flag=' -z defs'
12869 if test "$GCC" = yes; then
12870 wlarc='${wl}'
12871 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12873 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12874 else
12875 case `$CC -V 2>&1` in
12876 *"Compilers 5.0"*)
12877 wlarc=''
12878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12881 ;;
12882 *)
12883 wlarc='${wl}'
12884 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12885 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12886 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12887 ;;
12888 esac
12889 fi
12890 hardcode_libdir_flag_spec='-R$libdir'
12891 hardcode_shlibpath_var=no
12892 case $host_os in
12893 solaris2.[0-5] | solaris2.[0-5].*) ;;
12894 *)
12895 # The compiler driver will combine and reorder linker options,
12896 # but understands `-z linker_flag'. GCC discards it without `$wl',
12897 # but is careful enough not to reorder.
12898 # Supported since Solaris 2.6 (maybe 2.5.1?)
12899 if test "$GCC" = yes; then
12900 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12901 else
12902 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12903 fi
12904 ;;
12905 esac
12906 link_all_deplibs=yes
12907 ;;
12908
12909 sunos4*)
12910 if test "x$host_vendor" = xsequent; then
12911 # Use $CC to link under sequent, because it throws in some extra .o
12912 # files that make .init and .fini sections work.
12913 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12914 else
12915 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12916 fi
12917 hardcode_libdir_flag_spec='-L$libdir'
12918 hardcode_direct=yes
12919 hardcode_minus_L=yes
12920 hardcode_shlibpath_var=no
12921 ;;
12922
12923 sysv4)
12924 case $host_vendor in
12925 sni)
12926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_direct=yes # is this really true???
12928 ;;
12929 siemens)
12930 ## LD is ld it makes a PLAMLIB
12931 ## CC just makes a GrossModule.
12932 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12933 reload_cmds='$CC -r -o $output$reload_objs'
12934 hardcode_direct=no
12935 ;;
12936 motorola)
12937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12938 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12939 ;;
12940 esac
12941 runpath_var='LD_RUN_PATH'
12942 hardcode_shlibpath_var=no
12943 ;;
12944
12945 sysv4.3*)
12946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12947 hardcode_shlibpath_var=no
12948 export_dynamic_flag_spec='-Bexport'
12949 ;;
12950
12951 sysv4*MP*)
12952 if test -d /usr/nec; then
12953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12954 hardcode_shlibpath_var=no
12955 runpath_var=LD_RUN_PATH
12956 hardcode_runpath_var=yes
12957 ld_shlibs=yes
12958 fi
12959 ;;
12960
12961 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12962 no_undefined_flag='${wl}-z,text'
12963 archive_cmds_need_lc=no
12964 hardcode_shlibpath_var=no
12965 runpath_var='LD_RUN_PATH'
12966
12967 if test "$GCC" = yes; then
12968 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12969 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12970 else
12971 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12972 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12973 fi
12974 ;;
12975
12976 sysv5* | sco3.2v5* | sco5v6*)
12977 # Note: We can NOT use -z defs as we might desire, because we do not
12978 # link with -lc, and that would cause any symbols used from libc to
12979 # always be unresolved, which means just about no library would
12980 # ever link correctly. If we're not using GNU ld we use -z text
12981 # though, which does catch some bad symbols but isn't as heavy-handed
12982 # as -z defs.
12983 no_undefined_flag='${wl}-z,text'
12984 allow_undefined_flag='${wl}-z,nodefs'
12985 archive_cmds_need_lc=no
12986 hardcode_shlibpath_var=no
12987 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12988 hardcode_libdir_separator=':'
12989 link_all_deplibs=yes
12990 export_dynamic_flag_spec='${wl}-Bexport'
12991 runpath_var='LD_RUN_PATH'
12992
12993 if test "$GCC" = yes; then
12994 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12996 else
12997 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12998 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12999 fi
13000 ;;
13001
13002 uts4*)
13003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13004 hardcode_libdir_flag_spec='-L$libdir'
13005 hardcode_shlibpath_var=no
13006 ;;
13007
13008 *)
13009 ld_shlibs=no
13010 ;;
13011 esac
13012
13013 if test x$host_vendor = xsni; then
13014 case $host in
13015 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13016 export_dynamic_flag_spec='${wl}-Blargedynsym'
13017 ;;
13018 esac
13019 fi
13020 fi
13021
cristy8b350f62009-11-15 23:12:43 +000013022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000013023$as_echo "$ld_shlibs" >&6; }
13024test "$ld_shlibs" = no && can_build_shared=no
13025
13026with_gnu_ld=$with_gnu_ld
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042#
13043# Do we need to explicitly link libc?
13044#
13045case "x$archive_cmds_need_lc" in
13046x|xyes)
13047 # Assume -lc should be added
13048 archive_cmds_need_lc=yes
13049
13050 if test "$enable_shared" = yes && test "$GCC" = yes; then
13051 case $archive_cmds in
13052 *'~'*)
13053 # FIXME: we may have to deal with multi-command sequences.
13054 ;;
13055 '$CC '*)
13056 # Test whether the compiler implicitly links with -lc since on some
13057 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13058 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000013059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000013060$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000013061 $RM conftest*
13062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013063
cristy18304f92009-11-22 15:48:26 +000013064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000013065 (eval $ac_compile) 2>&5
13066 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000013069 soname=conftest
13070 lib=conftest
13071 libobjs=conftest.$ac_objext
13072 deplibs=
13073 wl=$lt_prog_compiler_wl
13074 pic_flag=$lt_prog_compiler_pic
13075 compiler_flags=-v
13076 linker_flags=-v
13077 verstring=
13078 output_objdir=.
13079 libname=conftest
13080 lt_save_allow_undefined_flag=$allow_undefined_flag
13081 allow_undefined_flag=
13082 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 +000013083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13084 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000013085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000013087 then
13088 archive_cmds_need_lc=no
13089 else
13090 archive_cmds_need_lc=yes
13091 fi
13092 allow_undefined_flag=$lt_save_allow_undefined_flag
13093 else
13094 cat conftest.err 1>&5
13095 fi
13096 $RM conftest*
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13098$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000013099 ;;
13100 esac
13101 fi
13102 ;;
13103esac
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
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
cristy8b350f62009-11-15 23:12:43 +000013261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000013262$as_echo_n "checking dynamic linker characteristics... " >&6; }
13263
13264if test "$GCC" = yes; then
13265 case $host_os in
13266 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13267 *) lt_awk_arg="/^libraries:/" ;;
13268 esac
cristy18304f92009-11-22 15:48:26 +000013269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13270 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000013271 # if the path contains ";" then we assume it to be the separator
13272 # otherwise default to the standard path separator (i.e. ":") - it is
13273 # assumed that no part of a normal pathname contains ";" but that should
13274 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000013275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13276 else
13277 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13278 fi
cristy3ed852e2009-09-05 21:47:34 +000013279 # Ok, now we have the path, separated by spaces, we can step through it
13280 # and add multilib dir if necessary.
13281 lt_tmp_lt_search_path_spec=
13282 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13283 for lt_sys_path in $lt_search_path_spec; do
13284 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13285 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13286 else
13287 test -d "$lt_sys_path" && \
13288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13289 fi
13290 done
cristy18304f92009-11-22 15:48:26 +000013291 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000013292BEGIN {RS=" "; FS="/|\n";} {
13293 lt_foo="";
13294 lt_count=0;
13295 for (lt_i = NF; lt_i > 0; lt_i--) {
13296 if ($lt_i != "" && $lt_i != ".") {
13297 if ($lt_i == "..") {
13298 lt_count++;
13299 } else {
13300 if (lt_count == 0) {
13301 lt_foo="/" $lt_i lt_foo;
13302 } else {
13303 lt_count--;
13304 }
13305 }
13306 }
13307 }
13308 if (lt_foo != "") { lt_freq[lt_foo]++; }
13309 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13310}'`
cristy18304f92009-11-22 15:48:26 +000013311 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000013312else
13313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13314fi
13315library_names_spec=
13316libname_spec='lib$name'
13317soname_spec=
13318shrext_cmds=".so"
13319postinstall_cmds=
13320postuninstall_cmds=
13321finish_cmds=
13322finish_eval=
13323shlibpath_var=
13324shlibpath_overrides_runpath=unknown
13325version_type=none
13326dynamic_linker="$host_os ld.so"
13327sys_lib_dlsearch_path_spec="/lib /usr/lib"
13328need_lib_prefix=unknown
13329hardcode_into_libs=no
13330
13331# when you set need_version to no, make sure it does not cause -set_version
13332# flags to be left without arguments
13333need_version=unknown
13334
13335case $host_os in
13336aix3*)
13337 version_type=linux
13338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13339 shlibpath_var=LIBPATH
13340
13341 # AIX 3 has no versioning support, so we append a major version to the name.
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 ;;
13344
13345aix[4-9]*)
13346 version_type=linux
13347 need_lib_prefix=no
13348 need_version=no
13349 hardcode_into_libs=yes
13350 if test "$host_cpu" = ia64; then
13351 # AIX 5 supports IA64
13352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 else
13355 # With GCC up to 2.95.x, collect2 would create an import file
13356 # for dependence libraries. The import file would start with
13357 # the line `#! .'. This would cause the generated library to
13358 # depend on `.', always an invalid library. This was fixed in
13359 # development snapshots of GCC prior to 3.0.
13360 case $host_os in
13361 aix4 | aix4.[01] | aix4.[01].*)
13362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13363 echo ' yes '
13364 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13365 :
13366 else
13367 can_build_shared=no
13368 fi
13369 ;;
13370 esac
13371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13372 # soname into executable. Probably we can add versioning support to
13373 # collect2, so additional links can be useful in future.
13374 if test "$aix_use_runtimelinking" = yes; then
13375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13376 # instead of lib<name>.a to let people know that these are not
13377 # typical AIX shared libraries.
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13379 else
13380 # We preserve .a as extension for shared libraries through AIX4.2
13381 # and later when we are not doing run time linking.
13382 library_names_spec='${libname}${release}.a $libname.a'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 fi
13385 shlibpath_var=LIBPATH
13386 fi
13387 ;;
13388
13389amigaos*)
13390 case $host_cpu in
13391 powerpc)
13392 # Since July 2007 AmigaOS4 officially supports .so libraries.
13393 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395 ;;
13396 m68k)
13397 library_names_spec='$libname.ixlibrary $libname.a'
13398 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000013399 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 +000013400 ;;
13401 esac
13402 ;;
13403
13404beos*)
13405 library_names_spec='${libname}${shared_ext}'
13406 dynamic_linker="$host_os ld.so"
13407 shlibpath_var=LIBRARY_PATH
13408 ;;
13409
13410bsdi[45]*)
13411 version_type=linux
13412 need_version=no
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13418 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13419 # the default ld.so.conf also contains /usr/contrib/lib and
13420 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13421 # libtool to hard-code these into programs
13422 ;;
13423
13424cygwin* | mingw* | pw32* | cegcc*)
13425 version_type=windows
13426 shrext_cmds=".dll"
13427 need_version=no
13428 need_lib_prefix=no
13429
13430 case $GCC,$host_os in
13431 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13432 library_names_spec='$libname.dll.a'
13433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13434 postinstall_cmds='base_file=`basename \${file}`~
13435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13436 dldir=$destdir/`dirname \$dlpath`~
13437 test -d \$dldir || mkdir -p \$dldir~
13438 $install_prog $dir/$dlname \$dldir/$dlname~
13439 chmod a+x \$dldir/$dlname~
13440 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13441 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13442 fi'
13443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13444 dlpath=$dir/\$dldll~
13445 $RM \$dlpath'
13446 shlibpath_overrides_runpath=yes
13447
13448 case $host_os in
13449 cygwin*)
13450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013452 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000013453 ;;
13454 mingw* | cegcc*)
13455 # MinGW DLLs use traditional 'lib' prefix
13456 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000013457 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13458 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13459 # It is most probably a Windows format PATH printed by
13460 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13461 # path with ; separators, and with drive letters. We can handle the
13462 # drive letters (cygwin fileutils understands them), so leave them,
13463 # especially as we might pass files found there to a mingw objdump,
13464 # which wouldn't understand a cygwinified path. Ahh.
13465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13466 else
13467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13468 fi
cristy3ed852e2009-09-05 21:47:34 +000013469 ;;
13470 pw32*)
13471 # pw32 DLLs use 'pw' prefix rather than 'lib'
13472 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13473 ;;
13474 esac
13475 ;;
13476
13477 *)
13478 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13479 ;;
13480 esac
13481 dynamic_linker='Win32 ld.exe'
13482 # FIXME: first we should search . and the directory the executable is in
13483 shlibpath_var=PATH
13484 ;;
13485
13486darwin* | rhapsody*)
13487 dynamic_linker="$host_os dyld"
13488 version_type=darwin
13489 need_lib_prefix=no
13490 need_version=no
13491 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13492 soname_spec='${libname}${release}${major}$shared_ext'
13493 shlibpath_overrides_runpath=yes
13494 shlibpath_var=DYLD_LIBRARY_PATH
13495 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13496
13497 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13498 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13499 ;;
13500
13501dgux*)
13502 version_type=linux
13503 need_lib_prefix=no
13504 need_version=no
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13506 soname_spec='${libname}${release}${shared_ext}$major'
13507 shlibpath_var=LD_LIBRARY_PATH
13508 ;;
13509
13510freebsd1*)
13511 dynamic_linker=no
13512 ;;
13513
13514freebsd* | dragonfly*)
13515 # DragonFly does not have aout. When/if they implement a new
13516 # versioning mechanism, adjust this.
13517 if test -x /usr/bin/objformat; then
13518 objformat=`/usr/bin/objformat`
13519 else
13520 case $host_os in
13521 freebsd[123]*) objformat=aout ;;
13522 *) objformat=elf ;;
13523 esac
13524 fi
13525 version_type=freebsd-$objformat
13526 case $version_type in
13527 freebsd-elf*)
13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13529 need_version=no
13530 need_lib_prefix=no
13531 ;;
13532 freebsd-*)
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13534 need_version=yes
13535 ;;
13536 esac
13537 shlibpath_var=LD_LIBRARY_PATH
13538 case $host_os in
13539 freebsd2*)
13540 shlibpath_overrides_runpath=yes
13541 ;;
13542 freebsd3.[01]* | freebsdelf3.[01]*)
13543 shlibpath_overrides_runpath=yes
13544 hardcode_into_libs=yes
13545 ;;
13546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13548 shlibpath_overrides_runpath=no
13549 hardcode_into_libs=yes
13550 ;;
13551 *) # from 4.6 on, and DragonFly
13552 shlibpath_overrides_runpath=yes
13553 hardcode_into_libs=yes
13554 ;;
13555 esac
13556 ;;
13557
13558gnu*)
13559 version_type=linux
13560 need_lib_prefix=no
13561 need_version=no
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 shlibpath_var=LD_LIBRARY_PATH
13565 hardcode_into_libs=yes
13566 ;;
13567
13568hpux9* | hpux10* | hpux11*)
13569 # Give a soname corresponding to the major version so that dld.sl refuses to
13570 # link against other versions.
13571 version_type=sunos
13572 need_lib_prefix=no
13573 need_version=no
13574 case $host_cpu in
13575 ia64*)
13576 shrext_cmds='.so'
13577 hardcode_into_libs=yes
13578 dynamic_linker="$host_os dld.so"
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13582 soname_spec='${libname}${release}${shared_ext}$major'
13583 if test "X$HPUX_IA64_MODE" = X32; then
13584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13585 else
13586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13587 fi
13588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13589 ;;
13590 hppa*64*)
13591 shrext_cmds='.sl'
13592 hardcode_into_libs=yes
13593 dynamic_linker="$host_os dld.sl"
13594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13597 soname_spec='${libname}${release}${shared_ext}$major'
13598 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13600 ;;
13601 *)
13602 shrext_cmds='.sl'
13603 dynamic_linker="$host_os dld.sl"
13604 shlibpath_var=SHLIB_PATH
13605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
13609 esac
cristy18304f92009-11-22 15:48:26 +000013610 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000013611 postinstall_cmds='chmod 555 $lib'
13612 ;;
13613
13614interix[3-9]*)
13615 version_type=linux
13616 need_lib_prefix=no
13617 need_version=no
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13619 soname_spec='${libname}${release}${shared_ext}$major'
13620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 shlibpath_overrides_runpath=no
13623 hardcode_into_libs=yes
13624 ;;
13625
13626irix5* | irix6* | nonstopux*)
13627 case $host_os in
13628 nonstopux*) version_type=nonstopux ;;
13629 *)
13630 if test "$lt_cv_prog_gnu_ld" = yes; then
13631 version_type=linux
13632 else
13633 version_type=irix
13634 fi ;;
13635 esac
13636 need_lib_prefix=no
13637 need_version=no
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13640 case $host_os in
13641 irix5* | nonstopux*)
13642 libsuff= shlibsuff=
13643 ;;
13644 *)
13645 case $LD in # libtool.m4 will add one of these switches to LD
13646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13647 libsuff= shlibsuff= libmagic=32-bit;;
13648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13649 libsuff=32 shlibsuff=N32 libmagic=N32;;
13650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13652 *) libsuff= shlibsuff= libmagic=never-match;;
13653 esac
13654 ;;
13655 esac
13656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13657 shlibpath_overrides_runpath=no
13658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13660 hardcode_into_libs=yes
13661 ;;
13662
13663# No shared lib support for Linux oldld, aout, or coff.
13664linux*oldld* | linux*aout* | linux*coff*)
13665 dynamic_linker=no
13666 ;;
13667
13668# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000013669linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013670 version_type=linux
13671 need_lib_prefix=no
13672 need_version=no
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13674 soname_spec='${libname}${release}${shared_ext}$major'
13675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=no
13678 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000013679 save_LDFLAGS=$LDFLAGS
13680 save_libdir=$libdir
13681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013684/* end confdefs.h. */
13685
13686int
13687main ()
13688{
13689
13690 ;
13691 return 0;
13692}
13693_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013694if ac_fn_c_try_link "$LINENO"; then :
13695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000013696 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000013697fi
cristy3ed852e2009-09-05 21:47:34 +000013698fi
cristy8b350f62009-11-15 23:12:43 +000013699rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000013701 LDFLAGS=$save_LDFLAGS
13702 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000013703
13704 # This implies no fast_install, which is unacceptable.
13705 # Some rework will be needed to allow for fast_install
13706 # before this can be enabled.
13707 hardcode_into_libs=yes
13708
cristy679ed8e2009-12-05 02:37:41 +000013709 # Add ABI-specific directories to the system library path.
13710 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13711
cristy3ed852e2009-09-05 21:47:34 +000013712 # Append ld.so.conf contents to the search path
13713 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000013714 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 +000013715 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000013716 fi
13717
13718 # We used to test for /lib/ld.so.1 and disable shared libraries on
13719 # powerpc, because MkLinux only supported shared libraries with the
13720 # GNU dynamic linker. Since this was broken with cross compilers,
13721 # most powerpc-linux boxes support dynamic linking these days and
13722 # people can always --disable-shared, the test was removed, and we
13723 # assume the GNU/Linux dynamic linker is in use.
13724 dynamic_linker='GNU/Linux ld.so'
13725 ;;
13726
13727netbsd*)
13728 version_type=sunos
13729 need_lib_prefix=no
13730 need_version=no
13731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13734 dynamic_linker='NetBSD (a.out) ld.so'
13735 else
13736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13737 soname_spec='${libname}${release}${shared_ext}$major'
13738 dynamic_linker='NetBSD ld.elf_so'
13739 fi
13740 shlibpath_var=LD_LIBRARY_PATH
13741 shlibpath_overrides_runpath=yes
13742 hardcode_into_libs=yes
13743 ;;
13744
13745newsos6)
13746 version_type=linux
13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748 shlibpath_var=LD_LIBRARY_PATH
13749 shlibpath_overrides_runpath=yes
13750 ;;
13751
13752*nto* | *qnx*)
13753 version_type=qnx
13754 need_lib_prefix=no
13755 need_version=no
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757 soname_spec='${libname}${release}${shared_ext}$major'
13758 shlibpath_var=LD_LIBRARY_PATH
13759 shlibpath_overrides_runpath=no
13760 hardcode_into_libs=yes
13761 dynamic_linker='ldqnx.so'
13762 ;;
13763
13764openbsd*)
13765 version_type=sunos
13766 sys_lib_dlsearch_path_spec="/usr/lib"
13767 need_lib_prefix=no
13768 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13769 case $host_os in
13770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13771 *) need_version=no ;;
13772 esac
13773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13775 shlibpath_var=LD_LIBRARY_PATH
13776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13777 case $host_os in
13778 openbsd2.[89] | openbsd2.[89].*)
13779 shlibpath_overrides_runpath=no
13780 ;;
13781 *)
13782 shlibpath_overrides_runpath=yes
13783 ;;
13784 esac
13785 else
13786 shlibpath_overrides_runpath=yes
13787 fi
13788 ;;
13789
13790os2*)
13791 libname_spec='$name'
13792 shrext_cmds=".dll"
13793 need_lib_prefix=no
13794 library_names_spec='$libname${shared_ext} $libname.a'
13795 dynamic_linker='OS/2 ld.exe'
13796 shlibpath_var=LIBPATH
13797 ;;
13798
13799osf3* | osf4* | osf5*)
13800 version_type=osf
13801 need_lib_prefix=no
13802 need_version=no
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805 shlibpath_var=LD_LIBRARY_PATH
13806 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13807 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13808 ;;
13809
13810rdos*)
13811 dynamic_linker=no
13812 ;;
13813
13814solaris*)
13815 version_type=linux
13816 need_lib_prefix=no
13817 need_version=no
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819 soname_spec='${libname}${release}${shared_ext}$major'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 shlibpath_overrides_runpath=yes
13822 hardcode_into_libs=yes
13823 # ldd complains unless libraries are executable
13824 postinstall_cmds='chmod +x $lib'
13825 ;;
13826
13827sunos4*)
13828 version_type=sunos
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13831 shlibpath_var=LD_LIBRARY_PATH
13832 shlibpath_overrides_runpath=yes
13833 if test "$with_gnu_ld" = yes; then
13834 need_lib_prefix=no
13835 fi
13836 need_version=yes
13837 ;;
13838
13839sysv4 | sysv4.3*)
13840 version_type=linux
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13842 soname_spec='${libname}${release}${shared_ext}$major'
13843 shlibpath_var=LD_LIBRARY_PATH
13844 case $host_vendor in
13845 sni)
13846 shlibpath_overrides_runpath=no
13847 need_lib_prefix=no
13848 runpath_var=LD_RUN_PATH
13849 ;;
13850 siemens)
13851 need_lib_prefix=no
13852 ;;
13853 motorola)
13854 need_lib_prefix=no
13855 need_version=no
13856 shlibpath_overrides_runpath=no
13857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13858 ;;
13859 esac
13860 ;;
13861
13862sysv4*MP*)
13863 if test -d /usr/nec ;then
13864 version_type=linux
13865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13866 soname_spec='$libname${shared_ext}.$major'
13867 shlibpath_var=LD_LIBRARY_PATH
13868 fi
13869 ;;
13870
13871sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13872 version_type=freebsd-elf
13873 need_lib_prefix=no
13874 need_version=no
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13876 soname_spec='${libname}${release}${shared_ext}$major'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 shlibpath_overrides_runpath=yes
13879 hardcode_into_libs=yes
13880 if test "$with_gnu_ld" = yes; then
13881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13882 else
13883 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13884 case $host_os in
13885 sco3.2v5*)
13886 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13887 ;;
13888 esac
13889 fi
13890 sys_lib_dlsearch_path_spec='/usr/lib'
13891 ;;
13892
13893tpf*)
13894 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13895 version_type=linux
13896 need_lib_prefix=no
13897 need_version=no
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=no
13901 hardcode_into_libs=yes
13902 ;;
13903
13904uts4*)
13905 version_type=linux
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 ;;
13910
13911*)
13912 dynamic_linker=no
13913 ;;
13914esac
cristy8b350f62009-11-15 23:12:43 +000013915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000013916$as_echo "$dynamic_linker" >&6; }
13917test "$dynamic_linker" = no && can_build_shared=no
13918
13919variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13920if test "$GCC" = yes; then
13921 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13922fi
13923
13924if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13925 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13926fi
13927if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13928 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13929fi
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
cristy8b350f62009-11-15 23:12:43 +000014017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014018$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14019hardcode_action=
14020if test -n "$hardcode_libdir_flag_spec" ||
14021 test -n "$runpath_var" ||
14022 test "X$hardcode_automatic" = "Xyes" ; then
14023
14024 # We can hardcode non-existent directories.
14025 if test "$hardcode_direct" != no &&
14026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14027 # have to relink, otherwise we might link with an installed library
14028 # when we should be linking with a yet-to-be-installed one
14029 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14030 test "$hardcode_minus_L" != no; then
14031 # Linking always hardcodes the temporary library directory.
14032 hardcode_action=relink
14033 else
14034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14035 hardcode_action=immediate
14036 fi
14037else
14038 # We cannot hardcode anything, or else we can only hardcode existing
14039 # directories.
14040 hardcode_action=unsupported
14041fi
cristy8b350f62009-11-15 23:12:43 +000014042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000014043$as_echo "$hardcode_action" >&6; }
14044
14045if test "$hardcode_action" = relink ||
14046 test "$inherit_rpath" = yes; then
14047 # Fast installation is not supported
14048 enable_fast_install=no
14049elif test "$shlibpath_overrides_runpath" = yes ||
14050 test "$enable_shared" = no; then
14051 # Fast installation is not necessary
14052 enable_fast_install=needless
14053fi
14054
14055
14056
14057
14058
14059
14060 if test "x$enable_dlopen" != xyes; then
14061 enable_dlopen=unknown
14062 enable_dlopen_self=unknown
14063 enable_dlopen_self_static=unknown
14064else
14065 lt_cv_dlopen=no
14066 lt_cv_dlopen_libs=
14067
14068 case $host_os in
14069 beos*)
14070 lt_cv_dlopen="load_add_on"
14071 lt_cv_dlopen_libs=
14072 lt_cv_dlopen_self=yes
14073 ;;
14074
14075 mingw* | pw32* | cegcc*)
14076 lt_cv_dlopen="LoadLibrary"
14077 lt_cv_dlopen_libs=
14078 ;;
14079
14080 cygwin*)
14081 lt_cv_dlopen="dlopen"
14082 lt_cv_dlopen_libs=
14083 ;;
14084
14085 darwin*)
14086 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000014087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014088$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014089if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014090 $as_echo_n "(cached) " >&6
14091else
14092 ac_check_lib_save_LIBS=$LIBS
14093LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014095/* end confdefs.h. */
14096
14097/* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14100#ifdef __cplusplus
14101extern "C"
14102#endif
14103char dlopen ();
14104int
14105main ()
14106{
14107return dlopen ();
14108 ;
14109 return 0;
14110}
14111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014112if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014113 ac_cv_lib_dl_dlopen=yes
14114else
cristy8b350f62009-11-15 23:12:43 +000014115 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014116fi
cristy8b350f62009-11-15 23:12:43 +000014117rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014119LIBS=$ac_check_lib_save_LIBS
14120fi
cristy8b350f62009-11-15 23:12:43 +000014121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014122$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014123if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014124 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14125else
14126
14127 lt_cv_dlopen="dyld"
14128 lt_cv_dlopen_libs=
14129 lt_cv_dlopen_self=yes
14130
14131fi
14132
14133 ;;
14134
14135 *)
cristy8b350f62009-11-15 23:12:43 +000014136 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14137if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014138 lt_cv_dlopen="shl_load"
14139else
cristy8b350f62009-11-15 23:12:43 +000014140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014141$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014142if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014143 $as_echo_n "(cached) " >&6
14144else
14145 ac_check_lib_save_LIBS=$LIBS
14146LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014148/* end confdefs.h. */
14149
14150/* Override any GCC internal prototype to avoid an error.
14151 Use char because int might match the return type of a GCC
14152 builtin and then its argument prototype would still apply. */
14153#ifdef __cplusplus
14154extern "C"
14155#endif
14156char shl_load ();
14157int
14158main ()
14159{
14160return shl_load ();
14161 ;
14162 return 0;
14163}
14164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014166 ac_cv_lib_dld_shl_load=yes
14167else
cristy8b350f62009-11-15 23:12:43 +000014168 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000014169fi
cristy8b350f62009-11-15 23:12:43 +000014170rm -f core conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014172LIBS=$ac_check_lib_save_LIBS
14173fi
cristy8b350f62009-11-15 23:12:43 +000014174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000014175$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014176if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014177 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14178else
cristy8b350f62009-11-15 23:12:43 +000014179 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14180if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014181 lt_cv_dlopen="dlopen"
14182else
cristy8b350f62009-11-15 23:12:43 +000014183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000014184$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014185if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014186 $as_echo_n "(cached) " >&6
14187else
14188 ac_check_lib_save_LIBS=$LIBS
14189LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014191/* end confdefs.h. */
14192
14193/* Override any GCC internal prototype to avoid an error.
14194 Use char because int might match the return type of a GCC
14195 builtin and then its argument prototype would still apply. */
14196#ifdef __cplusplus
14197extern "C"
14198#endif
14199char dlopen ();
14200int
14201main ()
14202{
14203return dlopen ();
14204 ;
14205 return 0;
14206}
14207_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014208if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014209 ac_cv_lib_dl_dlopen=yes
14210else
cristy8b350f62009-11-15 23:12:43 +000014211 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014212fi
cristy8b350f62009-11-15 23:12:43 +000014213rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014215LIBS=$ac_check_lib_save_LIBS
14216fi
cristy8b350f62009-11-15 23:12:43 +000014217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014218$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014219if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14221else
cristy8b350f62009-11-15 23:12:43 +000014222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014223$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014224if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014225 $as_echo_n "(cached) " >&6
14226else
14227 ac_check_lib_save_LIBS=$LIBS
14228LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014230/* end confdefs.h. */
14231
14232/* Override any GCC internal prototype to avoid an error.
14233 Use char because int might match the return type of a GCC
14234 builtin and then its argument prototype would still apply. */
14235#ifdef __cplusplus
14236extern "C"
14237#endif
14238char dlopen ();
14239int
14240main ()
14241{
14242return dlopen ();
14243 ;
14244 return 0;
14245}
14246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014248 ac_cv_lib_svld_dlopen=yes
14249else
cristy8b350f62009-11-15 23:12:43 +000014250 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000014251fi
cristy8b350f62009-11-15 23:12:43 +000014252rm -f core conftest.err conftest.$ac_objext \
14253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014254LIBS=$ac_check_lib_save_LIBS
14255fi
cristy8b350f62009-11-15 23:12:43 +000014256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000014257$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014258if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14260else
cristy8b350f62009-11-15 23:12:43 +000014261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014262$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014263if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014264 $as_echo_n "(cached) " >&6
14265else
14266 ac_check_lib_save_LIBS=$LIBS
14267LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000014268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014269/* end confdefs.h. */
14270
14271/* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14274#ifdef __cplusplus
14275extern "C"
14276#endif
14277char dld_link ();
14278int
14279main ()
14280{
14281return dld_link ();
14282 ;
14283 return 0;
14284}
14285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014287 ac_cv_lib_dld_dld_link=yes
14288else
cristy8b350f62009-11-15 23:12:43 +000014289 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000014290fi
cristy8b350f62009-11-15 23:12:43 +000014291rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014293LIBS=$ac_check_lib_save_LIBS
14294fi
cristy8b350f62009-11-15 23:12:43 +000014295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000014296$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000014297if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000014298 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14299fi
14300
14301
14302fi
14303
14304
14305fi
14306
14307
14308fi
14309
14310
14311fi
14312
14313
14314fi
14315
14316 ;;
14317 esac
14318
14319 if test "x$lt_cv_dlopen" != xno; then
14320 enable_dlopen=yes
14321 else
14322 enable_dlopen=no
14323 fi
14324
14325 case $lt_cv_dlopen in
14326 dlopen)
14327 save_CPPFLAGS="$CPPFLAGS"
14328 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14329
14330 save_LDFLAGS="$LDFLAGS"
14331 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14332
14333 save_LIBS="$LIBS"
14334 LIBS="$lt_cv_dlopen_libs $LIBS"
14335
cristy8b350f62009-11-15 23:12:43 +000014336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014337$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014338if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014339 $as_echo_n "(cached) " >&6
14340else
14341 if test "$cross_compiling" = yes; then :
14342 lt_cv_dlopen_self=cross
14343else
14344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14345 lt_status=$lt_dlunknown
14346 cat > conftest.$ac_ext <<_LT_EOF
cristy43596fe2010-01-21 16:46:08 +000014347#line 14347 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014348#include "confdefs.h"
14349
14350#if HAVE_DLFCN_H
14351#include <dlfcn.h>
14352#endif
14353
14354#include <stdio.h>
14355
14356#ifdef RTLD_GLOBAL
14357# define LT_DLGLOBAL RTLD_GLOBAL
14358#else
14359# ifdef DL_GLOBAL
14360# define LT_DLGLOBAL DL_GLOBAL
14361# else
14362# define LT_DLGLOBAL 0
14363# endif
14364#endif
14365
14366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14367 find out it does not work in some platform. */
14368#ifndef LT_DLLAZY_OR_NOW
14369# ifdef RTLD_LAZY
14370# define LT_DLLAZY_OR_NOW RTLD_LAZY
14371# else
14372# ifdef DL_LAZY
14373# define LT_DLLAZY_OR_NOW DL_LAZY
14374# else
14375# ifdef RTLD_NOW
14376# define LT_DLLAZY_OR_NOW RTLD_NOW
14377# else
14378# ifdef DL_NOW
14379# define LT_DLLAZY_OR_NOW DL_NOW
14380# else
14381# define LT_DLLAZY_OR_NOW 0
14382# endif
14383# endif
14384# endif
14385# endif
14386#endif
14387
cristy18304f92009-11-22 15:48:26 +000014388void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014389int main ()
14390{
14391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14392 int status = $lt_dlunknown;
14393
14394 if (self)
14395 {
14396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014398 /* dlclose (self); */
14399 }
14400 else
14401 puts (dlerror ());
14402
14403 return status;
14404}
14405_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014407 (eval $ac_link) 2>&5
14408 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014411 (./conftest; exit; ) >&5 2>/dev/null
14412 lt_status=$?
14413 case x$lt_status in
14414 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14415 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14416 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14417 esac
14418 else :
14419 # compilation failed
14420 lt_cv_dlopen_self=no
14421 fi
14422fi
14423rm -fr conftest*
14424
14425
14426fi
cristy8b350f62009-11-15 23:12:43 +000014427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000014428$as_echo "$lt_cv_dlopen_self" >&6; }
14429
14430 if test "x$lt_cv_dlopen_self" = xyes; then
14431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000014432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000014433$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014434if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014435 $as_echo_n "(cached) " >&6
14436else
14437 if test "$cross_compiling" = yes; then :
14438 lt_cv_dlopen_self_static=cross
14439else
14440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14441 lt_status=$lt_dlunknown
14442 cat > conftest.$ac_ext <<_LT_EOF
cristy43596fe2010-01-21 16:46:08 +000014443#line 14443 "configure"
cristy3ed852e2009-09-05 21:47:34 +000014444#include "confdefs.h"
14445
14446#if HAVE_DLFCN_H
14447#include <dlfcn.h>
14448#endif
14449
14450#include <stdio.h>
14451
14452#ifdef RTLD_GLOBAL
14453# define LT_DLGLOBAL RTLD_GLOBAL
14454#else
14455# ifdef DL_GLOBAL
14456# define LT_DLGLOBAL DL_GLOBAL
14457# else
14458# define LT_DLGLOBAL 0
14459# endif
14460#endif
14461
14462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14463 find out it does not work in some platform. */
14464#ifndef LT_DLLAZY_OR_NOW
14465# ifdef RTLD_LAZY
14466# define LT_DLLAZY_OR_NOW RTLD_LAZY
14467# else
14468# ifdef DL_LAZY
14469# define LT_DLLAZY_OR_NOW DL_LAZY
14470# else
14471# ifdef RTLD_NOW
14472# define LT_DLLAZY_OR_NOW RTLD_NOW
14473# else
14474# ifdef DL_NOW
14475# define LT_DLLAZY_OR_NOW DL_NOW
14476# else
14477# define LT_DLLAZY_OR_NOW 0
14478# endif
14479# endif
14480# endif
14481# endif
14482#endif
14483
cristy18304f92009-11-22 15:48:26 +000014484void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000014485int main ()
14486{
14487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14488 int status = $lt_dlunknown;
14489
14490 if (self)
14491 {
14492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000014493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000014494 /* dlclose (self); */
14495 }
14496 else
14497 puts (dlerror ());
14498
14499 return status;
14500}
14501_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000014502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014503 (eval $ac_link) 2>&5
14504 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000014507 (./conftest; exit; ) >&5 2>/dev/null
14508 lt_status=$?
14509 case x$lt_status in
14510 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14511 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14512 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14513 esac
14514 else :
14515 # compilation failed
14516 lt_cv_dlopen_self_static=no
14517 fi
14518fi
14519rm -fr conftest*
14520
14521
14522fi
cristy8b350f62009-11-15 23:12:43 +000014523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014524$as_echo "$lt_cv_dlopen_self_static" >&6; }
14525 fi
14526
14527 CPPFLAGS="$save_CPPFLAGS"
14528 LDFLAGS="$save_LDFLAGS"
14529 LIBS="$save_LIBS"
14530 ;;
14531 esac
14532
14533 case $lt_cv_dlopen_self in
14534 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14535 *) enable_dlopen_self=unknown ;;
14536 esac
14537
14538 case $lt_cv_dlopen_self_static in
14539 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14540 *) enable_dlopen_self_static=unknown ;;
14541 esac
14542fi
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560striplib=
14561old_striplib=
cristy8b350f62009-11-15 23:12:43 +000014562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000014563$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14564if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14566 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000014567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014568$as_echo "yes" >&6; }
14569else
14570# FIXME - insert some real tests, host_os isn't really good enough
14571 case $host_os in
14572 darwin*)
14573 if test -n "$STRIP" ; then
14574 striplib="$STRIP -x"
14575 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000014576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000014577$as_echo "yes" >&6; }
14578 else
cristy8b350f62009-11-15 23:12:43 +000014579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014580$as_echo "no" >&6; }
14581 fi
14582 ;;
14583 *)
cristy8b350f62009-11-15 23:12:43 +000014584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014585$as_echo "no" >&6; }
14586 ;;
14587 esac
14588fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000014602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014603$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014605$as_echo "$can_build_shared" >&6; }
14606
cristy8b350f62009-11-15 23:12:43 +000014607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014608$as_echo_n "checking whether to build shared libraries... " >&6; }
14609 test "$can_build_shared" = "no" && enable_shared=no
14610
14611 # On AIX, shared libraries and static libraries use the same namespace, and
14612 # are all built from PIC.
14613 case $host_os in
14614 aix3*)
14615 test "$enable_shared" = yes && enable_static=no
14616 if test -n "$RANLIB"; then
14617 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14618 postinstall_cmds='$RANLIB $lib'
14619 fi
14620 ;;
14621
14622 aix[4-9]*)
14623 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14624 test "$enable_shared" = yes && enable_static=no
14625 fi
14626 ;;
14627 esac
cristy8b350f62009-11-15 23:12:43 +000014628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000014629$as_echo "$enable_shared" >&6; }
14630
cristy8b350f62009-11-15 23:12:43 +000014631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014632$as_echo_n "checking whether to build static libraries... " >&6; }
14633 # Make sure either enable_shared or enable_static is yes.
14634 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000014635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000014636$as_echo "$enable_static" >&6; }
14637
14638
14639
14640
14641fi
14642ac_ext=c
14643ac_cpp='$CPP $CPPFLAGS'
14644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646ac_compiler_gnu=$ac_cv_c_compiler_gnu
14647
14648CC="$lt_save_CC"
14649
14650
14651ac_ext=cpp
14652ac_cpp='$CXXCPP $CPPFLAGS'
14653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14656
14657archive_cmds_need_lc_CXX=no
14658allow_undefined_flag_CXX=
14659always_export_symbols_CXX=no
14660archive_expsym_cmds_CXX=
14661compiler_needs_object_CXX=no
14662export_dynamic_flag_spec_CXX=
14663hardcode_direct_CXX=no
14664hardcode_direct_absolute_CXX=no
14665hardcode_libdir_flag_spec_CXX=
14666hardcode_libdir_flag_spec_ld_CXX=
14667hardcode_libdir_separator_CXX=
14668hardcode_minus_L_CXX=no
14669hardcode_shlibpath_var_CXX=unsupported
14670hardcode_automatic_CXX=no
14671inherit_rpath_CXX=no
14672module_cmds_CXX=
14673module_expsym_cmds_CXX=
14674link_all_deplibs_CXX=unknown
14675old_archive_cmds_CXX=$old_archive_cmds
14676no_undefined_flag_CXX=
14677whole_archive_flag_spec_CXX=
14678enable_shared_with_static_runtimes_CXX=no
14679
14680# Source file extension for C++ test sources.
14681ac_ext=cpp
14682
14683# Object file extension for compiled C++ test sources.
14684objext=o
14685objext_CXX=$objext
14686
14687# No sense in running all these tests if we already determined that
14688# the CXX compiler isn't working. Some variables (like enable_shared)
14689# are currently assumed to apply to all compilers on this platform,
14690# and will be corrupted by setting them based on a non-working compiler.
14691if test "$_lt_caught_CXX_error" != yes; then
14692 # Code to be used in simple compile tests
14693 lt_simple_compile_test_code="int some_variable = 0;"
14694
14695 # Code to be used in simple link tests
14696 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14697
14698 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14699
14700
14701
14702
14703
14704
14705# If no C compiler was specified, use CC.
14706LTCC=${LTCC-"$CC"}
14707
14708# If no C compiler flags were specified, use CFLAGS.
14709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14710
14711# Allow CC to be a program name with arguments.
14712compiler=$CC
14713
14714
14715 # save warnings/boilerplate of simple test code
14716 ac_outfile=conftest.$ac_objext
14717echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14718eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14719_lt_compiler_boilerplate=`cat conftest.err`
14720$RM conftest*
14721
14722 ac_outfile=conftest.$ac_objext
14723echo "$lt_simple_link_test_code" >conftest.$ac_ext
14724eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14725_lt_linker_boilerplate=`cat conftest.err`
14726$RM -r conftest*
14727
14728
14729 # Allow CC to be a program name with arguments.
14730 lt_save_CC=$CC
14731 lt_save_LD=$LD
14732 lt_save_GCC=$GCC
14733 GCC=$GXX
14734 lt_save_with_gnu_ld=$with_gnu_ld
14735 lt_save_path_LD=$lt_cv_path_LD
14736 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14737 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14738 else
14739 $as_unset lt_cv_prog_gnu_ld
14740 fi
14741 if test -n "${lt_cv_path_LDCXX+set}"; then
14742 lt_cv_path_LD=$lt_cv_path_LDCXX
14743 else
14744 $as_unset lt_cv_path_LD
14745 fi
14746 test -z "${LDCXX+set}" || LD=$LDCXX
14747 CC=${CXX-"c++"}
14748 compiler=$CC
14749 compiler_CXX=$CC
14750 for cc_temp in $compiler""; do
14751 case $cc_temp in
14752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14754 \-*) ;;
14755 *) break;;
14756 esac
14757done
cristy18304f92009-11-22 15:48:26 +000014758cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000014759
14760
14761 if test -n "$compiler"; then
14762 # We don't want -fno-exception when compiling C++ code, so set the
14763 # no_builtin_flag separately
14764 if test "$GXX" = yes; then
14765 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14766 else
14767 lt_prog_compiler_no_builtin_flag_CXX=
14768 fi
14769
14770 if test "$GXX" = yes; then
14771 # Set up default GNU C++ configuration
14772
14773
14774
14775# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000014776if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14778else
14779 with_gnu_ld=no
14780fi
14781
14782ac_prog=ld
14783if test "$GCC" = yes; then
14784 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000014785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000014786$as_echo_n "checking for ld used by $CC... " >&6; }
14787 case $host in
14788 *-*-mingw*)
14789 # gcc leaves a trailing carriage return which upsets mingw
14790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14791 *)
14792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14793 esac
14794 case $ac_prog in
14795 # Accept absolute paths.
14796 [\\/]* | ?:[\\/]*)
14797 re_direlt='/[^/][^/]*/\.\./'
14798 # Canonicalize the pathname of ld
14799 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14800 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14801 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14802 done
14803 test -z "$LD" && LD="$ac_prog"
14804 ;;
14805 "")
14806 # If it fails, then pretend we aren't using GCC.
14807 ac_prog=ld
14808 ;;
14809 *)
14810 # If it is relative, then search for the first ld in PATH.
14811 with_gnu_ld=unknown
14812 ;;
14813 esac
14814elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000014815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014816$as_echo_n "checking for GNU ld... " >&6; }
14817else
cristy8b350f62009-11-15 23:12:43 +000014818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014819$as_echo_n "checking for non-GNU ld... " >&6; }
14820fi
cristy8b350f62009-11-15 23:12:43 +000014821if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014822 $as_echo_n "(cached) " >&6
14823else
14824 if test -z "$LD"; then
14825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14826 for ac_dir in $PATH; do
14827 IFS="$lt_save_ifs"
14828 test -z "$ac_dir" && ac_dir=.
14829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14830 lt_cv_path_LD="$ac_dir/$ac_prog"
14831 # Check to see if the program is GNU ld. I'd rather use --version,
14832 # but apparently some variants of GNU ld only accept -v.
14833 # Break only if it was the GNU/non-GNU ld that we prefer.
14834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14835 *GNU* | *'with BFD'*)
14836 test "$with_gnu_ld" != no && break
14837 ;;
14838 *)
14839 test "$with_gnu_ld" != yes && break
14840 ;;
14841 esac
14842 fi
14843 done
14844 IFS="$lt_save_ifs"
14845else
14846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14847fi
14848fi
14849
14850LD="$lt_cv_path_LD"
14851if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000014852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000014853$as_echo "$LD" >&6; }
14854else
cristy8b350f62009-11-15 23:12:43 +000014855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000014856$as_echo "no" >&6; }
14857fi
cristy8b350f62009-11-15 23:12:43 +000014858test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014860$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000014861if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000014862 $as_echo_n "(cached) " >&6
14863else
14864 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14865case `$LD -v 2>&1 </dev/null` in
14866*GNU* | *'with BFD'*)
14867 lt_cv_prog_gnu_ld=yes
14868 ;;
14869*)
14870 lt_cv_prog_gnu_ld=no
14871 ;;
14872esac
14873fi
cristy8b350f62009-11-15 23:12:43 +000014874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000014875$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14876with_gnu_ld=$lt_cv_prog_gnu_ld
14877
14878
14879
14880
14881
14882
14883
14884 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14885 # archiving commands below assume that GNU ld is being used.
14886 if test "$with_gnu_ld" = yes; then
14887 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 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'
14889
14890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14892
14893 # If archive_cmds runs LD, not CC, wlarc should be empty
14894 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14895 # investigate it a little bit more. (MM)
14896 wlarc='${wl}'
14897
14898 # ancient GNU ld didn't support --whole-archive et. al.
14899 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14900 $GREP 'no-whole-archive' > /dev/null; then
14901 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14902 else
14903 whole_archive_flag_spec_CXX=
14904 fi
14905 else
14906 with_gnu_ld=no
14907 wlarc=
14908
14909 # A generic and very simple default shared library creation
14910 # command for GNU C++ for the case where it uses the native
14911 # linker, instead of GNU ld. If possible, this setting should
14912 # overridden to take advantage of the native linker features on
14913 # the platform it is being used on.
14914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14915 fi
14916
14917 # Commands to make compiler produce verbose output that lists
14918 # what "hidden" libraries, object files and flags are used when
14919 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000014920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000014921
14922 else
14923 GXX=no
14924 with_gnu_ld=no
14925 wlarc=
14926 fi
14927
14928 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000014929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000014930$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14931 ld_shlibs_CXX=yes
14932 case $host_os in
14933 aix3*)
14934 # FIXME: insert proper C++ library support
14935 ld_shlibs_CXX=no
14936 ;;
14937 aix[4-9]*)
14938 if test "$host_cpu" = ia64; then
14939 # On IA64, the linker does run time linking by default, so we don't
14940 # have to do anything special.
14941 aix_use_runtimelinking=no
14942 exp_sym_flag='-Bexport'
14943 no_entry_flag=""
14944 else
14945 aix_use_runtimelinking=no
14946
14947 # Test if we are trying to use run time linking or normal
14948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14949 # need to do runtime linking.
14950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14951 for ld_flag in $LDFLAGS; do
14952 case $ld_flag in
14953 *-brtl*)
14954 aix_use_runtimelinking=yes
14955 break
14956 ;;
14957 esac
14958 done
14959 ;;
14960 esac
14961
14962 exp_sym_flag='-bexport'
14963 no_entry_flag='-bnoentry'
14964 fi
14965
14966 # When large executables or shared objects are built, AIX ld can
14967 # have problems creating the table of contents. If linking a library
14968 # or program results in "error TOC overflow" add -mminimal-toc to
14969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14971
14972 archive_cmds_CXX=''
14973 hardcode_direct_CXX=yes
14974 hardcode_direct_absolute_CXX=yes
14975 hardcode_libdir_separator_CXX=':'
14976 link_all_deplibs_CXX=yes
14977 file_list_spec_CXX='${wl}-f,'
14978
14979 if test "$GXX" = yes; then
14980 case $host_os in aix4.[012]|aix4.[012].*)
14981 # We only want to do this on AIX 4.2 and lower, the check
14982 # below for broken collect2 doesn't work under 4.3+
14983 collect2name=`${CC} -print-prog-name=collect2`
14984 if test -f "$collect2name" &&
14985 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14986 then
14987 # We have reworked collect2
14988 :
14989 else
14990 # We have old collect2
14991 hardcode_direct_CXX=unsupported
14992 # It fails to find uninstalled libraries when the uninstalled
14993 # path is not listed in the libpath. Setting hardcode_minus_L
14994 # to unsupported forces relinking
14995 hardcode_minus_L_CXX=yes
14996 hardcode_libdir_flag_spec_CXX='-L$libdir'
14997 hardcode_libdir_separator_CXX=
14998 fi
14999 esac
15000 shared_flag='-shared'
15001 if test "$aix_use_runtimelinking" = yes; then
15002 shared_flag="$shared_flag "'${wl}-G'
15003 fi
15004 else
15005 # not using gcc
15006 if test "$host_cpu" = ia64; then
15007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15008 # chokes on -Wl,-G. The following line is correct:
15009 shared_flag='-G'
15010 else
15011 if test "$aix_use_runtimelinking" = yes; then
15012 shared_flag='${wl}-G'
15013 else
15014 shared_flag='${wl}-bM:SRE'
15015 fi
15016 fi
15017 fi
15018
15019 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15020 # It seems that -bexpall does not export symbols beginning with
15021 # underscore (_), so it is better to generate a list of symbols to
15022 # export.
15023 always_export_symbols_CXX=yes
15024 if test "$aix_use_runtimelinking" = yes; then
15025 # Warning - without using the other runtime loading flags (-brtl),
15026 # -berok will link without error, but may produce a broken library.
15027 allow_undefined_flag_CXX='-berok'
15028 # Determine the default libpath from the value encoded in an empty
15029 # executable.
cristy8b350f62009-11-15 23:12:43 +000015030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015031/* end confdefs.h. */
15032
15033int
15034main ()
15035{
15036
15037 ;
15038 return 0;
15039}
15040_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015041if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015042
15043lt_aix_libpath_sed='
15044 /Import File Strings/,/^$/ {
15045 /^0/ {
15046 s/^0 *\(.*\)$/\1/
15047 p
15048 }
15049 }'
15050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15051# Check for a 64-bit object if we didn't find anything.
15052if test -z "$aix_libpath"; then
15053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15054fi
cristy3ed852e2009-09-05 21:47:34 +000015055fi
cristy8b350f62009-11-15 23:12:43 +000015056rm -f core conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15059
15060 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15061
cristy18304f92009-11-22 15:48:26 +000015062 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 +000015063 else
15064 if test "$host_cpu" = ia64; then
15065 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15066 allow_undefined_flag_CXX="-z nodefs"
15067 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"
15068 else
15069 # Determine the default libpath from the value encoded in an
15070 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000015071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015072/* end confdefs.h. */
15073
15074int
15075main ()
15076{
15077
15078 ;
15079 return 0;
15080}
15081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015082if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015083
15084lt_aix_libpath_sed='
15085 /Import File Strings/,/^$/ {
15086 /^0/ {
15087 s/^0 *\(.*\)$/\1/
15088 p
15089 }
15090 }'
15091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15092# Check for a 64-bit object if we didn't find anything.
15093if test -z "$aix_libpath"; then
15094 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095fi
cristy3ed852e2009-09-05 21:47:34 +000015096fi
cristy8b350f62009-11-15 23:12:43 +000015097rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015099if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15100
15101 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15102 # Warning - without using the other run time loading flags,
15103 # -berok will link without error, but may produce a broken library.
15104 no_undefined_flag_CXX=' ${wl}-bernotok'
15105 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000015106 # Exported symbols can be pulled into shared objects from archives
15107 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000015108 archive_cmds_need_lc_CXX=yes
15109 # This is similar to how AIX traditionally builds its shared
15110 # libraries.
15111 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'
15112 fi
15113 fi
15114 ;;
15115
15116 beos*)
15117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15118 allow_undefined_flag_CXX=unsupported
15119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15120 # support --undefined. This deserves some investigation. FIXME
15121 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15122 else
15123 ld_shlibs_CXX=no
15124 fi
15125 ;;
15126
15127 chorus*)
15128 case $cc_basename in
15129 *)
15130 # FIXME: insert proper C++ library support
15131 ld_shlibs_CXX=no
15132 ;;
15133 esac
15134 ;;
15135
15136 cygwin* | mingw* | pw32* | cegcc*)
15137 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15138 # as there is no search path for DLLs.
15139 hardcode_libdir_flag_spec_CXX='-L$libdir'
15140 allow_undefined_flag_CXX=unsupported
15141 always_export_symbols_CXX=no
15142 enable_shared_with_static_runtimes_CXX=yes
15143
15144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15145 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'
15146 # If the export-symbols file already is a .def file (1st line
15147 # is EXPORTS), use it as is; otherwise, prepend...
15148 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15149 cp $export_symbols $output_objdir/$soname.def;
15150 else
15151 echo EXPORTS > $output_objdir/$soname.def;
15152 cat $export_symbols >> $output_objdir/$soname.def;
15153 fi~
15154 $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'
15155 else
15156 ld_shlibs_CXX=no
15157 fi
15158 ;;
15159 darwin* | rhapsody*)
15160
15161
15162 archive_cmds_need_lc_CXX=no
15163 hardcode_direct_CXX=no
15164 hardcode_automatic_CXX=yes
15165 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000015166 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000015167 link_all_deplibs_CXX=yes
15168 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15169 case $cc_basename in
15170 ifort*) _lt_dar_can_shared=yes ;;
15171 *) _lt_dar_can_shared=$GCC ;;
15172 esac
15173 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000015174 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015175 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}"
15176 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15177 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}"
15178 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}"
15179 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15180 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}"
15181 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}"
15182 fi
15183
15184 else
15185 ld_shlibs_CXX=no
15186 fi
15187
15188 ;;
15189
15190 dgux*)
15191 case $cc_basename in
15192 ec++*)
15193 # FIXME: insert proper C++ library support
15194 ld_shlibs_CXX=no
15195 ;;
15196 ghcx*)
15197 # Green Hills C++ Compiler
15198 # FIXME: insert proper C++ library support
15199 ld_shlibs_CXX=no
15200 ;;
15201 *)
15202 # FIXME: insert proper C++ library support
15203 ld_shlibs_CXX=no
15204 ;;
15205 esac
15206 ;;
15207
15208 freebsd[12]*)
15209 # C++ shared libraries reported to be fairly broken before
15210 # switch to ELF
15211 ld_shlibs_CXX=no
15212 ;;
15213
15214 freebsd-elf*)
15215 archive_cmds_need_lc_CXX=no
15216 ;;
15217
15218 freebsd* | dragonfly*)
15219 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15220 # conventions
15221 ld_shlibs_CXX=yes
15222 ;;
15223
15224 gnu*)
15225 ;;
15226
15227 hpux9*)
15228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15229 hardcode_libdir_separator_CXX=:
15230 export_dynamic_flag_spec_CXX='${wl}-E'
15231 hardcode_direct_CXX=yes
15232 hardcode_minus_L_CXX=yes # Not in the search PATH,
15233 # but as the default
15234 # location of the library.
15235
15236 case $cc_basename in
15237 CC*)
15238 # FIXME: insert proper C++ library support
15239 ld_shlibs_CXX=no
15240 ;;
15241 aCC*)
15242 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'
15243 # Commands to make compiler produce verbose output that lists
15244 # what "hidden" libraries, object files and flags are used when
15245 # linking a shared library.
15246 #
15247 # There doesn't appear to be a way to prevent this compiler from
15248 # explicitly linking system object files so we need to strip them
15249 # from the output so that they don't get included in the library
15250 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015251 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 +000015252 ;;
15253 *)
15254 if test "$GXX" = yes; then
15255 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'
15256 else
15257 # FIXME: insert proper C++ library support
15258 ld_shlibs_CXX=no
15259 fi
15260 ;;
15261 esac
15262 ;;
15263
15264 hpux10*|hpux11*)
15265 if test $with_gnu_ld = no; then
15266 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15267 hardcode_libdir_separator_CXX=:
15268
15269 case $host_cpu in
15270 hppa*64*|ia64*)
15271 ;;
15272 *)
15273 export_dynamic_flag_spec_CXX='${wl}-E'
15274 ;;
15275 esac
15276 fi
15277 case $host_cpu in
15278 hppa*64*|ia64*)
15279 hardcode_direct_CXX=no
15280 hardcode_shlibpath_var_CXX=no
15281 ;;
15282 *)
15283 hardcode_direct_CXX=yes
15284 hardcode_direct_absolute_CXX=yes
15285 hardcode_minus_L_CXX=yes # Not in the search PATH,
15286 # but as the default
15287 # location of the library.
15288 ;;
15289 esac
15290
15291 case $cc_basename in
15292 CC*)
15293 # FIXME: insert proper C++ library support
15294 ld_shlibs_CXX=no
15295 ;;
15296 aCC*)
15297 case $host_cpu in
15298 hppa*64*)
15299 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15300 ;;
15301 ia64*)
15302 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15303 ;;
15304 *)
15305 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15306 ;;
15307 esac
15308 # Commands to make compiler produce verbose output that lists
15309 # what "hidden" libraries, object files and flags are used when
15310 # linking a shared library.
15311 #
15312 # There doesn't appear to be a way to prevent this compiler from
15313 # explicitly linking system object files so we need to strip them
15314 # from the output so that they don't get included in the library
15315 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015316 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 +000015317 ;;
15318 *)
15319 if test "$GXX" = yes; then
15320 if test $with_gnu_ld = no; then
15321 case $host_cpu in
15322 hppa*64*)
15323 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15324 ;;
15325 ia64*)
15326 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15327 ;;
15328 *)
15329 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'
15330 ;;
15331 esac
15332 fi
15333 else
15334 # FIXME: insert proper C++ library support
15335 ld_shlibs_CXX=no
15336 fi
15337 ;;
15338 esac
15339 ;;
15340
15341 interix[3-9]*)
15342 hardcode_direct_CXX=no
15343 hardcode_shlibpath_var_CXX=no
15344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15345 export_dynamic_flag_spec_CXX='${wl}-E'
15346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15347 # Instead, shared libraries are loaded at an image base (0x10000000 by
15348 # default) and relocated if they conflict, which is a slow very memory
15349 # consuming and fragmenting process. To avoid this, we pick a random,
15350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15352 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'
15353 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'
15354 ;;
15355 irix5* | irix6*)
15356 case $cc_basename in
15357 CC*)
15358 # SGI C++
cristy18304f92009-11-22 15:48:26 +000015359 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 +000015360
15361 # Archives containing C++ object files must be created using
15362 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15363 # necessary to make sure instantiated templates are included
15364 # in the archive.
15365 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15366 ;;
15367 *)
15368 if test "$GXX" = yes; then
15369 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000015370 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 +000015371 else
cristy18304f92009-11-22 15:48:26 +000015372 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 +000015373 fi
15374 fi
15375 link_all_deplibs_CXX=yes
15376 ;;
15377 esac
15378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15379 hardcode_libdir_separator_CXX=:
15380 inherit_rpath_CXX=yes
15381 ;;
15382
cristy18304f92009-11-22 15:48:26 +000015383 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015384 case $cc_basename in
15385 KCC*)
15386 # Kuck and Associates, Inc. (KAI) C++ Compiler
15387
15388 # KCC will only create a shared library if the output file
15389 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15390 # to its proper name (with version) after linking.
15391 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'
15392 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'
15393 # Commands to make compiler produce verbose output that lists
15394 # what "hidden" libraries, object files and flags are used when
15395 # linking a shared library.
15396 #
15397 # There doesn't appear to be a way to prevent this compiler from
15398 # explicitly linking system object files so we need to strip them
15399 # from the output so that they don't get included in the library
15400 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015401 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 +000015402
15403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15405
15406 # Archives containing C++ object files must be created using
15407 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15408 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15409 ;;
15410 icpc* | ecpc* )
15411 # Intel C++
15412 with_gnu_ld=yes
15413 # version 8.0 and above of icpc choke on multiply defined symbols
15414 # if we add $predep_objects and $postdep_objects, however 7.1 and
15415 # earlier do not add the objects themselves.
15416 case `$CC -V 2>&1` in
15417 *"Version 7."*)
15418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15419 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'
15420 ;;
15421 *) # Version 8.0 or newer
15422 tmp_idyn=
15423 case $host_cpu in
15424 ia64*) tmp_idyn=' -i_dynamic';;
15425 esac
15426 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 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'
15428 ;;
15429 esac
15430 archive_cmds_need_lc_CXX=no
15431 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15432 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15433 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15434 ;;
15435 pgCC* | pgcpp*)
15436 # Portland Group C++ compiler
15437 case `$CC -V` in
15438 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15439 prelink_cmds_CXX='tpldir=Template.dir~
15440 rm -rf $tpldir~
15441 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15442 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15443 old_archive_cmds_CXX='tpldir=Template.dir~
15444 rm -rf $tpldir~
15445 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15446 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15447 $RANLIB $oldlib'
15448 archive_cmds_CXX='tpldir=Template.dir~
15449 rm -rf $tpldir~
15450 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15451 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15452 archive_expsym_cmds_CXX='tpldir=Template.dir~
15453 rm -rf $tpldir~
15454 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15455 $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'
15456 ;;
15457 *) # Version 6 will use weak symbols
15458 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15459 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'
15460 ;;
15461 esac
15462
15463 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000015465 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 +000015466 ;;
15467 cxx*)
15468 # Compaq C++
15469 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15470 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'
15471
15472 runpath_var=LD_RUN_PATH
15473 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15474 hardcode_libdir_separator_CXX=:
15475
15476 # Commands to make compiler produce verbose output that lists
15477 # what "hidden" libraries, object files and flags are used when
15478 # linking a shared library.
15479 #
15480 # There doesn't appear to be a way to prevent this compiler from
15481 # explicitly linking system object files so we need to strip them
15482 # from the output so that they don't get included in the library
15483 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015484 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 +000015485 ;;
cristy18304f92009-11-22 15:48:26 +000015486 xl*)
cristy3ed852e2009-09-05 21:47:34 +000015487 # IBM XL 8.0 on PPC, with GNU ld
15488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15489 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15490 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15491 if test "x$supports_anon_versioning" = xyes; then
15492 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15494 echo "local: *; };" >> $output_objdir/$libname.ver~
15495 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15496 fi
15497 ;;
15498 *)
15499 case `$CC -V 2>&1 | sed 5q` in
15500 *Sun\ C*)
15501 # Sun C++ 5.9
15502 no_undefined_flag_CXX=' -zdefs'
15503 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15504 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'
15505 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000015506 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 +000015507 compiler_needs_object_CXX=yes
15508
15509 # Not sure whether something based on
15510 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15511 # would be better.
cristy18304f92009-11-22 15:48:26 +000015512 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015513
15514 # Archives containing C++ object files must be created using
15515 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15516 # necessary to make sure instantiated templates are included
15517 # in the archive.
15518 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15519 ;;
15520 esac
15521 ;;
15522 esac
15523 ;;
15524
15525 lynxos*)
15526 # FIXME: insert proper C++ library support
15527 ld_shlibs_CXX=no
15528 ;;
15529
15530 m88k*)
15531 # FIXME: insert proper C++ library support
15532 ld_shlibs_CXX=no
15533 ;;
15534
15535 mvs*)
15536 case $cc_basename in
15537 cxx*)
15538 # FIXME: insert proper C++ library support
15539 ld_shlibs_CXX=no
15540 ;;
15541 *)
15542 # FIXME: insert proper C++ library support
15543 ld_shlibs_CXX=no
15544 ;;
15545 esac
15546 ;;
15547
15548 netbsd*)
15549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15550 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15551 wlarc=
15552 hardcode_libdir_flag_spec_CXX='-R$libdir'
15553 hardcode_direct_CXX=yes
15554 hardcode_shlibpath_var_CXX=no
15555 fi
15556 # Workaround some broken pre-1.5 toolchains
15557 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15558 ;;
15559
15560 *nto* | *qnx*)
15561 ld_shlibs_CXX=yes
15562 ;;
15563
15564 openbsd2*)
15565 # C++ shared libraries are fairly broken
15566 ld_shlibs_CXX=no
15567 ;;
15568
15569 openbsd*)
15570 if test -f /usr/libexec/ld.so; then
15571 hardcode_direct_CXX=yes
15572 hardcode_shlibpath_var_CXX=no
15573 hardcode_direct_absolute_CXX=yes
15574 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15578 export_dynamic_flag_spec_CXX='${wl}-E'
15579 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15580 fi
cristy18304f92009-11-22 15:48:26 +000015581 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000015582 else
15583 ld_shlibs_CXX=no
15584 fi
15585 ;;
15586
15587 osf3* | osf4* | osf5*)
15588 case $cc_basename in
15589 KCC*)
15590 # Kuck and Associates, Inc. (KAI) C++ Compiler
15591
15592 # KCC will only create a shared library if the output file
15593 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15594 # to its proper name (with version) after linking.
15595 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'
15596
15597 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15598 hardcode_libdir_separator_CXX=:
15599
15600 # Archives containing C++ object files must be created using
15601 # the KAI C++ compiler.
15602 case $host in
15603 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15604 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15605 esac
15606 ;;
15607 RCC*)
15608 # Rational C++ 2.4.1
15609 # FIXME: insert proper C++ library support
15610 ld_shlibs_CXX=no
15611 ;;
15612 cxx*)
15613 case $host in
15614 osf3*)
15615 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000015616 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 +000015617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15618 ;;
15619 *)
15620 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000015621 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 +000015622 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15623 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000015624 $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 +000015625 $RM $lib.exp'
15626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15627 ;;
15628 esac
15629
15630 hardcode_libdir_separator_CXX=:
15631
15632 # Commands to make compiler produce verbose output that lists
15633 # what "hidden" libraries, object files and flags are used when
15634 # linking a shared library.
15635 #
15636 # There doesn't appear to be a way to prevent this compiler from
15637 # explicitly linking system object files so we need to strip them
15638 # from the output so that they don't get included in the library
15639 # dependencies.
cristy18304f92009-11-22 15:48:26 +000015640 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 +000015641 ;;
15642 *)
15643 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15644 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15645 case $host in
15646 osf3*)
cristy18304f92009-11-22 15:48:26 +000015647 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 +000015648 ;;
15649 *)
cristy18304f92009-11-22 15:48:26 +000015650 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 +000015651 ;;
15652 esac
15653
15654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15655 hardcode_libdir_separator_CXX=:
15656
15657 # Commands to make compiler produce verbose output that lists
15658 # what "hidden" libraries, object files and flags are used when
15659 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015661
15662 else
15663 # FIXME: insert proper C++ library support
15664 ld_shlibs_CXX=no
15665 fi
15666 ;;
15667 esac
15668 ;;
15669
15670 psos*)
15671 # FIXME: insert proper C++ library support
15672 ld_shlibs_CXX=no
15673 ;;
15674
15675 sunos4*)
15676 case $cc_basename in
15677 CC*)
15678 # Sun C++ 4.x
15679 # FIXME: insert proper C++ library support
15680 ld_shlibs_CXX=no
15681 ;;
15682 lcc*)
15683 # Lucid
15684 # FIXME: insert proper C++ library support
15685 ld_shlibs_CXX=no
15686 ;;
15687 *)
15688 # FIXME: insert proper C++ library support
15689 ld_shlibs_CXX=no
15690 ;;
15691 esac
15692 ;;
15693
15694 solaris*)
15695 case $cc_basename in
15696 CC*)
15697 # Sun C++ 4.2, 5.x and Centerline C++
15698 archive_cmds_need_lc_CXX=yes
15699 no_undefined_flag_CXX=' -zdefs'
15700 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15701 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15702 $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'
15703
15704 hardcode_libdir_flag_spec_CXX='-R$libdir'
15705 hardcode_shlibpath_var_CXX=no
15706 case $host_os in
15707 solaris2.[0-5] | solaris2.[0-5].*) ;;
15708 *)
15709 # The compiler driver will combine and reorder linker options,
15710 # but understands `-z linker_flag'.
15711 # Supported since Solaris 2.6 (maybe 2.5.1?)
15712 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15713 ;;
15714 esac
15715 link_all_deplibs_CXX=yes
15716
cristy18304f92009-11-22 15:48:26 +000015717 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000015718
15719 # Archives containing C++ object files must be created using
15720 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15721 # necessary to make sure instantiated templates are included
15722 # in the archive.
15723 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15724 ;;
15725 gcx*)
15726 # Green Hills C++ Compiler
15727 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15728
15729 # The C++ compiler must be used to create the archive.
15730 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15731 ;;
15732 *)
15733 # GNU C++ compiler with Solaris linker
15734 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15735 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15736 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15737 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15738 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15739 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15740
15741 # Commands to make compiler produce verbose output that lists
15742 # what "hidden" libraries, object files and flags are used when
15743 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015745 else
15746 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15747 # platform.
15748 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15749 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15750 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15751
15752 # Commands to make compiler produce verbose output that lists
15753 # what "hidden" libraries, object files and flags are used when
15754 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015755 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015756 fi
15757
15758 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15759 case $host_os in
15760 solaris2.[0-5] | solaris2.[0-5].*) ;;
15761 *)
15762 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15763 ;;
15764 esac
15765 fi
15766 ;;
15767 esac
15768 ;;
15769
15770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15771 no_undefined_flag_CXX='${wl}-z,text'
15772 archive_cmds_need_lc_CXX=no
15773 hardcode_shlibpath_var_CXX=no
15774 runpath_var='LD_RUN_PATH'
15775
15776 case $cc_basename in
15777 CC*)
15778 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15780 ;;
15781 *)
15782 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15784 ;;
15785 esac
15786 ;;
15787
15788 sysv5* | sco3.2v5* | sco5v6*)
15789 # Note: We can NOT use -z defs as we might desire, because we do not
15790 # link with -lc, and that would cause any symbols used from libc to
15791 # always be unresolved, which means just about no library would
15792 # ever link correctly. If we're not using GNU ld we use -z text
15793 # though, which does catch some bad symbols but isn't as heavy-handed
15794 # as -z defs.
15795 no_undefined_flag_CXX='${wl}-z,text'
15796 allow_undefined_flag_CXX='${wl}-z,nodefs'
15797 archive_cmds_need_lc_CXX=no
15798 hardcode_shlibpath_var_CXX=no
15799 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15800 hardcode_libdir_separator_CXX=':'
15801 link_all_deplibs_CXX=yes
15802 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15803 runpath_var='LD_RUN_PATH'
15804
15805 case $cc_basename in
15806 CC*)
15807 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15808 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15809 ;;
15810 *)
15811 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15813 ;;
15814 esac
15815 ;;
15816
15817 tandem*)
15818 case $cc_basename in
15819 NCC*)
15820 # NonStop-UX NCC 3.20
15821 # FIXME: insert proper C++ library support
15822 ld_shlibs_CXX=no
15823 ;;
15824 *)
15825 # FIXME: insert proper C++ library support
15826 ld_shlibs_CXX=no
15827 ;;
15828 esac
15829 ;;
15830
15831 vxworks*)
15832 # FIXME: insert proper C++ library support
15833 ld_shlibs_CXX=no
15834 ;;
15835
15836 *)
15837 # FIXME: insert proper C++ library support
15838 ld_shlibs_CXX=no
15839 ;;
15840 esac
15841
cristy8b350f62009-11-15 23:12:43 +000015842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000015843$as_echo "$ld_shlibs_CXX" >&6; }
15844 test "$ld_shlibs_CXX" = no && can_build_shared=no
15845
15846 GCC_CXX="$GXX"
15847 LD_CXX="$LD"
15848
15849 ## CAVEAT EMPTOR:
15850 ## There is no encapsulation within the following macros, do not change
15851 ## the running order or otherwise move them around unless you know exactly
15852 ## what you are doing...
15853 # Dependencies to place before and after the object being linked:
15854predep_objects_CXX=
15855postdep_objects_CXX=
15856predeps_CXX=
15857postdeps_CXX=
15858compiler_lib_search_path_CXX=
15859
15860cat > conftest.$ac_ext <<_LT_EOF
15861class Foo
15862{
15863public:
15864 Foo (void) { a = 0; }
15865private:
15866 int a;
15867};
15868_LT_EOF
15869
cristy8b350f62009-11-15 23:12:43 +000015870if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015871 (eval $ac_compile) 2>&5
15872 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000015875 # Parse the compiler output and extract the necessary
15876 # objects, libraries and library flags.
15877
15878 # Sentinel used to keep track of whether or not we are before
15879 # the conftest object file.
15880 pre_test_object_deps_done=no
15881
15882 for p in `eval "$output_verbose_link_cmd"`; do
15883 case $p in
15884
15885 -L* | -R* | -l*)
15886 # Some compilers place space between "-{L,R}" and the path.
15887 # Remove the space.
15888 if test $p = "-L" ||
15889 test $p = "-R"; then
15890 prev=$p
15891 continue
15892 else
15893 prev=
15894 fi
15895
15896 if test "$pre_test_object_deps_done" = no; then
15897 case $p in
15898 -L* | -R*)
15899 # Internal compiler library paths should come after those
15900 # provided the user. The postdeps already come after the
15901 # user supplied libs so there is no need to process them.
15902 if test -z "$compiler_lib_search_path_CXX"; then
15903 compiler_lib_search_path_CXX="${prev}${p}"
15904 else
15905 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15906 fi
15907 ;;
15908 # The "-l" case would never come before the object being
15909 # linked, so don't bother handling this case.
15910 esac
15911 else
15912 if test -z "$postdeps_CXX"; then
15913 postdeps_CXX="${prev}${p}"
15914 else
15915 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15916 fi
15917 fi
15918 ;;
15919
15920 *.$objext)
15921 # This assumes that the test object file only shows up
15922 # once in the compiler output.
15923 if test "$p" = "conftest.$objext"; then
15924 pre_test_object_deps_done=yes
15925 continue
15926 fi
15927
15928 if test "$pre_test_object_deps_done" = no; then
15929 if test -z "$predep_objects_CXX"; then
15930 predep_objects_CXX="$p"
15931 else
15932 predep_objects_CXX="$predep_objects_CXX $p"
15933 fi
15934 else
15935 if test -z "$postdep_objects_CXX"; then
15936 postdep_objects_CXX="$p"
15937 else
15938 postdep_objects_CXX="$postdep_objects_CXX $p"
15939 fi
15940 fi
15941 ;;
15942
15943 *) ;; # Ignore the rest.
15944
15945 esac
15946 done
15947
15948 # Clean up.
15949 rm -f a.out a.exe
15950else
15951 echo "libtool.m4: error: problem compiling CXX test program"
15952fi
15953
15954$RM -f confest.$objext
15955
15956# PORTME: override above test on systems where it is broken
15957case $host_os in
15958interix[3-9]*)
15959 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15960 # hack all around it, let's just trust "g++" to DTRT.
15961 predep_objects_CXX=
15962 postdep_objects_CXX=
15963 postdeps_CXX=
15964 ;;
15965
15966linux*)
15967 case `$CC -V 2>&1 | sed 5q` in
15968 *Sun\ C*)
15969 # Sun C++ 5.9
15970
15971 # The more standards-conforming stlport4 library is
15972 # incompatible with the Cstd library. Avoid specifying
15973 # it if it's in CXXFLAGS. Ignore libCrun as
15974 # -library=stlport4 depends on it.
15975 case " $CXX $CXXFLAGS " in
15976 *" -library=stlport4 "*)
15977 solaris_use_stlport4=yes
15978 ;;
15979 esac
15980
15981 if test "$solaris_use_stlport4" != yes; then
15982 postdeps_CXX='-library=Cstd -library=Crun'
15983 fi
15984 ;;
15985 esac
15986 ;;
15987
15988solaris*)
15989 case $cc_basename in
15990 CC*)
15991 # The more standards-conforming stlport4 library is
15992 # incompatible with the Cstd library. Avoid specifying
15993 # it if it's in CXXFLAGS. Ignore libCrun as
15994 # -library=stlport4 depends on it.
15995 case " $CXX $CXXFLAGS " in
15996 *" -library=stlport4 "*)
15997 solaris_use_stlport4=yes
15998 ;;
15999 esac
16000
16001 # Adding this requires a known-good setup of shared libraries for
16002 # Sun compiler versions before 5.6, else PIC objects from an old
16003 # archive will be linked into the output, leading to subtle bugs.
16004 if test "$solaris_use_stlport4" != yes; then
16005 postdeps_CXX='-library=Cstd -library=Crun'
16006 fi
16007 ;;
16008 esac
16009 ;;
16010esac
16011
16012
16013case " $postdeps_CXX " in
16014*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16015esac
16016 compiler_lib_search_dirs_CXX=
16017if test -n "${compiler_lib_search_path_CXX}"; then
16018 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16019fi
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051 lt_prog_compiler_wl_CXX=
16052lt_prog_compiler_pic_CXX=
16053lt_prog_compiler_static_CXX=
16054
cristy8b350f62009-11-15 23:12:43 +000016055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016056$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16057
16058 # C++ specific cases for pic, static, wl, etc.
16059 if test "$GXX" = yes; then
16060 lt_prog_compiler_wl_CXX='-Wl,'
16061 lt_prog_compiler_static_CXX='-static'
16062
16063 case $host_os in
16064 aix*)
16065 # All AIX code is PIC.
16066 if test "$host_cpu" = ia64; then
16067 # AIX 5 now supports IA64 processor
16068 lt_prog_compiler_static_CXX='-Bstatic'
16069 fi
16070 ;;
16071
16072 amigaos*)
16073 case $host_cpu in
16074 powerpc)
16075 # see comment about AmigaOS4 .so support
16076 lt_prog_compiler_pic_CXX='-fPIC'
16077 ;;
16078 m68k)
16079 # FIXME: we need at least 68020 code to build shared libraries, but
16080 # adding the `-m68020' flag to GCC prevents building anything better,
16081 # like `-m68040'.
16082 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16083 ;;
16084 esac
16085 ;;
16086
16087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16088 # PIC is the default for these OSes.
16089 ;;
16090 mingw* | cygwin* | os2* | pw32* | cegcc*)
16091 # This hack is so that the source file can tell whether it is being
16092 # built for inclusion in a dll (and should export symbols for example).
16093 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16094 # (--disable-auto-import) libraries
16095 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16096 ;;
16097 darwin* | rhapsody*)
16098 # PIC is the default on this platform
16099 # Common symbols not allowed in MH_DYLIB files
16100 lt_prog_compiler_pic_CXX='-fno-common'
16101 ;;
16102 *djgpp*)
16103 # DJGPP does not support shared libraries at all
16104 lt_prog_compiler_pic_CXX=
16105 ;;
16106 interix[3-9]*)
16107 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16108 # Instead, we relocate shared libraries at runtime.
16109 ;;
16110 sysv4*MP*)
16111 if test -d /usr/nec; then
16112 lt_prog_compiler_pic_CXX=-Kconform_pic
16113 fi
16114 ;;
16115 hpux*)
16116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16118 # sets the default TLS model and affects inlining.
16119 case $host_cpu in
16120 hppa*64*)
16121 ;;
16122 *)
16123 lt_prog_compiler_pic_CXX='-fPIC'
16124 ;;
16125 esac
16126 ;;
16127 *qnx* | *nto*)
16128 # QNX uses GNU C++, but need to define -shared option too, otherwise
16129 # it will coredump.
16130 lt_prog_compiler_pic_CXX='-fPIC -shared'
16131 ;;
16132 *)
16133 lt_prog_compiler_pic_CXX='-fPIC'
16134 ;;
16135 esac
16136 else
16137 case $host_os in
16138 aix[4-9]*)
16139 # All AIX code is PIC.
16140 if test "$host_cpu" = ia64; then
16141 # AIX 5 now supports IA64 processor
16142 lt_prog_compiler_static_CXX='-Bstatic'
16143 else
16144 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16145 fi
16146 ;;
16147 chorus*)
16148 case $cc_basename in
16149 cxch68*)
16150 # Green Hills C++ Compiler
16151 # _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"
16152 ;;
16153 esac
16154 ;;
16155 dgux*)
16156 case $cc_basename in
16157 ec++*)
16158 lt_prog_compiler_pic_CXX='-KPIC'
16159 ;;
16160 ghcx*)
16161 # Green Hills C++ Compiler
16162 lt_prog_compiler_pic_CXX='-pic'
16163 ;;
16164 *)
16165 ;;
16166 esac
16167 ;;
16168 freebsd* | dragonfly*)
16169 # FreeBSD uses GNU C++
16170 ;;
16171 hpux9* | hpux10* | hpux11*)
16172 case $cc_basename in
16173 CC*)
16174 lt_prog_compiler_wl_CXX='-Wl,'
16175 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16176 if test "$host_cpu" != ia64; then
16177 lt_prog_compiler_pic_CXX='+Z'
16178 fi
16179 ;;
16180 aCC*)
16181 lt_prog_compiler_wl_CXX='-Wl,'
16182 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16183 case $host_cpu in
16184 hppa*64*|ia64*)
16185 # +Z the default
16186 ;;
16187 *)
16188 lt_prog_compiler_pic_CXX='+Z'
16189 ;;
16190 esac
16191 ;;
16192 *)
16193 ;;
16194 esac
16195 ;;
16196 interix*)
16197 # This is c89, which is MS Visual C++ (no shared libs)
16198 # Anyone wants to do a port?
16199 ;;
16200 irix5* | irix6* | nonstopux*)
16201 case $cc_basename in
16202 CC*)
16203 lt_prog_compiler_wl_CXX='-Wl,'
16204 lt_prog_compiler_static_CXX='-non_shared'
16205 # CC pic flag -KPIC is the default.
16206 ;;
16207 *)
16208 ;;
16209 esac
16210 ;;
cristy18304f92009-11-22 15:48:26 +000016211 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016212 case $cc_basename in
16213 KCC*)
16214 # KAI C++ Compiler
16215 lt_prog_compiler_wl_CXX='--backend -Wl,'
16216 lt_prog_compiler_pic_CXX='-fPIC'
16217 ;;
16218 ecpc* )
16219 # old Intel C++ for x86_64 which still supported -KPIC.
16220 lt_prog_compiler_wl_CXX='-Wl,'
16221 lt_prog_compiler_pic_CXX='-KPIC'
16222 lt_prog_compiler_static_CXX='-static'
16223 ;;
16224 icpc* )
16225 # Intel C++, used to be incompatible with GCC.
16226 # ICC 10 doesn't accept -KPIC any more.
16227 lt_prog_compiler_wl_CXX='-Wl,'
16228 lt_prog_compiler_pic_CXX='-fPIC'
16229 lt_prog_compiler_static_CXX='-static'
16230 ;;
16231 pgCC* | pgcpp*)
16232 # Portland Group C++ compiler
16233 lt_prog_compiler_wl_CXX='-Wl,'
16234 lt_prog_compiler_pic_CXX='-fpic'
16235 lt_prog_compiler_static_CXX='-Bstatic'
16236 ;;
16237 cxx*)
16238 # Compaq C++
16239 # Make sure the PIC flag is empty. It appears that all Alpha
16240 # Linux and Compaq Tru64 Unix objects are PIC.
16241 lt_prog_compiler_pic_CXX=
16242 lt_prog_compiler_static_CXX='-non_shared'
16243 ;;
cristy18304f92009-11-22 15:48:26 +000016244 xlc* | xlC*)
16245 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000016246 lt_prog_compiler_wl_CXX='-Wl,'
16247 lt_prog_compiler_pic_CXX='-qpic'
16248 lt_prog_compiler_static_CXX='-qstaticlink'
16249 ;;
16250 *)
16251 case `$CC -V 2>&1 | sed 5q` in
16252 *Sun\ C*)
16253 # Sun C++ 5.9
16254 lt_prog_compiler_pic_CXX='-KPIC'
16255 lt_prog_compiler_static_CXX='-Bstatic'
16256 lt_prog_compiler_wl_CXX='-Qoption ld '
16257 ;;
16258 esac
16259 ;;
16260 esac
16261 ;;
16262 lynxos*)
16263 ;;
16264 m88k*)
16265 ;;
16266 mvs*)
16267 case $cc_basename in
16268 cxx*)
16269 lt_prog_compiler_pic_CXX='-W c,exportall'
16270 ;;
16271 *)
16272 ;;
16273 esac
16274 ;;
16275 netbsd*)
16276 ;;
16277 *qnx* | *nto*)
16278 # QNX uses GNU C++, but need to define -shared option too, otherwise
16279 # it will coredump.
16280 lt_prog_compiler_pic_CXX='-fPIC -shared'
16281 ;;
16282 osf3* | osf4* | osf5*)
16283 case $cc_basename in
16284 KCC*)
16285 lt_prog_compiler_wl_CXX='--backend -Wl,'
16286 ;;
16287 RCC*)
16288 # Rational C++ 2.4.1
16289 lt_prog_compiler_pic_CXX='-pic'
16290 ;;
16291 cxx*)
16292 # Digital/Compaq C++
16293 lt_prog_compiler_wl_CXX='-Wl,'
16294 # Make sure the PIC flag is empty. It appears that all Alpha
16295 # Linux and Compaq Tru64 Unix objects are PIC.
16296 lt_prog_compiler_pic_CXX=
16297 lt_prog_compiler_static_CXX='-non_shared'
16298 ;;
16299 *)
16300 ;;
16301 esac
16302 ;;
16303 psos*)
16304 ;;
16305 solaris*)
16306 case $cc_basename in
16307 CC*)
16308 # Sun C++ 4.2, 5.x and Centerline C++
16309 lt_prog_compiler_pic_CXX='-KPIC'
16310 lt_prog_compiler_static_CXX='-Bstatic'
16311 lt_prog_compiler_wl_CXX='-Qoption ld '
16312 ;;
16313 gcx*)
16314 # Green Hills C++ Compiler
16315 lt_prog_compiler_pic_CXX='-PIC'
16316 ;;
16317 *)
16318 ;;
16319 esac
16320 ;;
16321 sunos4*)
16322 case $cc_basename in
16323 CC*)
16324 # Sun C++ 4.x
16325 lt_prog_compiler_pic_CXX='-pic'
16326 lt_prog_compiler_static_CXX='-Bstatic'
16327 ;;
16328 lcc*)
16329 # Lucid
16330 lt_prog_compiler_pic_CXX='-pic'
16331 ;;
16332 *)
16333 ;;
16334 esac
16335 ;;
16336 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16337 case $cc_basename in
16338 CC*)
16339 lt_prog_compiler_wl_CXX='-Wl,'
16340 lt_prog_compiler_pic_CXX='-KPIC'
16341 lt_prog_compiler_static_CXX='-Bstatic'
16342 ;;
16343 esac
16344 ;;
16345 tandem*)
16346 case $cc_basename in
16347 NCC*)
16348 # NonStop-UX NCC 3.20
16349 lt_prog_compiler_pic_CXX='-KPIC'
16350 ;;
16351 *)
16352 ;;
16353 esac
16354 ;;
16355 vxworks*)
16356 ;;
16357 *)
16358 lt_prog_compiler_can_build_shared_CXX=no
16359 ;;
16360 esac
16361 fi
16362
16363case $host_os in
16364 # For platforms which do not support PIC, -DPIC is meaningless:
16365 *djgpp*)
16366 lt_prog_compiler_pic_CXX=
16367 ;;
16368 *)
16369 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16370 ;;
16371esac
cristy8b350f62009-11-15 23:12:43 +000016372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016373$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16374
16375
16376
16377#
16378# Check to make sure the PIC flag actually works.
16379#
16380if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000016381 { $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 +000016382$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016383if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016384 $as_echo_n "(cached) " >&6
16385else
16386 lt_cv_prog_compiler_pic_works_CXX=no
16387 ac_outfile=conftest.$ac_objext
16388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16389 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16390 # Insert the option either (1) after the last *FLAGS variable, or
16391 # (2) before a word containing "conftest.", or (3) at the end.
16392 # Note that $ac_compile itself does not contain backslashes and begins
16393 # with a dollar sign (not a hyphen), so the echo should work correctly.
16394 # The option is referenced via a variable to avoid confusing sed.
16395 lt_compile=`echo "$ac_compile" | $SED \
16396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16398 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000016399 (eval echo "\"\$as_me:16399: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016400 (eval "$lt_compile" 2>conftest.err)
16401 ac_status=$?
16402 cat conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000016403 echo "$as_me:16403: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016404 if (exit $ac_status) && test -s "$ac_outfile"; then
16405 # The compiler can only warn and ignore the option if not recognized
16406 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000016407 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016408 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16409 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16410 lt_cv_prog_compiler_pic_works_CXX=yes
16411 fi
16412 fi
16413 $RM conftest*
16414
16415fi
cristy8b350f62009-11-15 23:12:43 +000016416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016417$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16418
16419if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16420 case $lt_prog_compiler_pic_CXX in
16421 "" | " "*) ;;
16422 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16423 esac
16424else
16425 lt_prog_compiler_pic_CXX=
16426 lt_prog_compiler_can_build_shared_CXX=no
16427fi
16428
16429fi
16430
16431
16432
16433#
16434# Check to make sure the static flag actually works.
16435#
16436wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000016437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000016438$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016439if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016440 $as_echo_n "(cached) " >&6
16441else
16442 lt_cv_prog_compiler_static_works_CXX=no
16443 save_LDFLAGS="$LDFLAGS"
16444 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16445 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16446 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16447 # The linker can only warn and ignore the option if not recognized
16448 # So say no if there are warnings
16449 if test -s conftest.err; then
16450 # Append any errors to the config.log.
16451 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000016452 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16454 if diff conftest.exp conftest.er2 >/dev/null; then
16455 lt_cv_prog_compiler_static_works_CXX=yes
16456 fi
16457 else
16458 lt_cv_prog_compiler_static_works_CXX=yes
16459 fi
16460 fi
16461 $RM -r conftest*
16462 LDFLAGS="$save_LDFLAGS"
16463
16464fi
cristy8b350f62009-11-15 23:12:43 +000016465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016466$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16467
16468if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16469 :
16470else
16471 lt_prog_compiler_static_CXX=
16472fi
16473
16474
16475
16476
cristy8b350f62009-11-15 23:12:43 +000016477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016479if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016480 $as_echo_n "(cached) " >&6
16481else
16482 lt_cv_prog_compiler_c_o_CXX=no
16483 $RM -r conftest 2>/dev/null
16484 mkdir conftest
16485 cd conftest
16486 mkdir out
16487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16488
16489 lt_compiler_flag="-o out/conftest2.$ac_objext"
16490 # Insert the option either (1) after the last *FLAGS variable, or
16491 # (2) before a word containing "conftest.", or (3) at the end.
16492 # Note that $ac_compile itself does not contain backslashes and begins
16493 # with a dollar sign (not a hyphen), so the echo should work correctly.
16494 lt_compile=`echo "$ac_compile" | $SED \
16495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16497 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000016498 (eval echo "\"\$as_me:16498: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016499 (eval "$lt_compile" 2>out/conftest.err)
16500 ac_status=$?
16501 cat out/conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000016502 echo "$as_me:16502: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16504 then
16505 # The compiler can only warn and ignore the option if not recognized
16506 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016507 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16510 lt_cv_prog_compiler_c_o_CXX=yes
16511 fi
16512 fi
16513 chmod u+w . 2>&5
16514 $RM conftest*
16515 # SGI C++ compiler will create directory out/ii_files/ for
16516 # template instantiation
16517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16518 $RM out/* && rmdir out
16519 cd ..
16520 $RM -r conftest
16521 $RM conftest*
16522
16523fi
cristy8b350f62009-11-15 23:12:43 +000016524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016525$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16526
16527
16528
cristy8b350f62009-11-15 23:12:43 +000016529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000016530$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016531if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016532 $as_echo_n "(cached) " >&6
16533else
16534 lt_cv_prog_compiler_c_o_CXX=no
16535 $RM -r conftest 2>/dev/null
16536 mkdir conftest
16537 cd conftest
16538 mkdir out
16539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16540
16541 lt_compiler_flag="-o out/conftest2.$ac_objext"
16542 # Insert the option either (1) after the last *FLAGS variable, or
16543 # (2) before a word containing "conftest.", or (3) at the end.
16544 # Note that $ac_compile itself does not contain backslashes and begins
16545 # with a dollar sign (not a hyphen), so the echo should work correctly.
16546 lt_compile=`echo "$ac_compile" | $SED \
16547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549 -e 's:$: $lt_compiler_flag:'`
cristy43596fe2010-01-21 16:46:08 +000016550 (eval echo "\"\$as_me:16550: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000016551 (eval "$lt_compile" 2>out/conftest.err)
16552 ac_status=$?
16553 cat out/conftest.err >&5
cristy43596fe2010-01-21 16:46:08 +000016554 echo "$as_me:16554: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000016555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16556 then
16557 # The compiler can only warn and ignore the option if not recognized
16558 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000016559 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000016560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16562 lt_cv_prog_compiler_c_o_CXX=yes
16563 fi
16564 fi
16565 chmod u+w . 2>&5
16566 $RM conftest*
16567 # SGI C++ compiler will create directory out/ii_files/ for
16568 # template instantiation
16569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16570 $RM out/* && rmdir out
16571 cd ..
16572 $RM -r conftest
16573 $RM conftest*
16574
16575fi
cristy8b350f62009-11-15 23:12:43 +000016576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016577$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16578
16579
16580
16581
16582hard_links="nottested"
16583if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16584 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000016585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016586$as_echo_n "checking if we can lock with hard links... " >&6; }
16587 hard_links=yes
16588 $RM conftest*
16589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16590 touch conftest.a
16591 ln conftest.a conftest.b 2>&5 || hard_links=no
16592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000016593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000016594$as_echo "$hard_links" >&6; }
16595 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000016596 { $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 +000016597$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16598 need_locks=warn
16599 fi
16600else
16601 need_locks=no
16602fi
16603
16604
16605
cristy8b350f62009-11-15 23:12:43 +000016606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016607$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16608
16609 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16610 case $host_os in
16611 aix[4-9]*)
16612 # If we're using GNU nm, then we don't want the "-C" option.
16613 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000016615 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 +000016616 else
16617 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'
16618 fi
16619 ;;
16620 pw32*)
16621 export_symbols_cmds_CXX="$ltdll_cmds"
16622 ;;
16623 cygwin* | mingw* | cegcc*)
16624 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'
16625 ;;
16626 *)
16627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16628 ;;
16629 esac
16630 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16631
cristy8b350f62009-11-15 23:12:43 +000016632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016633$as_echo "$ld_shlibs_CXX" >&6; }
16634test "$ld_shlibs_CXX" = no && can_build_shared=no
16635
16636with_gnu_ld_CXX=$with_gnu_ld
16637
16638
16639
16640
16641
16642
16643#
16644# Do we need to explicitly link libc?
16645#
16646case "x$archive_cmds_need_lc_CXX" in
16647x|xyes)
16648 # Assume -lc should be added
16649 archive_cmds_need_lc_CXX=yes
16650
16651 if test "$enable_shared" = yes && test "$GCC" = yes; then
16652 case $archive_cmds_CXX in
16653 *'~'*)
16654 # FIXME: we may have to deal with multi-command sequences.
16655 ;;
16656 '$CC '*)
16657 # Test whether the compiler implicitly links with -lc since on some
16658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16659 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000016660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000016661$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000016662 $RM conftest*
16663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016664
cristy18304f92009-11-22 15:48:26 +000016665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016666 (eval $ac_compile) 2>&5
16667 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16669 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000016670 soname=conftest
16671 lib=conftest
16672 libobjs=conftest.$ac_objext
16673 deplibs=
16674 wl=$lt_prog_compiler_wl_CXX
16675 pic_flag=$lt_prog_compiler_pic_CXX
16676 compiler_flags=-v
16677 linker_flags=-v
16678 verstring=
16679 output_objdir=.
16680 libname=conftest
16681 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16682 allow_undefined_flag_CXX=
16683 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 +000016684 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16685 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16687 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000016688 then
16689 archive_cmds_need_lc_CXX=no
16690 else
16691 archive_cmds_need_lc_CXX=yes
16692 fi
16693 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16694 else
16695 cat conftest.err 1>&5
16696 fi
16697 $RM conftest*
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16699$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000016700 ;;
16701 esac
16702 fi
16703 ;;
16704esac
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
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
cristy8b350f62009-11-15 23:12:43 +000016769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000016770$as_echo_n "checking dynamic linker characteristics... " >&6; }
16771
16772library_names_spec=
16773libname_spec='lib$name'
16774soname_spec=
16775shrext_cmds=".so"
16776postinstall_cmds=
16777postuninstall_cmds=
16778finish_cmds=
16779finish_eval=
16780shlibpath_var=
16781shlibpath_overrides_runpath=unknown
16782version_type=none
16783dynamic_linker="$host_os ld.so"
16784sys_lib_dlsearch_path_spec="/lib /usr/lib"
16785need_lib_prefix=unknown
16786hardcode_into_libs=no
16787
16788# when you set need_version to no, make sure it does not cause -set_version
16789# flags to be left without arguments
16790need_version=unknown
16791
16792case $host_os in
16793aix3*)
16794 version_type=linux
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16796 shlibpath_var=LIBPATH
16797
16798 # AIX 3 has no versioning support, so we append a major version to the name.
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 ;;
16801
16802aix[4-9]*)
16803 version_type=linux
16804 need_lib_prefix=no
16805 need_version=no
16806 hardcode_into_libs=yes
16807 if test "$host_cpu" = ia64; then
16808 # AIX 5 supports IA64
16809 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 else
16812 # With GCC up to 2.95.x, collect2 would create an import file
16813 # for dependence libraries. The import file would start with
16814 # the line `#! .'. This would cause the generated library to
16815 # depend on `.', always an invalid library. This was fixed in
16816 # development snapshots of GCC prior to 3.0.
16817 case $host_os in
16818 aix4 | aix4.[01] | aix4.[01].*)
16819 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820 echo ' yes '
16821 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16822 :
16823 else
16824 can_build_shared=no
16825 fi
16826 ;;
16827 esac
16828 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16829 # soname into executable. Probably we can add versioning support to
16830 # collect2, so additional links can be useful in future.
16831 if test "$aix_use_runtimelinking" = yes; then
16832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16833 # instead of lib<name>.a to let people know that these are not
16834 # typical AIX shared libraries.
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 else
16837 # We preserve .a as extension for shared libraries through AIX4.2
16838 # and later when we are not doing run time linking.
16839 library_names_spec='${libname}${release}.a $libname.a'
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 fi
16842 shlibpath_var=LIBPATH
16843 fi
16844 ;;
16845
16846amigaos*)
16847 case $host_cpu in
16848 powerpc)
16849 # Since July 2007 AmigaOS4 officially supports .so libraries.
16850 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852 ;;
16853 m68k)
16854 library_names_spec='$libname.ixlibrary $libname.a'
16855 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000016856 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 +000016857 ;;
16858 esac
16859 ;;
16860
16861beos*)
16862 library_names_spec='${libname}${shared_ext}'
16863 dynamic_linker="$host_os ld.so"
16864 shlibpath_var=LIBRARY_PATH
16865 ;;
16866
16867bsdi[45]*)
16868 version_type=linux
16869 need_version=no
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16873 shlibpath_var=LD_LIBRARY_PATH
16874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16876 # the default ld.so.conf also contains /usr/contrib/lib and
16877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16878 # libtool to hard-code these into programs
16879 ;;
16880
16881cygwin* | mingw* | pw32* | cegcc*)
16882 version_type=windows
16883 shrext_cmds=".dll"
16884 need_version=no
16885 need_lib_prefix=no
16886
16887 case $GCC,$host_os in
16888 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16889 library_names_spec='$libname.dll.a'
16890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16891 postinstall_cmds='base_file=`basename \${file}`~
16892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16893 dldir=$destdir/`dirname \$dlpath`~
16894 test -d \$dldir || mkdir -p \$dldir~
16895 $install_prog $dir/$dlname \$dldir/$dlname~
16896 chmod a+x \$dldir/$dlname~
16897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16899 fi'
16900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16901 dlpath=$dir/\$dldll~
16902 $RM \$dlpath'
16903 shlibpath_overrides_runpath=yes
16904
16905 case $host_os in
16906 cygwin*)
16907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000016910 ;;
16911 mingw* | cegcc*)
16912 # MinGW DLLs use traditional 'lib' prefix
16913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000016914 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16916 # It is most probably a Windows format PATH printed by
16917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16918 # path with ; separators, and with drive letters. We can handle the
16919 # drive letters (cygwin fileutils understands them), so leave them,
16920 # especially as we might pass files found there to a mingw objdump,
16921 # which wouldn't understand a cygwinified path. Ahh.
16922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16923 else
16924 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16925 fi
cristy3ed852e2009-09-05 21:47:34 +000016926 ;;
16927 pw32*)
16928 # pw32 DLLs use 'pw' prefix rather than 'lib'
16929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16930 ;;
16931 esac
16932 ;;
16933
16934 *)
16935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16936 ;;
16937 esac
16938 dynamic_linker='Win32 ld.exe'
16939 # FIXME: first we should search . and the directory the executable is in
16940 shlibpath_var=PATH
16941 ;;
16942
16943darwin* | rhapsody*)
16944 dynamic_linker="$host_os dyld"
16945 version_type=darwin
16946 need_lib_prefix=no
16947 need_version=no
16948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16949 soname_spec='${libname}${release}${major}$shared_ext'
16950 shlibpath_overrides_runpath=yes
16951 shlibpath_var=DYLD_LIBRARY_PATH
16952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16953
16954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16955 ;;
16956
16957dgux*)
16958 version_type=linux
16959 need_lib_prefix=no
16960 need_version=no
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16962 soname_spec='${libname}${release}${shared_ext}$major'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 ;;
16965
16966freebsd1*)
16967 dynamic_linker=no
16968 ;;
16969
16970freebsd* | dragonfly*)
16971 # DragonFly does not have aout. When/if they implement a new
16972 # versioning mechanism, adjust this.
16973 if test -x /usr/bin/objformat; then
16974 objformat=`/usr/bin/objformat`
16975 else
16976 case $host_os in
16977 freebsd[123]*) objformat=aout ;;
16978 *) objformat=elf ;;
16979 esac
16980 fi
16981 version_type=freebsd-$objformat
16982 case $version_type in
16983 freebsd-elf*)
16984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16985 need_version=no
16986 need_lib_prefix=no
16987 ;;
16988 freebsd-*)
16989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16990 need_version=yes
16991 ;;
16992 esac
16993 shlibpath_var=LD_LIBRARY_PATH
16994 case $host_os in
16995 freebsd2*)
16996 shlibpath_overrides_runpath=yes
16997 ;;
16998 freebsd3.[01]* | freebsdelf3.[01]*)
16999 shlibpath_overrides_runpath=yes
17000 hardcode_into_libs=yes
17001 ;;
17002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 ;;
17007 *) # from 4.6 on, and DragonFly
17008 shlibpath_overrides_runpath=yes
17009 hardcode_into_libs=yes
17010 ;;
17011 esac
17012 ;;
17013
17014gnu*)
17015 version_type=linux
17016 need_lib_prefix=no
17017 need_version=no
17018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17019 soname_spec='${libname}${release}${shared_ext}$major'
17020 shlibpath_var=LD_LIBRARY_PATH
17021 hardcode_into_libs=yes
17022 ;;
17023
17024hpux9* | hpux10* | hpux11*)
17025 # Give a soname corresponding to the major version so that dld.sl refuses to
17026 # link against other versions.
17027 version_type=sunos
17028 need_lib_prefix=no
17029 need_version=no
17030 case $host_cpu in
17031 ia64*)
17032 shrext_cmds='.so'
17033 hardcode_into_libs=yes
17034 dynamic_linker="$host_os dld.so"
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 if test "X$HPUX_IA64_MODE" = X32; then
17040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17041 else
17042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17043 fi
17044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17045 ;;
17046 hppa*64*)
17047 shrext_cmds='.sl'
17048 hardcode_into_libs=yes
17049 dynamic_linker="$host_os dld.sl"
17050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec='${libname}${release}${shared_ext}$major'
17054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17056 ;;
17057 *)
17058 shrext_cmds='.sl'
17059 dynamic_linker="$host_os dld.sl"
17060 shlibpath_var=SHLIB_PATH
17061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
17065 esac
cristy18304f92009-11-22 15:48:26 +000017066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000017067 postinstall_cmds='chmod 555 $lib'
17068 ;;
17069
17070interix[3-9]*)
17071 version_type=linux
17072 need_lib_prefix=no
17073 need_version=no
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=no
17079 hardcode_into_libs=yes
17080 ;;
17081
17082irix5* | irix6* | nonstopux*)
17083 case $host_os in
17084 nonstopux*) version_type=nonstopux ;;
17085 *)
17086 if test "$lt_cv_prog_gnu_ld" = yes; then
17087 version_type=linux
17088 else
17089 version_type=irix
17090 fi ;;
17091 esac
17092 need_lib_prefix=no
17093 need_version=no
17094 soname_spec='${libname}${release}${shared_ext}$major'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17096 case $host_os in
17097 irix5* | nonstopux*)
17098 libsuff= shlibsuff=
17099 ;;
17100 *)
17101 case $LD in # libtool.m4 will add one of these switches to LD
17102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17103 libsuff= shlibsuff= libmagic=32-bit;;
17104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17105 libsuff=32 shlibsuff=N32 libmagic=N32;;
17106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17108 *) libsuff= shlibsuff= libmagic=never-match;;
17109 esac
17110 ;;
17111 esac
17112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17113 shlibpath_overrides_runpath=no
17114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17116 hardcode_into_libs=yes
17117 ;;
17118
17119# No shared lib support for Linux oldld, aout, or coff.
17120linux*oldld* | linux*aout* | linux*coff*)
17121 dynamic_linker=no
17122 ;;
17123
17124# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000017125linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017126 version_type=linux
17127 need_lib_prefix=no
17128 need_version=no
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17132 shlibpath_var=LD_LIBRARY_PATH
17133 shlibpath_overrides_runpath=no
17134 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000017135 save_LDFLAGS=$LDFLAGS
17136 save_libdir=$libdir
17137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017140/* end confdefs.h. */
17141
17142int
17143main ()
17144{
17145
17146 ;
17147 return 0;
17148}
17149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017150if ac_fn_cxx_try_link "$LINENO"; then :
17151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000017152 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000017153fi
cristy3ed852e2009-09-05 21:47:34 +000017154fi
cristy8b350f62009-11-15 23:12:43 +000017155rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000017157 LDFLAGS=$save_LDFLAGS
17158 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000017159
17160 # This implies no fast_install, which is unacceptable.
17161 # Some rework will be needed to allow for fast_install
17162 # before this can be enabled.
17163 hardcode_into_libs=yes
17164
cristy679ed8e2009-12-05 02:37:41 +000017165 # Add ABI-specific directories to the system library path.
17166 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17167
cristy3ed852e2009-09-05 21:47:34 +000017168 # Append ld.so.conf contents to the search path
17169 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000017170 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 +000017171 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000017172 fi
17173
17174 # We used to test for /lib/ld.so.1 and disable shared libraries on
17175 # powerpc, because MkLinux only supported shared libraries with the
17176 # GNU dynamic linker. Since this was broken with cross compilers,
17177 # most powerpc-linux boxes support dynamic linking these days and
17178 # people can always --disable-shared, the test was removed, and we
17179 # assume the GNU/Linux dynamic linker is in use.
17180 dynamic_linker='GNU/Linux ld.so'
17181 ;;
17182
17183netbsd*)
17184 version_type=sunos
17185 need_lib_prefix=no
17186 need_version=no
17187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17190 dynamic_linker='NetBSD (a.out) ld.so'
17191 else
17192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17193 soname_spec='${libname}${release}${shared_ext}$major'
17194 dynamic_linker='NetBSD ld.elf_so'
17195 fi
17196 shlibpath_var=LD_LIBRARY_PATH
17197 shlibpath_overrides_runpath=yes
17198 hardcode_into_libs=yes
17199 ;;
17200
17201newsos6)
17202 version_type=linux
17203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 ;;
17207
17208*nto* | *qnx*)
17209 version_type=qnx
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=no
17216 hardcode_into_libs=yes
17217 dynamic_linker='ldqnx.so'
17218 ;;
17219
17220openbsd*)
17221 version_type=sunos
17222 sys_lib_dlsearch_path_spec="/usr/lib"
17223 need_lib_prefix=no
17224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17225 case $host_os in
17226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17227 *) need_version=no ;;
17228 esac
17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17231 shlibpath_var=LD_LIBRARY_PATH
17232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17233 case $host_os in
17234 openbsd2.[89] | openbsd2.[89].*)
17235 shlibpath_overrides_runpath=no
17236 ;;
17237 *)
17238 shlibpath_overrides_runpath=yes
17239 ;;
17240 esac
17241 else
17242 shlibpath_overrides_runpath=yes
17243 fi
17244 ;;
17245
17246os2*)
17247 libname_spec='$name'
17248 shrext_cmds=".dll"
17249 need_lib_prefix=no
17250 library_names_spec='$libname${shared_ext} $libname.a'
17251 dynamic_linker='OS/2 ld.exe'
17252 shlibpath_var=LIBPATH
17253 ;;
17254
17255osf3* | osf4* | osf5*)
17256 version_type=osf
17257 need_lib_prefix=no
17258 need_version=no
17259 soname_spec='${libname}${release}${shared_ext}$major'
17260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17264 ;;
17265
17266rdos*)
17267 dynamic_linker=no
17268 ;;
17269
17270solaris*)
17271 version_type=linux
17272 need_lib_prefix=no
17273 need_version=no
17274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17275 soname_spec='${libname}${release}${shared_ext}$major'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17278 hardcode_into_libs=yes
17279 # ldd complains unless libraries are executable
17280 postinstall_cmds='chmod +x $lib'
17281 ;;
17282
17283sunos4*)
17284 version_type=sunos
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17287 shlibpath_var=LD_LIBRARY_PATH
17288 shlibpath_overrides_runpath=yes
17289 if test "$with_gnu_ld" = yes; then
17290 need_lib_prefix=no
17291 fi
17292 need_version=yes
17293 ;;
17294
17295sysv4 | sysv4.3*)
17296 version_type=linux
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 case $host_vendor in
17301 sni)
17302 shlibpath_overrides_runpath=no
17303 need_lib_prefix=no
17304 runpath_var=LD_RUN_PATH
17305 ;;
17306 siemens)
17307 need_lib_prefix=no
17308 ;;
17309 motorola)
17310 need_lib_prefix=no
17311 need_version=no
17312 shlibpath_overrides_runpath=no
17313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17314 ;;
17315 esac
17316 ;;
17317
17318sysv4*MP*)
17319 if test -d /usr/nec ;then
17320 version_type=linux
17321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17322 soname_spec='$libname${shared_ext}.$major'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 fi
17325 ;;
17326
17327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17328 version_type=freebsd-elf
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 shlibpath_overrides_runpath=yes
17335 hardcode_into_libs=yes
17336 if test "$with_gnu_ld" = yes; then
17337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17338 else
17339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17340 case $host_os in
17341 sco3.2v5*)
17342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17343 ;;
17344 esac
17345 fi
17346 sys_lib_dlsearch_path_spec='/usr/lib'
17347 ;;
17348
17349tpf*)
17350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17351 version_type=linux
17352 need_lib_prefix=no
17353 need_version=no
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 shlibpath_var=LD_LIBRARY_PATH
17356 shlibpath_overrides_runpath=no
17357 hardcode_into_libs=yes
17358 ;;
17359
17360uts4*)
17361 version_type=linux
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 ;;
17366
17367*)
17368 dynamic_linker=no
17369 ;;
17370esac
cristy8b350f62009-11-15 23:12:43 +000017371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000017372$as_echo "$dynamic_linker" >&6; }
17373test "$dynamic_linker" = no && can_build_shared=no
17374
17375variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17376if test "$GCC" = yes; then
17377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17378fi
17379
17380if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17381 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17382fi
17383if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17384 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17385fi
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
cristy8b350f62009-11-15 23:12:43 +000017422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000017423$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17424hardcode_action_CXX=
17425if test -n "$hardcode_libdir_flag_spec_CXX" ||
17426 test -n "$runpath_var_CXX" ||
17427 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17428
17429 # We can hardcode non-existent directories.
17430 if test "$hardcode_direct_CXX" != no &&
17431 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17432 # have to relink, otherwise we might link with an installed library
17433 # when we should be linking with a yet-to-be-installed one
17434 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17435 test "$hardcode_minus_L_CXX" != no; then
17436 # Linking always hardcodes the temporary library directory.
17437 hardcode_action_CXX=relink
17438 else
17439 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17440 hardcode_action_CXX=immediate
17441 fi
17442else
17443 # We cannot hardcode anything, or else we can only hardcode existing
17444 # directories.
17445 hardcode_action_CXX=unsupported
17446fi
cristy8b350f62009-11-15 23:12:43 +000017447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017448$as_echo "$hardcode_action_CXX" >&6; }
17449
17450if test "$hardcode_action_CXX" = relink ||
17451 test "$inherit_rpath_CXX" = yes; then
17452 # Fast installation is not supported
17453 enable_fast_install=no
17454elif test "$shlibpath_overrides_runpath" = yes ||
17455 test "$enable_shared" = no; then
17456 # Fast installation is not necessary
17457 enable_fast_install=needless
17458fi
17459
17460
17461
17462
17463
17464
17465
17466 fi # test -n "$compiler"
17467
17468 CC=$lt_save_CC
17469 LDCXX=$LD
17470 LD=$lt_save_LD
17471 GCC=$lt_save_GCC
17472 with_gnu_ld=$lt_save_with_gnu_ld
17473 lt_cv_path_LDCXX=$lt_cv_path_LD
17474 lt_cv_path_LD=$lt_save_path_LD
17475 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17476 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17477fi # test "$_lt_caught_CXX_error" != yes
17478
17479ac_ext=c
17480ac_cpp='$CPP $CPPFLAGS'
17481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483ac_compiler_gnu=$ac_cv_c_compiler_gnu
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497 ac_config_commands="$ac_config_commands libtool"
17498
17499
17500
17501
17502# Only expand once:
17503
17504
17505
17506
17507
17508# Configure libltdl
17509
17510
17511
17512
17513
17514
17515
cristy18304f92009-11-22 15:48:26 +000017516
cristy8b350f62009-11-15 23:12:43 +000017517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000017518$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017519if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017520 $as_echo_n "(cached) " >&6
17521else
17522
17523module=yes
17524eval libltdl_cv_shlibext=$shrext_cmds
17525
17526fi
cristy8b350f62009-11-15 23:12:43 +000017527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017528$as_echo "$libltdl_cv_shlibext" >&6; }
17529if test -n "$libltdl_cv_shlibext"; then
17530
17531cat >>confdefs.h <<_ACEOF
17532#define LT_MODULE_EXT "$libltdl_cv_shlibext"
17533_ACEOF
17534
17535fi
17536
cristy8b350f62009-11-15 23:12:43 +000017537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017538$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017539if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017540 $as_echo_n "(cached) " >&6
17541else
17542 lt_cv_module_path_var="$shlibpath_var"
17543fi
cristy8b350f62009-11-15 23:12:43 +000017544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000017545$as_echo "$lt_cv_module_path_var" >&6; }
17546if test -n "$lt_cv_module_path_var"; then
17547
17548cat >>confdefs.h <<_ACEOF
17549#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17550_ACEOF
17551
17552fi
17553
cristy8b350f62009-11-15 23:12:43 +000017554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017555$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017556if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017557 $as_echo_n "(cached) " >&6
17558else
17559 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17560fi
cristy8b350f62009-11-15 23:12:43 +000017561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000017562$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17563if test -n "$lt_cv_sys_dlsearch_path"; then
17564 sys_dlsearch_path=
17565 for dir in $lt_cv_sys_dlsearch_path; do
17566 if test -z "$sys_dlsearch_path"; then
17567 sys_dlsearch_path="$dir"
17568 else
17569 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17570 fi
17571 done
17572
17573cat >>confdefs.h <<_ACEOF
17574#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17575_ACEOF
17576
17577fi
17578
17579
17580LT_DLLOADERS=
17581
17582
17583ac_ext=c
17584ac_cpp='$CPP $CPPFLAGS'
17585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587ac_compiler_gnu=$ac_cv_c_compiler_gnu
17588
17589
17590LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000017591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017592$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017593if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017594 $as_echo_n "(cached) " >&6
17595else
17596 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000017597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017598/* end confdefs.h. */
17599
17600/* Override any GCC internal prototype to avoid an error.
17601 Use char because int might match the return type of a GCC
17602 builtin and then its argument prototype would still apply. */
17603#ifdef __cplusplus
17604extern "C"
17605#endif
17606char dlopen ();
17607int
17608main ()
17609{
17610return dlopen ();
17611 ;
17612 return 0;
17613}
17614_ACEOF
17615for ac_lib in '' dl; do
17616 if test -z "$ac_lib"; then
17617 ac_res="none required"
17618 else
17619 ac_res=-l$ac_lib
17620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17621 fi
cristy8b350f62009-11-15 23:12:43 +000017622 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017623 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000017624fi
cristy8b350f62009-11-15 23:12:43 +000017625rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext
17627 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017628 break
17629fi
17630done
cristy8b350f62009-11-15 23:12:43 +000017631if test "${ac_cv_search_dlopen+set}" = set; then :
17632
cristy3ed852e2009-09-05 21:47:34 +000017633else
17634 ac_cv_search_dlopen=no
17635fi
17636rm conftest.$ac_ext
17637LIBS=$ac_func_search_save_LIBS
17638fi
cristy8b350f62009-11-15 23:12:43 +000017639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017640$as_echo "$ac_cv_search_dlopen" >&6; }
17641ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000017642if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000017643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17644
cristy8b350f62009-11-15 23:12:43 +000017645$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017646
17647 if test "$ac_cv_search_dlopen" != "none required" ; then
17648 LIBADD_DLOPEN="-ldl"
17649 fi
17650 libltdl_cv_lib_dl_dlopen="yes"
17651 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17652else
cristy8b350f62009-11-15 23:12:43 +000017653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017654/* end confdefs.h. */
17655#if HAVE_DLFCN_H
17656# include <dlfcn.h>
17657#endif
17658
17659int
17660main ()
17661{
17662dlopen(0, 0);
17663 ;
17664 return 0;
17665}
17666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017668
cristy8b350f62009-11-15 23:12:43 +000017669$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017670
17671 libltdl_cv_func_dlopen="yes"
17672 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17673else
cristy8b350f62009-11-15 23:12:43 +000017674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017675$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017676if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017677 $as_echo_n "(cached) " >&6
17678else
17679 ac_check_lib_save_LIBS=$LIBS
17680LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017682/* end confdefs.h. */
17683
17684/* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17687#ifdef __cplusplus
17688extern "C"
17689#endif
17690char dlopen ();
17691int
17692main ()
17693{
17694return dlopen ();
17695 ;
17696 return 0;
17697}
17698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017699if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017700 ac_cv_lib_svld_dlopen=yes
17701else
cristy8b350f62009-11-15 23:12:43 +000017702 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000017703fi
cristy8b350f62009-11-15 23:12:43 +000017704rm -f core conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017706LIBS=$ac_check_lib_save_LIBS
17707fi
cristy8b350f62009-11-15 23:12:43 +000017708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000017709$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017710if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017711
cristy8b350f62009-11-15 23:12:43 +000017712$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017713
17714 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17715 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17716fi
17717
17718fi
cristy8b350f62009-11-15 23:12:43 +000017719rm -f core conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017721fi
17722
17723if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17724then
17725 lt_save_LIBS="$LIBS"
17726 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000017727 for ac_func in dlerror
17728do :
17729 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17730if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017731 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017732#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000017733_ACEOF
17734
17735fi
17736done
17737
17738 LIBS="$lt_save_LIBS"
17739fi
17740
17741
17742LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000017743ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17744if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017745
cristy8b350f62009-11-15 23:12:43 +000017746$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017747
17748 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17749else
cristy8b350f62009-11-15 23:12:43 +000017750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017751$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017752if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017753 $as_echo_n "(cached) " >&6
17754else
17755 ac_check_lib_save_LIBS=$LIBS
17756LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017758/* end confdefs.h. */
17759
17760/* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17763#ifdef __cplusplus
17764extern "C"
17765#endif
17766char shl_load ();
17767int
17768main ()
17769{
17770return shl_load ();
17771 ;
17772 return 0;
17773}
17774_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017775if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017776 ac_cv_lib_dld_shl_load=yes
17777else
cristy8b350f62009-11-15 23:12:43 +000017778 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000017779fi
cristy8b350f62009-11-15 23:12:43 +000017780rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017782LIBS=$ac_check_lib_save_LIBS
17783fi
cristy8b350f62009-11-15 23:12:43 +000017784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000017785$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017786if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017787
cristy8b350f62009-11-15 23:12:43 +000017788$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017789
17790 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17791 LIBADD_SHL_LOAD="-ldld"
17792fi
17793
17794fi
17795
17796
17797
17798case $host_os in
17799darwin[1567].*)
17800# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000017801 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17802if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017803
cristy8b350f62009-11-15 23:12:43 +000017804$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017805
17806 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17807fi
17808
17809 ;;
17810beos*)
17811 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17812 ;;
17813cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000017814 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17815"
17816if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17817 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000017818else
cristy8b350f62009-11-15 23:12:43 +000017819 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000017820fi
17821
cristy3ed852e2009-09-05 21:47:34 +000017822cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017823#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000017824_ACEOF
17825
cristy3ed852e2009-09-05 21:47:34 +000017826 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17827 ;;
17828esac
17829
cristy8b350f62009-11-15 23:12:43 +000017830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000017831$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017832if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017833 $as_echo_n "(cached) " >&6
17834else
17835 ac_check_lib_save_LIBS=$LIBS
17836LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000017837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017838/* end confdefs.h. */
17839
17840/* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17843#ifdef __cplusplus
17844extern "C"
17845#endif
17846char dld_link ();
17847int
17848main ()
17849{
17850return dld_link ();
17851 ;
17852 return 0;
17853}
17854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000017855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000017856 ac_cv_lib_dld_dld_link=yes
17857else
cristy8b350f62009-11-15 23:12:43 +000017858 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000017859fi
cristy8b350f62009-11-15 23:12:43 +000017860rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017862LIBS=$ac_check_lib_save_LIBS
17863fi
cristy8b350f62009-11-15 23:12:43 +000017864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000017865$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000017866if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000017867
cristy8b350f62009-11-15 23:12:43 +000017868$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017869
17870 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17871fi
17872
17873
17874
17875
17876LT_DLPREOPEN=
17877if test -n "$LT_DLLOADERS"
17878then
17879 for lt_loader in $LT_DLLOADERS; do
17880 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17881 done
17882
cristy8b350f62009-11-15 23:12:43 +000017883$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000017884
17885fi
17886
17887
17888LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17889
17890
17891ac_ext=c
17892ac_cpp='$CPP $CPPFLAGS'
17893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895ac_compiler_gnu=$ac_cv_c_compiler_gnu
17896
17897
cristy8b350f62009-11-15 23:12:43 +000017898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000017899$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017900if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017901 $as_echo_n "(cached) " >&6
17902else
17903 lt_cv_sys_symbol_underscore=no
17904 cat > conftest.$ac_ext <<_LT_EOF
17905void nm_test_func(){}
17906int main(){nm_test_func;return 0;}
17907_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000017908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017909 (eval $ac_compile) 2>&5
17910 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17912 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017913 # Now try to grab the symbols.
17914 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000017915 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 +000017916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17917 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17919 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000017920 # See whether the symbols have a leading underscore.
17921 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
17922 lt_cv_sys_symbol_underscore=yes
17923 else
17924 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
17925 :
17926 else
17927 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
17928 fi
17929 fi
17930 else
17931 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
17932 fi
17933 else
17934 echo "configure: failed program was:" >&5
17935 cat conftest.c >&5
17936 fi
17937 rm -rf conftest*
17938
17939fi
cristy8b350f62009-11-15 23:12:43 +000017940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000017941$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
17942 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
17943
17944
17945if test x"$lt_cv_sys_symbol_underscore" = xyes; then
17946 if test x"$libltdl_cv_func_dlopen" = xyes ||
17947 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000017948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000017949$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017950if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017951 $as_echo_n "(cached) " >&6
17952else
17953 libltdl_cv_need_uscore=unknown
17954 save_LIBS="$LIBS"
17955 LIBS="$LIBS $LIBADD_DLOPEN"
17956 if test "$cross_compiling" = yes; then :
17957 libltdl_cv_need_uscore=cross
17958else
17959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17960 lt_status=$lt_dlunknown
17961 cat > conftest.$ac_ext <<_LT_EOF
cristy43596fe2010-01-21 16:46:08 +000017962#line 17962 "configure"
cristy3ed852e2009-09-05 21:47:34 +000017963#include "confdefs.h"
17964
17965#if HAVE_DLFCN_H
17966#include <dlfcn.h>
17967#endif
17968
17969#include <stdio.h>
17970
17971#ifdef RTLD_GLOBAL
17972# define LT_DLGLOBAL RTLD_GLOBAL
17973#else
17974# ifdef DL_GLOBAL
17975# define LT_DLGLOBAL DL_GLOBAL
17976# else
17977# define LT_DLGLOBAL 0
17978# endif
17979#endif
17980
17981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17982 find out it does not work in some platform. */
17983#ifndef LT_DLLAZY_OR_NOW
17984# ifdef RTLD_LAZY
17985# define LT_DLLAZY_OR_NOW RTLD_LAZY
17986# else
17987# ifdef DL_LAZY
17988# define LT_DLLAZY_OR_NOW DL_LAZY
17989# else
17990# ifdef RTLD_NOW
17991# define LT_DLLAZY_OR_NOW RTLD_NOW
17992# else
17993# ifdef DL_NOW
17994# define LT_DLLAZY_OR_NOW DL_NOW
17995# else
17996# define LT_DLLAZY_OR_NOW 0
17997# endif
17998# endif
17999# endif
18000# endif
18001#endif
18002
cristy18304f92009-11-22 15:48:26 +000018003void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000018004int main ()
18005{
18006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18007 int status = $lt_dlunknown;
18008
18009 if (self)
18010 {
18011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000018012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000018013 /* dlclose (self); */
18014 }
18015 else
18016 puts (dlerror ());
18017
18018 return status;
18019}
18020_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018022 (eval $ac_link) 2>&5
18023 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18025 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000018026 (./conftest; exit; ) >&5 2>/dev/null
18027 lt_status=$?
18028 case x$lt_status in
18029 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18030 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18031 x$lt_dlunknown|x*) ;;
18032 esac
18033 else :
18034 # compilation failed
18035
18036 fi
18037fi
18038rm -fr conftest*
18039
18040 LIBS="$save_LIBS"
18041
18042fi
cristy8b350f62009-11-15 23:12:43 +000018043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018044$as_echo "$libltdl_cv_need_uscore" >&6; }
18045 fi
18046fi
18047
18048if test x"$libltdl_cv_need_uscore" = xyes; then
18049
cristy8b350f62009-11-15 23:12:43 +000018050$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018051
18052fi
18053
cristy8b350f62009-11-15 23:12:43 +000018054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018055$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018056if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018057 $as_echo_n "(cached) " >&6
18058else
18059 # PORTME does your system automatically load deplibs for dlopen?
18060 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18061 # For now, we just catch OSes we know something about -- in the
18062 # future, we'll try test this programmatically.
18063 lt_cv_sys_dlopen_deplibs=unknown
18064 case $host_os in
18065 aix3*|aix4.1.*|aix4.2.*)
18066 # Unknown whether this is true for these versions of AIX, but
18067 # we want this `case' here to explicitly catch those versions.
18068 lt_cv_sys_dlopen_deplibs=unknown
18069 ;;
18070 aix[4-9]*)
18071 lt_cv_sys_dlopen_deplibs=yes
18072 ;;
18073 amigaos*)
18074 case $host_cpu in
18075 powerpc)
18076 lt_cv_sys_dlopen_deplibs=no
18077 ;;
18078 esac
18079 ;;
18080 darwin*)
18081 # Assuming the user has installed a libdl from somewhere, this is true
18082 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18083 lt_cv_sys_dlopen_deplibs=yes
18084 ;;
18085 freebsd* | dragonfly*)
18086 lt_cv_sys_dlopen_deplibs=yes
18087 ;;
cristy18304f92009-11-22 15:48:26 +000018088 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018089 # GNU and its variants, using gnu ld.so (Glibc)
18090 lt_cv_sys_dlopen_deplibs=yes
18091 ;;
18092 hpux10*|hpux11*)
18093 lt_cv_sys_dlopen_deplibs=yes
18094 ;;
18095 interix*)
18096 lt_cv_sys_dlopen_deplibs=yes
18097 ;;
18098 irix[12345]*|irix6.[01]*)
18099 # Catch all versions of IRIX before 6.2, and indicate that we don't
18100 # know how it worked for any of those versions.
18101 lt_cv_sys_dlopen_deplibs=unknown
18102 ;;
18103 irix*)
18104 # The case above catches anything before 6.2, and it's known that
18105 # at 6.2 and later dlopen does load deplibs.
18106 lt_cv_sys_dlopen_deplibs=yes
18107 ;;
18108 netbsd*)
18109 lt_cv_sys_dlopen_deplibs=yes
18110 ;;
18111 openbsd*)
18112 lt_cv_sys_dlopen_deplibs=yes
18113 ;;
18114 osf[1234]*)
18115 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18116 # it did *not* use an RPATH in a shared library to find objects the
18117 # library depends on, so we explicitly say `no'.
18118 lt_cv_sys_dlopen_deplibs=no
18119 ;;
18120 osf5.0|osf5.0a|osf5.1)
18121 # dlopen *does* load deplibs and with the right loader patch applied
18122 # it even uses RPATH in a shared library to search for shared objects
18123 # that the library depends on, but there's no easy way to know if that
18124 # patch is installed. Since this is the case, all we can really
18125 # say is unknown -- it depends on the patch being installed. If
18126 # it is, this changes to `yes'. Without it, it would be `no'.
18127 lt_cv_sys_dlopen_deplibs=unknown
18128 ;;
18129 osf*)
18130 # the two cases above should catch all versions of osf <= 5.1. Read
18131 # the comments above for what we know about them.
18132 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18133 # is used to find them so we can finally say `yes'.
18134 lt_cv_sys_dlopen_deplibs=yes
18135 ;;
18136 qnx*)
18137 lt_cv_sys_dlopen_deplibs=yes
18138 ;;
18139 solaris*)
18140 lt_cv_sys_dlopen_deplibs=yes
18141 ;;
18142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18143 libltdl_cv_sys_dlopen_deplibs=yes
18144 ;;
18145 esac
18146
18147fi
cristy8b350f62009-11-15 23:12:43 +000018148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018149$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18150if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18151
cristy8b350f62009-11-15 23:12:43 +000018152$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018153
18154fi
18155
18156:
18157
cristy3ed852e2009-09-05 21:47:34 +000018158for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000018159do :
18160 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18161"
18162if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018163 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018164#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000018165_ACEOF
18166
18167fi
18168
18169done
18170
18171
cristy8b350f62009-11-15 23:12:43 +000018172ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000018173# include <argz.h>
18174#endif
cristy8b350f62009-11-15 23:12:43 +000018175"
18176if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018177
18178cat >>confdefs.h <<_ACEOF
18179#define HAVE_ERROR_T 1
18180_ACEOF
18181
18182
18183else
18184
cristy8b350f62009-11-15 23:12:43 +000018185$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018186
18187
cristy8b350f62009-11-15 23:12:43 +000018188$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018189
18190fi
18191
18192
18193ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000018194for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18195 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000018196do :
18197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18198ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18199eval as_val=\$$as_ac_var
18200 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018201 cat >>confdefs.h <<_ACEOF
18202#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18203_ACEOF
18204
18205else
18206 ARGZ_H=argz.h;
18207
18208 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18209
18210fi
18211done
18212
18213
cristy8b350f62009-11-15 23:12:43 +000018214if test -z "$ARGZ_H"; then :
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018216$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018217if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018218 $as_echo_n "(cached) " >&6
18219else
18220 case $host_os in #(
18221 *cygwin*)
18222 lt_cv_sys_argz_works=no
18223 if test "$cross_compiling" != no; then
18224 lt_cv_sys_argz_works="guessing no"
18225 else
18226 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18227 save_IFS=$IFS
18228 IFS=-.
18229 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18230 IFS=$save_IFS
18231 lt_os_major=${2-0}
18232 lt_os_minor=${3-0}
18233 lt_os_micro=${4-0}
18234 if test "$lt_os_major" -gt 1 \
18235 || { test "$lt_os_major" -eq 1 \
18236 && { test "$lt_os_minor" -gt 5 \
18237 || { test "$lt_os_minor" -eq 5 \
18238 && test "$lt_os_micro" -gt 24; }; }; }; then
18239 lt_cv_sys_argz_works=yes
18240 fi
18241 fi
18242 ;; #(
18243 *) lt_cv_sys_argz_works=yes ;;
18244 esac
18245fi
cristy8b350f62009-11-15 23:12:43 +000018246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000018247$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018248 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018249
cristy8b350f62009-11-15 23:12:43 +000018250$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018251
18252else
18253 ARGZ_H=argz.h
18254
18255
18256 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18257
18258fi
cristy3ed852e2009-09-05 21:47:34 +000018259fi
18260
18261
18262
cristy8b350f62009-11-15 23:12:43 +000018263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018264$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018265if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018266 $as_echo_n "(cached) " >&6
18267else
18268 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18269 libltdl_cv_preloaded_symbols=yes
18270 else
18271 libltdl_cv_preloaded_symbols=no
18272 fi
18273
18274fi
cristy8b350f62009-11-15 23:12:43 +000018275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018276$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18277if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18278
cristy8b350f62009-11-15 23:12:43 +000018279$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018280
18281fi
18282
18283# Set options
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000018296if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018297 withval=$with_included_ltdl;
18298fi
18299
18300
18301if test "x$with_included_ltdl" != xyes; then
18302 # We are not being forced to use the included libltdl sources, so
18303 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000018304 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000018305
cristy8b350f62009-11-15 23:12:43 +000018306"
18307if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18308 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 +000018309 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000018310"
18311if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000018313$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018314if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018315 $as_echo_n "(cached) " >&6
18316else
18317 ac_check_lib_save_LIBS=$LIBS
18318LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018320/* end confdefs.h. */
18321
18322/* Override any GCC internal prototype to avoid an error.
18323 Use char because int might match the return type of a GCC
18324 builtin and then its argument prototype would still apply. */
18325#ifdef __cplusplus
18326extern "C"
18327#endif
18328char lt_dladvise_preload ();
18329int
18330main ()
18331{
18332return lt_dladvise_preload ();
18333 ;
18334 return 0;
18335}
18336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018337if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018338 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18339else
cristy8b350f62009-11-15 23:12:43 +000018340 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000018341fi
cristy8b350f62009-11-15 23:12:43 +000018342rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018344LIBS=$ac_check_lib_save_LIBS
18345fi
cristy8b350f62009-11-15 23:12:43 +000018346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000018347$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018348if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018349 with_included_ltdl=no
18350else
18351 with_included_ltdl=yes
18352fi
18353
18354else
18355 with_included_ltdl=yes
18356fi
18357
18358else
18359 with_included_ltdl=yes
18360fi
18361
18362
18363fi
18364
18365
18366
18367
18368# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000018369if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018370 withval=$with_ltdl_include;
18371fi
18372
18373
18374if test -n "$with_ltdl_include"; then
18375 if test -f "$with_ltdl_include/ltdl.h"; then :
18376 else
cristy8b350f62009-11-15 23:12:43 +000018377 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018378 fi
18379else
18380 with_ltdl_include=no
18381fi
18382
18383
18384# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000018385if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018386 withval=$with_ltdl_lib;
18387fi
18388
18389
18390if test -n "$with_ltdl_lib"; then
18391 if test -f "$with_ltdl_lib/libltdl.la"; then :
18392 else
cristy8b350f62009-11-15 23:12:43 +000018393 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018394 fi
18395else
18396 with_ltdl_lib=no
18397fi
18398
18399case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18400 ,yes,no,no,)
18401 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000018402 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000018403 "") enable_ltdl_convenience=yes
18404 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18405esac
18406LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18407LTDLDEPS=$LIBLTDL
18408LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18409
18410
18411
18412
18413
18414# For backwards non-gettext consistent compatibility...
18415INCLTDL="$LTDLINCL"
18416
18417
18418 ;;
18419 ,no,no,no,)
18420 # If the included ltdl is not to be used, then use the
18421 # preinstalled libltdl we found.
18422
cristy8b350f62009-11-15 23:12:43 +000018423$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018424
18425 LIBLTDL=-lltdl
18426 LTDLDEPS=
18427 LTDLINCL=
18428 ;;
18429 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000018430 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000018431 ;;
18432 *) with_included_ltdl=no
18433 LIBLTDL="-L$with_ltdl_lib -lltdl"
18434 LTDLDEPS=
18435 LTDLINCL="-I$with_ltdl_include"
18436 ;;
18437esac
18438INCLTDL="$LTDLINCL"
18439
18440# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000018441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000018442$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018444$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000018446$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000018448$as_echo "$LIBLTDL" >&6; }
18449
18450
18451
18452# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000018453if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018454 enableval=$enable_ltdl_install;
18455fi
18456
18457
18458case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18459 *yes*) ;;
18460 *) enable_ltdl_convenience=yes ;;
18461esac
18462
18463 if test x"${enable_ltdl_install-no}" != xno; then
18464 INSTALL_LTDL_TRUE=
18465 INSTALL_LTDL_FALSE='#'
18466else
18467 INSTALL_LTDL_TRUE='#'
18468 INSTALL_LTDL_FALSE=
18469fi
18470
18471 if test x"${enable_ltdl_convenience-no}" != xno; then
18472 CONVENIENCE_LTDL_TRUE=
18473 CONVENIENCE_LTDL_FALSE='#'
18474else
18475 CONVENIENCE_LTDL_TRUE='#'
18476 CONVENIENCE_LTDL_FALSE=
18477fi
18478
18479
18480
18481
18482
18483
cristy18304f92009-11-22 15:48:26 +000018484
cristy3ed852e2009-09-05 21:47:34 +000018485# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18486# the user used. This is so that ltdl.h can pick up the parent projects
18487# config.h file, The first file in AC_CONFIG_HEADERS must contain the
18488# definitions required by ltdl.c.
18489# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18490
18491
18492
cristy3ed852e2009-09-05 21:47:34 +000018493for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000018494do :
18495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18497"
18498eval as_val=\$$as_ac_Header
18499 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018500 cat >>confdefs.h <<_ACEOF
18501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18502_ACEOF
18503
18504fi
18505
18506done
18507
18508
cristy3ed852e2009-09-05 21:47:34 +000018509for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000018510do :
18511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18512ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18513eval as_val=\$$as_ac_var
18514 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018515 cat >>confdefs.h <<_ACEOF
18516#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18517_ACEOF
18518
18519else
18520
18521
18522 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18523
18524fi
18525done
18526
cristy3ed852e2009-09-05 21:47:34 +000018527for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000018528do :
18529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18530ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18531eval as_val=\$$as_ac_var
18532 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018533 cat >>confdefs.h <<_ACEOF
18534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18535_ACEOF
18536
18537else
18538
18539
18540 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18541
18542fi
18543done
18544
18545
18546
18547cat >>confdefs.h <<_ACEOF
18548#define LT_LIBEXT "$libext"
18549_ACEOF
18550
18551
18552name=ltdl
18553LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18554
18555
18556
18557
18558
18559
18560
18561
18562# Only expand once:
18563
18564
18565
18566# Check to see if building shared libraries
18567libtool_build_shared_libs='no'
18568if test "$enable_shared" = 'yes'; then
18569 libtool_build_shared_libs='yes'
18570fi
18571
18572# Check to see if building static libraries
18573libtool_build_static_libs='no'
18574if test "$enable_static" = 'yes'; then
18575 libtool_build_static_libs='yes'
18576fi
18577
cristyfa112112010-01-04 17:48:07 +000018578 if test "${libtool_build_shared_libs}" = 'yes'; then
18579 WITH_SHARED_LIBS_TRUE=
18580 WITH_SHARED_LIBS_FALSE='#'
18581else
18582 WITH_SHARED_LIBS_TRUE='#'
18583 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000018584fi
18585
18586#
18587# Enable support for building loadable modules
18588#
18589
18590# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000018591if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018592 withval=$with_modules; with_modules=$withval
18593else
cristy5a1cefd2010-01-06 20:42:35 +000018594 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000018595fi
18596
18597
18598# Only allow building loadable modules if we are building shared libraries
18599if test "$with_modules" != 'no' ; then
18600 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000018601 { $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 +000018602$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18603 with_modules='no'
18604 fi
18605fi
18606if test "$with_modules" != 'no'; then
18607
cristy8b350f62009-11-15 23:12:43 +000018608$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018609
18610fi
18611 if test "$with_modules" != 'no'; then
18612 WITH_MODULES_TRUE=
18613 WITH_MODULES_FALSE='#'
18614else
18615 WITH_MODULES_TRUE='#'
18616 WITH_MODULES_FALSE=
18617fi
18618
18619
18620# Enable building/use of libltdl if we are building shared libraries regardless
18621# of whether modules are built or not.
18622with_ltdl='no'
18623if test "$libtool_build_shared_libs" != 'no'; then
18624 with_ltdl='yes'
18625fi
18626
18627 if test "$with_ltdl" != 'no'; then
18628 WITH_LTDL_TRUE=
18629 WITH_LTDL_FALSE='#'
18630else
18631 WITH_LTDL_TRUE='#'
18632 WITH_LTDL_FALSE=
18633fi
18634
18635if test "$with_ltdl" != 'no'; then
18636
cristy8b350f62009-11-15 23:12:43 +000018637$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018638
18639
18640 # Set DLLDFLAGS
18641 if test X"$enable_shared" = Xyes; then
18642 DLLDFLAGS=-export-dynamic
18643
18644 fi
18645fi
18646
18647# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000018648# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000018649# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000018650if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018651 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18652else
18653 enable_delegate_build='no'
18654fi
18655
18656
18657# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000018658if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018659 enableval=$enable_deprecated; enable_deprecated=$enableval
18660else
18661 enable_deprecated='no'
18662fi
18663
18664
18665if test "$enable_deprecated" = 'yes'; then
18666
cristy8b350f62009-11-15 23:12:43 +000018667$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018668
18669else
18670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18671fi
18672
18673# Build a version of ImageMagick which operates uninstalled.
18674# Used to build distributions located via MAGICK_HOME / executable path
18675# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000018676if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018677 enableval=$enable_installed; enable_installed=$enableval
18678else
18679 enable_installed='yes'
18680fi
18681
18682
18683if test "$enable_installed" = 'yes'; then
18684
cristy8b350f62009-11-15 23:12:43 +000018685$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018686
18687else
18688 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18689fi
18690
18691# Permit enciphering and deciphering image pixels.
18692# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000018693if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018694 enableval=$enable_cipher; enable_cipher=$enableval
18695else
18696 enable_cipher='yes'
18697fi
18698
18699
18700if test "$enable_cipher" = 'yes'; then
18701
cristy8b350f62009-11-15 23:12:43 +000018702$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018703
18704fi
18705
18706# Build an embeddable version of ImageMagick.
18707# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000018708if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018709 enableval=$enable_embeddable; enable_embeddable=$enableval
18710else
18711 enable_embeddable='no'
18712fi
18713
18714
18715if test "$enable_embeddable" = 'yes'; then
18716
cristy8b350f62009-11-15 23:12:43 +000018717$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018718
18719fi
18720
18721# Build a high dynamic range version of ImageMagick.
18722# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000018723if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018724 enableval=$enable_hdri; enable_hdri=$enableval
18725else
18726 enable_hdri='no'
18727fi
18728
18729
18730MAGICK_HDRI=""
18731if test "$enable_hdri" = 'yes'; then
18732 MAGICK_HDRI="HDRI"
18733
cristy8b350f62009-11-15 23:12:43 +000018734$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018735
18736fi
18737
cristy3ed852e2009-09-05 21:47:34 +000018738# Build a version of ImageMagick with assert statements.
18739# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000018740if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018741 enableval=$enable_assert; enable_assert=$enableval
18742else
18743 enable_assert='yes'
18744fi
18745
18746
18747if test "$enable_assert" = 'no'; then
18748
cristy8b350f62009-11-15 23:12:43 +000018749$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018750
18751fi
18752
18753# Add configure option --enable-maintainer-mode which enables dependency
18754# checking and generation useful to package maintainers. This is made an
18755# option to avoid confusing end users.
18756
cristy8b350f62009-11-15 23:12:43 +000018757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000018758$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18759 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000018760if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18762else
18763 USE_MAINTAINER_MODE=no
18764fi
18765
cristy8b350f62009-11-15 23:12:43 +000018766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000018767$as_echo "$USE_MAINTAINER_MODE" >&6; }
18768 if test $USE_MAINTAINER_MODE = yes; then
18769 MAINTAINER_MODE_TRUE=
18770 MAINTAINER_MODE_FALSE='#'
18771else
18772 MAINTAINER_MODE_TRUE='#'
18773 MAINTAINER_MODE_FALSE=
18774fi
18775
18776 MAINT=$MAINTAINER_MODE_TRUE
18777
18778
18779
18780
18781# Enable ccmalloc memory debugging support
18782# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000018783if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018784 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18785else
18786 enable_ccmalloc='no'
18787fi
18788
18789
18790# Enable Electric Fence memory debugging support
18791# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000018792if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018793 enableval=$enable_efence; enable_efence=$enableval
18794else
18795 enable_efence='no'
18796fi
18797
18798
18799# Enable prof-based profiling support
18800# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000018801if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018802 enableval=$enable_prof; enable_prof=$enableval
18803else
18804 enable_prof='no'
18805fi
18806
18807
18808# Enable gprof-based profiling support
18809# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000018810if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018811 enableval=$enable_gprof; enable_gprof=$enableval
18812else
18813 enable_gprof='no'
18814fi
18815
18816
18817# Enable gcov-based profiling support
18818# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000018819if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018820 enableval=$enable_gcov; enable_gcov=$enableval
18821else
18822 enable_gcov='no'
18823fi
18824
18825
18826enable_profiling='no'
18827if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18828 enable_profiling='yes'
18829 if test "$libtool_build_shared_libs" = 'yes'; then
18830 echo "Warning: Can not profile code using shared libraries"
18831 fi
18832fi
18833
18834# Magick API method prefix
18835
18836# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000018837if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018838 withval=$with_method_prefix; with_method_prefix=$enableval
18839else
18840 with_method_prefix=''
18841fi
18842
18843
18844if test "$with_method_prefix" != ''; then
18845
18846cat >>confdefs.h <<_ACEOF
18847#define NAMESPACE_PREFIX $with_method_prefix
18848_ACEOF
18849
18850fi
18851
18852# Number of bits in a Quantum
18853
18854# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000018855if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018856 withval=$with_quantum_depth; with_quantum_depth=$withval
18857else
18858 with_quantum_depth=16
18859fi
18860
18861
18862if test "$with_quantum_depth" != '8'; then
18863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18864fi
18865
18866case "${with_quantum_depth}" in
18867 8 ) ;;
18868 16 ) ;;
18869 32 ) ;;
18870 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000018871 * ) { as_fn_set_status 16
18872as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000018873esac
18874QUANTUM_DEPTH="$with_quantum_depth"
18875
18876cat >>confdefs.h <<_ACEOF
18877#define QUANTUM_DEPTH $QUANTUM_DEPTH
18878_ACEOF
18879
18880
18881# Set pixel cache threshold
18882
18883# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000018884if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018885 withval=$with_cache; with_cache=$withval
18886else
18887 with_cache=''
18888fi
18889
18890
18891if test "$with_cache" != ''; then
18892
18893cat >>confdefs.h <<_ACEOF
18894#define PixelCacheThreshold $with_cache
18895_ACEOF
18896
18897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18898fi
18899
18900# Disable/Enable support for full delegate paths
18901
18902# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000018903if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018904 withval=$with_frozenpaths; with_frozenpaths=$withval
18905else
18906 with_frozenpaths='no'
18907fi
18908
18909
18910# Enable build/install of Magick++
18911
18912# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000018913if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018914 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18915else
18916 with_magick_plus_plus='yes'
18917fi
18918
18919
18920# Disable build/install of PerlMagick.
18921
18922# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000018923if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018924 withval=$with_perl; with_perl=$withval
18925else
18926 with_perl=$libtool_build_shared_libs
18927fi
18928
18929
18930# Options to pass when configuring PerlMagick
18931
18932# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000018933if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000018934 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000018935fi
18936
18937
cristy3ed852e2009-09-05 21:47:34 +000018938
18939# Enable umem, object-caching memory allocation library.
18940
18941# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000018942if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018943 withval=$with_umem; with_umem=$withval
18944else
18945 with_umem='no'
18946fi
18947
18948if test "$with_umem" != 'yes' ; then
18949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
18950fi
18951
18952#
18953# Specify path to shared libstdc++ if not in normal location
18954#
18955
18956# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000018957if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018958 withval=$with_libstdc; with_libstdc=$withval
18959else
18960 with_libstdc=''
18961fi
18962
18963
18964if test "$with_libstdc" != ''; then
18965 if test -d "$with_libstdc"; then
18966 LIBSTDCLDFLAGS="-L$with_libstdc"
18967 fi
18968fi
18969
18970
18971# Does gcc required -traditional?
18972if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000018973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000018974$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018975if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018976 $as_echo_n "(cached) " >&6
18977else
18978 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000018979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018980/* end confdefs.h. */
18981#include <sgtty.h>
18982Autoconf TIOCGETP
18983_ACEOF
18984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000018985 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000018986 ac_cv_prog_gcc_traditional=yes
18987else
18988 ac_cv_prog_gcc_traditional=no
18989fi
18990rm -f conftest*
18991
18992
18993 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000018994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018995/* end confdefs.h. */
18996#include <termio.h>
18997Autoconf TCGETA
18998_ACEOF
18999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019000 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019001 ac_cv_prog_gcc_traditional=yes
19002fi
19003rm -f conftest*
19004
19005 fi
19006fi
cristy8b350f62009-11-15 23:12:43 +000019007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019008$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19009 if test $ac_cv_prog_gcc_traditional = yes; then
19010 CC="$CC -traditional"
19011 fi
19012fi
19013
19014
19015########
19016#
19017# Set defines required to build DLLs and modules using MinGW
19018#
19019########
19020# These options are set for multi-thread DLL module build
19021# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19022# module: _DLL
19023# executable/Magick++: _DLL _MAGICKMOD_
19024MODULE_EXTRA_CPPFLAGS=''
19025LIBRARY_EXTRA_CPPFLAGS=''
19026if test "${native_win32_build}" = 'yes'; then
19027 if test "${libtool_build_shared_libs}" = 'yes'; then
19028 CPPFLAGS="$CPPFLAGS -D_DLL"
19029 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19030 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19031 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19032 if test "$with_modules" = 'yes'; then
19033 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19034 else
19035 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19036 fi
19037 else
19038 CPPFLAGS="$CPPFLAGS -D_LIB"
19039 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19040 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19041 fi
19042 if test "$with_threads" = 'yes'; then
19043 CPPFLAGS="$CPPFLAGS -D_MT"
19044 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19045 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19046 fi
19047fi
19048
19049
19050
19051# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000019052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000019053$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019054if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019055 $as_echo_n "(cached) " >&6
19056else
cristy8b350f62009-11-15 23:12:43 +000019057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019058/* end confdefs.h. */
19059#include <stdlib.h>
19060#include <stdarg.h>
19061#include <string.h>
19062#include <float.h>
19063
19064int
19065main ()
19066{
19067
19068 ;
19069 return 0;
19070}
19071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019072if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019073 ac_cv_header_stdc=yes
19074else
cristy8b350f62009-11-15 23:12:43 +000019075 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019076fi
cristy3ed852e2009-09-05 21:47:34 +000019077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19078
19079if test $ac_cv_header_stdc = yes; then
19080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019082/* end confdefs.h. */
19083#include <string.h>
19084
19085_ACEOF
19086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019087 $EGREP "memchr" >/dev/null 2>&1; then :
19088
cristy3ed852e2009-09-05 21:47:34 +000019089else
19090 ac_cv_header_stdc=no
19091fi
19092rm -f conftest*
19093
19094fi
19095
19096if test $ac_cv_header_stdc = yes; then
19097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000019098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019099/* end confdefs.h. */
19100#include <stdlib.h>
19101
19102_ACEOF
19103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019104 $EGREP "free" >/dev/null 2>&1; then :
19105
cristy3ed852e2009-09-05 21:47:34 +000019106else
19107 ac_cv_header_stdc=no
19108fi
19109rm -f conftest*
19110
19111fi
19112
19113if test $ac_cv_header_stdc = yes; then
19114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000019115 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019116 :
19117else
cristy8b350f62009-11-15 23:12:43 +000019118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019119/* end confdefs.h. */
19120#include <ctype.h>
19121#include <stdlib.h>
19122#if ((' ' & 0x0FF) == 0x020)
19123# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19124# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19125#else
19126# define ISLOWER(c) \
19127 (('a' <= (c) && (c) <= 'i') \
19128 || ('j' <= (c) && (c) <= 'r') \
19129 || ('s' <= (c) && (c) <= 'z'))
19130# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19131#endif
19132
19133#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19134int
19135main ()
19136{
19137 int i;
19138 for (i = 0; i < 256; i++)
19139 if (XOR (islower (i), ISLOWER (i))
19140 || toupper (i) != TOUPPER (i))
19141 return 2;
19142 return 0;
19143}
19144_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019145if ac_fn_c_try_run "$LINENO"; then :
19146
cristy3ed852e2009-09-05 21:47:34 +000019147else
cristy8b350f62009-11-15 23:12:43 +000019148 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000019149fi
cristy8b350f62009-11-15 23:12:43 +000019150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19151 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019152fi
19153
cristy3ed852e2009-09-05 21:47:34 +000019154fi
19155fi
cristy8b350f62009-11-15 23:12:43 +000019156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000019157$as_echo "$ac_cv_header_stdc" >&6; }
19158if test $ac_cv_header_stdc = yes; then
19159
cristy8b350f62009-11-15 23:12:43 +000019160$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019161
19162fi
19163
19164if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000019165 { $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 +000019166 header files. Compilation cannot proceed. Please install the ANSI C
19167 headers and rerun this script." >&5
19168$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19169 header files. Compilation cannot proceed. Please install the ANSI C
19170 headers and rerun this script." >&2;};
19171fi
cristy3ed852e2009-09-05 21:47:34 +000019172ac_header_dirent=no
19173for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19174 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000019175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000019176$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000019178 $as_echo_n "(cached) " >&6
19179else
cristy8b350f62009-11-15 23:12:43 +000019180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019181/* end confdefs.h. */
19182#include <sys/types.h>
19183#include <$ac_hdr>
19184
19185int
19186main ()
19187{
19188if ((DIR *) 0)
19189return 0;
19190 ;
19191 return 0;
19192}
19193_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019194if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019195 eval "$as_ac_Header=yes"
19196else
cristy8b350f62009-11-15 23:12:43 +000019197 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000019198fi
cristy3ed852e2009-09-05 21:47:34 +000019199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200fi
cristy8b350f62009-11-15 23:12:43 +000019201eval ac_res=\$$as_ac_Header
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000019203$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019204eval as_val=\$$as_ac_Header
19205 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019206 cat >>confdefs.h <<_ACEOF
19207#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19208_ACEOF
19209
19210ac_header_dirent=$ac_hdr; break
19211fi
19212
19213done
19214# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19215if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000019216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019217$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019218if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019219 $as_echo_n "(cached) " >&6
19220else
19221 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019223/* end confdefs.h. */
19224
19225/* Override any GCC internal prototype to avoid an error.
19226 Use char because int might match the return type of a GCC
19227 builtin and then its argument prototype would still apply. */
19228#ifdef __cplusplus
19229extern "C"
19230#endif
19231char opendir ();
19232int
19233main ()
19234{
19235return opendir ();
19236 ;
19237 return 0;
19238}
19239_ACEOF
19240for ac_lib in '' dir; do
19241 if test -z "$ac_lib"; then
19242 ac_res="none required"
19243 else
19244 ac_res=-l$ac_lib
19245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19246 fi
cristy8b350f62009-11-15 23:12:43 +000019247 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019248 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019249fi
cristy8b350f62009-11-15 23:12:43 +000019250rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext
19252 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019253 break
19254fi
19255done
cristy8b350f62009-11-15 23:12:43 +000019256if test "${ac_cv_search_opendir+set}" = set; then :
19257
cristy3ed852e2009-09-05 21:47:34 +000019258else
19259 ac_cv_search_opendir=no
19260fi
19261rm conftest.$ac_ext
19262LIBS=$ac_func_search_save_LIBS
19263fi
cristy8b350f62009-11-15 23:12:43 +000019264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019265$as_echo "$ac_cv_search_opendir" >&6; }
19266ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019267if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19269
19270fi
19271
19272else
cristy8b350f62009-11-15 23:12:43 +000019273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019274$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019275if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019276 $as_echo_n "(cached) " >&6
19277else
19278 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019280/* end confdefs.h. */
19281
19282/* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19285#ifdef __cplusplus
19286extern "C"
19287#endif
19288char opendir ();
19289int
19290main ()
19291{
19292return opendir ();
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297for ac_lib in '' x; do
19298 if test -z "$ac_lib"; then
19299 ac_res="none required"
19300 else
19301 ac_res=-l$ac_lib
19302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19303 fi
cristy8b350f62009-11-15 23:12:43 +000019304 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019305 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019306fi
cristy8b350f62009-11-15 23:12:43 +000019307rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext
19309 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019310 break
19311fi
19312done
cristy8b350f62009-11-15 23:12:43 +000019313if test "${ac_cv_search_opendir+set}" = set; then :
19314
cristy3ed852e2009-09-05 21:47:34 +000019315else
19316 ac_cv_search_opendir=no
19317fi
19318rm conftest.$ac_ext
19319LIBS=$ac_func_search_save_LIBS
19320fi
cristy8b350f62009-11-15 23:12:43 +000019321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000019322$as_echo "$ac_cv_search_opendir" >&6; }
19323ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000019324if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19326
19327fi
19328
19329fi
19330
19331
19332# Check additional headers
cristy98e91bd2010-01-12 01:11:42 +000019333for 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 +000019334do :
19335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19336ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19337eval as_val=\$$as_ac_Header
19338 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019339 cat >>confdefs.h <<_ACEOF
19340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19341_ACEOF
19342
19343fi
19344
19345done
19346
19347
19348########
19349#
19350# Checks for typedefs, structures, and compiler characteristics.
19351#
19352########
19353
cristy8b350f62009-11-15 23:12:43 +000019354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000019355$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019356if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019357 $as_echo_n "(cached) " >&6
19358else
cristy8b350f62009-11-15 23:12:43 +000019359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019360/* end confdefs.h. */
19361
19362#include <stdbool.h>
19363#ifndef bool
19364 "error: bool is not defined"
19365#endif
19366#ifndef false
19367 "error: false is not defined"
19368#endif
19369#if false
19370 "error: false is not 0"
19371#endif
19372#ifndef true
19373 "error: true is not defined"
19374#endif
19375#if true != 1
19376 "error: true is not 1"
19377#endif
19378#ifndef __bool_true_false_are_defined
19379 "error: __bool_true_false_are_defined is not defined"
19380#endif
19381
19382 struct s { _Bool s: 1; _Bool t; } s;
19383
19384 char a[true == 1 ? 1 : -1];
19385 char b[false == 0 ? 1 : -1];
19386 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19387 char d[(bool) 0.5 == true ? 1 : -1];
19388 bool e = &s;
19389 char f[(_Bool) 0.0 == false ? 1 : -1];
19390 char g[true];
19391 char h[sizeof (_Bool)];
19392 char i[sizeof s.t];
19393 enum { j = false, k = true, l = false * true, m = true * 256 };
19394 /* The following fails for
19395 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19396 _Bool n[m];
19397 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19398 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19399# if defined __xlc__ || defined __GNUC__
19400 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19401 reported by James Lemley on 2005-10-05; see
19402 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19403 This test is not quite right, since xlc is allowed to
19404 reject this program, as the initializer for xlcbug is
19405 not one of the forms that C requires support for.
19406 However, doing the test right would require a runtime
19407 test, and that would make cross-compilation harder.
19408 Let us hope that IBM fixes the xlc bug, and also adds
19409 support for this kind of constant expression. In the
19410 meantime, this test will reject xlc, which is OK, since
19411 our stdbool.h substitute should suffice. We also test
19412 this with GCC, where it should work, to detect more
19413 quickly whether someone messes up the test in the
19414 future. */
19415 char digs[] = "0123456789";
19416 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19417# endif
19418 /* Catch a bug in an HP-UX C compiler. See
19419 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19420 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19421 */
19422 _Bool q = true;
19423 _Bool *pq = &q;
19424
19425int
19426main ()
19427{
19428
19429 *pq |= q;
19430 *pq |= ! q;
19431 /* Refer to every declared value, to avoid compiler optimizations. */
19432 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19433 + !m + !n + !o + !p + !q + !pq);
19434
19435 ;
19436 return 0;
19437}
19438_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019439if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019440 ac_cv_header_stdbool_h=yes
19441else
cristy8b350f62009-11-15 23:12:43 +000019442 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000019443fi
cristy3ed852e2009-09-05 21:47:34 +000019444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445fi
cristy8b350f62009-11-15 23:12:43 +000019446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000019447$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019448ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19449if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019450
19451cat >>confdefs.h <<_ACEOF
19452#define HAVE__BOOL 1
19453_ACEOF
19454
19455
19456fi
19457
19458if test $ac_cv_header_stdbool_h = yes; then
19459
cristy8b350f62009-11-15 23:12:43 +000019460$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019461
19462fi
19463
cristy8b350f62009-11-15 23:12:43 +000019464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019465$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019466if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019467 $as_echo_n "(cached) " >&6
19468else
cristy8b350f62009-11-15 23:12:43 +000019469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019470/* end confdefs.h. */
19471
19472int
19473main ()
19474{
19475
19476volatile int x;
19477int * volatile y = (int *) 0;
19478return !x && !y;
19479 ;
19480 return 0;
19481}
19482_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019483if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019484 ac_cv_c_volatile=yes
19485else
cristy8b350f62009-11-15 23:12:43 +000019486 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000019487fi
cristy3ed852e2009-09-05 21:47:34 +000019488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489fi
cristy8b350f62009-11-15 23:12:43 +000019490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000019491$as_echo "$ac_cv_c_volatile" >&6; }
19492if test $ac_cv_c_volatile = no; then
19493
cristy8b350f62009-11-15 23:12:43 +000019494$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019495
19496fi
19497
cristy8b350f62009-11-15 23:12:43 +000019498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000019499$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019500if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019501 $as_echo_n "(cached) " >&6
19502else
cristy8b350f62009-11-15 23:12:43 +000019503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019504/* end confdefs.h. */
19505#define x(y) #y
19506
19507char *s = x(teststring);
19508_ACEOF
19509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019510 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019511 ac_cv_c_stringize=no
19512else
19513 ac_cv_c_stringize=yes
19514fi
19515rm -f conftest*
19516
19517fi
cristy8b350f62009-11-15 23:12:43 +000019518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000019519$as_echo "$ac_cv_c_stringize" >&6; }
19520if test $ac_cv_c_stringize = yes; then
19521
cristy8b350f62009-11-15 23:12:43 +000019522$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019523
19524fi
19525
cristy8b350f62009-11-15 23:12:43 +000019526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019527$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019528if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019529 $as_echo_n "(cached) " >&6
19530else
cristy8b350f62009-11-15 23:12:43 +000019531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019532/* end confdefs.h. */
19533#include <sys/types.h>
19534#include <sys/stat.h>
19535
19536#if defined S_ISBLK && defined S_IFDIR
19537extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19538#endif
19539
19540#if defined S_ISBLK && defined S_IFCHR
19541extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19542#endif
19543
19544#if defined S_ISLNK && defined S_IFREG
19545extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19546#endif
19547
19548#if defined S_ISSOCK && defined S_IFREG
19549extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19550#endif
19551
19552_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019553if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019554 ac_cv_header_stat_broken=no
19555else
cristy8b350f62009-11-15 23:12:43 +000019556 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000019557fi
cristy3ed852e2009-09-05 21:47:34 +000019558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19559fi
cristy8b350f62009-11-15 23:12:43 +000019560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000019561$as_echo "$ac_cv_header_stat_broken" >&6; }
19562if test $ac_cv_header_stat_broken = yes; then
19563
cristy8b350f62009-11-15 23:12:43 +000019564$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019565
19566fi
19567
cristy8b350f62009-11-15 23:12:43 +000019568{ $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 +000019569$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019570if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019571 $as_echo_n "(cached) " >&6
19572else
cristy8b350f62009-11-15 23:12:43 +000019573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019574/* end confdefs.h. */
19575#include <sys/types.h>
19576#include <sys/time.h>
19577#include <time.h>
19578
19579int
19580main ()
19581{
19582if ((struct tm *) 0)
19583return 0;
19584 ;
19585 return 0;
19586}
19587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019588if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019589 ac_cv_header_time=yes
19590else
cristy8b350f62009-11-15 23:12:43 +000019591 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000019592fi
cristy3ed852e2009-09-05 21:47:34 +000019593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594fi
cristy8b350f62009-11-15 23:12:43 +000019595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000019596$as_echo "$ac_cv_header_time" >&6; }
19597if test $ac_cv_header_time = yes; then
19598
cristy8b350f62009-11-15 23:12:43 +000019599$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019600
19601fi
19602
cristy8b350f62009-11-15 23:12:43 +000019603{ $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 +000019604$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019605if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019606 $as_echo_n "(cached) " >&6
19607else
cristy8b350f62009-11-15 23:12:43 +000019608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019609/* end confdefs.h. */
19610#include <sys/types.h>
19611#include <time.h>
19612
19613int
19614main ()
19615{
19616struct tm tm;
19617 int *p = &tm.tm_sec;
19618 return !p;
19619 ;
19620 return 0;
19621}
19622_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019623if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019624 ac_cv_struct_tm=time.h
19625else
cristy8b350f62009-11-15 23:12:43 +000019626 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000019627fi
cristy3ed852e2009-09-05 21:47:34 +000019628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629fi
cristy8b350f62009-11-15 23:12:43 +000019630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000019631$as_echo "$ac_cv_struct_tm" >&6; }
19632if test $ac_cv_struct_tm = sys/time.h; then
19633
cristy8b350f62009-11-15 23:12:43 +000019634$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019635
19636fi
19637
cristy8b350f62009-11-15 23:12:43 +000019638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000019639$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019640if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019641 $as_echo_n "(cached) " >&6
19642else
19643 echo '#! /bin/cat
19644exit 69
19645' >conftest
19646chmod u+x conftest
19647(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19648if test $? -ne 69; then
19649 ac_cv_sys_interpreter=yes
19650else
19651 ac_cv_sys_interpreter=no
19652fi
19653rm -f conftest
19654fi
cristy8b350f62009-11-15 23:12:43 +000019655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000019656$as_echo "$ac_cv_sys_interpreter" >&6; }
19657interpval=$ac_cv_sys_interpreter
19658
19659
19660# If the C compiler does not fully support the ANSI C qualifier const,
19661# define const to be empty.
cristy8b350f62009-11-15 23:12:43 +000019662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019663$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019664if test "${ac_cv_c_const+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019665 $as_echo_n "(cached) " >&6
19666else
cristy8b350f62009-11-15 23:12:43 +000019667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019668/* end confdefs.h. */
19669
19670int
19671main ()
19672{
19673/* FIXME: Include the comments suggested by Paul. */
19674#ifndef __cplusplus
19675 /* Ultrix mips cc rejects this. */
19676 typedef int charset[2];
19677 const charset cs;
19678 /* SunOS 4.1.1 cc rejects this. */
19679 char const *const *pcpcc;
19680 char **ppc;
19681 /* NEC SVR4.0.2 mips cc rejects this. */
19682 struct point {int x, y;};
19683 static struct point const zero = {0,0};
19684 /* AIX XL C 1.02.0.0 rejects this.
19685 It does not let you subtract one const X* pointer from another in
19686 an arm of an if-expression whose if-part is not a constant
19687 expression */
19688 const char *g = "string";
19689 pcpcc = &g + (g ? g-g : 0);
19690 /* HPUX 7.0 cc rejects these. */
19691 ++pcpcc;
19692 ppc = (char**) pcpcc;
19693 pcpcc = (char const *const *) ppc;
19694 { /* SCO 3.2v4 cc rejects this. */
19695 char *t;
19696 char const *s = 0 ? (char *) 0 : (char const *) 0;
19697
19698 *t++ = 0;
19699 if (s) return 0;
19700 }
19701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19702 int x[] = {25, 17};
19703 const int *foo = &x[0];
19704 ++foo;
19705 }
19706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19707 typedef const int *iptr;
19708 iptr p = 0;
19709 ++p;
19710 }
19711 { /* AIX XL C 1.02.0.0 rejects this saying
19712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19713 struct s { int j; const int *ap[3]; };
19714 struct s *b; b->j = 5;
19715 }
19716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19717 const int foo = 10;
19718 if (!foo) return 0;
19719 }
19720 return !cs[0] && !zero.x;
19721#endif
19722
19723 ;
19724 return 0;
19725}
19726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019727if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019728 ac_cv_c_const=yes
19729else
cristy8b350f62009-11-15 23:12:43 +000019730 ac_cv_c_const=no
cristy3ed852e2009-09-05 21:47:34 +000019731fi
cristy3ed852e2009-09-05 21:47:34 +000019732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733fi
cristy8b350f62009-11-15 23:12:43 +000019734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
cristy3ed852e2009-09-05 21:47:34 +000019735$as_echo "$ac_cv_c_const" >&6; }
19736if test $ac_cv_c_const = no; then
19737
cristy8b350f62009-11-15 23:12:43 +000019738$as_echo "#define const /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019739
19740fi
19741
19742
19743# If the C compiler supports the keyword inline, do nothing. Otherwise
19744# define inline to __inline__ or __inline if it accepts one of those,
19745# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000019746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019747$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019748if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019749 $as_echo_n "(cached) " >&6
19750else
19751 ac_cv_c_inline=no
19752for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000019753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019754/* end confdefs.h. */
19755#ifndef __cplusplus
19756typedef int foo_t;
19757static $ac_kw foo_t static_foo () {return 0; }
19758$ac_kw foo_t foo () {return 0; }
19759#endif
19760
19761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019763 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019764fi
cristy3ed852e2009-09-05 21:47:34 +000019765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766 test "$ac_cv_c_inline" != no && break
19767done
19768
19769fi
cristy8b350f62009-11-15 23:12:43 +000019770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000019771$as_echo "$ac_cv_c_inline" >&6; }
19772
cristy3ed852e2009-09-05 21:47:34 +000019773case $ac_cv_c_inline in
19774 inline | yes) ;;
19775 *)
19776 case $ac_cv_c_inline in
19777 no) ac_val=;;
19778 *) ac_val=$ac_cv_c_inline;;
19779 esac
19780 cat >>confdefs.h <<_ACEOF
19781#ifndef __cplusplus
19782#define inline $ac_val
19783#endif
19784_ACEOF
19785 ;;
19786esac
19787
19788
19789# If the C compiler supports the keyword restrict, do nothing. Otherwise
19790# define restrict to __restrict__ or __restrict if it accepts one of those,
19791# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000019792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000019793$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019794if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019795 $as_echo_n "(cached) " >&6
19796else
19797 ac_cv_c_restrict=no
19798 # The order here caters to the fact that C++ does not require restrict.
19799 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000019800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019801/* end confdefs.h. */
19802typedef int * int_ptr;
19803 int foo (int_ptr $ac_kw ip) {
19804 return ip[0];
19805 }
19806int
19807main ()
19808{
19809int s[1];
19810 int * $ac_kw t = s;
19811 t[0] = 0;
19812 return foo(t)
19813 ;
19814 return 0;
19815}
19816_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019817if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019818 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000019819fi
cristy3ed852e2009-09-05 21:47:34 +000019820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19821 test "$ac_cv_c_restrict" != no && break
19822 done
19823
19824fi
cristy8b350f62009-11-15 23:12:43 +000019825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000019826$as_echo "$ac_cv_c_restrict" >&6; }
19827
cristy3ed852e2009-09-05 21:47:34 +000019828 case $ac_cv_c_restrict in
19829 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000019830 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019831 ;;
19832 *) cat >>confdefs.h <<_ACEOF
19833#define restrict $ac_cv_c_restrict
19834_ACEOF
19835 ;;
19836 esac
19837
19838
19839# If words are stored with the most significant byte first (like
19840# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000019841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000019842$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019843if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019844 $as_echo_n "(cached) " >&6
19845else
19846 ac_cv_c_bigendian=unknown
19847 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000019848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019849/* end confdefs.h. */
19850#ifndef __APPLE_CC__
19851 not a universal capable compiler
19852 #endif
19853 typedef int dummy;
19854
19855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019856if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019857
19858 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000019859 # there are at least two -arch flags with different values.
19860 ac_arch=
19861 ac_prev=
19862 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19863 if test -n "$ac_prev"; then
19864 case $ac_word in
19865 i?86 | x86_64 | ppc | ppc64)
19866 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19867 ac_arch=$ac_word
19868 else
19869 ac_cv_c_bigendian=universal
19870 break
19871 fi
19872 ;;
19873 esac
19874 ac_prev=
19875 elif test "x$ac_word" = "x-arch"; then
19876 ac_prev=arch
19877 fi
19878 done
cristy3ed852e2009-09-05 21:47:34 +000019879fi
cristy3ed852e2009-09-05 21:47:34 +000019880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 if test $ac_cv_c_bigendian = unknown; then
19882 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000019883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019884/* end confdefs.h. */
19885#include <sys/types.h>
19886 #include <sys/param.h>
19887
19888int
19889main ()
19890{
19891#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19892 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19893 && LITTLE_ENDIAN)
19894 bogus endian macros
19895 #endif
19896
19897 ;
19898 return 0;
19899}
19900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019901if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019902 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019904/* end confdefs.h. */
19905#include <sys/types.h>
19906 #include <sys/param.h>
19907
19908int
19909main ()
19910{
19911#if BYTE_ORDER != BIG_ENDIAN
19912 not big endian
19913 #endif
19914
19915 ;
19916 return 0;
19917}
19918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019919if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019920 ac_cv_c_bigendian=yes
19921else
cristy8b350f62009-11-15 23:12:43 +000019922 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019923fi
cristy3ed852e2009-09-05 21:47:34 +000019924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019925fi
cristy3ed852e2009-09-05 21:47:34 +000019926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 fi
19928 if test $ac_cv_c_bigendian = unknown; then
19929 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000019930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019931/* end confdefs.h. */
19932#include <limits.h>
19933
19934int
19935main ()
19936{
19937#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19938 bogus endian macros
19939 #endif
19940
19941 ;
19942 return 0;
19943}
19944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019945if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019946 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000019947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019948/* end confdefs.h. */
19949#include <limits.h>
19950
19951int
19952main ()
19953{
19954#ifndef _BIG_ENDIAN
19955 not big endian
19956 #endif
19957
19958 ;
19959 return 0;
19960}
19961_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019962if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019963 ac_cv_c_bigendian=yes
19964else
cristy8b350f62009-11-15 23:12:43 +000019965 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000019966fi
cristy3ed852e2009-09-05 21:47:34 +000019967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019968fi
cristy3ed852e2009-09-05 21:47:34 +000019969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19970 fi
19971 if test $ac_cv_c_bigendian = unknown; then
19972 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000019973 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019974 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000019975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019976/* end confdefs.h. */
19977short int ascii_mm[] =
19978 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19979 short int ascii_ii[] =
19980 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19981 int use_ascii (int i) {
19982 return ascii_mm[i] + ascii_ii[i];
19983 }
19984 short int ebcdic_ii[] =
19985 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19986 short int ebcdic_mm[] =
19987 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19988 int use_ebcdic (int i) {
19989 return ebcdic_mm[i] + ebcdic_ii[i];
19990 }
19991 extern int foo;
19992
19993int
19994main ()
19995{
19996return use_ascii (foo) == use_ebcdic (foo);
19997 ;
19998 return 0;
19999}
20000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020001if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020002 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20003 ac_cv_c_bigendian=yes
20004 fi
20005 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20006 if test "$ac_cv_c_bigendian" = unknown; then
20007 ac_cv_c_bigendian=no
20008 else
20009 # finding both strings is unlikely to happen, but who knows?
20010 ac_cv_c_bigendian=unknown
20011 fi
20012 fi
cristy3ed852e2009-09-05 21:47:34 +000020013fi
cristy3ed852e2009-09-05 21:47:34 +000020014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015else
cristy8b350f62009-11-15 23:12:43 +000020016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020017/* end confdefs.h. */
20018$ac_includes_default
20019int
20020main ()
20021{
20022
20023 /* Are we little or big endian? From Harbison&Steele. */
20024 union
20025 {
20026 long int l;
20027 char c[sizeof (long int)];
20028 } u;
20029 u.l = 1;
20030 return u.c[sizeof (long int) - 1] == 1;
20031
20032 ;
20033 return 0;
20034}
20035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020036if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020037 ac_cv_c_bigendian=no
20038else
cristy8b350f62009-11-15 23:12:43 +000020039 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020040fi
cristy8b350f62009-11-15 23:12:43 +000020041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20042 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020043fi
20044
cristy3ed852e2009-09-05 21:47:34 +000020045 fi
20046fi
cristy8b350f62009-11-15 23:12:43 +000020047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020048$as_echo "$ac_cv_c_bigendian" >&6; }
20049 case $ac_cv_c_bigendian in #(
20050 yes)
cristy8b350f62009-11-15 23:12:43 +000020051 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020052;; #(
20053 no)
20054 ;; #(
20055 universal)
20056
cristy8b350f62009-11-15 23:12:43 +000020057$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020058
20059 ;; #(
20060 *)
cristy8b350f62009-11-15 23:12:43 +000020061 as_fn_error "unknown endianness
20062 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020063 esac
20064
20065
20066# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020067ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20068if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020069
cristy3ed852e2009-09-05 21:47:34 +000020070else
20071
20072cat >>confdefs.h <<_ACEOF
20073#define mode_t int
20074_ACEOF
20075
20076fi
20077
20078
20079# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020080ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20081if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020082
cristy3ed852e2009-09-05 21:47:34 +000020083else
20084
20085cat >>confdefs.h <<_ACEOF
20086#define off_t long int
20087_ACEOF
20088
20089fi
20090
20091
20092# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020093ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20094if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020095
cristy3ed852e2009-09-05 21:47:34 +000020096else
20097
20098cat >>confdefs.h <<_ACEOF
20099#define pid_t int
20100_ACEOF
20101
20102fi
20103
20104
20105# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020106ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20107if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020108
cristy3ed852e2009-09-05 21:47:34 +000020109else
20110
20111cat >>confdefs.h <<_ACEOF
20112#define size_t unsigned int
20113_ACEOF
20114
20115fi
20116
20117
20118# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000020119ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20120if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020121
cristy3ed852e2009-09-05 21:47:34 +000020122else
20123
20124cat >>confdefs.h <<_ACEOF
20125#define ssize_t int
20126_ACEOF
20127
20128fi
20129
20130
20131# If the C compiler supports a working long double type with more range
20132# or precision than the double type, define HAVE_LONG_DOUBLE.
20133
cristy8b350f62009-11-15 23:12:43 +000020134 { $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 +000020135$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020136if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020137 $as_echo_n "(cached) " >&6
20138else
cristy8b350f62009-11-15 23:12:43 +000020139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020140/* end confdefs.h. */
20141#include <float.h>
20142 long double const a[] =
20143 {
20144 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20145 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20146 };
20147 long double
20148 f (long double x)
20149 {
20150 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20151 + (x ? f (x) : 'c'));
20152 }
20153
20154int
20155main ()
20156{
20157static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20158 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20159 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20160 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20161 && (int) LDBL_EPSILON == 0
20162 )];
20163test_array [0] = 0
20164
20165 ;
20166 return 0;
20167}
20168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020169if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020170 ac_cv_type_long_double_wider=yes
20171else
cristy8b350f62009-11-15 23:12:43 +000020172 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000020173fi
cristy3ed852e2009-09-05 21:47:34 +000020174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175fi
cristy8b350f62009-11-15 23:12:43 +000020176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000020177$as_echo "$ac_cv_type_long_double_wider" >&6; }
20178 if test $ac_cv_type_long_double_wider = yes; then
20179
cristy8b350f62009-11-15 23:12:43 +000020180$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020181
20182 fi
20183
20184
20185# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20186# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000020187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020188$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020189if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020190 $as_echo_n "(cached) " >&6
20191else
cristy8b350f62009-11-15 23:12:43 +000020192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020193/* end confdefs.h. */
20194$ac_includes_default
20195int
20196main ()
20197{
20198static int test_array [1 - 2 * !(((char) -1) < 0)];
20199test_array [0] = 0
20200
20201 ;
20202 return 0;
20203}
20204_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020205if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020206 ac_cv_c_char_unsigned=no
20207else
cristy8b350f62009-11-15 23:12:43 +000020208 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000020209fi
cristy3ed852e2009-09-05 21:47:34 +000020210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211fi
cristy8b350f62009-11-15 23:12:43 +000020212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000020213$as_echo "$ac_cv_c_char_unsigned" >&6; }
20214if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000020215 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020216
20217fi
20218
20219
20220# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20221# The cast to long int works around a bug in the HP C Compiler
20222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20224# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020226$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020227if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020228 $as_echo_n "(cached) " >&6
20229else
cristy8b350f62009-11-15 23:12:43 +000020230 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 +000020231
cristy3ed852e2009-09-05 21:47:34 +000020232else
cristy8b350f62009-11-15 23:12:43 +000020233 if test "$ac_cv_type_signed_short" = yes; then
20234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020236{ as_fn_set_status 77
20237as_fn_error "cannot compute sizeof (signed short)
20238See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020239 else
20240 ac_cv_sizeof_signed_short=0
20241 fi
20242fi
cristy8b350f62009-11-15 23:12:43 +000020243
cristy3ed852e2009-09-05 21:47:34 +000020244fi
cristy8b350f62009-11-15 23:12:43 +000020245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020246$as_echo "$ac_cv_sizeof_signed_short" >&6; }
20247
20248
20249
20250cat >>confdefs.h <<_ACEOF
20251#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20252_ACEOF
20253
20254
20255
20256# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20257# The cast to long int works around a bug in the HP C Compiler
20258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20260# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020262$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020263if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020264 $as_echo_n "(cached) " >&6
20265else
cristy8b350f62009-11-15 23:12:43 +000020266 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 +000020267
cristy3ed852e2009-09-05 21:47:34 +000020268else
cristy8b350f62009-11-15 23:12:43 +000020269 if test "$ac_cv_type_unsigned_short" = yes; then
20270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020272{ as_fn_set_status 77
20273as_fn_error "cannot compute sizeof (unsigned short)
20274See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020275 else
20276 ac_cv_sizeof_unsigned_short=0
20277 fi
20278fi
cristy8b350f62009-11-15 23:12:43 +000020279
cristy3ed852e2009-09-05 21:47:34 +000020280fi
cristy8b350f62009-11-15 23:12:43 +000020281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000020282$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20283
20284
20285
20286cat >>confdefs.h <<_ACEOF
20287#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20288_ACEOF
20289
20290
20291
20292# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20293# The cast to long int works around a bug in the HP C Compiler
20294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20296# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020298$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020299if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 $as_echo_n "(cached) " >&6
20301else
cristy8b350f62009-11-15 23:12:43 +000020302 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 +000020303
cristy3ed852e2009-09-05 21:47:34 +000020304else
cristy8b350f62009-11-15 23:12:43 +000020305 if test "$ac_cv_type_signed_int" = yes; then
20306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020308{ as_fn_set_status 77
20309as_fn_error "cannot compute sizeof (signed int)
20310See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020311 else
20312 ac_cv_sizeof_signed_int=0
20313 fi
20314fi
cristy8b350f62009-11-15 23:12:43 +000020315
cristy3ed852e2009-09-05 21:47:34 +000020316fi
cristy8b350f62009-11-15 23:12:43 +000020317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020318$as_echo "$ac_cv_sizeof_signed_int" >&6; }
20319
20320
20321
20322cat >>confdefs.h <<_ACEOF
20323#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20324_ACEOF
20325
20326
20327
20328# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20329# The cast to long int works around a bug in the HP C Compiler
20330# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20331# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20332# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020334$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020335if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020336 $as_echo_n "(cached) " >&6
20337else
cristy8b350f62009-11-15 23:12:43 +000020338 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 +000020339
cristy3ed852e2009-09-05 21:47:34 +000020340else
cristy8b350f62009-11-15 23:12:43 +000020341 if test "$ac_cv_type_unsigned_int" = yes; then
20342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020344{ as_fn_set_status 77
20345as_fn_error "cannot compute sizeof (unsigned int)
20346See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020347 else
20348 ac_cv_sizeof_unsigned_int=0
20349 fi
20350fi
cristy8b350f62009-11-15 23:12:43 +000020351
cristy3ed852e2009-09-05 21:47:34 +000020352fi
cristy8b350f62009-11-15 23:12:43 +000020353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000020354$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20355
20356
20357
20358cat >>confdefs.h <<_ACEOF
20359#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20360_ACEOF
20361
20362
20363
20364# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20365# The cast to long int works around a bug in the HP C Compiler
20366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20368# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020370$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020371if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020372 $as_echo_n "(cached) " >&6
20373else
cristy8b350f62009-11-15 23:12:43 +000020374 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 +000020375
cristy3ed852e2009-09-05 21:47:34 +000020376else
cristy8b350f62009-11-15 23:12:43 +000020377 if test "$ac_cv_type_signed_long" = yes; then
20378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020380{ as_fn_set_status 77
20381as_fn_error "cannot compute sizeof (signed long)
20382See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020383 else
20384 ac_cv_sizeof_signed_long=0
20385 fi
20386fi
cristy8b350f62009-11-15 23:12:43 +000020387
cristy3ed852e2009-09-05 21:47:34 +000020388fi
cristy8b350f62009-11-15 23:12:43 +000020389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020390$as_echo "$ac_cv_sizeof_signed_long" >&6; }
20391
20392
20393
20394cat >>confdefs.h <<_ACEOF
20395#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20396_ACEOF
20397
20398
20399
20400# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20401# The cast to long int works around a bug in the HP C Compiler
20402# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20403# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20404# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020406$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020407if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020408 $as_echo_n "(cached) " >&6
20409else
cristy8b350f62009-11-15 23:12:43 +000020410 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 +000020411
cristy3ed852e2009-09-05 21:47:34 +000020412else
cristy8b350f62009-11-15 23:12:43 +000020413 if test "$ac_cv_type_unsigned_long" = yes; then
20414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020416{ as_fn_set_status 77
20417as_fn_error "cannot compute sizeof (unsigned long)
20418See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020419 else
20420 ac_cv_sizeof_unsigned_long=0
20421 fi
20422fi
cristy8b350f62009-11-15 23:12:43 +000020423
cristy3ed852e2009-09-05 21:47:34 +000020424fi
cristy8b350f62009-11-15 23:12:43 +000020425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020426$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20427
20428
20429
20430cat >>confdefs.h <<_ACEOF
20431#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20432_ACEOF
20433
20434
20435
20436# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20437# 'signed long long' is not supported then the value defined is zero.
20438# The cast to long int works around a bug in the HP C Compiler
20439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20441# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020443$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020444if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020445 $as_echo_n "(cached) " >&6
20446else
cristy8b350f62009-11-15 23:12:43 +000020447 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 +000020448
cristy3ed852e2009-09-05 21:47:34 +000020449else
cristy8b350f62009-11-15 23:12:43 +000020450 if test "$ac_cv_type_signed_long_long" = yes; then
20451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020453{ as_fn_set_status 77
20454as_fn_error "cannot compute sizeof (signed long long)
20455See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020456 else
20457 ac_cv_sizeof_signed_long_long=0
20458 fi
20459fi
cristy8b350f62009-11-15 23:12:43 +000020460
cristy3ed852e2009-09-05 21:47:34 +000020461fi
cristy8b350f62009-11-15 23:12:43 +000020462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020463$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20464
20465
20466
20467cat >>confdefs.h <<_ACEOF
20468#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20469_ACEOF
20470
20471
20472
20473# Obtain size of a 'unsigned long long' and define as
20474# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20475# supported then the value defined is zero.
20476# The cast to long int works around a bug in the HP C Compiler
20477# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20478# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20479# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020481$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020482if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020483 $as_echo_n "(cached) " >&6
20484else
cristy8b350f62009-11-15 23:12:43 +000020485 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 +000020486
cristy3ed852e2009-09-05 21:47:34 +000020487else
cristy8b350f62009-11-15 23:12:43 +000020488 if test "$ac_cv_type_unsigned_long_long" = yes; then
20489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020491{ as_fn_set_status 77
20492as_fn_error "cannot compute sizeof (unsigned long long)
20493See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020494 else
20495 ac_cv_sizeof_unsigned_long_long=0
20496 fi
20497fi
cristy8b350f62009-11-15 23:12:43 +000020498
cristy3ed852e2009-09-05 21:47:34 +000020499fi
cristy8b350f62009-11-15 23:12:43 +000020500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000020501$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20502
20503
20504
20505cat >>confdefs.h <<_ACEOF
20506#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20507_ACEOF
20508
20509
20510
20511# Obtain size of off_t and define as SIZEOF_OFF_T
20512# The cast to long int works around a bug in the HP C Compiler
20513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020517$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020518if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020519 $as_echo_n "(cached) " >&6
20520else
cristy8b350f62009-11-15 23:12:43 +000020521 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 +000020522
cristy3ed852e2009-09-05 21:47:34 +000020523else
cristy8b350f62009-11-15 23:12:43 +000020524 if test "$ac_cv_type_off_t" = yes; then
20525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020527{ as_fn_set_status 77
20528as_fn_error "cannot compute sizeof (off_t)
20529See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020530 else
20531 ac_cv_sizeof_off_t=0
20532 fi
20533fi
cristy8b350f62009-11-15 23:12:43 +000020534
cristy3ed852e2009-09-05 21:47:34 +000020535fi
cristy8b350f62009-11-15 23:12:43 +000020536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020537$as_echo "$ac_cv_sizeof_off_t" >&6; }
20538
20539
20540
20541cat >>confdefs.h <<_ACEOF
20542#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20543_ACEOF
20544
20545
20546
20547# Obtain size of size_t and define as SIZEOF_SIZE_T
20548# The cast to long int works around a bug in the HP C Compiler
20549# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20550# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20551# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020553$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020554if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020555 $as_echo_n "(cached) " >&6
20556else
cristy8b350f62009-11-15 23:12:43 +000020557 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 +000020558
cristy3ed852e2009-09-05 21:47:34 +000020559else
cristy8b350f62009-11-15 23:12:43 +000020560 if test "$ac_cv_type_size_t" = yes; then
20561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020563{ as_fn_set_status 77
20564as_fn_error "cannot compute sizeof (size_t)
20565See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020566 else
20567 ac_cv_sizeof_size_t=0
20568 fi
20569fi
cristy8b350f62009-11-15 23:12:43 +000020570
cristy3ed852e2009-09-05 21:47:34 +000020571fi
cristy8b350f62009-11-15 23:12:43 +000020572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000020573$as_echo "$ac_cv_sizeof_size_t" >&6; }
20574
20575
20576
20577cat >>confdefs.h <<_ACEOF
20578#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20579_ACEOF
20580
20581
20582
20583# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20584# The cast to long int works around a bug in the HP C Compiler
20585# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20586# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20587# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000020588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000020589$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020590if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020591 $as_echo_n "(cached) " >&6
20592else
cristy8b350f62009-11-15 23:12:43 +000020593 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 +000020594
cristy3ed852e2009-09-05 21:47:34 +000020595else
cristy8b350f62009-11-15 23:12:43 +000020596 if test "$ac_cv_type_unsigned_intp" = yes; then
20597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000020598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000020599{ as_fn_set_status 77
20600as_fn_error "cannot compute sizeof (unsigned int*)
20601See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000020602 else
20603 ac_cv_sizeof_unsigned_intp=0
20604 fi
20605fi
cristy8b350f62009-11-15 23:12:43 +000020606
cristy3ed852e2009-09-05 21:47:34 +000020607fi
cristy8b350f62009-11-15 23:12:43 +000020608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000020609$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20610
20611
20612
20613cat >>confdefs.h <<_ACEOF
20614#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20615_ACEOF
20616
20617
20618
20619#
20620# Compute sized types for current CPU and compiler options.
20621#
20622
cristy8b350f62009-11-15 23:12:43 +000020623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020624$as_echo_n "checking for signed 8-bit type... " >&6; }
20625INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000020626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020627$as_echo "$INT8_T" >&6; }
20628
20629
cristy8b350f62009-11-15 23:12:43 +000020630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020631$as_echo_n "checking for unsigned 8-bit type... " >&6; }
20632UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000020633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020634$as_echo "$UINT8_T" >&6; }
20635
20636
cristy8b350f62009-11-15 23:12:43 +000020637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020638$as_echo_n "checking for signed 16-bit type... " >&6; }
20639INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000020640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020641$as_echo "$INT16_T" >&6; }
20642
20643
cristy8b350f62009-11-15 23:12:43 +000020644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020645$as_echo_n "checking for unsigned 16-bit type... " >&6; }
20646UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000020647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020648$as_echo "$UINT16_T" >&6; }
20649
20650
cristy8b350f62009-11-15 23:12:43 +000020651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020652$as_echo_n "checking for signed 32-bit type... " >&6; }
20653INT32_T='none'
20654if test $ac_cv_sizeof_signed_int -eq 4; then
20655 INT32_T='signed int'
20656elif test $ac_cv_sizeof_signed_long -eq 4; then
20657 INT32_T='signed long'
20658fi
cristy8b350f62009-11-15 23:12:43 +000020659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020660$as_echo "$INT32_T" >&6; }
20661
20662
cristy8b350f62009-11-15 23:12:43 +000020663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020664$as_echo_n "checking for unsigned 32-bit type... " >&6; }
20665UINT32_T='none'
20666if test $ac_cv_sizeof_unsigned_int -eq 4; then
20667 UINT32_T='unsigned int'
20668elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20669 UINT32_T='unsigned long'
20670fi
cristy8b350f62009-11-15 23:12:43 +000020671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020672$as_echo "$UINT32_T" >&6; }
20673
20674
cristy8b350f62009-11-15 23:12:43 +000020675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020676$as_echo_n "checking for signed 64-bit type... " >&6; }
20677INT64_T='none'
20678if test $ac_cv_sizeof_signed_long -eq 8; then
20679 INT64_T='signed long'
20680elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20681 INT64_T='signed long long'
20682fi
cristy8b350f62009-11-15 23:12:43 +000020683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020684$as_echo "$INT64_T" >&6; }
20685
20686
cristy8b350f62009-11-15 23:12:43 +000020687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020688$as_echo_n "checking for unsigned 64-bit type... " >&6; }
20689UINT64_T='none'
20690if test $ac_cv_sizeof_unsigned_long -eq 8; then
20691 UINT64_T='unsigned long'
20692elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20693 UINT64_T='unsigned long long'
20694fi
cristy8b350f62009-11-15 23:12:43 +000020695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020696$as_echo "$UINT64_T" >&6; }
20697
20698
cristy8b350f62009-11-15 23:12:43 +000020699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020700$as_echo_n "checking for unsigned maximum type... " >&6; }
20701UINTMAX_T='none'
20702if test "$UINT64_T" != 'none'; then
20703 UINTMAX_T=$UINT64_T
20704elif test "$UINT32_T" != 'none'; then
20705 UINTMAX_T=$UINT32_T
20706fi
cristy8b350f62009-11-15 23:12:43 +000020707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020708$as_echo "$UINTMAX_T" >&6; }
20709
20710
cristy8b350f62009-11-15 23:12:43 +000020711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000020712$as_echo_n "checking for pointer difference type... " >&6; }
20713UINTPTR_T='none'
20714if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20715 UINTPTR_T='unsigned long'
20716elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20717 UINTPTR_T='unsigned long long'
20718fi
cristy8b350f62009-11-15 23:12:43 +000020719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000020720$as_echo "$UINTPTR_T" >&6; }
20721
20722
cristy8b350f62009-11-15 23:12:43 +000020723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020724$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020726/* end confdefs.h. */
20727
20728int
20729main ()
20730{
20731{ const char *func = __func__; return(func != 0 ? 0 : 1); }
20732 ;
20733 return 0;
20734}
20735_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020736if ac_fn_c_try_compile "$LINENO"; then :
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020738$as_echo "yes" >&6; }
20739else
cristy8b350f62009-11-15 23:12:43 +000020740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020741$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000020743$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020745/* end confdefs.h. */
20746
20747int
20748main ()
20749{
20750{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20751 ;
20752 return 0;
20753}
20754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020755if ac_fn_c_try_compile "$LINENO"; then :
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000020757$as_echo "yes" >&6; }
20758
cristy8b350f62009-11-15 23:12:43 +000020759$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020760
20761else
cristy8b350f62009-11-15 23:12:43 +000020762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000020763$as_echo "no" >&6; }
20764
cristy8b350f62009-11-15 23:12:43 +000020765$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020766
20767fi
cristy3ed852e2009-09-05 21:47:34 +000020768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20769fi
cristy3ed852e2009-09-05 21:47:34 +000020770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771
20772########
20773#
20774# Check for functions
20775#
20776########
cristy3ed852e2009-09-05 21:47:34 +000020777for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000020778do :
20779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20780ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20781eval as_val=\$$as_ac_Header
20782 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020783 cat >>confdefs.h <<_ACEOF
20784#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20785_ACEOF
20786
20787fi
20788
20789done
20790
cristy3ed852e2009-09-05 21:47:34 +000020791for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000020792do :
20793 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20794if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020795 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020796#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000020797_ACEOF
20798
20799fi
20800done
20801
cristy8b350f62009-11-15 23:12:43 +000020802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000020803$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020804if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020805 $as_echo_n "(cached) " >&6
20806else
cristy8b350f62009-11-15 23:12:43 +000020807 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020808 magick_cv_func_mmap_fileio=no
20809else
cristy8b350f62009-11-15 23:12:43 +000020810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020811/* end confdefs.h. */
20812$ac_includes_default
20813/* malloc might have been renamed as rpl_malloc. */
20814#undef malloc
20815
20816/*
20817 This test is derived from GNU Autoconf's similar macro.
20818 The purpose of this test is to verify that files may be memory
20819 mapped, and that memory mapping and file I/O are coherent.
20820
20821 The test creates a test file, memory maps the file, updates
20822 the file using the memory map, and then reads the file using
20823 file I/O to verify that the file contains the updates.
20824*/
20825
20826#include <fcntl.h>
20827#include <sys/mman.h>
20828
20829#if !STDC_HEADERS && !HAVE_STDLIB_H
20830char *malloc ();
20831#endif
20832
20833/* This mess was copied from the GNU getpagesize.h. */
20834#if !HAVE_GETPAGESIZE
20835/* Assume that all systems that can run configure have sys/param.h. */
20836# if !HAVE_SYS_PARAM_H
20837# define HAVE_SYS_PARAM_H 1
20838# endif
20839
20840# ifdef _SC_PAGESIZE
20841# define getpagesize() sysconf(_SC_PAGESIZE)
20842# else /* no _SC_PAGESIZE */
20843# if HAVE_SYS_PARAM_H
20844# include <sys/param.h>
20845# ifdef EXEC_PAGESIZE
20846# define getpagesize() EXEC_PAGESIZE
20847# else /* no EXEC_PAGESIZE */
20848# ifdef NBPG
20849# define getpagesize() NBPG * CLSIZE
20850# ifndef CLSIZE
20851# define CLSIZE 1
20852# endif /* no CLSIZE */
20853# else /* no NBPG */
20854# ifdef NBPC
20855# define getpagesize() NBPC
20856# else /* no NBPC */
20857# ifdef PAGESIZE
20858# define getpagesize() PAGESIZE
20859# endif /* PAGESIZE */
20860# endif /* no NBPC */
20861# endif /* no NBPG */
20862# endif /* no EXEC_PAGESIZE */
20863# else /* no HAVE_SYS_PARAM_H */
20864# define getpagesize() 8192 /* punt totally */
20865# endif /* no HAVE_SYS_PARAM_H */
20866# endif /* no _SC_PAGESIZE */
20867
20868#endif /* no HAVE_GETPAGESIZE */
20869
20870int
20871main ()
20872{
20873 char *data, *data2, *data3;
20874 int i, pagesize;
20875 int fd;
20876
20877 pagesize = getpagesize ();
20878
20879 /* First, make a file with some known garbage in it. */
20880 data = (char *) malloc (pagesize);
20881 if (!data)
20882 exit (1);
20883 for (i = 0; i < pagesize; ++i)
20884 *(data + i) = rand ();
20885 umask (0);
20886 fd = creat ("conftest.mmap", 0600);
20887 if (fd < 0)
20888 exit (1);
20889 if (write (fd, data, pagesize) != pagesize)
20890 exit (1);
20891 close (fd);
20892
20893 /* Mmap the file as read/write/shared and verify that we see the
20894 same garbage. */
20895 fd = open ("conftest.mmap", O_RDWR);
20896 if (fd < 0)
20897 exit (1);
20898 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20899 if (data2 == 0)
20900 exit (1);
20901 for (i = 0; i < pagesize; ++i)
20902 if (*(data + i) != *(data2 + i))
20903 exit (1);
20904
20905 /* Finally, make sure that changes to the mapped area
20906 percolate back to the file as seen by read(). */
20907 for (i = 0; i < pagesize; ++i)
20908 *(data2 + i) = *(data2 + i) + 1;
20909 data3 = (char *) malloc (pagesize);
20910 if (!data3)
20911 exit (1);
20912 if (read (fd, data3, pagesize) != pagesize)
20913 exit (1);
20914 for (i = 0; i < pagesize; ++i)
20915 if (*(data2 + i) != *(data3 + i))
20916 exit (1);
20917 close (fd);
20918 exit (0);
20919}
20920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020921if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020922 magick_cv_func_mmap_fileio=yes
20923else
cristy8b350f62009-11-15 23:12:43 +000020924 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000020925fi
cristy8b350f62009-11-15 23:12:43 +000020926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20927 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020928fi
20929
cristy3ed852e2009-09-05 21:47:34 +000020930fi
cristy8b350f62009-11-15 23:12:43 +000020931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000020932$as_echo "$magick_cv_func_mmap_fileio" >&6; }
20933if test $magick_cv_func_mmap_fileio = yes; then
20934
cristy8b350f62009-11-15 23:12:43 +000020935$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020936
20937fi
20938rm -f conftest.mmap
20939
cristy8b350f62009-11-15 23:12:43 +000020940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020941$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020942if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020943 $as_echo_n "(cached) " >&6
20944else
cristy8b350f62009-11-15 23:12:43 +000020945 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020946 ac_cv_func_closedir_void=yes
20947else
cristy8b350f62009-11-15 23:12:43 +000020948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020949/* end confdefs.h. */
20950$ac_includes_default
20951#include <$ac_header_dirent>
20952#ifndef __cplusplus
20953int closedir ();
20954#endif
20955
20956int
20957main ()
20958{
20959return closedir (opendir (".")) != 0;
20960 ;
20961 return 0;
20962}
20963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020964if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020965 ac_cv_func_closedir_void=no
20966else
cristy8b350f62009-11-15 23:12:43 +000020967 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000020968fi
cristy8b350f62009-11-15 23:12:43 +000020969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20970 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020971fi
20972
cristy3ed852e2009-09-05 21:47:34 +000020973fi
cristy8b350f62009-11-15 23:12:43 +000020974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000020975$as_echo "$ac_cv_func_closedir_void" >&6; }
20976if test $ac_cv_func_closedir_void = yes; then
20977
cristy8b350f62009-11-15 23:12:43 +000020978$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020979
20980fi
20981
cristycd4c5312009-11-22 01:19:08 +000020982
20983
20984
20985 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000020986do :
20987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000020988ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20989"
cristy8b350f62009-11-15 23:12:43 +000020990eval as_val=\$$as_ac_Header
20991 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020992 cat >>confdefs.h <<_ACEOF
20993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20994_ACEOF
20995
20996fi
20997
20998done
20999
cristycd4c5312009-11-22 01:19:08 +000021000
21001
21002
21003
21004
21005
21006
cristy3ed852e2009-09-05 21:47:34 +000021007for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021008do :
21009 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21010if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021011 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021012#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021013_ACEOF
21014
21015fi
21016done
21017
cristy8b350f62009-11-15 23:12:43 +000021018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021019$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021020if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021021 $as_echo_n "(cached) " >&6
21022else
cristy8b350f62009-11-15 23:12:43 +000021023 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021024 ac_cv_func_mmap_fixed_mapped=no
21025else
cristy8b350f62009-11-15 23:12:43 +000021026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021027/* end confdefs.h. */
21028$ac_includes_default
21029/* malloc might have been renamed as rpl_malloc. */
21030#undef malloc
21031
21032/* Thanks to Mike Haertel and Jim Avera for this test.
21033 Here is a matrix of mmap possibilities:
21034 mmap private not fixed
21035 mmap private fixed at somewhere currently unmapped
21036 mmap private fixed at somewhere already mapped
21037 mmap shared not fixed
21038 mmap shared fixed at somewhere currently unmapped
21039 mmap shared fixed at somewhere already mapped
21040 For private mappings, we should verify that changes cannot be read()
21041 back from the file, nor mmap's back from the file at a different
21042 address. (There have been systems where private was not correctly
21043 implemented like the infamous i386 svr4.0, and systems where the
21044 VM page cache was not coherent with the file system buffer cache
21045 like early versions of FreeBSD and possibly contemporary NetBSD.)
21046 For shared mappings, we should conversely verify that changes get
21047 propagated back to all the places they're supposed to be.
21048
21049 Grep wants private fixed already mapped.
21050 The main things grep needs to know about mmap are:
21051 * does it exist and is it safe to write into the mmap'd area
21052 * how to use it (BSD variants) */
21053
21054#include <fcntl.h>
21055#include <sys/mman.h>
21056
21057#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21058char *malloc ();
21059#endif
21060
21061/* This mess was copied from the GNU getpagesize.h. */
21062#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000021063# ifdef _SC_PAGESIZE
21064# define getpagesize() sysconf(_SC_PAGESIZE)
21065# else /* no _SC_PAGESIZE */
21066# ifdef HAVE_SYS_PARAM_H
21067# include <sys/param.h>
21068# ifdef EXEC_PAGESIZE
21069# define getpagesize() EXEC_PAGESIZE
21070# else /* no EXEC_PAGESIZE */
21071# ifdef NBPG
21072# define getpagesize() NBPG * CLSIZE
21073# ifndef CLSIZE
21074# define CLSIZE 1
21075# endif /* no CLSIZE */
21076# else /* no NBPG */
21077# ifdef NBPC
21078# define getpagesize() NBPC
21079# else /* no NBPC */
21080# ifdef PAGESIZE
21081# define getpagesize() PAGESIZE
21082# endif /* PAGESIZE */
21083# endif /* no NBPC */
21084# endif /* no NBPG */
21085# endif /* no EXEC_PAGESIZE */
21086# else /* no HAVE_SYS_PARAM_H */
21087# define getpagesize() 8192 /* punt totally */
21088# endif /* no HAVE_SYS_PARAM_H */
21089# endif /* no _SC_PAGESIZE */
21090
21091#endif /* no HAVE_GETPAGESIZE */
21092
21093int
21094main ()
21095{
21096 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000021097 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000021098 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000021099 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000021100
21101 pagesize = getpagesize ();
21102
21103 /* First, make a file with some known garbage in it. */
21104 data = (char *) malloc (pagesize);
21105 if (!data)
21106 return 1;
21107 for (i = 0; i < pagesize; ++i)
21108 *(data + i) = rand ();
21109 umask (0);
21110 fd = creat ("conftest.mmap", 0600);
21111 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021112 return 2;
cristy3ed852e2009-09-05 21:47:34 +000021113 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021114 return 3;
cristy3ed852e2009-09-05 21:47:34 +000021115 close (fd);
21116
cristycd4c5312009-11-22 01:19:08 +000021117 /* Next, check that the tail of a page is zero-filled. File must have
21118 non-zero length, otherwise we risk SIGBUS for entire page. */
21119 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21120 if (fd2 < 0)
21121 return 4;
cristyc54f5d42009-11-27 21:36:31 +000021122 cdata2 = "";
21123 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000021124 return 5;
cristyc54f5d42009-11-27 21:36:31 +000021125 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000021126 if (data2 == MAP_FAILED)
21127 return 6;
21128 for (i = 0; i < pagesize; ++i)
21129 if (*(data2 + i))
21130 return 7;
21131 close (fd2);
21132 if (munmap (data2, pagesize))
21133 return 8;
21134
cristy3ed852e2009-09-05 21:47:34 +000021135 /* Next, try to mmap the file at a fixed address which already has
21136 something else allocated at it. If we can, also make sure that
21137 we see the same garbage. */
21138 fd = open ("conftest.mmap", O_RDWR);
21139 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000021140 return 9;
cristy3ed852e2009-09-05 21:47:34 +000021141 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21142 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000021143 return 10;
cristy3ed852e2009-09-05 21:47:34 +000021144 for (i = 0; i < pagesize; ++i)
21145 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000021146 return 11;
cristy3ed852e2009-09-05 21:47:34 +000021147
21148 /* Finally, make sure that changes to the mapped area do not
21149 percolate back to the file as seen by read(). (This is a bug on
21150 some variants of i386 svr4.0.) */
21151 for (i = 0; i < pagesize; ++i)
21152 *(data2 + i) = *(data2 + i) + 1;
21153 data3 = (char *) malloc (pagesize);
21154 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000021155 return 12;
cristy3ed852e2009-09-05 21:47:34 +000021156 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000021157 return 13;
cristy3ed852e2009-09-05 21:47:34 +000021158 for (i = 0; i < pagesize; ++i)
21159 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000021160 return 14;
cristy3ed852e2009-09-05 21:47:34 +000021161 close (fd);
21162 return 0;
21163}
21164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021165if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021166 ac_cv_func_mmap_fixed_mapped=yes
21167else
cristy8b350f62009-11-15 23:12:43 +000021168 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000021169fi
cristy8b350f62009-11-15 23:12:43 +000021170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21171 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021172fi
21173
cristy3ed852e2009-09-05 21:47:34 +000021174fi
cristy8b350f62009-11-15 23:12:43 +000021175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000021176$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21177if test $ac_cv_func_mmap_fixed_mapped = yes; then
21178
cristy8b350f62009-11-15 23:12:43 +000021179$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021180
21181fi
cristycd4c5312009-11-22 01:19:08 +000021182rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000021183
cristy3ed852e2009-09-05 21:47:34 +000021184for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000021185do :
21186 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21187if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021188 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021189#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000021190_ACEOF
21191
21192fi
21193
21194done
21195
cristy3ed852e2009-09-05 21:47:34 +000021196for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000021197do :
21198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21199ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21200eval as_val=\$$as_ac_var
21201 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021202 cat >>confdefs.h <<_ACEOF
21203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21204_ACEOF
21205
21206fi
21207done
21208
21209if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021211$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021212if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021213 $as_echo_n "(cached) " >&6
21214else
cristy8b350f62009-11-15 23:12:43 +000021215 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021216 ac_cv_func_fork_works=cross
21217else
cristy8b350f62009-11-15 23:12:43 +000021218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021219/* end confdefs.h. */
21220$ac_includes_default
21221int
21222main ()
21223{
21224
21225 /* By Ruediger Kuhlmann. */
21226 return fork () < 0;
21227
21228 ;
21229 return 0;
21230}
21231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021232if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021233 ac_cv_func_fork_works=yes
21234else
cristy8b350f62009-11-15 23:12:43 +000021235 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021236fi
cristy8b350f62009-11-15 23:12:43 +000021237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21238 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021239fi
21240
cristy3ed852e2009-09-05 21:47:34 +000021241fi
cristy8b350f62009-11-15 23:12:43 +000021242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021243$as_echo "$ac_cv_func_fork_works" >&6; }
21244
21245else
21246 ac_cv_func_fork_works=$ac_cv_func_fork
21247fi
21248if test "x$ac_cv_func_fork_works" = xcross; then
21249 case $host in
21250 *-*-amigaos* | *-*-msdosdjgpp*)
21251 # Override, as these systems have only a dummy fork() stub
21252 ac_cv_func_fork_works=no
21253 ;;
21254 *)
21255 ac_cv_func_fork_works=yes
21256 ;;
21257 esac
cristy8b350f62009-11-15 23:12:43 +000021258 { $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 +000021259$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21260fi
21261ac_cv_func_vfork_works=$ac_cv_func_vfork
21262if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000021263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000021264$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021265if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021266 $as_echo_n "(cached) " >&6
21267else
cristy8b350f62009-11-15 23:12:43 +000021268 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_func_vfork_works=cross
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021272/* end confdefs.h. */
21273/* Thanks to Paul Eggert for this test. */
21274$ac_includes_default
21275#include <sys/wait.h>
21276#ifdef HAVE_VFORK_H
21277# include <vfork.h>
21278#endif
21279/* On some sparc systems, changes by the child to local and incoming
21280 argument registers are propagated back to the parent. The compiler
21281 is told about this with #include <vfork.h>, but some compilers
21282 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21283 static variable whose address is put into a register that is
21284 clobbered by the vfork. */
21285static void
21286#ifdef __cplusplus
21287sparc_address_test (int arg)
21288# else
21289sparc_address_test (arg) int arg;
21290#endif
21291{
21292 static pid_t child;
21293 if (!child) {
21294 child = vfork ();
21295 if (child < 0) {
21296 perror ("vfork");
21297 _exit(2);
21298 }
21299 if (!child) {
21300 arg = getpid();
21301 write(-1, "", 0);
21302 _exit (arg);
21303 }
21304 }
21305}
21306
21307int
21308main ()
21309{
21310 pid_t parent = getpid ();
21311 pid_t child;
21312
21313 sparc_address_test (0);
21314
21315 child = vfork ();
21316
21317 if (child == 0) {
21318 /* Here is another test for sparc vfork register problems. This
21319 test uses lots of local variables, at least as many local
21320 variables as main has allocated so far including compiler
21321 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21322 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21323 reuse the register of parent for one of the local variables,
21324 since it will think that parent can't possibly be used any more
21325 in this routine. Assigning to the local variable will thus
21326 munge parent in the parent process. */
21327 pid_t
21328 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21329 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21330 /* Convince the compiler that p..p7 are live; otherwise, it might
21331 use the same hardware register for all 8 local variables. */
21332 if (p != p1 || p != p2 || p != p3 || p != p4
21333 || p != p5 || p != p6 || p != p7)
21334 _exit(1);
21335
21336 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21337 from child file descriptors. If the child closes a descriptor
21338 before it execs or exits, this munges the parent's descriptor
21339 as well. Test for this by closing stdout in the child. */
21340 _exit(close(fileno(stdout)) != 0);
21341 } else {
21342 int status;
21343 struct stat st;
21344
21345 while (wait(&status) != child)
21346 ;
21347 return (
21348 /* Was there some problem with vforking? */
21349 child < 0
21350
21351 /* Did the child fail? (This shouldn't happen.) */
21352 || status
21353
21354 /* Did the vfork/compiler bug occur? */
21355 || parent != getpid()
21356
21357 /* Did the file descriptor bug occur? */
21358 || fstat(fileno(stdout), &st) != 0
21359 );
21360 }
21361}
21362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021363if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021364 ac_cv_func_vfork_works=yes
21365else
cristy8b350f62009-11-15 23:12:43 +000021366 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000021367fi
cristy8b350f62009-11-15 23:12:43 +000021368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21369 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021370fi
21371
cristy3ed852e2009-09-05 21:47:34 +000021372fi
cristy8b350f62009-11-15 23:12:43 +000021373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000021374$as_echo "$ac_cv_func_vfork_works" >&6; }
21375
21376fi;
21377if test "x$ac_cv_func_fork_works" = xcross; then
21378 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000021379 { $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 +000021380$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21381fi
21382
21383if test "x$ac_cv_func_vfork_works" = xyes; then
21384
cristy8b350f62009-11-15 23:12:43 +000021385$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021386
21387else
21388
cristy8b350f62009-11-15 23:12:43 +000021389$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021390
21391fi
21392if test "x$ac_cv_func_fork_works" = xyes; then
21393
cristy8b350f62009-11-15 23:12:43 +000021394$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021395
21396fi
21397
cristy8b350f62009-11-15 23:12:43 +000021398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021399$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021400if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 $as_echo_n "(cached) " >&6
21402else
cristy8b350f62009-11-15 23:12:43 +000021403 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021404 ac_cv_func_memcmp_working=no
21405else
cristy8b350f62009-11-15 23:12:43 +000021406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021407/* end confdefs.h. */
21408$ac_includes_default
21409int
21410main ()
21411{
21412
21413 /* Some versions of memcmp are not 8-bit clean. */
21414 char c0 = '\100', c1 = '\200', c2 = '\201';
21415 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21416 return 1;
21417
21418 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21419 or more and with at least one buffer not starting on a 4-byte boundary.
21420 William Lewis provided this test program. */
21421 {
21422 char foo[21];
21423 char bar[21];
21424 int i;
21425 for (i = 0; i < 4; i++)
21426 {
21427 char *a = foo + i;
21428 char *b = bar + i;
21429 strcpy (a, "--------01111111");
21430 strcpy (b, "--------10000000");
21431 if (memcmp (a, b, 16) >= 0)
21432 return 1;
21433 }
21434 return 0;
21435 }
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021441if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 ac_cv_func_memcmp_working=yes
21443else
cristy8b350f62009-11-15 23:12:43 +000021444 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000021445fi
cristy8b350f62009-11-15 23:12:43 +000021446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21447 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021448fi
21449
cristy3ed852e2009-09-05 21:47:34 +000021450fi
cristy8b350f62009-11-15 23:12:43 +000021451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000021452$as_echo "$ac_cv_func_memcmp_working" >&6; }
21453test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21454 *" memcmp.$ac_objext "* ) ;;
21455 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21456 ;;
21457esac
21458
21459
cristy3ed852e2009-09-05 21:47:34 +000021460for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000021461do :
21462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21463ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21464eval as_val=\$$as_ac_Header
21465 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021466 cat >>confdefs.h <<_ACEOF
21467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21468_ACEOF
21469
21470fi
21471
21472done
21473
cristy8b350f62009-11-15 23:12:43 +000021474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000021475$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021476if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021477 $as_echo_n "(cached) " >&6
21478else
21479 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21480 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21481 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000021482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021483/* end confdefs.h. */
21484$ac_includes_default
21485#ifdef HAVE_SYS_SELECT_H
21486# include <sys/select.h>
21487#endif
21488#ifdef HAVE_SYS_SOCKET_H
21489# include <sys/socket.h>
21490#endif
21491
21492int
21493main ()
21494{
21495extern int select ($ac_arg1,
21496 $ac_arg234, $ac_arg234, $ac_arg234,
21497 $ac_arg5);
21498 ;
21499 return 0;
21500}
21501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021502if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021503 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000021504fi
cristy3ed852e2009-09-05 21:47:34 +000021505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 done
21507 done
21508done
21509# Provide a safe default value.
21510: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21511
21512fi
cristy8b350f62009-11-15 23:12:43 +000021513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000021514$as_echo "$ac_cv_func_select_args" >&6; }
21515ac_save_IFS=$IFS; IFS=','
21516set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21517IFS=$ac_save_IFS
21518shift
21519
21520cat >>confdefs.h <<_ACEOF
21521#define SELECT_TYPE_ARG1 $1
21522_ACEOF
21523
21524
21525cat >>confdefs.h <<_ACEOF
21526#define SELECT_TYPE_ARG234 ($2)
21527_ACEOF
21528
21529
21530cat >>confdefs.h <<_ACEOF
21531#define SELECT_TYPE_ARG5 ($3)
21532_ACEOF
21533
21534rm -f conftest*
21535
cristy8b350f62009-11-15 23:12:43 +000021536if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021537 $as_echo_n "(cached) " >&6
21538else
21539 ac_cv_func_setvbuf_reversed=no
21540fi
21541
21542
cristy8b350f62009-11-15 23:12:43 +000021543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000021544$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021545if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021546 $as_echo_n "(cached) " >&6
21547else
cristy8b350f62009-11-15 23:12:43 +000021548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021549/* end confdefs.h. */
21550#include <sys/types.h>
21551#include <signal.h>
21552
21553int
21554main ()
21555{
21556return *(signal (0, 0)) (0) == 1;
21557 ;
21558 return 0;
21559}
21560_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021561if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021562 ac_cv_type_signal=int
21563else
cristy8b350f62009-11-15 23:12:43 +000021564 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000021565fi
cristy3ed852e2009-09-05 21:47:34 +000021566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567fi
cristy8b350f62009-11-15 23:12:43 +000021568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000021569$as_echo "$ac_cv_type_signal" >&6; }
21570
21571cat >>confdefs.h <<_ACEOF
21572#define RETSIGTYPE $ac_cv_type_signal
21573_ACEOF
21574
21575
cristy8b350f62009-11-15 23:12:43 +000021576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021577$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021578if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021579 $as_echo_n "(cached) " >&6
21580else
cristy8b350f62009-11-15 23:12:43 +000021581 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021582 ac_cv_func_strtod=no
21583else
cristy8b350f62009-11-15 23:12:43 +000021584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021585/* end confdefs.h. */
21586
21587$ac_includes_default
21588#ifndef strtod
21589double strtod ();
21590#endif
21591int
21592main()
21593{
21594 {
21595 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21596 char *string = " +69";
21597 char *term;
21598 double value;
21599 value = strtod (string, &term);
21600 if (value != 69 || term != (string + 4))
21601 return 1;
21602 }
21603
21604 {
21605 /* Under Solaris 2.4, strtod returns the wrong value for the
21606 terminating character under some conditions. */
21607 char *string = "NaN";
21608 char *term;
21609 strtod (string, &term);
21610 if (term != string && *(term - 1) == 0)
21611 return 1;
21612 }
21613 return 0;
21614}
21615
21616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021617if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021618 ac_cv_func_strtod=yes
21619else
cristy8b350f62009-11-15 23:12:43 +000021620 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000021621fi
cristy8b350f62009-11-15 23:12:43 +000021622rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21623 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021624fi
21625
cristy3ed852e2009-09-05 21:47:34 +000021626fi
cristy8b350f62009-11-15 23:12:43 +000021627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000021628$as_echo "$ac_cv_func_strtod" >&6; }
21629if test $ac_cv_func_strtod = no; then
21630 case " $LIBOBJS " in
21631 *" strtod.$ac_objext "* ) ;;
21632 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21633 ;;
21634esac
21635
cristy8b350f62009-11-15 23:12:43 +000021636ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21637if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021638
cristy3ed852e2009-09-05 21:47:34 +000021639fi
21640
cristy3ed852e2009-09-05 21:47:34 +000021641if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000021642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021643$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021644if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021645 $as_echo_n "(cached) " >&6
21646else
21647 ac_check_lib_save_LIBS=$LIBS
21648LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000021649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021650/* end confdefs.h. */
21651
21652/* Override any GCC internal prototype to avoid an error.
21653 Use char because int might match the return type of a GCC
21654 builtin and then its argument prototype would still apply. */
21655#ifdef __cplusplus
21656extern "C"
21657#endif
21658char pow ();
21659int
21660main ()
21661{
21662return pow ();
21663 ;
21664 return 0;
21665}
21666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021668 ac_cv_lib_m_pow=yes
21669else
cristy8b350f62009-11-15 23:12:43 +000021670 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000021671fi
cristy8b350f62009-11-15 23:12:43 +000021672rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021674LIBS=$ac_check_lib_save_LIBS
21675fi
cristy8b350f62009-11-15 23:12:43 +000021676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021677$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021678if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021679 POW_LIB=-lm
21680else
cristy8b350f62009-11-15 23:12:43 +000021681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000021682$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21683fi
21684
21685fi
21686
21687fi
21688
cristy3ed852e2009-09-05 21:47:34 +000021689for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000021690do :
21691 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21692if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021693 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021694#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000021695_ACEOF
21696
cristy8b350f62009-11-15 23:12:43 +000021697ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21698if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021699
cristy8b350f62009-11-15 23:12:43 +000021700$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021701
21702fi
21703
21704fi
21705done
21706
21707
21708
cristy393bbe52010-01-11 16:32:56 +000021709for 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 +000021710do :
21711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21712ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21713eval as_val=\$$as_ac_var
21714 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021715 cat >>confdefs.h <<_ACEOF
21716#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717_ACEOF
21718
21719fi
21720done
21721
21722
cristye43a45e2009-09-28 14:49:00 +000021723#
21724# Check for clock_gettime().
21725#
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021727$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021728if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021729 $as_echo_n "(cached) " >&6
21730else
21731 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021733/* end confdefs.h. */
21734
21735/* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21738#ifdef __cplusplus
21739extern "C"
21740#endif
21741char clock_gettime ();
21742int
21743main ()
21744{
21745return clock_gettime ();
21746 ;
21747 return 0;
21748}
21749_ACEOF
21750for ac_lib in '' rt; do
21751 if test -z "$ac_lib"; then
21752 ac_res="none required"
21753 else
21754 ac_res=-l$ac_lib
21755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21756 fi
cristy8b350f62009-11-15 23:12:43 +000021757 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021758 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000021759fi
cristy8b350f62009-11-15 23:12:43 +000021760rm -f core conftest.err conftest.$ac_objext \
21761 conftest$ac_exeext
21762 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000021763 break
21764fi
21765done
cristy8b350f62009-11-15 23:12:43 +000021766if test "${ac_cv_search_clock_gettime+set}" = set; then :
21767
cristye43a45e2009-09-28 14:49:00 +000021768else
21769 ac_cv_search_clock_gettime=no
21770fi
21771rm conftest.$ac_ext
21772LIBS=$ac_func_search_save_LIBS
21773fi
cristy8b350f62009-11-15 23:12:43 +000021774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000021775$as_echo "$ac_cv_search_clock_gettime" >&6; }
21776ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000021777if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000021778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21779
21780
cristy8b350f62009-11-15 23:12:43 +000021781$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021782
cristy8b350f62009-11-15 23:12:43 +000021783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000021784$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000021786/* end confdefs.h. */
21787#include <time.h>
21788int
21789main ()
21790{
21791clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000021792 ;
21793 return 0;
21794}
21795_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021796if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000021797
cristy8b350f62009-11-15 23:12:43 +000021798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000021799$as_echo "yes" >&6; }
21800
cristy8b350f62009-11-15 23:12:43 +000021801$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000021802
21803
21804else
cristy8b350f62009-11-15 23:12:43 +000021805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000021806$as_echo "no" >&6; }
21807
21808fi
cristye43a45e2009-09-28 14:49:00 +000021809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810
21811else
21812
cristy8b350f62009-11-15 23:12:43 +000021813 for ac_func in gettimeofday ftime
21814do :
21815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21816ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21817eval as_val=\$$as_ac_var
21818 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000021819 cat >>confdefs.h <<_ACEOF
21820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21821_ACEOF
21822 break
21823fi
21824done
21825
21826
21827
21828fi
21829
21830
cristy3ed852e2009-09-05 21:47:34 +000021831########
21832#
21833# Check for function prototypes
21834#
21835########
21836
cristy8b350f62009-11-15 23:12:43 +000021837ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000021838#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021839"
21840if test "x$ac_cv_have_decl_pread" = 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_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021849ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000021850#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000021851"
21852if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21853 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021854else
cristy8b350f62009-11-15 23:12:43 +000021855 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021856fi
21857
cristy3ed852e2009-09-05 21:47:34 +000021858cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021859#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021860_ACEOF
21861
21862
cristy8b350f62009-11-15 23:12:43 +000021863ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000021864#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000021865"
21866if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21867 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021868else
cristy8b350f62009-11-15 23:12:43 +000021869 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021870fi
21871
cristy3ed852e2009-09-05 21:47:34 +000021872cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021873#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021874_ACEOF
21875
21876
cristy8b350f62009-11-15 23:12:43 +000021877ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000021878#include <stdio.h>
21879#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000021880"
21881if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21882 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000021883else
cristy8b350f62009-11-15 23:12:43 +000021884 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000021885fi
21886
cristy3ed852e2009-09-05 21:47:34 +000021887cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021888#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000021889_ACEOF
21890
21891
cristy3ed852e2009-09-05 21:47:34 +000021892########
21893#
21894# C++ Support Tests (For Magick++)
21895#
21896########
21897have_magick_plus_plus='no'
21898if test "$with_magick_plus_plus" = 'yes'; then
21899 OLIBS="$LIBS"
21900 LIBS=''
21901 ac_ext=cpp
21902ac_cpp='$CXXCPP $CPPFLAGS'
21903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21906
21907
21908 # Full set of headers used...
21909 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21910 # functional iomanip iosfwd iostream iterator list string strstream utility
21911 ac_ext=cpp
21912ac_cpp='$CXXCPP $CPPFLAGS'
21913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21916
21917 ac_ext=cpp
21918ac_cpp='$CXXCPP $CPPFLAGS'
21919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21922if test -z "$CXX"; then
21923 if test -n "$CCC"; then
21924 CXX=$CCC
21925 else
21926 if test -n "$ac_tool_prefix"; then
21927 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21928 do
21929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021932$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021933if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021934 $as_echo_n "(cached) " >&6
21935else
21936 if test -n "$CXX"; then
21937 ac_cv_prog_CXX="$CXX" # Let the user override the test.
21938else
21939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21940for as_dir in $PATH
21941do
21942 IFS=$as_save_IFS
21943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021944 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21946 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948 break 2
21949 fi
21950done
cristy8b350f62009-11-15 23:12:43 +000021951 done
cristy3ed852e2009-09-05 21:47:34 +000021952IFS=$as_save_IFS
21953
21954fi
21955fi
21956CXX=$ac_cv_prog_CXX
21957if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000021958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000021959$as_echo "$CXX" >&6; }
21960else
cristy8b350f62009-11-15 23:12:43 +000021961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021962$as_echo "no" >&6; }
21963fi
21964
21965
21966 test -n "$CXX" && break
21967 done
21968fi
21969if test -z "$CXX"; then
21970 ac_ct_CXX=$CXX
21971 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21972do
21973 # Extract the first word of "$ac_prog", so it can be a program name with args.
21974set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021977if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021978 $as_echo_n "(cached) " >&6
21979else
21980 if test -n "$ac_ct_CXX"; then
21981 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21982else
21983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21984for as_dir in $PATH
21985do
21986 IFS=$as_save_IFS
21987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000021988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000021989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21990 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000021991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000021992 break 2
21993 fi
21994done
cristy8b350f62009-11-15 23:12:43 +000021995 done
cristy3ed852e2009-09-05 21:47:34 +000021996IFS=$as_save_IFS
21997
21998fi
21999fi
22000ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22001if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo "$ac_ct_CXX" >&6; }
22004else
cristy8b350f62009-11-15 23:12:43 +000022005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022006$as_echo "no" >&6; }
22007fi
22008
22009
22010 test -n "$ac_ct_CXX" && break
22011done
22012
22013 if test "x$ac_ct_CXX" = x; then
22014 CXX="g++"
22015 else
22016 case $cross_compiling:$ac_tool_warned in
22017yes:)
cristy8b350f62009-11-15 23:12:43 +000022018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000022019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22020ac_tool_warned=yes ;;
22021esac
22022 CXX=$ac_ct_CXX
22023 fi
22024fi
22025
22026 fi
22027fi
22028# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000022029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000022030set X $ac_compile
22031ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000022032for ac_option in --version -v -V -qversion; do
22033 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000022034case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037esac
cristy8b350f62009-11-15 23:12:43 +000022038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22039$as_echo "$ac_try_echo"; } >&5
22040 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000022041 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000022042 if test -s conftest.err; then
22043 sed '10a\
22044... rest of stderr output deleted ...
22045 10q' conftest.err >conftest.er1
22046 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000022047 fi
cristycd4c5312009-11-22 01:19:08 +000022048 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000022049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22050 test $ac_status = 0; }
22051done
cristy3ed852e2009-09-05 21:47:34 +000022052
cristy8b350f62009-11-15 23:12:43 +000022053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000022054$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022055if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 $as_echo_n "(cached) " >&6
22057else
cristy8b350f62009-11-15 23:12:43 +000022058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022059/* end confdefs.h. */
22060
22061int
22062main ()
22063{
22064#ifndef __GNUC__
22065 choke me
22066#endif
22067
22068 ;
22069 return 0;
22070}
22071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022072if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022073 ac_compiler_gnu=yes
22074else
cristy8b350f62009-11-15 23:12:43 +000022075 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000022076fi
cristy3ed852e2009-09-05 21:47:34 +000022077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22079
22080fi
cristy8b350f62009-11-15 23:12:43 +000022081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000022082$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22083if test $ac_compiler_gnu = yes; then
22084 GXX=yes
22085else
22086 GXX=
22087fi
22088ac_test_CXXFLAGS=${CXXFLAGS+set}
22089ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000022090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022091$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022092if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022093 $as_echo_n "(cached) " >&6
22094else
22095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22096 ac_cxx_werror_flag=yes
22097 ac_cv_prog_cxx_g=no
22098 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022100/* end confdefs.h. */
22101
22102int
22103main ()
22104{
22105
22106 ;
22107 return 0;
22108}
22109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022110if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022111 ac_cv_prog_cxx_g=yes
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 CXXFLAGS=""
22114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022115/* end confdefs.h. */
22116
22117int
22118main ()
22119{
22120
22121 ;
22122 return 0;
22123}
22124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022125if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022126
cristy8b350f62009-11-15 23:12:43 +000022127else
22128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000022129 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000022130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022131/* end confdefs.h. */
22132
22133int
22134main ()
22135{
22136
22137 ;
22138 return 0;
22139}
22140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022141if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000022143fi
cristy3ed852e2009-09-05 21:47:34 +000022144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145fi
cristy3ed852e2009-09-05 21:47:34 +000022146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147fi
cristy3ed852e2009-09-05 21:47:34 +000022148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22150fi
cristy8b350f62009-11-15 23:12:43 +000022151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000022152$as_echo "$ac_cv_prog_cxx_g" >&6; }
22153if test "$ac_test_CXXFLAGS" = set; then
22154 CXXFLAGS=$ac_save_CXXFLAGS
22155elif test $ac_cv_prog_cxx_g = yes; then
22156 if test "$GXX" = yes; then
22157 CXXFLAGS="-g -O2"
22158 else
22159 CXXFLAGS="-g"
22160 fi
22161else
22162 if test "$GXX" = yes; then
22163 CXXFLAGS="-O2"
22164 else
22165 CXXFLAGS=
22166 fi
22167fi
22168ac_ext=cpp
22169ac_cpp='$CXXCPP $CPPFLAGS'
22170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22173
22174depcc="$CXX" am_compiler_list=
22175
cristy8b350f62009-11-15 23:12:43 +000022176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022177$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022178if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022179 $as_echo_n "(cached) " >&6
22180else
22181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22182 # We make a subdir and do the tests there. Otherwise we can end up
22183 # making bogus files that we don't know about and never remove. For
22184 # instance it was reported that on HP-UX the gcc test will end up
22185 # making a dummy file named `D' -- because `-MD' means `put the output
22186 # in D'.
22187 mkdir conftest.dir
22188 # Copy depcomp to subdir because otherwise we won't find it if we're
22189 # using a relative directory.
22190 cp "$am_depcomp" conftest.dir
22191 cd conftest.dir
22192 # We will build objects and dependencies in a subdirectory because
22193 # it helps to detect inapplicable dependency modes. For instance
22194 # both Tru64's cc and ICC support -MD to output dependencies as a
22195 # side effect of compilation, but ICC will put the dependencies in
22196 # the current directory while Tru64 will put them in the object
22197 # directory.
22198 mkdir sub
22199
22200 am_cv_CXX_dependencies_compiler_type=none
22201 if test "$am_compiler_list" = ""; then
22202 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22203 fi
22204 am__universal=false
22205 case " $depcc " in #(
22206 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22207 esac
22208
22209 for depmode in $am_compiler_list; do
22210 # Setup a source with many dependencies, because some compilers
22211 # like to wrap large dependency lists on column 80 (with \), and
22212 # we should not choose a depcomp mode which is confused by this.
22213 #
22214 # We need to recreate these files for each test, as the compiler may
22215 # overwrite some of them when testing with obscure command lines.
22216 # This happens at least with the AIX C compiler.
22217 : > sub/conftest.c
22218 for i in 1 2 3 4 5 6; do
22219 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22220 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22221 # Solaris 8's {/usr,}/bin/sh.
22222 touch sub/conftst$i.h
22223 done
22224 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22225
22226 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22227 # mode. It turns out that the SunPro C++ compiler does not properly
22228 # handle `-M -o', and we need to detect this. Also, some Intel
22229 # versions had trouble with output in subdirs
22230 am__obj=sub/conftest.${OBJEXT-o}
22231 am__minus_obj="-o $am__obj"
22232 case $depmode in
22233 gcc)
22234 # This depmode causes a compiler race in universal mode.
22235 test "$am__universal" = false || continue
22236 ;;
22237 nosideeffect)
22238 # after this tag, mechanisms are not by side-effect, so they'll
22239 # only be used when explicitly requested
22240 if test "x$enable_dependency_tracking" = xyes; then
22241 continue
22242 else
22243 break
22244 fi
22245 ;;
22246 msvisualcpp | msvcmsys)
22247 # This compiler won't grok `-c -o', but also, the minuso test has
22248 # not run yet. These depmodes are late enough in the game, and
22249 # so weak that their functioning should not be impacted.
22250 am__obj=conftest.${OBJEXT-o}
22251 am__minus_obj=
22252 ;;
22253 none) break ;;
22254 esac
22255 if depmode=$depmode \
22256 source=sub/conftest.c object=$am__obj \
22257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22258 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22259 >/dev/null 2>conftest.err &&
22260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22262 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22264 # icc doesn't choke on unknown options, it will just issue warnings
22265 # or remarks (even with -Werror). So we grep stderr for any message
22266 # that says an option was ignored or not supported.
22267 # When given -MP, icc 7.0 and 7.1 complain thusly:
22268 # icc: Command line warning: ignoring option '-M'; no argument required
22269 # The diagnosis changed in icc 8.0:
22270 # icc: Command line remark: option '-MP' not supported
22271 if (grep 'ignoring option' conftest.err ||
22272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22273 am_cv_CXX_dependencies_compiler_type=$depmode
22274 break
22275 fi
22276 fi
22277 done
22278
22279 cd ..
22280 rm -rf conftest.dir
22281else
22282 am_cv_CXX_dependencies_compiler_type=none
22283fi
22284
22285fi
cristy8b350f62009-11-15 23:12:43 +000022286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022287$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22288CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22289
22290 if
22291 test "x$enable_dependency_tracking" != xno \
22292 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22293 am__fastdepCXX_TRUE=
22294 am__fastdepCXX_FALSE='#'
22295else
22296 am__fastdepCXX_TRUE='#'
22297 am__fastdepCXX_FALSE=
22298fi
22299
22300
cristy8b350f62009-11-15 23:12:43 +000022301 { $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 +000022302$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022303if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022304 $as_echo_n "(cached) " >&6
22305else
22306
22307 ac_ext=cpp
22308ac_cpp='$CXXCPP $CPPFLAGS'
22309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22312
cristy8b350f62009-11-15 23:12:43 +000022313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022314/* end confdefs.h. */
22315
22316int f(int x){return 1;}
22317int f(char x){return 1;}
22318int f(bool x){return 1;}
22319
22320int
22321main ()
22322{
22323bool b = true; return f(b);
22324 ;
22325 return 0;
22326}
22327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022328if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022329 ac_cv_cxx_have_bool=yes
22330else
cristy8b350f62009-11-15 23:12:43 +000022331 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000022332fi
cristy3ed852e2009-09-05 21:47:34 +000022333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334 ac_ext=cpp
22335ac_cpp='$CXXCPP $CPPFLAGS'
22336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22339
22340
22341fi
cristy8b350f62009-11-15 23:12:43 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000022343$as_echo "$ac_cv_cxx_have_bool" >&6; }
22344if test "$ac_cv_cxx_have_bool" = yes; then
22345
cristy8b350f62009-11-15 23:12:43 +000022346$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022347
22348fi
22349
cristy8b350f62009-11-15 23:12:43 +000022350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022351$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022352if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 $as_echo_n "(cached) " >&6
22354else
22355
22356 ac_ext=cpp
22357ac_cpp='$CXXCPP $CPPFLAGS'
22358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22361
cristy8b350f62009-11-15 23:12:43 +000022362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022363/* end confdefs.h. */
22364namespace Outer { namespace Inner { int i = 0; }}
22365int
22366main ()
22367{
22368using namespace Outer::Inner; return i;
22369 ;
22370 return 0;
22371}
22372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022373if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 ac_cv_cxx_have_namespaces=yes
22375else
cristy8b350f62009-11-15 23:12:43 +000022376 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000022377fi
cristy3ed852e2009-09-05 21:47:34 +000022378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 ac_ext=cpp
22380ac_cpp='$CXXCPP $CPPFLAGS'
22381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22384
22385
22386fi
cristy8b350f62009-11-15 23:12:43 +000022387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000022388$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22389if test "$ac_cv_cxx_have_namespaces" = yes; then
22390
cristy8b350f62009-11-15 23:12:43 +000022391$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022392
22393fi
22394
cristy8b350f62009-11-15 23:12:43 +000022395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022397if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022398 $as_echo_n "(cached) " >&6
22399else
22400
22401 ac_ext=cpp
22402ac_cpp='$CXXCPP $CPPFLAGS'
22403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22406
cristy8b350f62009-11-15 23:12:43 +000022407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022408/* end confdefs.h. */
22409#include <iostream>
22410 std::istream& is = std::cin;
22411
22412int
22413main ()
22414{
22415return 0;
22416 ;
22417 return 0;
22418}
22419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022420if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022421 ac_cv_cxx_have_std_namespace=yes
22422else
cristy8b350f62009-11-15 23:12:43 +000022423 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000022424fi
cristy3ed852e2009-09-05 21:47:34 +000022425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 ac_ext=cpp
22427ac_cpp='$CXXCPP $CPPFLAGS'
22428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22431
22432
22433fi
cristy8b350f62009-11-15 23:12:43 +000022434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000022435$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22436if test "$ac_cv_cxx_have_std_namespace" = yes; then
22437
cristy8b350f62009-11-15 23:12:43 +000022438$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022439
22440fi
22441
cristy8b350f62009-11-15 23:12:43 +000022442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022444if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022445 $as_echo_n "(cached) " >&6
22446else
22447
22448
22449 ac_ext=cpp
22450ac_cpp='$CXXCPP $CPPFLAGS'
22451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22454
cristy8b350f62009-11-15 23:12:43 +000022455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022456/* end confdefs.h. */
22457#include <iostream>
22458#include <map>
22459#include <iomanip>
22460#include <cmath>
22461#ifdef HAVE_NAMESPACES
22462using namespace std;
22463#endif
22464int
22465main ()
22466{
22467return 0;
22468 ;
22469 return 0;
22470}
22471_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022472if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022473 ac_cv_cxx_have_std_libs=yes
22474else
cristy8b350f62009-11-15 23:12:43 +000022475 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000022476fi
cristy3ed852e2009-09-05 21:47:34 +000022477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 ac_ext=cpp
22479ac_cpp='$CXXCPP $CPPFLAGS'
22480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22483
22484
22485fi
cristy8b350f62009-11-15 23:12:43 +000022486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000022487$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22488if test "$ac_cv_cxx_have_std_libs" = yes; then
22489
cristy8b350f62009-11-15 23:12:43 +000022490$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022491
22492fi
22493
cristy8b350f62009-11-15 23:12:43 +000022494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000022495$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022496if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022497 $as_echo_n "(cached) " >&6
22498else
22499
22500 ac_ext=cpp
22501ac_cpp='$CXXCPP $CPPFLAGS'
22502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22505
cristy8b350f62009-11-15 23:12:43 +000022506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022507/* end confdefs.h. */
22508const wchar_t* s=L"wide string";
22509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022510if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022511 ac_cv_cxx_have_lstring=yes
22512else
cristy8b350f62009-11-15 23:12:43 +000022513 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000022514fi
cristy3ed852e2009-09-05 21:47:34 +000022515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516 ac_ext=cpp
22517ac_cpp='$CXXCPP $CPPFLAGS'
22518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22521
22522
22523fi
cristy8b350f62009-11-15 23:12:43 +000022524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000022525$as_echo "$ac_cv_cxx_have_lstring" >&6; }
22526if test "$ac_cv_cxx_have_lstring" = yes; then
22527
cristy8b350f62009-11-15 23:12:43 +000022528$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022529
22530fi
22531
22532
22533 OPENMP_CXXFLAGS=
22534 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000022535if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 enableval=$enable_openmp;
22537fi
22538
22539 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000022540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22541$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022542if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022543 $as_echo_n "(cached) " >&6
22544else
cristy8b350f62009-11-15 23:12:43 +000022545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022547
22548#ifndef _OPENMP
22549 choke me
22550#endif
22551#include <omp.h>
22552int main () { return omp_get_num_threads (); }
22553
22554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_prog_cxx_openmp='none needed'
22557else
cristy8b350f62009-11-15 23:12:43 +000022558 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000022559 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22560 ac_save_CXXFLAGS=$CXXFLAGS
22561 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000022562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000022564
22565#ifndef _OPENMP
22566 choke me
22567#endif
22568#include <omp.h>
22569int main () { return omp_get_num_threads (); }
22570
22571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022572if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000022574fi
cristy8b350f62009-11-15 23:12:43 +000022575rm -f core conftest.err conftest.$ac_objext \
22576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022577 CXXFLAGS=$ac_save_CXXFLAGS
22578 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22579 break
22580 fi
22581 done
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583rm -f core conftest.err conftest.$ac_objext \
22584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022585fi
cristy8b350f62009-11-15 23:12:43 +000022586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022587$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22588 case $ac_cv_prog_cxx_openmp in #(
22589 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000022590 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000022591 *)
cristy8b350f62009-11-15 23:12:43 +000022592 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000022593 esac
22594 fi
22595
22596
22597 ac_ext=c
22598ac_cpp='$CPP $CPPFLAGS'
22599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601ac_compiler_gnu=$ac_cv_c_compiler_gnu
22602
22603
cristy8b350f62009-11-15 23:12:43 +000022604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000022605$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22606 if \
22607 test $ac_cv_cxx_have_bool = 'yes' && \
22608 test $ac_cv_cxx_have_lstring = 'yes' && \
22609 test $ac_cv_cxx_have_namespaces = 'yes' && \
22610 test $ac_cv_cxx_have_std_libs = 'yes' && \
22611 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22612 have_magick_plus_plus='yes'
22613 else
22614 have_magick_plus_plus='no (failed tests)'
22615 fi
cristy8b350f62009-11-15 23:12:43 +000022616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000022617$as_echo "$have_magick_plus_plus" >&6; }
22618 LIBS="$OLIBS"
22619fi
22620 if test "$have_magick_plus_plus" = 'yes'; then
22621 WITH_MAGICK_PLUS_PLUS_TRUE=
22622 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22623else
22624 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22625 WITH_MAGICK_PLUS_PLUS_FALSE=
22626fi
22627
22628
22629# Only check for delegate libraries in subdirectories if requested.
22630if test "$enable_delegate_build" != 'no'; then
22631 # Check for delegate sub-directories and add -I & -L options as required.
22632 # This presumes that delegates are installed as detailed in the ImageMagick
22633 # README. If delegates are installed in a standard location where the
22634 # compiler will automatically find them then these options should not be
22635 # required.
22636
22637 #
22638 # Most delegates have includes in the same directory as the library, but not all...
22639 #
22640 # Includes
cristy5850e4b2010-01-08 14:28:24 +000022641 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 +000022642 if test -d "$builddir/$dir"; then
22643 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22644 else
22645 if test -d "$srcdirfull/$dir"; then
22646 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22647 fi
22648 fi
22649 done
22650
22651 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000022652 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 +000022653 if test -d "$builddir/$dir/.libs"; then
22654 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22655 else
22656 if test -d "$srcdirfull/$dir/.libs"; then
22657 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22658 fi
22659 fi
22660 if test -d "$builddir/$dir"; then
22661 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22662 else
22663 if test -d "$srcdirfull/$dir"; then
22664 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22665 fi
22666 fi
22667 done
22668fi
22669
22670# Assume that delegate headers reside under same directory as ImageMagick
22671# installation prefix.
22672MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22673
22674#
22675# Find the X11 RGB database
22676#
cristy8b350f62009-11-15 23:12:43 +000022677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022678$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022679if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022680 $as_echo_n "(cached) " >&6
22681else
22682 # Look for the header file in a standard set of common directories.
22683# Check X11 before X11Rn because it is often a symlink to the current release.
22684 for ac_dir in \
22685 /lib/usr/lib/X11 \
22686 /usr/X11/lib \
22687 /usr/X11R4/lib \
22688 /usr/X11R5/lib \
22689 /usr/X11R6/lib \
22690 /usr/X11R7/lib \
22691 /usr/X386/lib \
22692 /usr/XFree86/lib/X11 \
22693 /usr/athena/lib \
22694 /usr/lib \
22695 /usr/lib/X11 \
22696 /usr/lib/X11R4 \
22697 /usr/lib/X11R5 \
22698 /usr/lib/X11R6 \
22699 /usr/lib/X11R7 \
22700 /usr/local/X11/lib \
22701 /usr/local/X11R4/lib \
22702 /usr/local/X11R5/lib \
22703 /usr/local/X11R6/lib \
22704 /usr/local/lib \
22705 /usr/local/lib/X11 \
22706 /usr/local/lib/X11R4 \
22707 /usr/local/lib/X11R5 \
22708 /usr/local/lib/X11R6 \
22709 /usr/local/lib/X11R7 \
22710 /usr/local/x11r5/lib \
22711 /usr/lpp/Xamples/lib \
22712 /usr/openwin/lib \
22713 /usr/openwin/share/lib \
22714 /usr/unsupported/lib \
22715 /usr/x386/lib \
22716 ; do
22717 if test -f "$ac_dir/X11/rgb.txt"; then
22718 im_cv_x_configure="$ac_dir/X11/"
22719 break
22720 elif test -f "$ac_dir/rgb.txt"; then
22721 im_cv_x_configure="$ac_dir/"
22722 break
22723 fi
22724
22725 done
22726fi
cristy8b350f62009-11-15 23:12:43 +000022727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000022728$as_echo "$im_cv_x_configure" >&6; }
22729X11_CONFIGURE_PATH="$im_cv_x_configure"
22730case "${build_os}" in
22731 mingw* )
22732 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22733 ;;
22734esac
22735
22736cat >>confdefs.h <<_ACEOF
22737#define X11_CONFIGURE_PATH "$X11ConfigurePath"
22738_ACEOF
22739
22740
22741#
22742# Find OpenMP library
22743#
22744GOMP_LIBS=''
22745if test "$enable_openmp" != 'no'; then
22746 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000022747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022748$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022749if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022750 $as_echo_n "(cached) " >&6
22751else
22752 ac_check_lib_save_LIBS=$LIBS
22753LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022755/* end confdefs.h. */
22756
22757/* Override any GCC internal prototype to avoid an error.
22758 Use char because int might match the return type of a GCC
22759 builtin and then its argument prototype would still apply. */
22760#ifdef __cplusplus
22761extern "C"
22762#endif
22763char GOMP_parallel_start ();
22764int
22765main ()
22766{
22767return GOMP_parallel_start ();
22768 ;
22769 return 0;
22770}
22771_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022772if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022773 ac_cv_lib_gomp_GOMP_parallel_start=yes
22774else
cristy8b350f62009-11-15 23:12:43 +000022775 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000022776fi
cristy8b350f62009-11-15 23:12:43 +000022777rm -f core conftest.err conftest.$ac_objext \
22778 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022779LIBS=$ac_check_lib_save_LIBS
22780fi
cristy8b350f62009-11-15 23:12:43 +000022781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000022782$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022783if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022784 GOMP_LIBS="-lgomp"
22785fi
22786 # gcc
22787 else
cristy8b350f62009-11-15 23:12:43 +000022788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000022789$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022790if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 $as_echo_n "(cached) " >&6
22792else
22793 ac_check_lib_save_LIBS=$LIBS
22794LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022796/* end confdefs.h. */
22797
22798/* Override any GCC internal prototype to avoid an error.
22799 Use char because int might match the return type of a GCC
22800 builtin and then its argument prototype would still apply. */
22801#ifdef __cplusplus
22802extern "C"
22803#endif
22804char sunw_mp_register_warn ();
22805int
22806main ()
22807{
22808return sunw_mp_register_warn ();
22809 ;
22810 return 0;
22811}
22812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022814 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22815else
cristy8b350f62009-11-15 23:12:43 +000022816 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000022817fi
cristy8b350f62009-11-15 23:12:43 +000022818rm -f core conftest.err conftest.$ac_objext \
22819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022820LIBS=$ac_check_lib_save_LIBS
22821fi
cristy8b350f62009-11-15 23:12:43 +000022822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000022823$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022824if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022825 GOMP_LIBS="-lmtsk"
22826fi
22827 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000022828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022829$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022830if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022831 $as_echo_n "(cached) " >&6
22832else
22833 ac_check_lib_save_LIBS=$LIBS
22834LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022836/* end confdefs.h. */
22837
22838/* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22841#ifdef __cplusplus
22842extern "C"
22843#endif
22844char _xlsmpFlush ();
22845int
22846main ()
22847{
22848return _xlsmpFlush ();
22849 ;
22850 return 0;
22851}
22852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022854 ac_cv_lib_xlsmp__xlsmpFlush=yes
22855else
cristy8b350f62009-11-15 23:12:43 +000022856 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000022857fi
cristy8b350f62009-11-15 23:12:43 +000022858rm -f core conftest.err conftest.$ac_objext \
22859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022860LIBS=$ac_check_lib_save_LIBS
22861fi
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022864if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022865 GOMP_LIBS="-lxlsmp"
22866fi
22867 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000022868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022869$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022870if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022871 $as_echo_n "(cached) " >&6
22872else
22873 ac_check_lib_save_LIBS=$LIBS
22874LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022876/* end confdefs.h. */
22877
22878/* Override any GCC internal prototype to avoid an error.
22879 Use char because int might match the return type of a GCC
22880 builtin and then its argument prototype would still apply. */
22881#ifdef __cplusplus
22882extern "C"
22883#endif
22884char mp_destroy ();
22885int
22886main ()
22887{
22888return mp_destroy ();
22889 ;
22890 return 0;
22891}
22892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022894 ac_cv_lib_mp_mp_destroy=yes
22895else
cristy8b350f62009-11-15 23:12:43 +000022896 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000022897fi
cristy8b350f62009-11-15 23:12:43 +000022898rm -f core conftest.err conftest.$ac_objext \
22899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022900LIBS=$ac_check_lib_save_LIBS
22901fi
cristy8b350f62009-11-15 23:12:43 +000022902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000022903$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022904if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022905 GOMP_LIBS="-lmp"
22906fi
22907 # SGI IRIX 6.5 MIPSpro C/C++
22908 fi
22909 LIBS="$GOMP_LIBS $LIBS"
22910fi
22911
22912
22913#
22914# Find Posix threads library
22915#
22916THREAD_LIBS=''
22917if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
22918
22919 if test "x$PTHREAD_LIBS" = "x"; then
22920 case "${host_cpu}-${host_os}" in
22921 *-freebsd*)
22922
22923
22924
22925ac_ext=c
22926ac_cpp='$CPP $CPPFLAGS'
22927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22929ac_compiler_gnu=$ac_cv_c_compiler_gnu
22930
22931magick_pthread_lib_ok=no
22932
22933LIB=-lc_r
22934save_LIBS="$LIBS"
22935LIBS="$LIBS $LIB"
22936
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022940/* end confdefs.h. */
22941#include <pthread.h>
22942int
22943main ()
22944{
22945 pthread_t th;
22946 pthread_join(th, 0);
22947 pthread_attr_init(0);
22948 pthread_cleanup_push(0, 0);
22949 pthread_create(0,0,0,0);
22950 pthread_cleanup_pop(0);
22951 ;
22952 return 0;
22953}
22954_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022955if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022956 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000022957fi
cristy8b350f62009-11-15 23:12:43 +000022958rm -f core conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022960
cristy8b350f62009-11-15 23:12:43 +000022961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000022962$as_echo "${magick_pthread_lib_ok}" >&6; }
22963if test "$magick_pthread_lib_ok" = yes
22964then
22965 PTHREAD_LIBS=-lc_r
22966 :
22967else
22968
22969 :
22970fi
22971
22972LIBS="$save_LIBS"
22973
22974ac_ext=c
22975ac_cpp='$CPP $CPPFLAGS'
22976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22978ac_compiler_gnu=$ac_cv_c_compiler_gnu
22979
22980 ;;
22981 esac
22982 fi
22983
22984 for lib in pthread pthreads; do
22985 if test "x$PTHREAD_LIBS" = "x"; then
22986
22987
22988
22989ac_ext=c
22990ac_cpp='$CPP $CPPFLAGS'
22991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22993ac_compiler_gnu=$ac_cv_c_compiler_gnu
22994
22995magick_pthread_lib_ok=no
22996
22997LIB=-l$lib
22998save_LIBS="$LIBS"
22999LIBS="$LIBS $LIB"
23000
cristy8b350f62009-11-15 23:12:43 +000023001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023002$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023004/* end confdefs.h. */
23005#include <pthread.h>
23006int
23007main ()
23008{
23009 pthread_t th;
23010 pthread_join(th, 0);
23011 pthread_attr_init(0);
23012 pthread_cleanup_push(0, 0);
23013 pthread_create(0,0,0,0);
23014 pthread_cleanup_pop(0);
23015 ;
23016 return 0;
23017}
23018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023020 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023021fi
cristy8b350f62009-11-15 23:12:43 +000023022rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024
cristy8b350f62009-11-15 23:12:43 +000023025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023026$as_echo "${magick_pthread_lib_ok}" >&6; }
23027if test "$magick_pthread_lib_ok" = yes
23028then
23029 PTHREAD_LIBS=-l$lib
23030 :
23031else
23032
23033 :
23034fi
23035
23036LIBS="$save_LIBS"
23037
23038ac_ext=c
23039ac_cpp='$CPP $CPPFLAGS'
23040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23042ac_compiler_gnu=$ac_cv_c_compiler_gnu
23043
23044
23045 fi
23046 done
23047
23048 THREAD_LIBS="$PTHREAD_LIBS"
23049 LIBS="$LIBS $THREAD_LIBS"
23050fi
23051
23052
23053#
23054# Check for umem.
23055#
23056have_umem='no'
23057UMEM_LIBS=''
23058if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000023060$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023062$as_echo "" >&6; }
23063 failed=0
23064 passed=0
cristy8b350f62009-11-15 23:12:43 +000023065 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23066if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023067 passed=`expr $passed + 1`
23068else
23069 failed=`expr $failed + 1`
23070fi
23071
23072
cristy8b350f62009-11-15 23:12:43 +000023073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023074$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023075if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023076 $as_echo_n "(cached) " >&6
23077else
23078 ac_check_lib_save_LIBS=$LIBS
23079LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023081/* end confdefs.h. */
23082
23083/* Override any GCC internal prototype to avoid an error.
23084 Use char because int might match the return type of a GCC
23085 builtin and then its argument prototype would still apply. */
23086#ifdef __cplusplus
23087extern "C"
23088#endif
23089char umem_alloc ();
23090int
23091main ()
23092{
23093return umem_alloc ();
23094 ;
23095 return 0;
23096}
23097_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023098if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023099 ac_cv_lib_umem_umem_alloc=yes
23100else
cristy8b350f62009-11-15 23:12:43 +000023101 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000023102fi
cristy8b350f62009-11-15 23:12:43 +000023103rm -f core conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023105LIBS=$ac_check_lib_save_LIBS
23106fi
cristy8b350f62009-11-15 23:12:43 +000023107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023108$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023109if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023110 passed=`expr $passed + 1`
23111else
23112 failed=`expr $failed + 1`
23113fi
23114
cristy8b350f62009-11-15 23:12:43 +000023115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000023116$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023117if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023118 $as_echo_n "(cached) " >&6
23119else
23120 ac_check_lib_save_LIBS=$LIBS
23121LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023123/* end confdefs.h. */
23124
23125/* Override any GCC internal prototype to avoid an error.
23126 Use char because int might match the return type of a GCC
23127 builtin and then its argument prototype would still apply. */
23128#ifdef __cplusplus
23129extern "C"
23130#endif
23131char umem_free ();
23132int
23133main ()
23134{
23135return umem_free ();
23136 ;
23137 return 0;
23138}
23139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023140if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023141 ac_cv_lib_umem_umem_free=yes
23142else
cristy8b350f62009-11-15 23:12:43 +000023143 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000023144fi
cristy8b350f62009-11-15 23:12:43 +000023145rm -f core conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023147LIBS=$ac_check_lib_save_LIBS
23148fi
cristy8b350f62009-11-15 23:12:43 +000023149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023151if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 passed=`expr $passed + 1`
23153else
23154 failed=`expr $failed + 1`
23155fi
23156
cristy8b350f62009-11-15 23:12:43 +000023157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023158$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23159 if test $passed -gt 0; then
23160 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo "no -- some components failed test" >&6; }
23163 have_umem='no (failed tests)'
23164 else
23165 UMEM_LIBS='-lumem'
23166 LIBS="$UMEM_LIBS $LIBS"
23167
cristy8b350f62009-11-15 23:12:43 +000023168$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023169
cristy8b350f62009-11-15 23:12:43 +000023170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023171$as_echo "yes" >&6; }
23172 have_umem='yes'
23173 fi
23174 else
cristy8b350f62009-11-15 23:12:43 +000023175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023176$as_echo "no" >&6; }
23177 fi
23178fi
23179 if test "$have_umem" = 'yes'; then
23180 HasUMEM_TRUE=
23181 HasUMEM_FALSE='#'
23182else
23183 HasUMEM_TRUE='#'
23184 HasUMEM_FALSE=
23185fi
23186
23187
23188
23189#
23190# Add support for ccmalloc memory debugging library if requested
23191#
23192have_ccmalloc='no'
23193CCMALLOC_LIBS=''
23194if test "$enable_ccmalloc" = 'yes'; then
23195 # Extract the first word of "ccmalloc", so it can be a program name with args.
23196set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023198$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023199if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023200 $as_echo_n "(cached) " >&6
23201else
23202 case $CCMALLOCDelegate in
23203 [\\/]* | ?:[\\/]*)
23204 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23205 ;;
23206 *)
23207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23208for as_dir in $PATH
23209do
23210 IFS=$as_save_IFS
23211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23214 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000023215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023216 break 2
23217 fi
23218done
cristy8b350f62009-11-15 23:12:43 +000023219 done
cristy3ed852e2009-09-05 21:47:34 +000023220IFS=$as_save_IFS
23221
23222 ;;
23223esac
23224fi
23225CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23226if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000023227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000023228$as_echo "$CCMALLOCDelegate" >&6; }
23229else
cristy8b350f62009-11-15 23:12:43 +000023230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023231$as_echo "no" >&6; }
23232fi
23233
23234
23235 if test -n "$CCMALLOCDelegate"; then
23236 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23237 OLIBS="$LIBS"
23238 # Assume that gcc is used with ccmalloc.
23239 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000023240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023241$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023242if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023243 $as_echo_n "(cached) " >&6
23244else
23245 ac_check_lib_save_LIBS=$LIBS
23246LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023248/* end confdefs.h. */
23249
23250/* Override any GCC internal prototype to avoid an error.
23251 Use char because int might match the return type of a GCC
23252 builtin and then its argument prototype would still apply. */
23253#ifdef __cplusplus
23254extern "C"
23255#endif
23256char ccmalloc_malloc ();
23257int
23258main ()
23259{
23260return ccmalloc_malloc ();
23261 ;
23262 return 0;
23263}
23264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023266 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23267else
cristy8b350f62009-11-15 23:12:43 +000023268 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000023269fi
cristy8b350f62009-11-15 23:12:43 +000023270rm -f core conftest.err conftest.$ac_objext \
23271 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023272LIBS=$ac_check_lib_save_LIBS
23273fi
cristy8b350f62009-11-15 23:12:43 +000023274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023275$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023276if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023277 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23278fi
23279
23280 if test -n "$CCMALLOC_LIBS"; then
23281 LIBS="$OLIBS"
23282 LIBS="$LIBS $CCMALLOC_LIBS"
23283 have_ccmalloc='yes'
23284 else
23285 LIBS="$OLIBS"
23286 fi
23287 fi
23288fi
23289
23290#
23291# Add support for efence memory debugging library if requested
23292#
23293if test "$enable_efence" = 'yes'; then
23294 EFENCE_LIBS='-lefence'
23295 LIBS="$EFENCE_LIBS $LIBS"
23296fi
23297
23298#
23299# Find math library
23300#
23301MATH_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo_n "checking for sqrt in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023304if test "${ac_cv_lib_m_sqrt+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023305 $as_echo_n "(cached) " >&6
23306else
23307 ac_check_lib_save_LIBS=$LIBS
23308LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023310/* end confdefs.h. */
23311
23312/* Override any GCC internal prototype to avoid an error.
23313 Use char because int might match the return type of a GCC
23314 builtin and then its argument prototype would still apply. */
23315#ifdef __cplusplus
23316extern "C"
23317#endif
23318char sqrt ();
23319int
23320main ()
23321{
23322return sqrt ();
23323 ;
23324 return 0;
23325}
23326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023328 ac_cv_lib_m_sqrt=yes
23329else
cristy8b350f62009-11-15 23:12:43 +000023330 ac_cv_lib_m_sqrt=no
cristy3ed852e2009-09-05 21:47:34 +000023331fi
cristy8b350f62009-11-15 23:12:43 +000023332rm -f core conftest.err conftest.$ac_objext \
23333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023334LIBS=$ac_check_lib_save_LIBS
23335fi
cristy8b350f62009-11-15 23:12:43 +000023336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
cristy3ed852e2009-09-05 21:47:34 +000023337$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023338if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023339 MATH_LIBS="-lm"
23340fi
23341
23342LIBS="$MATH_LIBS $LIBS"
23343
23344
23345
23346#
23347# Check for BZLIB
23348#
23349
23350
23351# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000023352if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023353 withval=$with_bzlib; with_bzlib=$withval
23354else
23355 with_bzlib='yes'
23356fi
23357
23358
23359if test "$with_bzlib" != 'yes'; then
23360 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23361fi
23362
23363have_bzlib='no'
23364if test "$with_bzlib" != 'no'; then
23365 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000023367$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023369$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000023371$as_echo "" >&6; }
23372 failed=0
23373 passed=0
23374 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000023375 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23376if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023377 passed=`expr $passed + 1`
23378else
23379 failed=`expr $failed + 1`
23380fi
23381
23382
cristy8b350f62009-11-15 23:12:43 +000023383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023384$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023385if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023386 $as_echo_n "(cached) " >&6
23387else
23388 ac_check_lib_save_LIBS=$LIBS
23389LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023391/* end confdefs.h. */
23392
23393/* Override any GCC internal prototype to avoid an error.
23394 Use char because int might match the return type of a GCC
23395 builtin and then its argument prototype would still apply. */
23396#ifdef __cplusplus
23397extern "C"
23398#endif
23399char BZ2_bzDecompress ();
23400int
23401main ()
23402{
23403return BZ2_bzDecompress ();
23404 ;
23405 return 0;
23406}
23407_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023408if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023409 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23410else
cristy8b350f62009-11-15 23:12:43 +000023411 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000023412fi
cristy8b350f62009-11-15 23:12:43 +000023413rm -f core conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023415LIBS=$ac_check_lib_save_LIBS
23416fi
cristy8b350f62009-11-15 23:12:43 +000023417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023418$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023419if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023420 found_libbz=`expr $found_libbz + 1`
23421fi
23422
23423 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000023424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000023425$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023426if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023427 $as_echo_n "(cached) " >&6
23428else
23429 ac_check_lib_save_LIBS=$LIBS
23430LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023432/* end confdefs.h. */
23433
23434/* Override any GCC internal prototype to avoid an error.
23435 Use char because int might match the return type of a GCC
23436 builtin and then its argument prototype would still apply. */
23437#ifdef __cplusplus
23438extern "C"
23439#endif
23440char _imp__BZ2_decompress ();
23441int
23442main ()
23443{
23444return _imp__BZ2_decompress ();
23445 ;
23446 return 0;
23447}
23448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023450 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23451else
cristy8b350f62009-11-15 23:12:43 +000023452 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000023453fi
cristy8b350f62009-11-15 23:12:43 +000023454rm -f core conftest.err conftest.$ac_objext \
23455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023456LIBS=$ac_check_lib_save_LIBS
23457fi
cristy8b350f62009-11-15 23:12:43 +000023458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000023459$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023460if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023461 found_libbz=`expr $found_libbz + 1`
23462fi
23463
23464 fi
23465 if test $found_libbz -gt 0; then
23466 passed=`expr $passed + 1`
23467 else
23468 failed=`expr $failed + 1`
23469 fi
cristy8b350f62009-11-15 23:12:43 +000023470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000023471$as_echo_n "checking if BZLIB package is complete... " >&6; }
23472 if test $passed -gt 0; then
23473 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000023474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000023475$as_echo "no -- some components failed test" >&6; }
23476 have_bzlib='no (failed tests)'
23477 else
23478 BZLIB_LIBS='-lbz2'
23479 LIBS="$BZLIB_LIBS $LIBS"
23480
cristy8b350f62009-11-15 23:12:43 +000023481$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023482
cristy8b350f62009-11-15 23:12:43 +000023483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023484$as_echo "yes" >&6; }
23485 have_bzlib='yes'
23486 fi
23487 else
cristy8b350f62009-11-15 23:12:43 +000023488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023489$as_echo "no" >&6; }
23490 fi
23491fi
23492 if test "$have_bzlib" = 'yes'; then
23493 BZLIB_DELEGATE_TRUE=
23494 BZLIB_DELEGATE_FALSE='#'
23495else
23496 BZLIB_DELEGATE_TRUE='#'
23497 BZLIB_DELEGATE_FALSE=
23498fi
23499
23500
23501
23502#
23503# Find the X11 include and library directories.
23504#
23505IPC_LIBS=''
23506X11_LIBS=''
23507XEXT_LIBS=''
23508XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000023510$as_echo_n "checking for X... " >&6; }
23511
23512
23513# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000023514if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023515 withval=$with_x;
23516fi
23517
23518# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23519if test "x$with_x" = xno; then
23520 # The user explicitly disabled X.
23521 have_x=disabled
23522else
23523 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000023524 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23525 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000023526 $as_echo_n "(cached) " >&6
23527else
23528 # One or both of the vars are not set, and there is no cached value.
23529ac_x_includes=no ac_x_libraries=no
23530rm -f -r conftest.dir
23531if mkdir conftest.dir; then
23532 cd conftest.dir
23533 cat >Imakefile <<'_ACEOF'
23534incroot:
23535 @echo incroot='${INCROOT}'
23536usrlibdir:
23537 @echo usrlibdir='${USRLIBDIR}'
23538libdir:
23539 @echo libdir='${LIBDIR}'
23540_ACEOF
23541 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23543 for ac_var in incroot usrlibdir libdir; do
23544 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23545 done
23546 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23547 for ac_extension in a so sl dylib la dll; do
23548 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23549 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23550 ac_im_usrlibdir=$ac_im_libdir; break
23551 fi
23552 done
23553 # Screen out bogus values from the imake configuration. They are
23554 # bogus both because they are the default anyway, and because
23555 # using them would break gcc on systems where it needs fixed includes.
23556 case $ac_im_incroot in
23557 /usr/include) ac_x_includes= ;;
23558 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23559 esac
23560 case $ac_im_usrlibdir in
23561 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23562 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23563 esac
23564 fi
23565 cd ..
23566 rm -f -r conftest.dir
23567fi
23568
23569# Standard set of common directories for X headers.
23570# Check X11 before X11Rn because it is often a symlink to the current release.
23571ac_x_header_dirs='
23572/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000023573/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023574/usr/X11R6/include
23575/usr/X11R5/include
23576/usr/X11R4/include
23577
23578/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000023579/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023580/usr/include/X11R6
23581/usr/include/X11R5
23582/usr/include/X11R4
23583
23584/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000023585/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000023586/usr/local/X11R6/include
23587/usr/local/X11R5/include
23588/usr/local/X11R4/include
23589
23590/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000023591/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000023592/usr/local/include/X11R6
23593/usr/local/include/X11R5
23594/usr/local/include/X11R4
23595
23596/usr/X386/include
23597/usr/x386/include
23598/usr/XFree86/include/X11
23599
23600/usr/include
23601/usr/local/include
23602/usr/unsupported/include
23603/usr/athena/include
23604/usr/local/x11r5/include
23605/usr/lpp/Xamples/include
23606
23607/usr/openwin/include
23608/usr/openwin/share/include'
23609
23610if test "$ac_x_includes" = no; then
23611 # Guess where to find include files, by looking for Xlib.h.
23612 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000023613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023614/* end confdefs.h. */
23615#include <X11/Xlib.h>
23616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023617if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023618 # We can compile using X headers with no special include directory.
23619ac_x_includes=
23620else
cristyc7083c12009-10-14 03:16:55 +000023621 for ac_dir in $ac_x_header_dirs; do
23622 if test -r "$ac_dir/X11/Xlib.h"; then
23623 ac_x_includes=$ac_dir
23624 break
23625 fi
23626done
23627fi
cristyc7083c12009-10-14 03:16:55 +000023628rm -f conftest.err conftest.$ac_ext
23629fi # $ac_x_includes = no
23630
23631if test "$ac_x_libraries" = no; then
23632 # Check for the libraries.
23633 # See if we find them without any special options.
23634 # Don't add to $LIBS permanently.
23635 ac_save_LIBS=$LIBS
23636 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023638/* end confdefs.h. */
23639#include <X11/Xlib.h>
23640int
23641main ()
23642{
23643XrmInitialize ()
23644 ;
23645 return 0;
23646}
23647_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023648if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000023649 LIBS=$ac_save_LIBS
23650# We can link X programs with no special library path.
23651ac_x_libraries=
23652else
cristy8b350f62009-11-15 23:12:43 +000023653 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000023654for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23655do
23656 # Don't even attempt the hair of trying to link an X program!
23657 for ac_extension in a so sl dylib la dll; do
23658 if test -r "$ac_dir/libX11.$ac_extension"; then
23659 ac_x_libraries=$ac_dir
23660 break 2
23661 fi
23662 done
23663done
23664fi
cristy8b350f62009-11-15 23:12:43 +000023665rm -f core conftest.err conftest.$ac_objext \
23666 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000023667fi # $ac_x_libraries = no
23668
23669case $ac_x_includes,$ac_x_libraries in #(
23670 no,* | *,no | *\'*)
23671 # Didn't find X, or a directory has "'" in its name.
23672 ac_cv_have_x="have_x=no";; #(
23673 *)
23674 # Record where we found X for the cache.
23675 ac_cv_have_x="have_x=yes\
23676 ac_x_includes='$ac_x_includes'\
23677 ac_x_libraries='$ac_x_libraries'"
23678esac
23679fi
23680;; #(
23681 *) have_x=yes;;
23682 esac
23683 eval "$ac_cv_have_x"
23684fi # $with_x != no
23685
23686if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000023688$as_echo "$have_x" >&6; }
23689 no_x=yes
23690else
23691 # If each of the values was on the command line, it overrides each guess.
23692 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23693 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23694 # Update the cache value to reflect the command line values.
23695 ac_cv_have_x="have_x=yes\
23696 ac_x_includes='$x_includes'\
23697 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000023698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000023699$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23700fi
23701
cristy3ed852e2009-09-05 21:47:34 +000023702if test "$no_x" = yes; then
23703 # Not all programs may use this symbol, but it does not hurt to define it.
23704
cristy8b350f62009-11-15 23:12:43 +000023705$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023706
23707 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23708else
23709 if test -n "$x_includes"; then
23710 X_CFLAGS="$X_CFLAGS -I$x_includes"
23711 fi
23712
23713 # It would also be nice to do this for all -L options, not just this one.
23714 if test -n "$x_libraries"; then
23715 X_LIBS="$X_LIBS -L$x_libraries"
23716 # For Solaris; some versions of Sun CC require a space after -R and
23717 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000023718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000023719$as_echo_n "checking whether -R must be followed by a space... " >&6; }
23720 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23721 ac_xsave_c_werror_flag=$ac_c_werror_flag
23722 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000023723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023724/* end confdefs.h. */
23725
23726int
23727main ()
23728{
23729
23730 ;
23731 return 0;
23732}
23733_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023734if ac_fn_c_try_link "$LINENO"; then :
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023736$as_echo "no" >&6; }
23737 X_LIBS="$X_LIBS -R$x_libraries"
23738else
cristy8b350f62009-11-15 23:12:43 +000023739 LIBS="$ac_xsave_LIBS -R $x_libraries"
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023741/* end confdefs.h. */
23742
23743int
23744main ()
23745{
23746
23747 ;
23748 return 0;
23749}
23750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023751if ac_fn_c_try_link "$LINENO"; then :
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo "yes" >&6; }
23754 X_LIBS="$X_LIBS -R $x_libraries"
23755else
cristy8b350f62009-11-15 23:12:43 +000023756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo "neither works" >&6; }
23758fi
cristy8b350f62009-11-15 23:12:43 +000023759rm -f core conftest.err conftest.$ac_objext \
23760 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023761fi
cristy8b350f62009-11-15 23:12:43 +000023762rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023764 ac_c_werror_flag=$ac_xsave_c_werror_flag
23765 LIBS=$ac_xsave_LIBS
23766 fi
23767
23768 # Check for system-dependent libraries X programs must link with.
23769 # Do this before checking for the system-independent R6 libraries
23770 # (-lICE), since we may need -lsocket or whatever for X linking.
23771
23772 if test "$ISC" = yes; then
23773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23774 else
23775 # Martyn Johnson says this is needed for Ultrix, if the X
23776 # libraries were built with DECnet support. And Karl Berry says
23777 # the Alpha needs dnet_stub (dnet does not exist).
23778 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000023779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023780/* end confdefs.h. */
23781
23782/* Override any GCC internal prototype to avoid an error.
23783 Use char because int might match the return type of a GCC
23784 builtin and then its argument prototype would still apply. */
23785#ifdef __cplusplus
23786extern "C"
23787#endif
23788char XOpenDisplay ();
23789int
23790main ()
23791{
23792return XOpenDisplay ();
23793 ;
23794 return 0;
23795}
23796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023797if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023798
cristy8b350f62009-11-15 23:12:43 +000023799else
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023801$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023802if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023803 $as_echo_n "(cached) " >&6
23804else
23805 ac_check_lib_save_LIBS=$LIBS
23806LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023808/* end confdefs.h. */
23809
23810/* Override any GCC internal prototype to avoid an error.
23811 Use char because int might match the return type of a GCC
23812 builtin and then its argument prototype would still apply. */
23813#ifdef __cplusplus
23814extern "C"
23815#endif
23816char dnet_ntoa ();
23817int
23818main ()
23819{
23820return dnet_ntoa ();
23821 ;
23822 return 0;
23823}
23824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023825if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023826 ac_cv_lib_dnet_dnet_ntoa=yes
23827else
cristy8b350f62009-11-15 23:12:43 +000023828 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023829fi
cristy8b350f62009-11-15 23:12:43 +000023830rm -f core conftest.err conftest.$ac_objext \
23831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023832LIBS=$ac_check_lib_save_LIBS
23833fi
cristy8b350f62009-11-15 23:12:43 +000023834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023835$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023836if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023837 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23838fi
23839
23840 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000023841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000023842$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023843if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023844 $as_echo_n "(cached) " >&6
23845else
23846 ac_check_lib_save_LIBS=$LIBS
23847LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023849/* end confdefs.h. */
23850
23851/* Override any GCC internal prototype to avoid an error.
23852 Use char because int might match the return type of a GCC
23853 builtin and then its argument prototype would still apply. */
23854#ifdef __cplusplus
23855extern "C"
23856#endif
23857char dnet_ntoa ();
23858int
23859main ()
23860{
23861return dnet_ntoa ();
23862 ;
23863 return 0;
23864}
23865_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023866if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023867 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23868else
cristy8b350f62009-11-15 23:12:43 +000023869 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000023870fi
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 +000023873LIBS=$ac_check_lib_save_LIBS
23874fi
cristy8b350f62009-11-15 23:12:43 +000023875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000023876$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023877if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023878 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23879fi
23880
23881 fi
23882fi
cristy8b350f62009-11-15 23:12:43 +000023883rm -f core conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023885 LIBS="$ac_xsave_LIBS"
23886
23887 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23888 # to get the SysV transport functions.
23889 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23890 # needs -lnsl.
23891 # The nsl library prevents programs from opening the X display
23892 # on Irix 5.2, according to T.E. Dickey.
23893 # The functions gethostbyname, getservbyname, and inet_addr are
23894 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000023895 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23896if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023897
cristy3ed852e2009-09-05 21:47:34 +000023898fi
23899
cristy3ed852e2009-09-05 21:47:34 +000023900 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000023902$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023903if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023904 $as_echo_n "(cached) " >&6
23905else
23906 ac_check_lib_save_LIBS=$LIBS
23907LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023909/* end confdefs.h. */
23910
23911/* Override any GCC internal prototype to avoid an error.
23912 Use char because int might match the return type of a GCC
23913 builtin and then its argument prototype would still apply. */
23914#ifdef __cplusplus
23915extern "C"
23916#endif
23917char gethostbyname ();
23918int
23919main ()
23920{
23921return gethostbyname ();
23922 ;
23923 return 0;
23924}
23925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023926if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023927 ac_cv_lib_nsl_gethostbyname=yes
23928else
cristy8b350f62009-11-15 23:12:43 +000023929 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023930fi
cristy8b350f62009-11-15 23:12:43 +000023931rm -f core conftest.err conftest.$ac_objext \
23932 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023933LIBS=$ac_check_lib_save_LIBS
23934fi
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023937if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23939fi
23940
23941 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000023942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000023943$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023944if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023945 $as_echo_n "(cached) " >&6
23946else
23947 ac_check_lib_save_LIBS=$LIBS
23948LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023950/* end confdefs.h. */
23951
23952/* Override any GCC internal prototype to avoid an error.
23953 Use char because int might match the return type of a GCC
23954 builtin and then its argument prototype would still apply. */
23955#ifdef __cplusplus
23956extern "C"
23957#endif
23958char gethostbyname ();
23959int
23960main ()
23961{
23962return gethostbyname ();
23963 ;
23964 return 0;
23965}
23966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023967if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023968 ac_cv_lib_bsd_gethostbyname=yes
23969else
cristy8b350f62009-11-15 23:12:43 +000023970 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000023971fi
cristy8b350f62009-11-15 23:12:43 +000023972rm -f core conftest.err conftest.$ac_objext \
23973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023974LIBS=$ac_check_lib_save_LIBS
23975fi
cristy8b350f62009-11-15 23:12:43 +000023976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000023977$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023978if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023979 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23980fi
23981
23982 fi
23983 fi
23984
23985 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23986 # socket/setsockopt and other routines are undefined under SCO ODT
23987 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23988 # on later versions), says Simon Leinen: it contains gethostby*
23989 # variants that don't use the name server (or something). -lsocket
23990 # must be given before -lnsl if both are needed. We assume that
23991 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000023992 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
23993if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023994
cristy3ed852e2009-09-05 21:47:34 +000023995fi
23996
cristy3ed852e2009-09-05 21:47:34 +000023997 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000023998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000023999$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024000if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024001 $as_echo_n "(cached) " >&6
24002else
24003 ac_check_lib_save_LIBS=$LIBS
24004LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024006/* end confdefs.h. */
24007
24008/* Override any GCC internal prototype to avoid an error.
24009 Use char because int might match the return type of a GCC
24010 builtin and then its argument prototype would still apply. */
24011#ifdef __cplusplus
24012extern "C"
24013#endif
24014char connect ();
24015int
24016main ()
24017{
24018return connect ();
24019 ;
24020 return 0;
24021}
24022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024024 ac_cv_lib_socket_connect=yes
24025else
cristy8b350f62009-11-15 23:12:43 +000024026 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024027fi
cristy8b350f62009-11-15 23:12:43 +000024028rm -f core conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024030LIBS=$ac_check_lib_save_LIBS
24031fi
cristy8b350f62009-11-15 23:12:43 +000024032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024033$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024034if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024035 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24036fi
24037
24038 fi
24039
24040 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024041 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24042if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024043
cristy3ed852e2009-09-05 21:47:34 +000024044fi
24045
cristy3ed852e2009-09-05 21:47:34 +000024046 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024048$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024049if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024050 $as_echo_n "(cached) " >&6
24051else
24052 ac_check_lib_save_LIBS=$LIBS
24053LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024055/* end confdefs.h. */
24056
24057/* Override any GCC internal prototype to avoid an error.
24058 Use char because int might match the return type of a GCC
24059 builtin and then its argument prototype would still apply. */
24060#ifdef __cplusplus
24061extern "C"
24062#endif
24063char remove ();
24064int
24065main ()
24066{
24067return remove ();
24068 ;
24069 return 0;
24070}
24071_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024072if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024073 ac_cv_lib_posix_remove=yes
24074else
cristy8b350f62009-11-15 23:12:43 +000024075 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000024076fi
cristy8b350f62009-11-15 23:12:43 +000024077rm -f core conftest.err conftest.$ac_objext \
24078 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024079LIBS=$ac_check_lib_save_LIBS
24080fi
cristy8b350f62009-11-15 23:12:43 +000024081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024083if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24085fi
24086
24087 fi
24088
24089 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000024090 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24091if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024092
cristy3ed852e2009-09-05 21:47:34 +000024093fi
24094
cristy3ed852e2009-09-05 21:47:34 +000024095 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000024096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024097$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024098if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024099 $as_echo_n "(cached) " >&6
24100else
24101 ac_check_lib_save_LIBS=$LIBS
24102LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024104/* end confdefs.h. */
24105
24106/* Override any GCC internal prototype to avoid an error.
24107 Use char because int might match the return type of a GCC
24108 builtin and then its argument prototype would still apply. */
24109#ifdef __cplusplus
24110extern "C"
24111#endif
24112char shmat ();
24113int
24114main ()
24115{
24116return shmat ();
24117 ;
24118 return 0;
24119}
24120_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024121if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024122 ac_cv_lib_ipc_shmat=yes
24123else
cristy8b350f62009-11-15 23:12:43 +000024124 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000024125fi
cristy8b350f62009-11-15 23:12:43 +000024126rm -f core conftest.err conftest.$ac_objext \
24127 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024128LIBS=$ac_check_lib_save_LIBS
24129fi
cristy8b350f62009-11-15 23:12:43 +000024130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000024131$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024132if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24134fi
24135
24136 fi
24137 fi
24138
24139 # Check for libraries that X11R6 Xt/Xaw programs need.
24140 ac_save_LDFLAGS=$LDFLAGS
24141 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24142 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24143 # check for ICE first), but we must link in the order -lSM -lICE or
24144 # we get undefined symbols. So assume we have SM if we have ICE.
24145 # These have to be linked with before -lX11, unlike the other
24146 # libraries we check for below, so use a different variable.
24147 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000024148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024149$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024150if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024151 $as_echo_n "(cached) " >&6
24152else
24153 ac_check_lib_save_LIBS=$LIBS
24154LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024156/* end confdefs.h. */
24157
24158/* Override any GCC internal prototype to avoid an error.
24159 Use char because int might match the return type of a GCC
24160 builtin and then its argument prototype would still apply. */
24161#ifdef __cplusplus
24162extern "C"
24163#endif
24164char IceConnectionNumber ();
24165int
24166main ()
24167{
24168return IceConnectionNumber ();
24169 ;
24170 return 0;
24171}
24172_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024173if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024174 ac_cv_lib_ICE_IceConnectionNumber=yes
24175else
cristy8b350f62009-11-15 23:12:43 +000024176 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000024177fi
cristy8b350f62009-11-15 23:12:43 +000024178rm -f core conftest.err conftest.$ac_objext \
24179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024180LIBS=$ac_check_lib_save_LIBS
24181fi
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024184if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24186fi
24187
24188 LDFLAGS=$ac_save_LDFLAGS
24189
24190fi
24191
24192if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024194$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo "" >&6; }
24199 LDFLAGS="$LDFLAGS $X_LIBS"
24200 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24201 LIBS="$X11_LIBS $LIBS"
24202 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24203
24204
cristy8b350f62009-11-15 23:12:43 +000024205$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024206
24207 #
24208 # Check for X11 shared memory extension
24209 #
24210 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000024211 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24212if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024213 have_shmctl='yes'
24214fi
24215
24216 if test "$have_shmctl" != 'yes'; then
24217 PERSIST_LIBS=$LIBS
24218 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000024219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024220/* end confdefs.h. */
24221
24222/* Override any GCC internal prototype to avoid an error.
24223 Use char because int might match the return type of a GCC
24224 builtin and then its argument prototype would still apply. */
24225#ifdef __cplusplus
24226extern "C"
24227#endif
24228char shmctl ();
24229int
24230main ()
24231{
24232return shmctl ();
24233 ;
24234 return 0;
24235}
24236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024237if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024238 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000024239fi
cristy8b350f62009-11-15 23:12:43 +000024240rm -f core conftest.err conftest.$ac_objext \
24241 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024242 LIBS=$PERSIST_LIBS
24243 fi
24244
24245 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024248if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024249 $as_echo_n "(cached) " >&6
24250else
24251 ac_check_lib_save_LIBS=$LIBS
24252LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024254/* end confdefs.h. */
24255
24256/* Override any GCC internal prototype to avoid an error.
24257 Use char because int might match the return type of a GCC
24258 builtin and then its argument prototype would still apply. */
24259#ifdef __cplusplus
24260extern "C"
24261#endif
24262char XShmAttach ();
24263int
24264main ()
24265{
24266return XShmAttach ();
24267 ;
24268 return 0;
24269}
24270_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024271if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024272 ac_cv_lib_Xext_XShmAttach=yes
24273else
cristy8b350f62009-11-15 23:12:43 +000024274 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000024275fi
cristy8b350f62009-11-15 23:12:43 +000024276rm -f core conftest.err conftest.$ac_objext \
24277 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024278LIBS=$ac_check_lib_save_LIBS
24279fi
cristy8b350f62009-11-15 23:12:43 +000024280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000024281$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024282if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024283 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024284$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024285
24286fi
24287
24288 fi
24289
24290 #
24291 # Check for X11 shape extension
24292 #
cristy8b350f62009-11-15 23:12:43 +000024293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024294$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024295if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024296 $as_echo_n "(cached) " >&6
24297else
24298 ac_check_lib_save_LIBS=$LIBS
24299LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024301/* end confdefs.h. */
24302
24303/* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24306#ifdef __cplusplus
24307extern "C"
24308#endif
24309char XShapeCombineMask ();
24310int
24311main ()
24312{
24313return XShapeCombineMask ();
24314 ;
24315 return 0;
24316}
24317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024318if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024319 ac_cv_lib_Xext_XShapeCombineMask=yes
24320else
cristy8b350f62009-11-15 23:12:43 +000024321 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000024322fi
cristy8b350f62009-11-15 23:12:43 +000024323rm -f core conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024325LIBS=$ac_check_lib_save_LIBS
24326fi
cristy8b350f62009-11-15 23:12:43 +000024327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024329if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024330 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000024331$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024332
24333fi
24334
cristy8b350f62009-11-15 23:12:43 +000024335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000024336$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024337if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024338 $as_echo_n "(cached) " >&6
24339else
24340 ac_check_lib_save_LIBS=$LIBS
24341LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024343/* end confdefs.h. */
24344
24345/* Override any GCC internal prototype to avoid an error.
24346 Use char because int might match the return type of a GCC
24347 builtin and then its argument prototype would still apply. */
24348#ifdef __cplusplus
24349extern "C"
24350#endif
24351char XtSetEventDispatcher ();
24352int
24353main ()
24354{
24355return XtSetEventDispatcher ();
24356 ;
24357 return 0;
24358}
24359_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024360if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024361 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24362else
cristy8b350f62009-11-15 23:12:43 +000024363 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000024364fi
cristy8b350f62009-11-15 23:12:43 +000024365rm -f core conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024367LIBS=$ac_check_lib_save_LIBS
24368fi
cristy8b350f62009-11-15 23:12:43 +000024369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000024370$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024371if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024372 XT_LIBS='-lXt'
24373fi
24374
24375 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24376fi
24377if test "$no_x" != 'yes'; then
24378 have_x='yes'
24379else
24380 have_x='no'
24381fi
24382 if test "$have_x" = 'yes'; then
24383 X11_DELEGATE_TRUE=
24384 X11_DELEGATE_FALSE='#'
24385else
24386 X11_DELEGATE_TRUE='#'
24387 X11_DELEGATE_FALSE=
24388fi
24389
24390
24391
24392
24393
24394#
24395# Check for ZLIB
24396#
24397
24398# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000024399if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 withval=$with_zlib; with_zlib=$withval
24401else
24402 with_zlib='yes'
24403fi
24404
24405
24406if test "$with_zlib" != 'yes'; then
24407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24408fi
24409
24410have_zlib='no'
24411ZLIB_LIBS=''
24412if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024414$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024416$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024418$as_echo "" >&6; }
24419 ZLIB_LIBS=''
24420 failed=0
24421 passed=0
cristy8b350f62009-11-15 23:12:43 +000024422 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24423if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024424 passed=`expr $passed + 1`
24425else
24426 failed=`expr $failed + 1`
24427fi
24428
24429
cristy8b350f62009-11-15 23:12:43 +000024430 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24431if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024432 passed=`expr $passed + 1`
24433else
24434 failed=`expr $failed + 1`
24435fi
24436
24437
cristy8b350f62009-11-15 23:12:43 +000024438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024439$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024440if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024441 $as_echo_n "(cached) " >&6
24442else
24443 ac_check_lib_save_LIBS=$LIBS
24444LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024446/* end confdefs.h. */
24447
24448/* Override any GCC internal prototype to avoid an error.
24449 Use char because int might match the return type of a GCC
24450 builtin and then its argument prototype would still apply. */
24451#ifdef __cplusplus
24452extern "C"
24453#endif
24454char compress ();
24455int
24456main ()
24457{
24458return compress ();
24459 ;
24460 return 0;
24461}
24462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024463if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024464 ac_cv_lib_z_compress=yes
24465else
cristy8b350f62009-11-15 23:12:43 +000024466 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000024467fi
cristy8b350f62009-11-15 23:12:43 +000024468rm -f core conftest.err conftest.$ac_objext \
24469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024470LIBS=$ac_check_lib_save_LIBS
24471fi
cristy8b350f62009-11-15 23:12:43 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024474if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024475 passed=`expr $passed + 1`
24476else
24477 failed=`expr $failed + 1`
24478fi
24479
cristy8b350f62009-11-15 23:12:43 +000024480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024481$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024482if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024483 $as_echo_n "(cached) " >&6
24484else
24485 ac_check_lib_save_LIBS=$LIBS
24486LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024488/* end confdefs.h. */
24489
24490/* Override any GCC internal prototype to avoid an error.
24491 Use char because int might match the return type of a GCC
24492 builtin and then its argument prototype would still apply. */
24493#ifdef __cplusplus
24494extern "C"
24495#endif
24496char uncompress ();
24497int
24498main ()
24499{
24500return uncompress ();
24501 ;
24502 return 0;
24503}
24504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024505if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 ac_cv_lib_z_uncompress=yes
24507else
cristy8b350f62009-11-15 23:12:43 +000024508 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000024509fi
cristy8b350f62009-11-15 23:12:43 +000024510rm -f core conftest.err conftest.$ac_objext \
24511 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024512LIBS=$ac_check_lib_save_LIBS
24513fi
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024516if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 passed=`expr $passed + 1`
24518else
24519 failed=`expr $failed + 1`
24520fi
24521
cristy8b350f62009-11-15 23:12:43 +000024522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024524if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024525 $as_echo_n "(cached) " >&6
24526else
24527 ac_check_lib_save_LIBS=$LIBS
24528LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024530/* end confdefs.h. */
24531
24532/* Override any GCC internal prototype to avoid an error.
24533 Use char because int might match the return type of a GCC
24534 builtin and then its argument prototype would still apply. */
24535#ifdef __cplusplus
24536extern "C"
24537#endif
24538char deflate ();
24539int
24540main ()
24541{
24542return deflate ();
24543 ;
24544 return 0;
24545}
24546_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024547if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024548 ac_cv_lib_z_deflate=yes
24549else
cristy8b350f62009-11-15 23:12:43 +000024550 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000024551fi
cristy8b350f62009-11-15 23:12:43 +000024552rm -f core conftest.err conftest.$ac_objext \
24553 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024554LIBS=$ac_check_lib_save_LIBS
24555fi
cristy8b350f62009-11-15 23:12:43 +000024556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024557$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024558if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024559 passed=`expr $passed + 1`
24560else
24561 failed=`expr $failed + 1`
24562fi
24563
cristy8b350f62009-11-15 23:12:43 +000024564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024565$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024566if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024567 $as_echo_n "(cached) " >&6
24568else
24569 ac_check_lib_save_LIBS=$LIBS
24570LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024572/* end confdefs.h. */
24573
24574/* Override any GCC internal prototype to avoid an error.
24575 Use char because int might match the return type of a GCC
24576 builtin and then its argument prototype would still apply. */
24577#ifdef __cplusplus
24578extern "C"
24579#endif
24580char inflate ();
24581int
24582main ()
24583{
24584return inflate ();
24585 ;
24586 return 0;
24587}
24588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024590 ac_cv_lib_z_inflate=yes
24591else
cristy8b350f62009-11-15 23:12:43 +000024592 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000024593fi
cristy8b350f62009-11-15 23:12:43 +000024594rm -f core conftest.err conftest.$ac_objext \
24595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024596LIBS=$ac_check_lib_save_LIBS
24597fi
cristy8b350f62009-11-15 23:12:43 +000024598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024599$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024600if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024601 passed=`expr $passed + 1`
24602else
24603 failed=`expr $failed + 1`
24604fi
24605
cristy8b350f62009-11-15 23:12:43 +000024606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024609 $as_echo_n "(cached) " >&6
24610else
24611 ac_check_lib_save_LIBS=$LIBS
24612LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024614/* end confdefs.h. */
24615
24616/* Override any GCC internal prototype to avoid an error.
24617 Use char because int might match the return type of a GCC
24618 builtin and then its argument prototype would still apply. */
24619#ifdef __cplusplus
24620extern "C"
24621#endif
24622char gzseek ();
24623int
24624main ()
24625{
24626return gzseek ();
24627 ;
24628 return 0;
24629}
24630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024631if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024632 ac_cv_lib_z_gzseek=yes
24633else
cristy8b350f62009-11-15 23:12:43 +000024634 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000024635fi
cristy8b350f62009-11-15 23:12:43 +000024636rm -f core conftest.err conftest.$ac_objext \
24637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024638LIBS=$ac_check_lib_save_LIBS
24639fi
cristy8b350f62009-11-15 23:12:43 +000024640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000024641$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024642if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024643 passed=`expr $passed + 1`
24644else
24645 failed=`expr $failed + 1`
24646fi
24647
cristy8b350f62009-11-15 23:12:43 +000024648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000024649$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024650if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024651 $as_echo_n "(cached) " >&6
24652else
24653 ac_check_lib_save_LIBS=$LIBS
24654LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024656/* end confdefs.h. */
24657
24658/* Override any GCC internal prototype to avoid an error.
24659 Use char because int might match the return type of a GCC
24660 builtin and then its argument prototype would still apply. */
24661#ifdef __cplusplus
24662extern "C"
24663#endif
24664char gztell ();
24665int
24666main ()
24667{
24668return gztell ();
24669 ;
24670 return 0;
24671}
24672_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024673if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 ac_cv_lib_z_gztell=yes
24675else
cristy8b350f62009-11-15 23:12:43 +000024676 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000024677fi
cristy8b350f62009-11-15 23:12:43 +000024678rm -f core conftest.err conftest.$ac_objext \
24679 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024680LIBS=$ac_check_lib_save_LIBS
24681fi
cristy8b350f62009-11-15 23:12:43 +000024682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000024683$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024684if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024685 passed=`expr $passed + 1`
24686else
24687 failed=`expr $failed + 1`
24688fi
24689
cristy8b350f62009-11-15 23:12:43 +000024690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024691$as_echo_n "checking if ZLIB package is complete... " >&6; }
24692 if test $passed -gt 0; then
24693 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024695$as_echo "no -- some components failed test" >&6; }
24696 have_zlib='no (failed tests)'
24697 else
24698 ZLIB_LIBS='-lz'
24699 LIBS="$ZLIB_LIBS $LIBS"
24700
cristy8b350f62009-11-15 23:12:43 +000024701$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024702
cristy8b350f62009-11-15 23:12:43 +000024703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024704$as_echo "yes" >&6; }
24705 have_zlib='yes'
24706 fi
24707 else
cristy8b350f62009-11-15 23:12:43 +000024708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024709$as_echo "no" >&6; }
24710 fi
24711fi
24712 if test "$have_zlib" = 'yes'; then
24713 ZLIB_DELEGATE_TRUE=
24714 ZLIB_DELEGATE_FALSE='#'
24715else
24716 ZLIB_DELEGATE_TRUE='#'
24717 ZLIB_DELEGATE_FALSE=
24718fi
24719
24720
24721
24722#
24723# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24724#
24725LIB_DL=''
24726if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024728$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024729if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024730 $as_echo_n "(cached) " >&6
24731else
24732 ac_check_lib_save_LIBS=$LIBS
24733LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024735/* end confdefs.h. */
24736
24737/* Override any GCC internal prototype to avoid an error.
24738 Use char because int might match the return type of a GCC
24739 builtin and then its argument prototype would still apply. */
24740#ifdef __cplusplus
24741extern "C"
24742#endif
24743char dlopen ();
24744int
24745main ()
24746{
24747return dlopen ();
24748 ;
24749 return 0;
24750}
24751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 ac_cv_lib_dl_dlopen=yes
24754else
cristy8b350f62009-11-15 23:12:43 +000024755 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000024756fi
cristy8b350f62009-11-15 23:12:43 +000024757rm -f core conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024759LIBS=$ac_check_lib_save_LIBS
24760fi
cristy8b350f62009-11-15 23:12:43 +000024761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000024762$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024763if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 LIB_DL='-ldl'
24765fi
24766
24767 LIBS="$LIB_DL $LIBS"
24768fi
24769
24770
24771
24772#
24773# Check for Autotrace delegate library.
24774#
24775
24776# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000024777if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024778 withval=$with_autotrace; with_autotrace=$withval
24779else
24780 with_autotrace='no'
24781fi
24782
24783
24784if test "$with_autotrace" != 'yes'; then
24785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24786fi
24787
24788have_autotrace='no'
24789AUTOTRACE_CFLAGS=""
24790AUTOTRACE_LIBS=""
24791AUTOTRACE_PKG=""
24792if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000024793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "-------------------------------------------------------------" >&6; }
24795
24796pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000024797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000024798$as_echo_n "checking for AUTOTRACE... " >&6; }
24799
24800if test -n "$AUTOTRACE_CFLAGS"; then
24801 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24802 elif test -n "$PKG_CONFIG"; then
24803 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024805 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24806 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24808 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024809 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24810else
24811 pkg_failed=yes
24812fi
24813 else
24814 pkg_failed=untried
24815fi
24816if test -n "$AUTOTRACE_LIBS"; then
24817 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24818 elif test -n "$PKG_CONFIG"; then
24819 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000024820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000024821 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24822 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000024825 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24826else
24827 pkg_failed=yes
24828fi
24829 else
24830 pkg_failed=untried
24831fi
24832
24833
24834
24835if test $pkg_failed = yes; then
24836
24837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24838 _pkg_short_errors_supported=yes
24839else
24840 _pkg_short_errors_supported=no
24841fi
24842 if test $_pkg_short_errors_supported = yes; then
24843 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24844 else
24845 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24846 fi
24847 # Put the nasty error message in config.log where it belongs
24848 echo "$AUTOTRACE_PKG_ERRORS" >&5
24849
cristy8b350f62009-11-15 23:12:43 +000024850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024851$as_echo "no" >&6; }
24852 have_autotrace=no
24853elif test $pkg_failed = untried; then
24854 have_autotrace=no
24855else
24856 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24857 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000024858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024859$as_echo "yes" >&6; }
24860 have_autotrace=yes
24861fi
cristy8b350f62009-11-15 23:12:43 +000024862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024863$as_echo "" >&6; }
24864fi
24865
24866if test "$have_autotrace" = 'yes'; then
24867 failed=0
24868
cristy8b350f62009-11-15 23:12:43 +000024869$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024870
24871 if test "$with_modules" = 'no'; then
24872 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24873 fi
24874fi
24875
24876 if test "$have_autotrace" = 'yes'; then
24877 AUTOTRACE_DELEGATE_TRUE=
24878 AUTOTRACE_DELEGATE_FALSE='#'
24879else
24880 AUTOTRACE_DELEGATE_TRUE='#'
24881 AUTOTRACE_DELEGATE_FALSE=
24882fi
24883
24884
24885
24886
24887
24888#
24889# Check for Display Postscript delegate library.
24890#
24891
24892# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000024893if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024894 withval=$with_dps; with_dps=$withval
24895else
24896 with_dps='yes'
24897fi
24898
24899
24900if test "$with_dps" != 'yes'; then
24901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24902fi
24903
24904have_dps='no'
24905DPS_LIBS=''
24906if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024908$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000024910$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024912$as_echo "" >&6; }
24913 failed=0
24914 passed=0
24915 PERSIST_CPPFLAGS="$CPPFLAGS"
24916 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000024917 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24918if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024919 passed=`expr $passed + 1`
24920else
24921 failed=`expr $failed + 1`
24922fi
24923
24924
24925 # DPS issues:
24926 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
24927 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
24928 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
24929 # ImageMagick itself doesn't use -lXt.
24930 have_libdps='no'
24931 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000024932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024933$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024934if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024935 $as_echo_n "(cached) " >&6
24936else
24937 ac_check_lib_save_LIBS=$LIBS
24938LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024940/* end confdefs.h. */
24941
24942/* Override any GCC internal prototype to avoid an error.
24943 Use char because int might match the return type of a GCC
24944 builtin and then its argument prototype would still apply. */
24945#ifdef __cplusplus
24946extern "C"
24947#endif
24948char DPSInitialize ();
24949int
24950main ()
24951{
24952return DPSInitialize ();
24953 ;
24954 return 0;
24955}
24956_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024957if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024958 ac_cv_lib_dps_DPSInitialize=yes
24959else
cristy8b350f62009-11-15 23:12:43 +000024960 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000024961fi
cristy8b350f62009-11-15 23:12:43 +000024962rm -f core conftest.err conftest.$ac_objext \
24963 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024964LIBS=$ac_check_lib_save_LIBS
24965fi
cristy8b350f62009-11-15 23:12:43 +000024966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024967$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024968if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024969 have_libdps='yes'
24970else
24971 have_libdps='no'
24972fi
24973
24974 if test "$have_libdps" != 'yes'; then
24975 # Unset cache variable so we can try again.
24976 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000024977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000024978$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024979if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024980 $as_echo_n "(cached) " >&6
24981else
24982 ac_check_lib_save_LIBS=$LIBS
24983LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024985/* end confdefs.h. */
24986
24987/* Override any GCC internal prototype to avoid an error.
24988 Use char because int might match the return type of a GCC
24989 builtin and then its argument prototype would still apply. */
24990#ifdef __cplusplus
24991extern "C"
24992#endif
24993char DPSInitialize ();
24994int
24995main ()
24996{
24997return DPSInitialize ();
24998 ;
24999 return 0;
25000}
25001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025003 ac_cv_lib_dps_DPSInitialize=yes
25004else
cristy8b350f62009-11-15 23:12:43 +000025005 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025006fi
cristy8b350f62009-11-15 23:12:43 +000025007rm -f core conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025009LIBS=$ac_check_lib_save_LIBS
25010fi
cristy8b350f62009-11-15 23:12:43 +000025011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025012$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025013if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025014 have_libdps='yes'
25015else
25016 have_libdps='no'
25017fi
25018
25019 if test "$have_libdps" = 'yes'; then
25020 LIBDPS_XT='-lXt'
25021 fi
25022 fi
25023 if test "$have_libdps" = 'yes'; then
25024 passed=`expr $passed + 1`
25025 else
25026 failed=`expr $failed + 1`
25027 fi
cristy8b350f62009-11-15 23:12:43 +000025028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025029$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025030if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 $as_echo_n "(cached) " >&6
25032else
25033 ac_check_lib_save_LIBS=$LIBS
25034LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025036/* end confdefs.h. */
25037
25038/* Override any GCC internal prototype to avoid an error.
25039 Use char because int might match the return type of a GCC
25040 builtin and then its argument prototype would still apply. */
25041#ifdef __cplusplus
25042extern "C"
25043#endif
25044char XDPSPixelsPerPoint ();
25045int
25046main ()
25047{
25048return XDPSPixelsPerPoint ();
25049 ;
25050 return 0;
25051}
25052_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025053if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025054 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25055else
cristy8b350f62009-11-15 23:12:43 +000025056 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025057fi
cristy8b350f62009-11-15 23:12:43 +000025058rm -f core conftest.err conftest.$ac_objext \
25059 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025060LIBS=$ac_check_lib_save_LIBS
25061fi
cristy8b350f62009-11-15 23:12:43 +000025062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000025063$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025064if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025065 passed=`expr $passed + 1`
25066else
25067 failed=`expr $failed + 1`
25068fi
25069
cristy8b350f62009-11-15 23:12:43 +000025070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025071$as_echo_n "checking if DPS package is complete... " >&6; }
25072 if test $passed -gt 0; then
25073 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025075$as_echo "no -- some components failed test" >&6; }
25076 have_dps='no (failed tests)'
25077 CPPFLAGS="$PERSIST_CPPFLAGS"
25078 else
25079 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25080 LIBS="$DPS_LIBS $LIBS"
25081
cristy8b350f62009-11-15 23:12:43 +000025082$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025083
cristy8b350f62009-11-15 23:12:43 +000025084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025085$as_echo "yes" >&6; }
25086 have_dps='yes'
25087 fi
25088 else
cristy8b350f62009-11-15 23:12:43 +000025089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025090$as_echo "no" >&6; }
25091 CPPFLAGS=$PERSIST_CPPFLAGS
25092 fi
25093fi
25094 if test "$have_dps" = 'yes'; then
25095 DPS_DELEGATE_TRUE=
25096 DPS_DELEGATE_FALSE='#'
25097else
25098 DPS_DELEGATE_TRUE='#'
25099 DPS_DELEGATE_FALSE=
25100fi
25101
25102
25103
25104
25105#
25106# Check for DJVU delegate library.
25107#
25108
25109# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000025110if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025111 withval=$with_djvu; with_djvu=$withval
25112else
25113 with_djvu='yes'
25114fi
25115
25116
25117if test "$with_djvu" != 'yes'; then
25118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25119fi
25120
25121have_djvu='no'
25122DJVU_LIBS=''
25123if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025125$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000025127$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo "" >&6; }
25130 failed=0
25131 passed=0
cristy8b350f62009-11-15 23:12:43 +000025132 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25133if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025134 passed=`expr $passed + 1`
25135else
25136 failed=`expr $failed + 1`
25137fi
25138
25139
cristy8b350f62009-11-15 23:12:43 +000025140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000025141$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025142if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025143 $as_echo_n "(cached) " >&6
25144else
25145 ac_check_lib_save_LIBS=$LIBS
25146LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025148/* end confdefs.h. */
25149
25150/* Override any GCC internal prototype to avoid an error.
25151 Use char because int might match the return type of a GCC
25152 builtin and then its argument prototype would still apply. */
25153#ifdef __cplusplus
25154extern "C"
25155#endif
25156char ddjvu_context_create ();
25157int
25158main ()
25159{
25160return ddjvu_context_create ();
25161 ;
25162 return 0;
25163}
25164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025165if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025166 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25167else
cristy8b350f62009-11-15 23:12:43 +000025168 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000025169fi
cristy8b350f62009-11-15 23:12:43 +000025170rm -f core conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025172LIBS=$ac_check_lib_save_LIBS
25173fi
cristy8b350f62009-11-15 23:12:43 +000025174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025176if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025177 passed=`expr $passed + 1`
25178else
25179 failed=`expr $failed + 1`
25180fi
25181
cristy8b350f62009-11-15 23:12:43 +000025182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025183$as_echo_n "checking if DJVU package is complete... " >&6; }
25184 if test $passed -gt 0; then
25185 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025187$as_echo "no -- some components failed test" >&6; }
25188 have_djvu='no (failed tests)'
25189 else
25190 DJVU_LIBS='-ldjvulibre'
25191 LIBS="$DJVU_LIBS $LIBS"
25192
cristy8b350f62009-11-15 23:12:43 +000025193$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025194
cristy8b350f62009-11-15 23:12:43 +000025195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025196$as_echo "yes" >&6; }
25197 have_djvu='yes'
25198 fi
25199 else
cristy8b350f62009-11-15 23:12:43 +000025200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025201$as_echo "no" >&6; }
25202 fi
25203fi
25204 if test "$have_djvu" = 'yes'; then
25205 DJVU_DELEGATE_TRUE=
25206 DJVU_DELEGATE_FALSE='#'
25207else
25208 DJVU_DELEGATE_TRUE='#'
25209 DJVU_DELEGATE_FALSE=
25210fi
25211
25212
25213
25214
25215#
25216# Check for FFTW delegate library.
25217#
25218
25219# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000025220if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 withval=$with_fftw; with_fftw=$withval
25222else
25223 with_fftw='yes'
25224fi
25225
25226
25227if test "$with_fftw" != 'yes'; then
25228 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25229fi
25230
25231have_fftw='no'
25232FFTW_LIBS=''
25233if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025235$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000025237$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025239$as_echo "" >&6; }
25240 failed=0
25241 passed=0
cristy8b350f62009-11-15 23:12:43 +000025242 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25243if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025244 passed=`expr $passed + 1`
25245else
25246 failed=`expr $failed + 1`
25247fi
25248
25249
cristy8b350f62009-11-15 23:12:43 +000025250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000025251$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025252if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025253 $as_echo_n "(cached) " >&6
25254else
25255 ac_check_lib_save_LIBS=$LIBS
25256LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025258/* end confdefs.h. */
25259
25260/* Override any GCC internal prototype to avoid an error.
25261 Use char because int might match the return type of a GCC
25262 builtin and then its argument prototype would still apply. */
25263#ifdef __cplusplus
25264extern "C"
25265#endif
25266char fftw_execute ();
25267int
25268main ()
25269{
25270return fftw_execute ();
25271 ;
25272 return 0;
25273}
25274_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025275if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025276 ac_cv_lib_fftw3_fftw_execute=yes
25277else
cristy8b350f62009-11-15 23:12:43 +000025278 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000025279fi
cristy8b350f62009-11-15 23:12:43 +000025280rm -f core conftest.err conftest.$ac_objext \
25281 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025282LIBS=$ac_check_lib_save_LIBS
25283fi
cristy8b350f62009-11-15 23:12:43 +000025284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025286if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 passed=`expr $passed + 1`
25288else
25289 failed=`expr $failed + 1`
25290fi
25291
cristy8b350f62009-11-15 23:12:43 +000025292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025293$as_echo_n "checking if FFTW package is complete... " >&6; }
25294 if test $passed -gt 0; then
25295 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025297$as_echo "no -- some components failed test" >&6; }
25298 have_fftw='no (failed tests)'
25299 else
25300 FFTW_LIBS='-lfftw3'
25301 LIBS="$FFTW_LIBS $LIBS"
25302
cristy8b350f62009-11-15 23:12:43 +000025303$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025304
cristy8b350f62009-11-15 23:12:43 +000025305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025306$as_echo "yes" >&6; }
25307 have_fftw='yes'
25308 fi
25309 else
cristy8b350f62009-11-15 23:12:43 +000025310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311$as_echo "no" >&6; }
25312 fi
25313fi
25314 if test "$have_fftw" = 'yes'; then
25315 FFTW_DELEGATE_TRUE=
25316 FFTW_DELEGATE_FALSE='#'
25317else
25318 FFTW_DELEGATE_TRUE='#'
25319 FFTW_DELEGATE_FALSE=
25320fi
25321
25322
25323
25324
25325#
25326# Check for FlashPIX delegate library.
25327#
25328
25329# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000025330if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025331 withval=$with_fpx; with_fpx=$withval
25332else
25333 with_fpx='yes'
25334fi
25335
25336
25337if test "$with_fpx" != 'yes'; then
25338 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25339fi
25340
25341have_fpx='no'
25342FPX_LIBS=''
25343if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025345$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025347$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025349$as_echo "" >&6; }
25350 failed=0
25351 passed=0
25352 ac_ext=cpp
25353ac_cpp='$CXXCPP $CPPFLAGS'
25354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25357
25358
cristy8b350f62009-11-15 23:12:43 +000025359ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25360if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 passed=`expr $passed + 1`
25362else
25363 failed=`expr $failed + 1`
25364fi
25365
25366
cristy8b350f62009-11-15 23:12:43 +000025367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000025368$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025369if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025370 $as_echo_n "(cached) " >&6
25371else
25372 ac_check_lib_save_LIBS=$LIBS
25373LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025375/* end confdefs.h. */
25376
25377/* Override any GCC internal prototype to avoid an error.
25378 Use char because int might match the return type of a GCC
25379 builtin and then its argument prototype would still apply. */
25380#ifdef __cplusplus
25381extern "C"
25382#endif
25383char FPX_OpenImageByFilename ();
25384int
25385main ()
25386{
25387return FPX_OpenImageByFilename ();
25388 ;
25389 return 0;
25390}
25391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025392if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025393 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25394else
cristy8b350f62009-11-15 23:12:43 +000025395 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000025396fi
cristy8b350f62009-11-15 23:12:43 +000025397rm -f core conftest.err conftest.$ac_objext \
25398 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025399LIBS=$ac_check_lib_save_LIBS
25400fi
cristy8b350f62009-11-15 23:12:43 +000025401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000025402$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025403if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025404 passed=`expr $passed + 1`
25405else
25406 failed=`expr $failed + 1`
25407fi
25408
25409 ac_ext=c
25410ac_cpp='$CPP $CPPFLAGS'
25411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25413ac_compiler_gnu=$ac_cv_c_compiler_gnu
25414
cristy8b350f62009-11-15 23:12:43 +000025415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025416$as_echo_n "checking if FlashPIX package is complete... " >&6; }
25417 if test $passed -gt 0; then
25418 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025420$as_echo "no -- some components failed test" >&6; }
25421 have_fpx='no (failed tests)'
25422 else
25423 FPX_LIBS='-lfpx'
25424
cristy8b350f62009-11-15 23:12:43 +000025425$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025426
cristy8b350f62009-11-15 23:12:43 +000025427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025428$as_echo "yes" >&6; }
25429 have_fpx='yes'
25430 PERLMAINCC="$CXX"
25431 fi
25432 else
cristy8b350f62009-11-15 23:12:43 +000025433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025434$as_echo "no" >&6; }
25435 fi
25436fi
25437 if test "$have_fpx" = 'yes'; then
25438 FPX_DELEGATE_TRUE=
25439 FPX_DELEGATE_FALSE='#'
25440else
25441 FPX_DELEGATE_TRUE='#'
25442 FPX_DELEGATE_FALSE=
25443fi
25444
25445
25446
25447
25448#
25449# Check for fontconfig delegate library.
25450#
25451
25452# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000025453if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025454 withval=$with_fontconfig; with_fontconfig=$withval
25455else
25456 with_fontconfig=$have_x
25457fi
25458
25459
25460if test "$with_fontconfig" != 'yes'; then
25461 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25462fi
25463
25464have_fontconfig='no'
25465FONTCONFIG_CFLAGS=""
25466FONTCONFIG_LIBS=""
25467FONTCONFIG_PKG=""
25468if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025470$as_echo "-------------------------------------------------------------" >&6; }
25471
25472pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000025474$as_echo_n "checking for FONTCONFIG... " >&6; }
25475
25476if test -n "$FONTCONFIG_CFLAGS"; then
25477 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25478 elif test -n "$PKG_CONFIG"; then
25479 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025481 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25482 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025485 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25486else
25487 pkg_failed=yes
25488fi
25489 else
25490 pkg_failed=untried
25491fi
25492if test -n "$FONTCONFIG_LIBS"; then
25493 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25494 elif test -n "$PKG_CONFIG"; then
25495 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025497 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25498 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025501 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25502else
25503 pkg_failed=yes
25504fi
25505 else
25506 pkg_failed=untried
25507fi
25508
25509
25510
25511if test $pkg_failed = yes; then
25512
25513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25514 _pkg_short_errors_supported=yes
25515else
25516 _pkg_short_errors_supported=no
25517fi
25518 if test $_pkg_short_errors_supported = yes; then
25519 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25520 else
25521 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25522 fi
25523 # Put the nasty error message in config.log where it belongs
25524 echo "$FONTCONFIG_PKG_ERRORS" >&5
25525
cristy8b350f62009-11-15 23:12:43 +000025526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025527$as_echo "no" >&6; }
25528 have_fontconfig=no
25529elif test $pkg_failed = untried; then
25530 have_fontconfig=no
25531else
25532 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25533 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000025534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo "yes" >&6; }
25536 have_fontconfig=yes
25537fi
cristy8b350f62009-11-15 23:12:43 +000025538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025539$as_echo "" >&6; }
25540fi
25541
25542if test "$have_fontconfig" = 'yes'; then
25543
cristy8b350f62009-11-15 23:12:43 +000025544$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025545
25546 if test "$with_modules" = 'no'; then
25547 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25548 fi
25549fi
25550
25551 if test "$have_fontconfig" = 'yes'; then
25552 FONTCONFIG_DELEGATE_TRUE=
25553 FONTCONFIG_DELEGATE_FALSE='#'
25554else
25555 FONTCONFIG_DELEGATE_TRUE='#'
25556 FONTCONFIG_DELEGATE_FALSE=
25557fi
25558
25559
25560
25561
25562
25563#
25564# Check for freetype delegate library.
25565#
25566
25567# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000025568if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025569 withval=$with_freetype; with_freetype=$withval
25570else
25571 with_freetype='yes'
25572fi
25573
25574
25575
25576if test "$with_freetype" != 'yes'; then
25577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25578fi
25579
25580have_freetype='no'
25581FREETYPE_LIBS=''
25582if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025584$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000025586$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025588$as_echo "" >&6; }
25589 failed=0
25590 passed=0
cristy66291112009-10-03 22:44:36 +000025591 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025592 PERSIST_CPPFLAGS="$CPPFLAGS"
25593 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25594 :
25595 else
25596 freetype_config=''
25597 for ac_prog in freetype-config
25598do
25599 # Extract the first word of "$ac_prog", so it can be a program name with args.
25600set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025602$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025603if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025604 $as_echo_n "(cached) " >&6
25605else
25606 if test -n "$freetype_config"; then
25607 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25608else
25609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610for as_dir in $PATH
25611do
25612 IFS=$as_save_IFS
25613 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025614 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25616 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025618 break 2
25619 fi
25620done
cristy8b350f62009-11-15 23:12:43 +000025621 done
cristy3ed852e2009-09-05 21:47:34 +000025622IFS=$as_save_IFS
25623
25624fi
25625fi
25626freetype_config=$ac_cv_prog_freetype_config
25627if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000025628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000025629$as_echo "$freetype_config" >&6; }
25630else
cristy8b350f62009-11-15 23:12:43 +000025631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025632$as_echo "no" >&6; }
25633fi
25634
25635
25636 test -n "$freetype_config" && break
25637done
25638 if test -n "$freetype_config"; then
25639 freetype_cflags=`$freetype_config --cflags`
25640 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000025641 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000025642 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25643 fi
25644 fi
25645
25646 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000025647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025649if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025650 $as_echo_n "(cached) " >&6
25651else
25652 ac_check_lib_save_LIBS=$LIBS
25653LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025655/* end confdefs.h. */
25656
25657/* Override any GCC internal prototype to avoid an error.
25658 Use char because int might match the return type of a GCC
25659 builtin and then its argument prototype would still apply. */
25660#ifdef __cplusplus
25661extern "C"
25662#endif
25663char FT_Init_FreeType ();
25664int
25665main ()
25666{
25667return FT_Init_FreeType ();
25668 ;
25669 return 0;
25670}
25671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025673 ac_cv_lib_freetype_FT_Init_FreeType=yes
25674else
cristy8b350f62009-11-15 23:12:43 +000025675 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000025676fi
cristy8b350f62009-11-15 23:12:43 +000025677rm -f core conftest.err conftest.$ac_objext \
25678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025679LIBS=$ac_check_lib_save_LIBS
25680fi
cristy8b350f62009-11-15 23:12:43 +000025681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000025682$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025683if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025684 FREETYPE_LIBS='-lfreetype'
25685fi
25686
25687 if test "$FREETYPE_LIBS" != ''; then
25688 passed=`expr $passed + 1`
25689 else
25690 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000025691 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000025692 fi
25693 fi
25694
cristy8b350f62009-11-15 23:12:43 +000025695 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25696if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025697 FT2BUILD_H='#include <ft2build.h>'
25698else
25699 ft2build=''
25700fi
25701
25702
cristy8b350f62009-11-15 23:12:43 +000025703 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25704"
25705if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025706 have_freetype_h='yes'
25707else
25708 have_freetype_h='no'
25709fi
25710
25711
25712 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25713 passed=`expr $passed + 1`
25714 else
25715 failed=`expr $failed + 1`
25716 CPPFLAGS="$PERSIST_CPPFLAGS"
25717 fi
25718
cristy8b350f62009-11-15 23:12:43 +000025719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025720$as_echo_n "checking if FreeType package is complete... " >&6; }
25721 if test $passed -gt 0; then
25722 if test $failed -gt 0; then
25723 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025725$as_echo "no -- some components failed test" >&6; }
25726 have_freetype='no (failed tests)'
25727 else
25728 LIBS="$FREETYPE_LIBS $LIBS"
25729
cristy8b350f62009-11-15 23:12:43 +000025730$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025731
25732 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25733
cristy8b350f62009-11-15 23:12:43 +000025734$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025735
25736 fi
cristy8b350f62009-11-15 23:12:43 +000025737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025738$as_echo "yes" >&6; }
25739 have_freetype='yes'
25740 fi
25741 else
cristy8b350f62009-11-15 23:12:43 +000025742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025743$as_echo "no" >&6; }
25744 fi
25745fi
25746 if test "$have_freetype" = 'yes'; then
25747 FREETYPE_DELEGATE_TRUE=
25748 FREETYPE_DELEGATE_FALSE='#'
25749else
25750 FREETYPE_DELEGATE_TRUE='#'
25751 FREETYPE_DELEGATE_FALSE=
25752fi
25753
25754
25755
25756
25757
25758#
25759# Check for Ghostscript library or framework.
25760#
25761# Test for iapi.h & test for gsapi_new_instance in -lgs
25762# or -framework Ghostscript
25763
25764
25765# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000025766if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025767 withval=$with_gslib; with_gslib=$withval
25768else
25769 with_gslib='no'
25770fi
25771
25772
cristyb7931f12009-09-25 10:22:21 +000025773gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000025774if test "$with_gslib" != 'yes'; then
25775 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25776fi
25777
25778have_gslib='no'
25779GS_LIBS=''
25780if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025782$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000025784$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025786$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000025787 framework=0
cristy3ed852e2009-09-05 21:47:34 +000025788 failed=0
25789 passed=0
cristy8b350f62009-11-15 23:12:43 +000025790 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25791if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025792 passed=`expr $passed + 1`
25793else
25794 failed=`expr $failed + 1`
25795fi
25796
25797
cristy8b350f62009-11-15 23:12:43 +000025798 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25799if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 passed=`expr $passed + 1`
25801else
25802 failed=`expr $failed + 1`
25803fi
25804
25805
cristy8b350f62009-11-15 23:12:43 +000025806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000025807$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025808if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025809 $as_echo_n "(cached) " >&6
25810else
25811 ac_check_framework_save_LIBS=$LIBS
25812LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025814/* end confdefs.h. */
25815
25816/* Override any GCC internal prototype to avoid an error.
25817 Use char because int might match the return type of a GCC
25818 builtin and then its argument prototype would still apply. */
25819#ifdef __cplusplus
25820extern "C"
25821#endif
25822char gsapi_new_instance ();
25823int
25824main ()
25825{
25826return gsapi_new_instance ();
25827 ;
25828 return 0;
25829}
25830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025831if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25833else
cristy8b350f62009-11-15 23:12:43 +000025834 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025835fi
cristy8b350f62009-11-15 23:12:43 +000025836rm -f core conftest.err conftest.$ac_objext \
25837 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025838LIBS=$ac_check_framework_save_LIBS
25839fi
cristy8b350f62009-11-15 23:12:43 +000025840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025841$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025842if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025843 framework=`expr $framework + 1`
25844else
cristy8b350f62009-11-15 23:12:43 +000025845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000025846$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025847if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025848 $as_echo_n "(cached) " >&6
25849else
25850 ac_check_lib_save_LIBS=$LIBS
25851LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025853/* end confdefs.h. */
25854
25855/* Override any GCC internal prototype to avoid an error.
25856 Use char because int might match the return type of a GCC
25857 builtin and then its argument prototype would still apply. */
25858#ifdef __cplusplus
25859extern "C"
25860#endif
25861char gsapi_new_instance ();
25862int
25863main ()
25864{
25865return gsapi_new_instance ();
25866 ;
25867 return 0;
25868}
25869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025871 ac_cv_lib_gs_gsapi_new_instance=yes
25872else
cristy8b350f62009-11-15 23:12:43 +000025873 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000025874fi
cristy8b350f62009-11-15 23:12:43 +000025875rm -f core conftest.err conftest.$ac_objext \
25876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025877LIBS=$ac_check_lib_save_LIBS
25878fi
cristy8b350f62009-11-15 23:12:43 +000025879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000025880$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025881if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025882 passed=`expr $passed + 1`
25883else
25884 failed=`expr $failed + 1`
25885fi
25886
25887fi
cristy8b350f62009-11-15 23:12:43 +000025888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo_n "checking if Ghostscript package is complete... " >&6; }
25890 if test $passed -gt 0; then
25891 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025893$as_echo "no -- some components failed test" >&6; }
25894 have_gslib='no (failed tests)'
25895 else
25896 if test $framework -gt 0; then
25897 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000025898 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000025899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000025900$as_echo "yes, using framework." >&6; }
25901 else
cristy8b350f62009-11-15 23:12:43 +000025902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000025903$as_echo "yes, using library." >&6; }
25904 GS_LIBS='-lgs'
25905 fi
25906 LIBS="$GS_LIBS $LIBS"
25907
cristy8b350f62009-11-15 23:12:43 +000025908$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025909
25910 have_gslib='yes'
25911 fi
25912 else
cristy8b350f62009-11-15 23:12:43 +000025913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025914$as_echo "no" >&6; }
25915 fi
25916fi
25917 if test "$have_gslib" = 'yes'; then
25918 GS_DELEGATE_TRUE=
25919 GS_DELEGATE_FALSE='#'
25920else
25921 GS_DELEGATE_TRUE='#'
25922 GS_DELEGATE_FALSE=
25923fi
25924
25925
25926
25927# Set default font search path
25928
25929# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000025930if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025931 withval=$with_fontpath; with_fontpath=$withval
25932else
25933 with_fontpath=''
25934fi
25935
25936
25937if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
25938 with_fontpath=''
25939else
25940
25941cat >>confdefs.h <<_ACEOF
25942#define MAGICK_FONT_PATH "$with_fontpath"
25943_ACEOF
25944
25945fi
25946if test "$with_fontpath=" != ''; then
25947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
25948fi
25949
25950# Set Ghostscript font directory
25951
25952# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000025953if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025954 withval=$with_gs_font_dir; with_gs_font_dir=$withval
25955else
25956 with_gs_font_dir='default'
25957fi
25958
25959
25960if test "$with_gs_font_dir" != 'default'; then
25961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
25962fi
25963
25964
25965#
25966# Check for GVC delegate library.
25967#
25968
25969# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000025970if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025971 withval=$with_gvc; with_gvc=$withval
25972else
25973 with_gvc='yes'
25974fi
25975
25976
25977if test "$with_gvc" != 'yes'; then
25978 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
25979fi
25980
25981GVC_PKG=""
25982if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025984$as_echo "-------------------------------------------------------------" >&6; }
25985
25986pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000025988$as_echo_n "checking for GVC... " >&6; }
25989
25990if test -n "$GVC_CFLAGS"; then
25991 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
25992 elif test -n "$PKG_CONFIG"; then
25993 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025995 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
25996 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25998 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025999 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26000else
26001 pkg_failed=yes
26002fi
26003 else
26004 pkg_failed=untried
26005fi
26006if test -n "$GVC_LIBS"; then
26007 pkg_cv_GVC_LIBS="$GVC_LIBS"
26008 elif test -n "$PKG_CONFIG"; then
26009 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026011 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26012 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26014 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026015 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26016else
26017 pkg_failed=yes
26018fi
26019 else
26020 pkg_failed=untried
26021fi
26022
26023
26024
26025if test $pkg_failed = yes; then
26026
26027if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26028 _pkg_short_errors_supported=yes
26029else
26030 _pkg_short_errors_supported=no
26031fi
26032 if test $_pkg_short_errors_supported = yes; then
26033 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26034 else
26035 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26036 fi
26037 # Put the nasty error message in config.log where it belongs
26038 echo "$GVC_PKG_ERRORS" >&5
26039
cristy8b350f62009-11-15 23:12:43 +000026040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo "no" >&6; }
26042 have_gvc=no
26043elif test $pkg_failed = untried; then
26044 have_gvc=no
26045else
26046 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26047 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000026048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026049$as_echo "yes" >&6; }
26050 have_gvc=yes
26051fi
cristy8b350f62009-11-15 23:12:43 +000026052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026053$as_echo "" >&6; }
26054fi
26055
26056if test "$have_gvc" = 'yes'; then
26057
cristy8b350f62009-11-15 23:12:43 +000026058$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026059
26060 if test "$with_modules" = 'no'; then
26061 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26062 fi
26063fi
26064
26065 if test "$have_gvc" = 'yes'; then
26066 GVC_DELEGATE_TRUE=
26067 GVC_DELEGATE_FALSE='#'
26068else
26069 GVC_DELEGATE_TRUE='#'
26070 GVC_DELEGATE_FALSE=
26071fi
26072
26073
26074
26075
26076
26077#
26078# Check for JBIG delegate library.
26079#
26080
26081
26082# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000026083if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026084 withval=$with_jbig; with_jbig=$withval
26085else
26086 with_jbig='yes'
26087fi
26088
26089
26090have_jbig='no'
26091JBIG_LIBS=''
26092if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026094$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026096$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026098$as_echo "" >&6; }
26099 failed=0
26100 passed=0
cristy8b350f62009-11-15 23:12:43 +000026101 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26102if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 passed=`expr $passed + 1`
26104else
26105 failed=`expr $failed + 1`
26106fi
26107
26108
cristy8b350f62009-11-15 23:12:43 +000026109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000026110$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026111if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026112 $as_echo_n "(cached) " >&6
26113else
26114 ac_check_lib_save_LIBS=$LIBS
26115LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026117/* end confdefs.h. */
26118
26119/* Override any GCC internal prototype to avoid an error.
26120 Use char because int might match the return type of a GCC
26121 builtin and then its argument prototype would still apply. */
26122#ifdef __cplusplus
26123extern "C"
26124#endif
26125char jbg_dec_init ();
26126int
26127main ()
26128{
26129return jbg_dec_init ();
26130 ;
26131 return 0;
26132}
26133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026135 ac_cv_lib_jbig_jbg_dec_init=yes
26136else
cristy8b350f62009-11-15 23:12:43 +000026137 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000026138fi
cristy8b350f62009-11-15 23:12:43 +000026139rm -f core conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026141LIBS=$ac_check_lib_save_LIBS
26142fi
cristy8b350f62009-11-15 23:12:43 +000026143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000026144$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026145if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026146 passed=`expr $passed + 1`
26147else
26148 failed=`expr $failed + 1`
26149fi
26150
cristy8b350f62009-11-15 23:12:43 +000026151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026152$as_echo_n "checking if JBIG package is complete... " >&6; }
26153 if test $passed -gt 0; then
26154 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026156$as_echo "no -- some components failed test" >&6; }
26157 have_jbig='no (failed tests)'
26158 else
26159 JBIG_LIBS='-ljbig'
26160 LIBS="$JBIG_LIBS $LIBS"
26161
cristy8b350f62009-11-15 23:12:43 +000026162$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026163
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo "yes" >&6; }
26166 have_jbig='yes'
26167 fi
26168 else
cristy8b350f62009-11-15 23:12:43 +000026169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026170$as_echo "no" >&6; }
26171 fi
26172fi
26173 if test "$have_jbig" = 'yes'; then
26174 JBIG_DELEGATE_TRUE=
26175 JBIG_DELEGATE_FALSE='#'
26176else
26177 JBIG_DELEGATE_TRUE='#'
26178 JBIG_DELEGATE_FALSE=
26179fi
26180
26181
26182
26183
26184#
26185# Check for JPEG delegate library.
26186#
26187
26188# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000026189if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 withval=$with_jpeg; with_jpeg=$withval
26191else
26192 with_jpeg='yes'
26193fi
26194
26195
26196if test "$with_jpeg" != 'yes'; then
26197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26198fi
26199
26200have_jpeg='no'
26201JPEG_LIBS=''
26202if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026204$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026208$as_echo "" >&6; }
26209 failed=0
26210 passed=0
cristy8b350f62009-11-15 23:12:43 +000026211 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26212if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026213 passed=`expr $passed + 1`
26214else
26215 failed=`expr $failed + 1`
26216fi
26217
26218
cristy8b350f62009-11-15 23:12:43 +000026219 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26220if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026221 passed=`expr $passed + 1`
26222else
26223 failed=`expr $failed + 1`
26224fi
26225
26226
cristy8b350f62009-11-15 23:12:43 +000026227 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26228if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026229 passed=`expr $passed + 1`
26230else
26231 failed=`expr $failed + 1`
26232fi
26233
26234
cristy8b350f62009-11-15 23:12:43 +000026235 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26236if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026237 passed=`expr $passed + 1`
26238else
26239 failed=`expr $failed + 1`
26240fi
26241
26242
cristy8b350f62009-11-15 23:12:43 +000026243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026245if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 $as_echo_n "(cached) " >&6
26247else
26248 ac_check_lib_save_LIBS=$LIBS
26249LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026251/* end confdefs.h. */
26252
26253/* Override any GCC internal prototype to avoid an error.
26254 Use char because int might match the return type of a GCC
26255 builtin and then its argument prototype would still apply. */
26256#ifdef __cplusplus
26257extern "C"
26258#endif
26259char jpeg_read_header ();
26260int
26261main ()
26262{
26263return jpeg_read_header ();
26264 ;
26265 return 0;
26266}
26267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026269 ac_cv_lib_jpeg_jpeg_read_header=yes
26270else
cristy8b350f62009-11-15 23:12:43 +000026271 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000026272fi
cristy8b350f62009-11-15 23:12:43 +000026273rm -f core conftest.err conftest.$ac_objext \
26274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026275LIBS=$ac_check_lib_save_LIBS
26276fi
cristy8b350f62009-11-15 23:12:43 +000026277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000026278$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026279if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026280 passed=`expr $passed + 1`
26281else
26282 failed=`expr $failed + 1`
26283fi
26284
26285
26286# Test for compatible JPEG library
26287if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000026289$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026290if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026291 $as_echo_n "(cached) " >&6
26292else
cristy8b350f62009-11-15 23:12:43 +000026293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026294/* end confdefs.h. */
26295#include <stdio.h>
26296#include <stdlib.h>
26297#include <jpeglib.h>
26298
26299int
26300main ()
26301{
26302
26303#if JPEG_LIB_VERSION < 62
26304#error IJG JPEG library must be version 6b or newer!
26305#endif
26306return 0;
26307
26308 ;
26309 return 0;
26310}
26311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026312if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26314else
cristy8b350f62009-11-15 23:12:43 +000026315 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000026316fi
cristy3ed852e2009-09-05 21:47:34 +000026317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26318fi
cristy8b350f62009-11-15 23:12:43 +000026319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000026320$as_echo "$ac_cv_jpeg_version_ok" >&6; }
26321fi
cristy8b350f62009-11-15 23:12:43 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo_n "checking if JPEG package is complete... " >&6; }
26324 if test $passed -gt 0; then
26325 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026327$as_echo "no -- some components failed test" >&6; }
26328 have_jpeg='no (failed tests)'
26329 else
26330 JPEG_LIBS='-ljpeg'
26331 LIBS="$JPEG_LIBS $LIBS"
26332
cristy8b350f62009-11-15 23:12:43 +000026333$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026334
cristy8b350f62009-11-15 23:12:43 +000026335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026336$as_echo "yes" >&6; }
26337 have_jpeg='yes'
26338 fi
26339 else
cristy8b350f62009-11-15 23:12:43 +000026340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026341$as_echo "no" >&6; }
26342 fi
26343fi
26344 if test "$have_jpeg" = 'yes'; then
26345 JPEG_DELEGATE_TRUE=
26346 JPEG_DELEGATE_FALSE='#'
26347else
26348 JPEG_DELEGATE_TRUE='#'
26349 JPEG_DELEGATE_FALSE=
26350fi
26351
26352
26353
26354
26355#
26356# Check for JPEG Version 2 delegate library.
26357#
26358
26359# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000026360if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026361 withval=$with_jp2; with_jp2=$withval
26362else
26363 with_jp2='yes'
26364fi
26365
26366
26367if test "$with_jp2" != 'yes'; then
26368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26369fi
26370
26371have_jp2='no'
26372JP2_LIBS=''
26373if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026377$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026379$as_echo "" >&6; }
26380 failed=0
26381 passed=0
cristy8b350f62009-11-15 23:12:43 +000026382 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26383if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026384 passed=`expr $passed + 1`
26385else
26386 failed=`expr $failed + 1`
26387fi
26388
26389
cristy8b350f62009-11-15 23:12:43 +000026390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000026391$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026392if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026393 $as_echo_n "(cached) " >&6
26394else
26395 ac_check_lib_save_LIBS=$LIBS
26396LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026398/* end confdefs.h. */
26399
26400/* Override any GCC internal prototype to avoid an error.
26401 Use char because int might match the return type of a GCC
26402 builtin and then its argument prototype would still apply. */
26403#ifdef __cplusplus
26404extern "C"
26405#endif
26406char jas_stream_fopen ();
26407int
26408main ()
26409{
26410return jas_stream_fopen ();
26411 ;
26412 return 0;
26413}
26414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026416 ac_cv_lib_jasper_jas_stream_fopen=yes
26417else
cristy8b350f62009-11-15 23:12:43 +000026418 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000026419fi
cristy8b350f62009-11-15 23:12:43 +000026420rm -f core conftest.err conftest.$ac_objext \
26421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026422LIBS=$ac_check_lib_save_LIBS
26423fi
cristy8b350f62009-11-15 23:12:43 +000026424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026426if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026427 passed=`expr $passed + 1`
26428else
26429 failed=`expr $failed + 1`
26430fi
26431
cristy8b350f62009-11-15 23:12:43 +000026432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026433$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26434 if test $passed -gt 0; then
26435 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026437$as_echo "no -- some components failed test" >&6; }
26438 have_jp2='no (failed tests)'
26439 else
26440 JP2_LIBS='-ljasper'
26441 LIBS="$JP2_LIBS $LIBS"
26442
cristy8b350f62009-11-15 23:12:43 +000026443$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026444
cristy8b350f62009-11-15 23:12:43 +000026445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026446$as_echo "yes" >&6; }
26447 have_jp2='yes'
26448 fi
26449 else
cristy8b350f62009-11-15 23:12:43 +000026450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026451$as_echo "no" >&6; }
26452 fi
26453fi
26454 if test "$have_jp2" = 'yes'; then
26455 JP2_DELEGATE_TRUE=
26456 JP2_DELEGATE_FALSE='#'
26457else
26458 JP2_DELEGATE_TRUE='#'
26459 JP2_DELEGATE_FALSE=
26460fi
26461
26462
26463
26464
26465#
26466# Check for LCMS delegate library.
26467#
26468
26469# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000026470if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026471 withval=$with_lcms; with_lcms=$withval
26472else
26473 with_lcms='yes'
26474fi
26475
26476
26477if test "$with_lcms" != 'yes'; then
26478 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26479fi
26480
26481have_lcms='no'
26482LCMS_LIBS=''
26483if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026485$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026487$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "" >&6; }
26490 failed=0
26491 passed=0
26492 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000026493 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26494if test "x$ac_cv_header_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_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026503
26504 else
cristy8b350f62009-11-15 23:12:43 +000026505 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26506if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 have_lcms_header='yes'
26508fi
26509
26510
26511 if test "$have_lcms_header" = 'yes'; then
26512 passed=`expr $passed + 1`
26513
cristy8b350f62009-11-15 23:12:43 +000026514$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026515
26516 else
26517 failed=`expr $failed + 1`
26518 fi
26519 fi
cristy8b350f62009-11-15 23:12:43 +000026520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000026521$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026522if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026523 $as_echo_n "(cached) " >&6
26524else
26525 ac_check_lib_save_LIBS=$LIBS
26526LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026528/* end confdefs.h. */
26529
26530/* Override any GCC internal prototype to avoid an error.
26531 Use char because int might match the return type of a GCC
26532 builtin and then its argument prototype would still apply. */
26533#ifdef __cplusplus
26534extern "C"
26535#endif
26536char cmsOpenProfileFromMem ();
26537int
26538main ()
26539{
26540return cmsOpenProfileFromMem ();
26541 ;
26542 return 0;
26543}
26544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026546 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26547else
cristy8b350f62009-11-15 23:12:43 +000026548 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000026549fi
cristy8b350f62009-11-15 23:12:43 +000026550rm -f core conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026552LIBS=$ac_check_lib_save_LIBS
26553fi
cristy8b350f62009-11-15 23:12:43 +000026554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026556if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026557 passed=`expr $passed + 1`
26558else
26559 failed=`expr $failed + 1`
26560fi
26561
cristy8b350f62009-11-15 23:12:43 +000026562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026563$as_echo_n "checking if LCMS package is complete... " >&6; }
26564 if test $passed -gt 0; then
26565 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo "no -- some components failed test" >&6; }
26568 have_lcms='no (failed tests)'
26569 else
26570 LCMS_LIBS='-llcms'
26571 LIBS="$LCMS_LIBS $LIBS"
26572
cristy8b350f62009-11-15 23:12:43 +000026573$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026574
cristy8b350f62009-11-15 23:12:43 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026576$as_echo "yes" >&6; }
26577 have_lcms='yes'
26578 fi
26579 else
cristy8b350f62009-11-15 23:12:43 +000026580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026581$as_echo "no" >&6; }
26582 fi
26583fi
26584 if test "$have_lcms" = 'yes'; then
26585 LCMS_DELEGATE_TRUE=
26586 LCMS_DELEGATE_FALSE='#'
26587else
26588 LCMS_DELEGATE_TRUE='#'
26589 LCMS_DELEGATE_FALSE=
26590fi
26591
26592
26593
26594
26595#
26596# Check for the LQR (Liquid Rescale) delegate library.
26597#
26598
26599# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000026600if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026601 withval=$with_lqr; with_lqr=$withval
26602else
26603 with_lqr='yes'
26604fi
26605
26606
26607if test "$with_lqr" != 'yes'; then
26608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26609fi
26610
26611have_lqr='no'
26612LQR_CFLAGS=""
26613LQR_LIBS=""
26614LQR_PKG=""
26615if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026617$as_echo "-------------------------------------------------------------" >&6; }
26618
26619pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo_n "checking for LQR... " >&6; }
26622
26623if test -n "$LQR_CFLAGS"; then
26624 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26625 elif test -n "$PKG_CONFIG"; then
26626 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026627 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026628 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26629 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26631 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026632 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26633else
26634 pkg_failed=yes
26635fi
26636 else
26637 pkg_failed=untried
26638fi
26639if test -n "$LQR_LIBS"; then
26640 pkg_cv_LQR_LIBS="$LQR_LIBS"
26641 elif test -n "$PKG_CONFIG"; then
26642 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026644 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26645 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026648 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26649else
26650 pkg_failed=yes
26651fi
26652 else
26653 pkg_failed=untried
26654fi
26655
26656
26657
26658if test $pkg_failed = yes; then
26659
26660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26661 _pkg_short_errors_supported=yes
26662else
26663 _pkg_short_errors_supported=no
26664fi
26665 if test $_pkg_short_errors_supported = yes; then
26666 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26667 else
26668 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26669 fi
26670 # Put the nasty error message in config.log where it belongs
26671 echo "$LQR_PKG_ERRORS" >&5
26672
cristy8b350f62009-11-15 23:12:43 +000026673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026674$as_echo "no" >&6; }
26675 have_lqr=no
26676elif test $pkg_failed = untried; then
26677 have_lqr=no
26678else
26679 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26680 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo "yes" >&6; }
26683 have_lqr=yes
26684fi
cristy8b350f62009-11-15 23:12:43 +000026685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026686$as_echo "" >&6; }
26687fi
26688
26689if test "$have_lqr" = 'yes'; then
26690
cristy8b350f62009-11-15 23:12:43 +000026691$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026692
26693 CFLAGS="$LQR_CFLAGS $CFLAGS"
26694fi
26695
26696 if test "$have_lqr" = 'yes'; then
26697 LQR_DELEGATE_TRUE=
26698 LQR_DELEGATE_FALSE='#'
26699else
26700 LQR_DELEGATE_TRUE='#'
26701 LQR_DELEGATE_FALSE=
26702fi
26703
26704
26705
26706
26707
26708#
26709# Check for the OpenEXR delegate library.
26710#
26711
26712# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000026713if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 withval=$with_openexr; with_openexr=$withval
26715else
26716 with_openexr='yes'
26717fi
26718
26719
26720if test "$with_openexr" != 'yes'; then
26721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26722fi
26723
26724have_openexr='no'
26725OPENEXR_CFLAGS=""
26726OPENEXR_LIBS=""
26727OPENEXR_PKG=""
26728if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo "-------------------------------------------------------------" >&6; }
26731
26732pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo_n "checking for OPENEXR... " >&6; }
26735
26736if test -n "$OPENEXR_CFLAGS"; then
26737 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26738 elif test -n "$PKG_CONFIG"; then
26739 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026741 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26742 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26744 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026745 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26746else
26747 pkg_failed=yes
26748fi
26749 else
26750 pkg_failed=untried
26751fi
26752if test -n "$OPENEXR_LIBS"; then
26753 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26754 elif test -n "$PKG_CONFIG"; then
26755 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026757 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26758 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26760 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026761 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26762else
26763 pkg_failed=yes
26764fi
26765 else
26766 pkg_failed=untried
26767fi
26768
26769
26770
26771if test $pkg_failed = yes; then
26772
26773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26774 _pkg_short_errors_supported=yes
26775else
26776 _pkg_short_errors_supported=no
26777fi
26778 if test $_pkg_short_errors_supported = yes; then
26779 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26780 else
26781 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26782 fi
26783 # Put the nasty error message in config.log where it belongs
26784 echo "$OPENEXR_PKG_ERRORS" >&5
26785
cristy8b350f62009-11-15 23:12:43 +000026786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026787$as_echo "no" >&6; }
26788 have_openexr=no
26789elif test $pkg_failed = untried; then
26790 have_openexr=no
26791else
26792 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26793 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000026794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026795$as_echo "yes" >&6; }
26796 have_openexr=yes
26797fi
cristy8b350f62009-11-15 23:12:43 +000026798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026799$as_echo "" >&6; }
26800fi
26801
26802if test "$have_openexr" = 'yes'; then
26803
cristy8b350f62009-11-15 23:12:43 +000026804$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026805
26806 if test "$with_modules" = 'no'; then
26807 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26808 fi
26809fi
26810
26811 if test "$have_openexr" = 'yes'; then
26812 OPENEXR_DELEGATE_TRUE=
26813 OPENEXR_DELEGATE_FALSE='#'
26814else
26815 OPENEXR_DELEGATE_TRUE='#'
26816 OPENEXR_DELEGATE_FALSE=
26817fi
26818
26819
26820
26821
26822
26823#
26824# Check for PNG delegate library.
26825#
26826
26827# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000026828if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 withval=$with_png; with_png=$withval
26830else
26831 with_png='yes'
26832fi
26833
26834
26835if test "$with_png" != 'yes'; then
26836 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26837fi
26838
26839have_png='no'
26840PNG_LIBS=''
26841if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026843$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026845$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026847$as_echo "" >&6; }
26848 failed=0
26849 passed=0
cristy8b350f62009-11-15 23:12:43 +000026850 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26851if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026852 passed=`expr $passed + 1`
26853else
26854 failed=`expr $failed + 1`
26855fi
26856
26857
cristy8b350f62009-11-15 23:12:43 +000026858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026860if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 $as_echo_n "(cached) " >&6
26862else
26863 ac_check_lib_save_LIBS=$LIBS
26864LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026866/* end confdefs.h. */
26867
26868/* Override any GCC internal prototype to avoid an error.
26869 Use char because int might match the return type of a GCC
26870 builtin and then its argument prototype would still apply. */
26871#ifdef __cplusplus
26872extern "C"
26873#endif
26874char png_get_io_ptr ();
26875int
26876main ()
26877{
26878return png_get_io_ptr ();
26879 ;
26880 return 0;
26881}
26882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026884 ac_cv_lib_png_png_get_io_ptr=yes
26885else
cristy8b350f62009-11-15 23:12:43 +000026886 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000026887fi
cristy8b350f62009-11-15 23:12:43 +000026888rm -f core conftest.err conftest.$ac_objext \
26889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026890LIBS=$ac_check_lib_save_LIBS
26891fi
cristy8b350f62009-11-15 23:12:43 +000026892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000026893$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026894if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026895 passed=`expr $passed + 1`
26896else
26897 failed=`expr $failed + 1`
26898fi
26899
cristy8b350f62009-11-15 23:12:43 +000026900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026901$as_echo_n "checking if PNG package is complete... " >&6; }
26902 if test $passed -gt 0; then
26903 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "no -- some components failed test" >&6; }
26906 have_png='no (failed tests)'
26907 else
26908 PNG_LIBS='-lpng'
26909 LIBS="$PNG_LIBS $LIBS"
26910
cristy8b350f62009-11-15 23:12:43 +000026911$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026912
cristy8b350f62009-11-15 23:12:43 +000026913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026914$as_echo "yes" >&6; }
26915 have_png='yes'
26916 fi
26917 else
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo "no" >&6; }
26920 fi
26921fi
26922 if test "$have_png" = 'yes'; then
26923 PNG_DELEGATE_TRUE=
26924 PNG_DELEGATE_FALSE='#'
26925else
26926 PNG_DELEGATE_TRUE='#'
26927 PNG_DELEGATE_FALSE=
26928fi
26929
26930
26931
26932
26933#
26934# Check for RSVG delegate library.
26935#
26936
26937# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000026938if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026939 withval=$with_rsvg; with_rsvg=$withval
26940else
26941 with_rsvg=$have_x
26942fi
26943
26944
26945if test "$with_rsvg" != 'yes'; then
26946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
26947fi
26948
26949have_rsvg='no'
26950have_cairo='no'
26951RSVG_CFLAGS=""
26952RSVG_LIBS=""
26953RSVG_PKG=""
26954if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo "-------------------------------------------------------------" >&6; }
26957
26958pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo_n "checking for RSVG... " >&6; }
26961
26962if test -n "$RSVG_CFLAGS"; then
26963 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
26964 elif test -n "$PKG_CONFIG"; then
26965 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026966 { { $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 +000026967 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26968 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026971 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26972else
26973 pkg_failed=yes
26974fi
26975 else
26976 pkg_failed=untried
26977fi
26978if test -n "$RSVG_LIBS"; then
26979 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
26980 elif test -n "$PKG_CONFIG"; then
26981 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026982 { { $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 +000026983 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
26984 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026987 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
26988else
26989 pkg_failed=yes
26990fi
26991 else
26992 pkg_failed=untried
26993fi
26994
26995
26996
26997if test $pkg_failed = yes; then
26998
26999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27000 _pkg_short_errors_supported=yes
27001else
27002 _pkg_short_errors_supported=no
27003fi
27004 if test $_pkg_short_errors_supported = yes; then
27005 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27006 else
27007 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27008 fi
27009 # Put the nasty error message in config.log where it belongs
27010 echo "$RSVG_PKG_ERRORS" >&5
27011
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo "no" >&6; }
27014 have_rsvg=no
27015elif test $pkg_failed = untried; then
27016 have_rsvg=no
27017else
27018 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27019 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027021$as_echo "yes" >&6; }
27022 have_rsvg=yes
27023fi
cristy8b350f62009-11-15 23:12:43 +000027024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027025$as_echo "" >&6; }
27026
27027pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027029$as_echo_n "checking for CAIRO_SVG... " >&6; }
27030
27031if test -n "$CAIRO_SVG_CFLAGS"; then
27032 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27033 elif test -n "$PKG_CONFIG"; then
27034 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027036 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27037 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027040 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27041else
27042 pkg_failed=yes
27043fi
27044 else
27045 pkg_failed=untried
27046fi
27047if test -n "$CAIRO_SVG_LIBS"; then
27048 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27049 elif test -n "$PKG_CONFIG"; then
27050 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027052 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27053 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027056 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27057else
27058 pkg_failed=yes
27059fi
27060 else
27061 pkg_failed=untried
27062fi
27063
27064
27065
27066if test $pkg_failed = yes; then
27067
27068if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27069 _pkg_short_errors_supported=yes
27070else
27071 _pkg_short_errors_supported=no
27072fi
27073 if test $_pkg_short_errors_supported = yes; then
27074 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27075 else
27076 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27077 fi
27078 # Put the nasty error message in config.log where it belongs
27079 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27080
cristy8b350f62009-11-15 23:12:43 +000027081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027082$as_echo "no" >&6; }
27083 have_cairo=no
27084elif test $pkg_failed = untried; then
27085 have_cairo=no
27086else
27087 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27088 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027090$as_echo "yes" >&6; }
27091 have_cairo=yes
27092fi
cristy8b350f62009-11-15 23:12:43 +000027093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027094$as_echo "" >&6; }
27095fi
27096
27097if test "$have_rsvg" = 'yes'; then
27098
cristy8b350f62009-11-15 23:12:43 +000027099$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027100
27101 if test "$with_modules" = 'no'; then
27102 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27103 fi
27104fi
27105
27106if test "$have_cairo" = 'yes'; then
27107
cristy8b350f62009-11-15 23:12:43 +000027108$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027109
27110 if test "$with_modules" = 'no'; then
27111 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27112 fi
27113fi
27114
27115 if test "$have_rsvg" = 'yes'; then
27116 RSVG_DELEGATE_TRUE=
27117 RSVG_DELEGATE_FALSE='#'
27118else
27119 RSVG_DELEGATE_TRUE='#'
27120 RSVG_DELEGATE_FALSE=
27121fi
27122
27123 if test "$have_cairo" = 'yes'; then
27124 CAIRO_DELEGATE_TRUE=
27125 CAIRO_DELEGATE_FALSE='#'
27126else
27127 CAIRO_DELEGATE_TRUE='#'
27128 CAIRO_DELEGATE_FALSE=
27129fi
27130
27131
27132
27133
27134
27135#
27136# Check for TIFF delegate library.
27137#
27138
27139# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000027140if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 withval=$with_tiff; with_tiff=$withval
27142else
27143 with_tiff='yes'
27144fi
27145
27146
27147if test "$with_tiff" != 'yes'; then
27148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27149fi
27150
27151have_tiff='no'
27152TIFF_LIBS=''
27153if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027155$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027157$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo "" >&6; }
27160 failed=0
27161 passed=0
cristy8b350f62009-11-15 23:12:43 +000027162 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27163if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027164 passed=`expr $passed + 1`
27165else
27166 failed=`expr $failed + 1`
27167fi
27168
27169
cristy8b350f62009-11-15 23:12:43 +000027170 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27171if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 passed=`expr $passed + 1`
27173else
27174 failed=`expr $failed + 1`
27175fi
27176
27177
cristy8b350f62009-11-15 23:12:43 +000027178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027179$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027180if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027181 $as_echo_n "(cached) " >&6
27182else
27183 ac_check_lib_save_LIBS=$LIBS
27184LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027186/* end confdefs.h. */
27187
27188/* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194char TIFFOpen ();
27195int
27196main ()
27197{
27198return TIFFOpen ();
27199 ;
27200 return 0;
27201}
27202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027204 ac_cv_lib_tiff_TIFFOpen=yes
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027207fi
cristy8b350f62009-11-15 23:12:43 +000027208rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027210LIBS=$ac_check_lib_save_LIBS
27211fi
cristy8b350f62009-11-15 23:12:43 +000027212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027213$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027214if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027215 passed=`expr $passed + 1`
27216else
27217 failed=`expr $failed + 1`
27218fi
27219
cristy8b350f62009-11-15 23:12:43 +000027220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027221$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027222if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027223 $as_echo_n "(cached) " >&6
27224else
27225 ac_check_lib_save_LIBS=$LIBS
27226LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027228/* end confdefs.h. */
27229
27230/* Override any GCC internal prototype to avoid an error.
27231 Use char because int might match the return type of a GCC
27232 builtin and then its argument prototype would still apply. */
27233#ifdef __cplusplus
27234extern "C"
27235#endif
27236char TIFFClientOpen ();
27237int
27238main ()
27239{
27240return TIFFClientOpen ();
27241 ;
27242 return 0;
27243}
27244_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027245if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 ac_cv_lib_tiff_TIFFClientOpen=yes
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000027249fi
cristy8b350f62009-11-15 23:12:43 +000027250rm -f core conftest.err conftest.$ac_objext \
27251 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027252LIBS=$ac_check_lib_save_LIBS
27253fi
cristy8b350f62009-11-15 23:12:43 +000027254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027255$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027256if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027257 passed=`expr $passed + 1`
27258else
27259 failed=`expr $failed + 1`
27260fi
27261
cristy8b350f62009-11-15 23:12:43 +000027262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027263$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027264if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027265 $as_echo_n "(cached) " >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027270/* end confdefs.h. */
27271
27272/* Override any GCC internal prototype to avoid an error.
27273 Use char because int might match the return type of a GCC
27274 builtin and then its argument prototype would still apply. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278char TIFFIsByteSwapped ();
27279int
27280main ()
27281{
27282return TIFFIsByteSwapped ();
27283 ;
27284 return 0;
27285}
27286_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027287if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27289else
cristy8b350f62009-11-15 23:12:43 +000027290 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000027291fi
cristy8b350f62009-11-15 23:12:43 +000027292rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027294LIBS=$ac_check_lib_save_LIBS
27295fi
cristy8b350f62009-11-15 23:12:43 +000027296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027298if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027299 passed=`expr $passed + 1`
27300else
27301 failed=`expr $failed + 1`
27302fi
27303
cristy8b350f62009-11-15 23:12:43 +000027304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027305$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027306if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027307 $as_echo_n "(cached) " >&6
27308else
27309 ac_check_lib_save_LIBS=$LIBS
27310LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027312/* end confdefs.h. */
27313
27314/* Override any GCC internal prototype to avoid an error.
27315 Use char because int might match the return type of a GCC
27316 builtin and then its argument prototype would still apply. */
27317#ifdef __cplusplus
27318extern "C"
27319#endif
27320char TIFFReadRGBATile ();
27321int
27322main ()
27323{
27324return TIFFReadRGBATile ();
27325 ;
27326 return 0;
27327}
27328_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027329if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027330 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27331else
cristy8b350f62009-11-15 23:12:43 +000027332 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000027333fi
cristy8b350f62009-11-15 23:12:43 +000027334rm -f core conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027336LIBS=$ac_check_lib_save_LIBS
27337fi
cristy8b350f62009-11-15 23:12:43 +000027338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000027339$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027340if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 passed=`expr $passed + 1`
27342else
27343 failed=`expr $failed + 1`
27344fi
27345
cristy8b350f62009-11-15 23:12:43 +000027346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000027347$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027348if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 $as_echo_n "(cached) " >&6
27350else
27351 ac_check_lib_save_LIBS=$LIBS
27352LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027354/* end confdefs.h. */
27355
27356/* Override any GCC internal prototype to avoid an error.
27357 Use char because int might match the return type of a GCC
27358 builtin and then its argument prototype would still apply. */
27359#ifdef __cplusplus
27360extern "C"
27361#endif
27362char TIFFReadRGBAStrip ();
27363int
27364main ()
27365{
27366return TIFFReadRGBAStrip ();
27367 ;
27368 return 0;
27369}
27370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27373else
cristy8b350f62009-11-15 23:12:43 +000027374 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000027375fi
cristy8b350f62009-11-15 23:12:43 +000027376rm -f core conftest.err conftest.$ac_objext \
27377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027378LIBS=$ac_check_lib_save_LIBS
27379fi
cristy8b350f62009-11-15 23:12:43 +000027380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000027381$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027382if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027383 passed=`expr $passed + 1`
27384else
27385 failed=`expr $failed + 1`
27386fi
27387
cristy8b350f62009-11-15 23:12:43 +000027388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027389$as_echo_n "checking if TIFF package is complete... " >&6; }
27390 if test $passed -gt 0; then
27391 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027393$as_echo "no -- some components failed test" >&6; }
27394 have_tiff='no (failed tests)'
27395 else
27396 TIFF_LIBS='-ltiff'
27397 LIBS="$TIFF_LIBS $LIBS"
27398
cristy8b350f62009-11-15 23:12:43 +000027399$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027400
cristy8b350f62009-11-15 23:12:43 +000027401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027402$as_echo "yes" >&6; }
27403 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000027404 for ac_header in tiffconf.h
27405do :
27406 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27407if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027409#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000027410_ACEOF
27411
27412fi
27413
27414done
27415
cristy8b350f62009-11-15 23:12:43 +000027416 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000027417 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27418 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000027419do :
27420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27422eval as_val=\$$as_ac_var
27423 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027424 cat >>confdefs.h <<_ACEOF
27425#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426_ACEOF
27427
27428fi
27429done
27430
27431 fi
27432 else
cristy8b350f62009-11-15 23:12:43 +000027433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027434$as_echo "no" >&6; }
27435 fi
27436fi
27437 if test "$have_tiff" = 'yes'; then
27438 TIFF_DELEGATE_TRUE=
27439 TIFF_DELEGATE_FALSE='#'
27440else
27441 TIFF_DELEGATE_TRUE='#'
27442 TIFF_DELEGATE_FALSE=
27443fi
27444
27445
27446
27447
27448#
27449# Set Windows font directory.
27450#
27451
27452# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027453if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27455else
27456 with_windows_font_dir=''
27457fi
27458
27459if test "$with_windows_font_dir" != '' ; then
27460 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27461fi
27462
27463
27464#
27465# Check for WMF delegate library.
27466#
27467
27468# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000027469if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 withval=$with_wmf; with_wmf=$withval
27471else
cristy8d63d1d2010-01-06 20:38:37 +000027472 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000027473fi
27474
27475
27476if test "$with_wmf" != 'yes'; then
27477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27478fi
27479
27480have_wmf='no'
27481WMF_LIBS=''
27482WMF_LIBS_DEPS=''
27483OLIBS="$LIBS"
27484if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000027488$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "" >&6; }
27491 have_libwmf='no'
27492 have_libwmflite='no'
27493 have_libwmf_ipa_h='no'
27494
cristy8b350f62009-11-15 23:12:43 +000027495 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27496"
27497if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027498 have_libwmf_ipa_h='yes'
27499fi
27500
27501
27502 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000027504$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027505if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 $as_echo_n "(cached) " >&6
27507else
27508 ac_check_lib_save_LIBS=$LIBS
27509LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027511/* end confdefs.h. */
27512
27513/* Override any GCC internal prototype to avoid an error.
27514 Use char because int might match the return type of a GCC
27515 builtin and then its argument prototype would still apply. */
27516#ifdef __cplusplus
27517extern "C"
27518#endif
27519char wmf_lite_create ();
27520int
27521main ()
27522{
27523return wmf_lite_create ();
27524 ;
27525 return 0;
27526}
27527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 ac_cv_lib_wmflite_wmf_lite_create=yes
27530else
cristy8b350f62009-11-15 23:12:43 +000027531 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000027532fi
cristy8b350f62009-11-15 23:12:43 +000027533rm -f core conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027535LIBS=$ac_check_lib_save_LIBS
27536fi
cristy8b350f62009-11-15 23:12:43 +000027537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027538$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027539if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027540 have_libwmflite='yes'
27541fi
27542
27543 if test "$have_libwmflite" = 'yes'; then
27544
cristy8b350f62009-11-15 23:12:43 +000027545$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027546
27547 WMF_LIBS='-lwmflite'
27548 LIBS="$WMF_LIBS $LIBS"
27549 have_wmf='yes'
27550 else
27551 WMF_LIBS_DEPS=''
27552 WMF_CONFIG_LIBS=`libwmf-config --libs`
27553 for lib in xml2 expat freetype jpeg png z; do
27554 testlib="-l${lib}"
27555 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27556 done
cristy8b350f62009-11-15 23:12:43 +000027557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000027558$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027559if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 $as_echo_n "(cached) " >&6
27561else
27562 ac_check_lib_save_LIBS=$LIBS
27563LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027565/* end confdefs.h. */
27566
27567/* Override any GCC internal prototype to avoid an error.
27568 Use char because int might match the return type of a GCC
27569 builtin and then its argument prototype would still apply. */
27570#ifdef __cplusplus
27571extern "C"
27572#endif
27573char wmf_api_create ();
27574int
27575main ()
27576{
27577return wmf_api_create ();
27578 ;
27579 return 0;
27580}
27581_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027582if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027583 ac_cv_lib_wmf_wmf_api_create=yes
27584else
cristy8b350f62009-11-15 23:12:43 +000027585 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000027586fi
cristy8b350f62009-11-15 23:12:43 +000027587rm -f core conftest.err conftest.$ac_objext \
27588 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027589LIBS=$ac_check_lib_save_LIBS
27590fi
cristy8b350f62009-11-15 23:12:43 +000027591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027592$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027593if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027594 have_libwmf='yes'
27595fi
27596
27597 if test "$have_libwmf" = 'yes'; then
27598
cristy8b350f62009-11-15 23:12:43 +000027599$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027600
27601 WMF_LIBS='-lwmf'
27602 LIBS="$WMF_LIBS $LIBS"
27603 have_wmf='yes'
27604 else
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo "no -- some components failed test" >&6; }
27607 have_wmf='no (failed tests)'
27608 have_wmflite='no (failed tests)'
27609 LIBS="$OLIBS"
27610 WMF_LIBS=''
27611 fi
27612 fi
27613 fi
cristy8b350f62009-11-15 23:12:43 +000027614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027615$as_echo_n "checking if WMF package is complete... " >&6; }
27616 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027618$as_echo "yes" >&6; }
27619 else
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "no" >&6; }
27622 fi
27623fi
27624 if test "$have_wmf" = 'yes'; then
27625 WMF_DELEGATE_TRUE=
27626 WMF_DELEGATE_FALSE='#'
27627else
27628 WMF_DELEGATE_TRUE='#'
27629 WMF_DELEGATE_FALSE=
27630fi
27631
27632
27633
27634
27635
27636#
27637# Check for XML delegate library.
27638#
27639
27640# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000027641if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027642 withval=$with_xml; with_xml=$withval
27643else
27644 with_xml=$have_x
27645fi
27646
27647
27648if test "$with_xml" != 'yes' ; then
27649 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27650fi
27651
27652have_xml='no'
27653XML_LIBS=''
27654if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027656$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000027658$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027660$as_echo "" >&6; }
27661 PERSIST_LDFLAGS=$LDFLAGS
27662 PERSIST_CPPFLAGS=$CPPFLAGS
27663 xml2_config=''
27664 for ac_prog in xml2-config
27665do
27666 # Extract the first word of "$ac_prog", so it can be a program name with args.
27667set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027670if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 $as_echo_n "(cached) " >&6
27672else
27673 if test -n "$xml2_config"; then
27674 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27675else
27676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27677for as_dir in $PATH
27678do
27679 IFS=$as_save_IFS
27680 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27683 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685 break 2
27686 fi
27687done
cristy8b350f62009-11-15 23:12:43 +000027688 done
cristy3ed852e2009-09-05 21:47:34 +000027689IFS=$as_save_IFS
27690
27691fi
27692fi
27693xml2_config=$ac_cv_prog_xml2_config
27694if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000027695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027696$as_echo "$xml2_config" >&6; }
27697else
cristy8b350f62009-11-15 23:12:43 +000027698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "no" >&6; }
27700fi
27701
27702
27703 test -n "$xml2_config" && break
27704done
27705 if test -n "$xml2_config"; then
27706 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27707 # the shared library installed under /usr/lib, whereas the package
27708 # installs itself under $prefix/libxml and $prefix/lib.
27709 xml2_prefix=`xml2-config --prefix`
27710 if test -d "${xml2_prefix}/include/libxml2"; then
27711 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27712 fi
27713 if test "${xml2_prefix}" != '/usr'; then
27714 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27715 fi
27716 fi
27717 failed=0
27718 passed=0
cristy8b350f62009-11-15 23:12:43 +000027719 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27720if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 passed=`expr $passed + 1`
27722else
27723 failed=`expr $failed + 1`
27724fi
27725
27726
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027729if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027730 $as_echo_n "(cached) " >&6
27731else
27732 ac_check_lib_save_LIBS=$LIBS
27733LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027735/* end confdefs.h. */
27736
27737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
27740#ifdef __cplusplus
27741extern "C"
27742#endif
27743char xmlParseExternalEntity ();
27744int
27745main ()
27746{
27747return xmlParseExternalEntity ();
27748 ;
27749 return 0;
27750}
27751_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027752if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027753 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27754else
cristy8b350f62009-11-15 23:12:43 +000027755 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000027756fi
cristy8b350f62009-11-15 23:12:43 +000027757rm -f core conftest.err conftest.$ac_objext \
27758 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027759LIBS=$ac_check_lib_save_LIBS
27760fi
cristy8b350f62009-11-15 23:12:43 +000027761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027763if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 passed=`expr $passed + 1`
27765else
27766 failed=`expr $failed + 1`
27767fi
27768
cristy8b350f62009-11-15 23:12:43 +000027769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027770$as_echo_n "checking if XML package is complete... " >&6; }
27771 if test $passed -gt 0; then
27772 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo "no -- some components failed test" >&6; }
27775 have_xml='no (failed tests)'
27776 LDFLAGS="$PERSIST_LDFLAGS"
27777 CPPFLAGS="$PERSIST_CPPFLAGS"
27778 else
27779 XML_LIBS='-lxml2'
27780 LIBS="$XML_LIBS $LIBS"
27781
cristy8b350f62009-11-15 23:12:43 +000027782$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027783
cristy8b350f62009-11-15 23:12:43 +000027784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027785$as_echo "yes" >&6; }
27786 have_xml='yes'
27787 fi
27788 else
cristy8b350f62009-11-15 23:12:43 +000027789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027790$as_echo "no" >&6; }
27791 fi
27792fi
27793 if test "$have_xml" = 'yes'; then
27794 XML_DELEGATE_TRUE=
27795 XML_DELEGATE_FALSE='#'
27796else
27797 XML_DELEGATE_TRUE='#'
27798 XML_DELEGATE_FALSE=
27799fi
27800
27801
27802
27803
27804# Substitute compiler name to build/link PerlMagick
27805#
27806
27807
27808#
27809# Configure install Paths
27810#
27811
27812# Subdirectory under lib to place ImageMagick lib files
27813LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27814
27815cat >>confdefs.h <<_ACEOF
27816#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27817_ACEOF
27818
27819
27820# Path to ImageMagick bin directory
27821EXECUTABLE_PATH="${BIN_DIR}"
27822DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27823case "${build_os}" in
27824 mingw* )
27825 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27826 ;;
27827esac
27828
27829cat >>confdefs.h <<_ACEOF
27830#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27831_ACEOF
27832
27833
27834
27835# Path to ImageMagick lib
27836LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27837DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27838case "${build_os}" in
27839 mingw* )
27840 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27841 ;;
27842esac
27843
27844cat >>confdefs.h <<_ACEOF
27845#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27846_ACEOF
27847
27848
27849
27850# Subdirectory under lib to place ImageMagick configuration files
27851CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27852
27853cat >>confdefs.h <<_ACEOF
27854#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27855_ACEOF
27856
27857CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27858DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27859case "${build_os}" in
27860 mingw* )
27861 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27862 ;;
27863esac
27864
27865cat >>confdefs.h <<_ACEOF
27866#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27867_ACEOF
27868
27869
27870
27871#
27872# Subdirectory under lib to place ImageMagick coder module files
27873CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27874
27875cat >>confdefs.h <<_ACEOF
27876#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27877_ACEOF
27878
27879CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27880DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27881case "${build_os}" in
27882 mingw* )
27883 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27884 ;;
27885esac
27886
27887cat >>confdefs.h <<_ACEOF
27888#define CODER_PATH "$DEFINE_CODER_PATH"
27889_ACEOF
27890
27891
27892
27893#
27894# Subdirectory under lib to place ImageMagick filter module files
27895FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27896
27897cat >>confdefs.h <<_ACEOF
27898#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27899_ACEOF
27900
27901FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27902DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27903case "${build_os}" in
27904 mingw* )
27905 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27906 ;;
27907esac
27908
27909cat >>confdefs.h <<_ACEOF
27910#define FILTER_PATH "$DEFINE_FILTER_PATH"
27911_ACEOF
27912
27913
27914
27915#
27916# Path to ImageMagick documentation files
27917DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27918DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
27919DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
27920case "${build_os}" in
27921 mingw* )
27922 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
27923 ;;
27924esac
27925
27926cat >>confdefs.h <<_ACEOF
27927#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
27928_ACEOF
27929
27930
27931
27932#
27933# Path to ImageMagick share files
27934SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27935SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
27936DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
27937case "${build_os}" in
27938 mingw* )
27939 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
27940 ;;
27941esac
27942
27943cat >>confdefs.h <<_ACEOF
27944#define SHARE_PATH "$DEFINE_SHARE_PATH"
27945_ACEOF
27946
27947
27948
27949# Subdirectory under share to place ImageMagick configuration files
27950SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27951
27952cat >>confdefs.h <<_ACEOF
27953#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
27954_ACEOF
27955
27956SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
27957DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
27958case "${build_os}" in
27959 mingw* )
27960 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
27961 ;;
27962esac
27963
27964cat >>confdefs.h <<_ACEOF
27965#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
27966_ACEOF
27967
27968
27969
27970#
27971# program_transform_name is formed for use in a Makefile, so create a
27972# modified version for use in a shell script.
27973configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
27974
27975# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000027976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027977$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027979$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027981$as_echo "" >&6; }
27982AutotraceDecodeDelegateDefault='autotrace'
27983AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000027984BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000027985BZIPDelegateDefault='bzip2'
27986BrowseDelegateDefault='xdg-open'
27987CGMDecodeDelegateDefault='ralcgm'
27988CatDelegateDefault='cat'
27989DNGDecodeDelegateDefault='ufraw-batch'
27990GVCDecodeDelegateDefault='dot'
27991DVIDecodeDelegateDefault='dvips'
27992EchoDelegateDefault='echo'
27993EditorDelegateDefault='xterm'
27994FIGDecodeDelegateDefault='fig2dev'
27995ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
27996DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
27997MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
27998GnuplotDecodeDelegateDefault='gnuplot'
27999HDRDecodeDelegateDefault='ra_pfm'
28000HPGLDecodeDelegateDefault='hp2xx'
28001HTMLDecodeDelegateDefault='html2ps'
28002ILBMDecodeDelegateDefault='ilbmtoppm'
28003ILBMEncodeDelegateDefault='ppmtoilbm'
28004LPDelegateDefault='lp'
28005LPRDelegateDefault='lpr'
28006LZWDecodeDelegateDefault='uncompress'
28007LZWEncodeDelegateDefault='compress'
28008LaunchDelegateDefault='gimp'
28009MANDelegateDefault='groff'
28010MPEGDecodeDelegateDefault='ffmpeg'
28011MPEGEncodeDelegateDefault='ffmpeg'
28012MVDelegateDefault='mv'
28013PCLDelegateDefault='pcl6'
28014PGPDecodeDelegateDefault='pgpv'
28015POVDelegateDefault='povray'
28016if test "$native_win32_build" = 'yes'; then
28017 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000028018elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028019 PSDelegateDefault='gsc'
28020else
28021 PSDelegateDefault='gs'
28022fi
28023RLEEncodeDelegateDefault='rawtorle'
28024RMDelegateDefault='rm'
28025SCANDecodeDelegateDefault='scanimage'
28026TXTDelegateDefault='enscript'
28027WMFDecodeDelegateDefault='wmf2eps'
28028WWWDecodeDelegateDefault='curl'
28029XPSDelegateDefault='gxps'
28030ZipDelegateDefault='gzip'
28031
28032# Search for delegates
28033# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28034set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028036$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028037if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028038 $as_echo_n "(cached) " >&6
28039else
28040 case $AutotraceDecodeDelegate in
28041 [\\/]* | ?:[\\/]*)
28042 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28043 ;;
28044 *)
28045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28046for as_dir in $PATH
28047do
28048 IFS=$as_save_IFS
28049 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028050 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28052 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028054 break 2
28055 fi
28056done
cristy8b350f62009-11-15 23:12:43 +000028057 done
cristy3ed852e2009-09-05 21:47:34 +000028058IFS=$as_save_IFS
28059
28060 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28061 ;;
28062esac
28063fi
28064AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28065if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028067$as_echo "$AutotraceDecodeDelegate" >&6; }
28068else
cristy8b350f62009-11-15 23:12:43 +000028069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo "no" >&6; }
28071fi
28072
28073
28074# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28075set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028077$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028078if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028079 $as_echo_n "(cached) " >&6
28080else
28081 case $AVIDecodeDelegate in
28082 [\\/]* | ?:[\\/]*)
28083 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28084 ;;
28085 *)
28086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28087for as_dir in $PATH
28088do
28089 IFS=$as_save_IFS
28090 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28093 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028095 break 2
28096 fi
28097done
cristy8b350f62009-11-15 23:12:43 +000028098 done
cristy3ed852e2009-09-05 21:47:34 +000028099IFS=$as_save_IFS
28100
28101 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28102 ;;
28103esac
28104fi
28105AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28106if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028108$as_echo "$AVIDecodeDelegate" >&6; }
28109else
cristy8b350f62009-11-15 23:12:43 +000028110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028111$as_echo "no" >&6; }
28112fi
28113
28114
28115# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28116set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028119if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028120 $as_echo_n "(cached) " >&6
28121else
28122 case $BlenderDecodeDelegate in
28123 [\\/]* | ?:[\\/]*)
28124 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28125 ;;
28126 *)
28127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28128for as_dir in $PATH
28129do
28130 IFS=$as_save_IFS
28131 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28134 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028136 break 2
28137 fi
28138done
cristy8b350f62009-11-15 23:12:43 +000028139 done
cristy3ed852e2009-09-05 21:47:34 +000028140IFS=$as_save_IFS
28141
28142 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28143 ;;
28144esac
28145fi
28146BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28147if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028149$as_echo "$BlenderDecodeDelegate" >&6; }
28150else
cristy8b350f62009-11-15 23:12:43 +000028151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028152$as_echo "no" >&6; }
28153fi
28154
28155
28156# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28157set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028159$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028160if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028161 $as_echo_n "(cached) " >&6
28162else
28163 case $BZIPDelegate in
28164 [\\/]* | ?:[\\/]*)
28165 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28166 ;;
28167 *)
28168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28169for as_dir in $PATH
28170do
28171 IFS=$as_save_IFS
28172 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028173 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28175 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028177 break 2
28178 fi
28179done
cristy8b350f62009-11-15 23:12:43 +000028180 done
cristy3ed852e2009-09-05 21:47:34 +000028181IFS=$as_save_IFS
28182
28183 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28184 ;;
28185esac
28186fi
28187BZIPDelegate=$ac_cv_path_BZIPDelegate
28188if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028190$as_echo "$BZIPDelegate" >&6; }
28191else
cristy8b350f62009-11-15 23:12:43 +000028192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028193$as_echo "no" >&6; }
28194fi
28195
28196
28197# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28198set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028200$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028201if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028202 $as_echo_n "(cached) " >&6
28203else
28204 case $BrowseDelegate in
28205 [\\/]* | ?:[\\/]*)
28206 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28207 ;;
28208 *)
28209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28210for as_dir in $PATH
28211do
28212 IFS=$as_save_IFS
28213 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028214 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28216 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028218 break 2
28219 fi
28220done
cristy8b350f62009-11-15 23:12:43 +000028221 done
cristy3ed852e2009-09-05 21:47:34 +000028222IFS=$as_save_IFS
28223
28224 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28225 ;;
28226esac
28227fi
28228BrowseDelegate=$ac_cv_path_BrowseDelegate
28229if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028231$as_echo "$BrowseDelegate" >&6; }
28232else
cristy8b350f62009-11-15 23:12:43 +000028233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "no" >&6; }
28235fi
28236
28237
28238# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28239set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028242if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028243 $as_echo_n "(cached) " >&6
28244else
28245 case $CGMDecodeDelegate in
28246 [\\/]* | ?:[\\/]*)
28247 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28248 ;;
28249 *)
28250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28251for as_dir in $PATH
28252do
28253 IFS=$as_save_IFS
28254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28257 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028259 break 2
28260 fi
28261done
cristy8b350f62009-11-15 23:12:43 +000028262 done
cristy3ed852e2009-09-05 21:47:34 +000028263IFS=$as_save_IFS
28264
28265 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28266 ;;
28267esac
28268fi
28269CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28270if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028272$as_echo "$CGMDecodeDelegate" >&6; }
28273else
cristy8b350f62009-11-15 23:12:43 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028275$as_echo "no" >&6; }
28276fi
28277
28278
28279# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28280set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028283if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028284 $as_echo_n "(cached) " >&6
28285else
28286 case $CatDelegate in
28287 [\\/]* | ?:[\\/]*)
28288 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28289 ;;
28290 *)
28291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28292for as_dir in $PATH
28293do
28294 IFS=$as_save_IFS
28295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28298 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028300 break 2
28301 fi
28302done
cristy8b350f62009-11-15 23:12:43 +000028303 done
cristy3ed852e2009-09-05 21:47:34 +000028304IFS=$as_save_IFS
28305
28306 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28307 ;;
28308esac
28309fi
28310CatDelegate=$ac_cv_path_CatDelegate
28311if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028313$as_echo "$CatDelegate" >&6; }
28314else
cristy8b350f62009-11-15 23:12:43 +000028315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028316$as_echo "no" >&6; }
28317fi
28318
28319
28320# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28321set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028324if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 $as_echo_n "(cached) " >&6
28326else
28327 case $DNGDecodeDelegate in
28328 [\\/]* | ?:[\\/]*)
28329 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28330 ;;
28331 *)
28332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28333for as_dir in $PATH
28334do
28335 IFS=$as_save_IFS
28336 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028337 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28339 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028341 break 2
28342 fi
28343done
cristy8b350f62009-11-15 23:12:43 +000028344 done
cristy3ed852e2009-09-05 21:47:34 +000028345IFS=$as_save_IFS
28346
28347 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28348 ;;
28349esac
28350fi
28351DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28352if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028354$as_echo "$DNGDecodeDelegate" >&6; }
28355else
cristy8b350f62009-11-15 23:12:43 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028357$as_echo "no" >&6; }
28358fi
28359
28360
28361# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28362set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028365if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 $as_echo_n "(cached) " >&6
28367else
28368 case $GVCDecodeDelegate in
28369 [\\/]* | ?:[\\/]*)
28370 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28371 ;;
28372 *)
28373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28374for as_dir in $PATH
28375do
28376 IFS=$as_save_IFS
28377 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028378 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28380 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028382 break 2
28383 fi
28384done
cristy8b350f62009-11-15 23:12:43 +000028385 done
cristy3ed852e2009-09-05 21:47:34 +000028386IFS=$as_save_IFS
28387
28388 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28389 ;;
28390esac
28391fi
28392GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28393if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028395$as_echo "$GVCDecodeDelegate" >&6; }
28396else
cristy8b350f62009-11-15 23:12:43 +000028397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo "no" >&6; }
28399fi
28400
28401
28402# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28403set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028406if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028407 $as_echo_n "(cached) " >&6
28408else
28409 case $DVIDecodeDelegate in
28410 [\\/]* | ?:[\\/]*)
28411 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28412 ;;
28413 *)
28414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28415for as_dir in $PATH
28416do
28417 IFS=$as_save_IFS
28418 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028419 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28421 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028423 break 2
28424 fi
28425done
cristy8b350f62009-11-15 23:12:43 +000028426 done
cristy3ed852e2009-09-05 21:47:34 +000028427IFS=$as_save_IFS
28428
28429 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28430 ;;
28431esac
28432fi
28433DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28434if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028436$as_echo "$DVIDecodeDelegate" >&6; }
28437else
cristy8b350f62009-11-15 23:12:43 +000028438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028439$as_echo "no" >&6; }
28440fi
28441
28442
28443# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28444set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028446$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028447if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028448 $as_echo_n "(cached) " >&6
28449else
28450 case $EchoDelegate in
28451 [\\/]* | ?:[\\/]*)
28452 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28453 ;;
28454 *)
28455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28456for as_dir in $PATH
28457do
28458 IFS=$as_save_IFS
28459 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28462 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028464 break 2
28465 fi
28466done
cristy8b350f62009-11-15 23:12:43 +000028467 done
cristy3ed852e2009-09-05 21:47:34 +000028468IFS=$as_save_IFS
28469
28470 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28471 ;;
28472esac
28473fi
28474EchoDelegate=$ac_cv_path_EchoDelegate
28475if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo "$EchoDelegate" >&6; }
28478else
cristy8b350f62009-11-15 23:12:43 +000028479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028480$as_echo "no" >&6; }
28481fi
28482
28483
28484# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28485set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028488if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 $as_echo_n "(cached) " >&6
28490else
28491 case $EditorDelegate in
28492 [\\/]* | ?:[\\/]*)
28493 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28494 ;;
28495 *)
28496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28497for as_dir in $PATH
28498do
28499 IFS=$as_save_IFS
28500 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028501 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28503 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028505 break 2
28506 fi
28507done
cristy8b350f62009-11-15 23:12:43 +000028508 done
cristy3ed852e2009-09-05 21:47:34 +000028509IFS=$as_save_IFS
28510
28511 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28512 ;;
28513esac
28514fi
28515EditorDelegate=$ac_cv_path_EditorDelegate
28516if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo "$EditorDelegate" >&6; }
28519else
cristy8b350f62009-11-15 23:12:43 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "no" >&6; }
28522fi
28523
28524
28525# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28526set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028529if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 $as_echo_n "(cached) " >&6
28531else
28532 case $FIGDecodeDelegate in
28533 [\\/]* | ?:[\\/]*)
28534 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28535 ;;
28536 *)
28537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28538for as_dir in $PATH
28539do
28540 IFS=$as_save_IFS
28541 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028542 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28544 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028546 break 2
28547 fi
28548done
cristy8b350f62009-11-15 23:12:43 +000028549 done
cristy3ed852e2009-09-05 21:47:34 +000028550IFS=$as_save_IFS
28551
28552 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28553 ;;
28554esac
28555fi
28556FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28557if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028559$as_echo "$FIGDecodeDelegate" >&6; }
28560else
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "no" >&6; }
28563fi
28564
28565
28566# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28567set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028570if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 $as_echo_n "(cached) " >&6
28572else
28573 case $ConvertDelegate in
28574 [\\/]* | ?:[\\/]*)
28575 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28576 ;;
28577 *)
28578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28579for as_dir in $PATH
28580do
28581 IFS=$as_save_IFS
28582 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028583 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28585 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028587 break 2
28588 fi
28589done
cristy8b350f62009-11-15 23:12:43 +000028590 done
cristy3ed852e2009-09-05 21:47:34 +000028591IFS=$as_save_IFS
28592
28593 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28594 ;;
28595esac
28596fi
28597ConvertDelegate=$ac_cv_path_ConvertDelegate
28598if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028600$as_echo "$ConvertDelegate" >&6; }
28601else
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo "no" >&6; }
28604fi
28605
28606
28607# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28608set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028610$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028611if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028612 $as_echo_n "(cached) " >&6
28613else
28614 case $DisplayDelegate in
28615 [\\/]* | ?:[\\/]*)
28616 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28617 ;;
28618 *)
28619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28620for as_dir in $PATH
28621do
28622 IFS=$as_save_IFS
28623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28626 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028628 break 2
28629 fi
28630done
cristy8b350f62009-11-15 23:12:43 +000028631 done
cristy3ed852e2009-09-05 21:47:34 +000028632IFS=$as_save_IFS
28633
28634 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28635 ;;
28636esac
28637fi
28638DisplayDelegate=$ac_cv_path_DisplayDelegate
28639if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028641$as_echo "$DisplayDelegate" >&6; }
28642else
cristy8b350f62009-11-15 23:12:43 +000028643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028644$as_echo "no" >&6; }
28645fi
28646
28647
28648# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28649set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028651$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028652if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 $as_echo_n "(cached) " >&6
28654else
28655 case $MogrifyDelegate in
28656 [\\/]* | ?:[\\/]*)
28657 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28658 ;;
28659 *)
28660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28661for as_dir in $PATH
28662do
28663 IFS=$as_save_IFS
28664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28667 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028669 break 2
28670 fi
28671done
cristy8b350f62009-11-15 23:12:43 +000028672 done
cristy3ed852e2009-09-05 21:47:34 +000028673IFS=$as_save_IFS
28674
28675 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28676 ;;
28677esac
28678fi
28679MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28680if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo "$MogrifyDelegate" >&6; }
28683else
cristy8b350f62009-11-15 23:12:43 +000028684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028685$as_echo "no" >&6; }
28686fi
28687
28688
28689# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28690set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028692$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028693if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028694 $as_echo_n "(cached) " >&6
28695else
28696 case $GnuplotDecodeDelegate in
28697 [\\/]* | ?:[\\/]*)
28698 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28699 ;;
28700 *)
28701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28702for as_dir in $PATH
28703do
28704 IFS=$as_save_IFS
28705 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028706 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28708 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028710 break 2
28711 fi
28712done
cristy8b350f62009-11-15 23:12:43 +000028713 done
cristy3ed852e2009-09-05 21:47:34 +000028714IFS=$as_save_IFS
28715
28716 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28717 ;;
28718esac
28719fi
28720GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28721if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028723$as_echo "$GnuplotDecodeDelegate" >&6; }
28724else
cristy8b350f62009-11-15 23:12:43 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028726$as_echo "no" >&6; }
28727fi
28728
28729
28730# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28731set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028733$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028734if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028735 $as_echo_n "(cached) " >&6
28736else
28737 case $HDRDecodeDelegate in
28738 [\\/]* | ?:[\\/]*)
28739 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28740 ;;
28741 *)
28742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28743for as_dir in $PATH
28744do
28745 IFS=$as_save_IFS
28746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28749 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028751 break 2
28752 fi
28753done
cristy8b350f62009-11-15 23:12:43 +000028754 done
cristy3ed852e2009-09-05 21:47:34 +000028755IFS=$as_save_IFS
28756
28757 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28758 ;;
28759esac
28760fi
28761HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28762if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028764$as_echo "$HDRDecodeDelegate" >&6; }
28765else
cristy8b350f62009-11-15 23:12:43 +000028766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028767$as_echo "no" >&6; }
28768fi
28769
28770
28771# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28772set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028775if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028776 $as_echo_n "(cached) " >&6
28777else
28778 case $HPGLDecodeDelegate in
28779 [\\/]* | ?:[\\/]*)
28780 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28781 ;;
28782 *)
28783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28784for as_dir in $PATH
28785do
28786 IFS=$as_save_IFS
28787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028788 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28790 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028792 break 2
28793 fi
28794done
cristy8b350f62009-11-15 23:12:43 +000028795 done
cristy3ed852e2009-09-05 21:47:34 +000028796IFS=$as_save_IFS
28797
28798 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28799 ;;
28800esac
28801fi
28802HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28803if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028805$as_echo "$HPGLDecodeDelegate" >&6; }
28806else
cristy8b350f62009-11-15 23:12:43 +000028807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028808$as_echo "no" >&6; }
28809fi
28810
28811
28812# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28813set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028815$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028816if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 $as_echo_n "(cached) " >&6
28818else
28819 case $HTMLDecodeDelegate in
28820 [\\/]* | ?:[\\/]*)
28821 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28822 ;;
28823 *)
28824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28825for as_dir in $PATH
28826do
28827 IFS=$as_save_IFS
28828 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28831 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028833 break 2
28834 fi
28835done
cristy8b350f62009-11-15 23:12:43 +000028836 done
cristy3ed852e2009-09-05 21:47:34 +000028837IFS=$as_save_IFS
28838
28839 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28840 ;;
28841esac
28842fi
28843HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28844if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028846$as_echo "$HTMLDecodeDelegate" >&6; }
28847else
cristy8b350f62009-11-15 23:12:43 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo "no" >&6; }
28850fi
28851
28852
28853# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28854set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028856$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028857if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028858 $as_echo_n "(cached) " >&6
28859else
28860 case $ILBMDecodeDelegate in
28861 [\\/]* | ?:[\\/]*)
28862 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28863 ;;
28864 *)
28865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28866for as_dir in $PATH
28867do
28868 IFS=$as_save_IFS
28869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28872 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028874 break 2
28875 fi
28876done
cristy8b350f62009-11-15 23:12:43 +000028877 done
cristy3ed852e2009-09-05 21:47:34 +000028878IFS=$as_save_IFS
28879
28880 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28881 ;;
28882esac
28883fi
28884ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28885if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028887$as_echo "$ILBMDecodeDelegate" >&6; }
28888else
cristy8b350f62009-11-15 23:12:43 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo "no" >&6; }
28891fi
28892
28893
28894# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28895set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028898if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 $as_echo_n "(cached) " >&6
28900else
28901 case $ILBMEncodeDelegate in
28902 [\\/]* | ?:[\\/]*)
28903 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28904 ;;
28905 *)
28906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28907for as_dir in $PATH
28908do
28909 IFS=$as_save_IFS
28910 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28913 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028915 break 2
28916 fi
28917done
cristy8b350f62009-11-15 23:12:43 +000028918 done
cristy3ed852e2009-09-05 21:47:34 +000028919IFS=$as_save_IFS
28920
28921 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
28922 ;;
28923esac
28924fi
28925ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
28926if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028928$as_echo "$ILBMEncodeDelegate" >&6; }
28929else
cristy8b350f62009-11-15 23:12:43 +000028930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo "no" >&6; }
28932fi
28933
28934
28935# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
28936set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028939if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028940 $as_echo_n "(cached) " >&6
28941else
28942 case $LPDelegate in
28943 [\\/]* | ?:[\\/]*)
28944 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
28945 ;;
28946 *)
28947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28948for as_dir in $PATH
28949do
28950 IFS=$as_save_IFS
28951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28954 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028956 break 2
28957 fi
28958done
cristy8b350f62009-11-15 23:12:43 +000028959 done
cristy3ed852e2009-09-05 21:47:34 +000028960IFS=$as_save_IFS
28961
28962 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
28963 ;;
28964esac
28965fi
28966LPDelegate=$ac_cv_path_LPDelegate
28967if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028969$as_echo "$LPDelegate" >&6; }
28970else
cristy8b350f62009-11-15 23:12:43 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028972$as_echo "no" >&6; }
28973fi
28974
28975
28976# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
28977set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028979$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028980if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028981 $as_echo_n "(cached) " >&6
28982else
28983 case $LPRDelegate in
28984 [\\/]* | ?:[\\/]*)
28985 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
28986 ;;
28987 *)
28988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28989for as_dir in $PATH
28990do
28991 IFS=$as_save_IFS
28992 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28995 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000028996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028997 break 2
28998 fi
28999done
cristy8b350f62009-11-15 23:12:43 +000029000 done
cristy3ed852e2009-09-05 21:47:34 +000029001IFS=$as_save_IFS
29002
29003 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29004 ;;
29005esac
29006fi
29007LPRDelegate=$ac_cv_path_LPRDelegate
29008if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029010$as_echo "$LPRDelegate" >&6; }
29011else
cristy8b350f62009-11-15 23:12:43 +000029012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029013$as_echo "no" >&6; }
29014fi
29015
29016
29017# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29018set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029020$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029021if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029022 $as_echo_n "(cached) " >&6
29023else
29024 case $LZWDecodeDelegate in
29025 [\\/]* | ?:[\\/]*)
29026 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29027 ;;
29028 *)
29029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29030for as_dir in $PATH
29031do
29032 IFS=$as_save_IFS
29033 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029034 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29036 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029038 break 2
29039 fi
29040done
cristy8b350f62009-11-15 23:12:43 +000029041 done
cristy3ed852e2009-09-05 21:47:34 +000029042IFS=$as_save_IFS
29043
29044 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29045 ;;
29046esac
29047fi
29048LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29049if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029051$as_echo "$LZWDecodeDelegate" >&6; }
29052else
cristy8b350f62009-11-15 23:12:43 +000029053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029054$as_echo "no" >&6; }
29055fi
29056
29057
29058# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29059set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029061$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029062if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029063 $as_echo_n "(cached) " >&6
29064else
29065 case $LZWEncodeDelegate in
29066 [\\/]* | ?:[\\/]*)
29067 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29068 ;;
29069 *)
29070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29071for as_dir in $PATH
29072do
29073 IFS=$as_save_IFS
29074 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029075 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29077 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029079 break 2
29080 fi
29081done
cristy8b350f62009-11-15 23:12:43 +000029082 done
cristy3ed852e2009-09-05 21:47:34 +000029083IFS=$as_save_IFS
29084
29085 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29086 ;;
29087esac
29088fi
29089LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29090if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029092$as_echo "$LZWEncodeDelegate" >&6; }
29093else
cristy8b350f62009-11-15 23:12:43 +000029094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029095$as_echo "no" >&6; }
29096fi
29097
29098
29099# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29100set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029102$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029103if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029104 $as_echo_n "(cached) " >&6
29105else
29106 case $LaunchDelegate in
29107 [\\/]* | ?:[\\/]*)
29108 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29109 ;;
29110 *)
29111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29112for as_dir in $PATH
29113do
29114 IFS=$as_save_IFS
29115 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029116 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29118 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029120 break 2
29121 fi
29122done
cristy8b350f62009-11-15 23:12:43 +000029123 done
cristy3ed852e2009-09-05 21:47:34 +000029124IFS=$as_save_IFS
29125
29126 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29127 ;;
29128esac
29129fi
29130LaunchDelegate=$ac_cv_path_LaunchDelegate
29131if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029133$as_echo "$LaunchDelegate" >&6; }
29134else
cristy8b350f62009-11-15 23:12:43 +000029135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029136$as_echo "no" >&6; }
29137fi
29138
29139
29140# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29141set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029143$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029144if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029145 $as_echo_n "(cached) " >&6
29146else
29147 case $MANDelegate in
29148 [\\/]* | ?:[\\/]*)
29149 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29150 ;;
29151 *)
29152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29153for as_dir in $PATH
29154do
29155 IFS=$as_save_IFS
29156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29159 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029161 break 2
29162 fi
29163done
cristy8b350f62009-11-15 23:12:43 +000029164 done
cristy3ed852e2009-09-05 21:47:34 +000029165IFS=$as_save_IFS
29166
29167 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29168 ;;
29169esac
29170fi
29171MANDelegate=$ac_cv_path_MANDelegate
29172if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029174$as_echo "$MANDelegate" >&6; }
29175else
cristy8b350f62009-11-15 23:12:43 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029177$as_echo "no" >&6; }
29178fi
29179
29180
29181# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29182set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029184$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029185if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029186 $as_echo_n "(cached) " >&6
29187else
29188 case $MPEGDecodeDelegate in
29189 [\\/]* | ?:[\\/]*)
29190 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29191 ;;
29192 *)
29193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29194for as_dir in $PATH
29195do
29196 IFS=$as_save_IFS
29197 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029198 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29200 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202 break 2
29203 fi
29204done
cristy8b350f62009-11-15 23:12:43 +000029205 done
cristy3ed852e2009-09-05 21:47:34 +000029206IFS=$as_save_IFS
29207
29208 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29209 ;;
29210esac
29211fi
29212MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29213if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029215$as_echo "$MPEGDecodeDelegate" >&6; }
29216else
cristy8b350f62009-11-15 23:12:43 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029218$as_echo "no" >&6; }
29219fi
29220
29221
29222# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29223set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029226if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 $as_echo_n "(cached) " >&6
29228else
29229 case $MPEGEncodeDelegate in
29230 [\\/]* | ?:[\\/]*)
29231 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29232 ;;
29233 *)
29234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29235for as_dir in $PATH
29236do
29237 IFS=$as_save_IFS
29238 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029239 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29241 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029243 break 2
29244 fi
29245done
cristy8b350f62009-11-15 23:12:43 +000029246 done
cristy3ed852e2009-09-05 21:47:34 +000029247IFS=$as_save_IFS
29248
29249 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29250 ;;
29251esac
29252fi
29253MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29254if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029256$as_echo "$MPEGEncodeDelegate" >&6; }
29257else
cristy8b350f62009-11-15 23:12:43 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029259$as_echo "no" >&6; }
29260fi
29261
29262
29263# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29264set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029267if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 $as_echo_n "(cached) " >&6
29269else
29270 case $MVDelegate in
29271 [\\/]* | ?:[\\/]*)
29272 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29273 ;;
29274 *)
29275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29276for as_dir in $PATH
29277do
29278 IFS=$as_save_IFS
29279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29282 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029284 break 2
29285 fi
29286done
cristy8b350f62009-11-15 23:12:43 +000029287 done
cristy3ed852e2009-09-05 21:47:34 +000029288IFS=$as_save_IFS
29289
29290 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29291 ;;
29292esac
29293fi
29294MVDelegate=$ac_cv_path_MVDelegate
29295if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029297$as_echo "$MVDelegate" >&6; }
29298else
cristy8b350f62009-11-15 23:12:43 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029300$as_echo "no" >&6; }
29301fi
29302
29303
29304# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29305set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029307$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029308if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029309 $as_echo_n "(cached) " >&6
29310else
29311 case $PCLDelegate in
29312 [\\/]* | ?:[\\/]*)
29313 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29314 ;;
29315 *)
29316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29317for as_dir in $PATH
29318do
29319 IFS=$as_save_IFS
29320 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029321 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29323 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029325 break 2
29326 fi
29327done
cristy8b350f62009-11-15 23:12:43 +000029328 done
cristy3ed852e2009-09-05 21:47:34 +000029329IFS=$as_save_IFS
29330
29331 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29332 ;;
29333esac
29334fi
29335PCLDelegate=$ac_cv_path_PCLDelegate
29336if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo "$PCLDelegate" >&6; }
29339else
cristy8b350f62009-11-15 23:12:43 +000029340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029341$as_echo "no" >&6; }
29342fi
29343
29344
29345# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29346set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029348$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029349if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029350 $as_echo_n "(cached) " >&6
29351else
29352 case $PGPDecodeDelegate in
29353 [\\/]* | ?:[\\/]*)
29354 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29355 ;;
29356 *)
29357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29358for as_dir in $PATH
29359do
29360 IFS=$as_save_IFS
29361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29364 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029366 break 2
29367 fi
29368done
cristy8b350f62009-11-15 23:12:43 +000029369 done
cristy3ed852e2009-09-05 21:47:34 +000029370IFS=$as_save_IFS
29371
29372 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29373 ;;
29374esac
29375fi
29376PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29377if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029379$as_echo "$PGPDecodeDelegate" >&6; }
29380else
cristy8b350f62009-11-15 23:12:43 +000029381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029382$as_echo "no" >&6; }
29383fi
29384
29385
29386# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29387set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029390if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029391 $as_echo_n "(cached) " >&6
29392else
29393 case $POVDelegate in
29394 [\\/]* | ?:[\\/]*)
29395 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29396 ;;
29397 *)
29398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399for as_dir in $PATH
29400do
29401 IFS=$as_save_IFS
29402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29405 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029407 break 2
29408 fi
29409done
cristy8b350f62009-11-15 23:12:43 +000029410 done
cristy3ed852e2009-09-05 21:47:34 +000029411IFS=$as_save_IFS
29412
29413 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29414 ;;
29415esac
29416fi
29417POVDelegate=$ac_cv_path_POVDelegate
29418if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029420$as_echo "$POVDelegate" >&6; }
29421else
cristy8b350f62009-11-15 23:12:43 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029423$as_echo "no" >&6; }
29424fi
29425
29426
29427for ac_prog in gsx gsc "$PSDelegateDefault"
29428do
29429 # Extract the first word of "$ac_prog", so it can be a program name with args.
29430set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029432$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029433if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029434 $as_echo_n "(cached) " >&6
29435else
29436 case $PSDelegate in
29437 [\\/]* | ?:[\\/]*)
29438 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29439 ;;
29440 *)
29441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29442for as_dir in $PATH
29443do
29444 IFS=$as_save_IFS
29445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29448 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029450 break 2
29451 fi
29452done
cristy8b350f62009-11-15 23:12:43 +000029453 done
cristy3ed852e2009-09-05 21:47:34 +000029454IFS=$as_save_IFS
29455
29456 ;;
29457esac
29458fi
29459PSDelegate=$ac_cv_path_PSDelegate
29460if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029462$as_echo "$PSDelegate" >&6; }
29463else
cristy8b350f62009-11-15 23:12:43 +000029464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo "no" >&6; }
29466fi
29467
29468
29469 test -n "$PSDelegate" && break
29470done
29471test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29472
29473# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29474set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029476$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029477if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029478 $as_echo_n "(cached) " >&6
29479else
29480 case $RLEEncodeDelegate in
29481 [\\/]* | ?:[\\/]*)
29482 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29483 ;;
29484 *)
29485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29486for as_dir in $PATH
29487do
29488 IFS=$as_save_IFS
29489 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029490 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29492 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029494 break 2
29495 fi
29496done
cristy8b350f62009-11-15 23:12:43 +000029497 done
cristy3ed852e2009-09-05 21:47:34 +000029498IFS=$as_save_IFS
29499
29500 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29501 ;;
29502esac
29503fi
29504RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29505if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029507$as_echo "$RLEEncodeDelegate" >&6; }
29508else
cristy8b350f62009-11-15 23:12:43 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029510$as_echo "no" >&6; }
29511fi
29512
29513
29514# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29515set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029517$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029518if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029519 $as_echo_n "(cached) " >&6
29520else
29521 case $RMDelegate in
29522 [\\/]* | ?:[\\/]*)
29523 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29524 ;;
29525 *)
29526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29527for as_dir in $PATH
29528do
29529 IFS=$as_save_IFS
29530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29533 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029535 break 2
29536 fi
29537done
cristy8b350f62009-11-15 23:12:43 +000029538 done
cristy3ed852e2009-09-05 21:47:34 +000029539IFS=$as_save_IFS
29540
29541 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29542 ;;
29543esac
29544fi
29545RMDelegate=$ac_cv_path_RMDelegate
29546if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029548$as_echo "$RMDelegate" >&6; }
29549else
cristy8b350f62009-11-15 23:12:43 +000029550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029551$as_echo "no" >&6; }
29552fi
29553
29554
29555# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29556set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029558$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029559if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029560 $as_echo_n "(cached) " >&6
29561else
29562 case $SCANDecodeDelegate in
29563 [\\/]* | ?:[\\/]*)
29564 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29565 ;;
29566 *)
29567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29568for as_dir in $PATH
29569do
29570 IFS=$as_save_IFS
29571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29574 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576 break 2
29577 fi
29578done
cristy8b350f62009-11-15 23:12:43 +000029579 done
cristy3ed852e2009-09-05 21:47:34 +000029580IFS=$as_save_IFS
29581
29582 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29583 ;;
29584esac
29585fi
29586SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29587if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029589$as_echo "$SCANDecodeDelegate" >&6; }
29590else
cristy8b350f62009-11-15 23:12:43 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029592$as_echo "no" >&6; }
29593fi
29594
29595
29596# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29597set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029599$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029600if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029601 $as_echo_n "(cached) " >&6
29602else
29603 case $TXTDelegate in
29604 [\\/]* | ?:[\\/]*)
29605 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29606 ;;
29607 *)
29608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29609for as_dir in $PATH
29610do
29611 IFS=$as_save_IFS
29612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29615 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029617 break 2
29618 fi
29619done
cristy8b350f62009-11-15 23:12:43 +000029620 done
cristy3ed852e2009-09-05 21:47:34 +000029621IFS=$as_save_IFS
29622
29623 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29624 ;;
29625esac
29626fi
29627TXTDelegate=$ac_cv_path_TXTDelegate
29628if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029630$as_echo "$TXTDelegate" >&6; }
29631else
cristy8b350f62009-11-15 23:12:43 +000029632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029633$as_echo "no" >&6; }
29634fi
29635
29636
29637# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29638set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029640$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029641if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029642 $as_echo_n "(cached) " >&6
29643else
29644 case $WMFDecodeDelegate in
29645 [\\/]* | ?:[\\/]*)
29646 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29647 ;;
29648 *)
29649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29650for as_dir in $PATH
29651do
29652 IFS=$as_save_IFS
29653 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029654 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29656 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029658 break 2
29659 fi
29660done
cristy8b350f62009-11-15 23:12:43 +000029661 done
cristy3ed852e2009-09-05 21:47:34 +000029662IFS=$as_save_IFS
29663
29664 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29665 ;;
29666esac
29667fi
29668WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29669if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029671$as_echo "$WMFDecodeDelegate" >&6; }
29672else
cristy8b350f62009-11-15 23:12:43 +000029673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029674$as_echo "no" >&6; }
29675fi
29676
29677
29678# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29679set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029681$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029682if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029683 $as_echo_n "(cached) " >&6
29684else
29685 case $WWWDecodeDelegate in
29686 [\\/]* | ?:[\\/]*)
29687 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29688 ;;
29689 *)
29690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29691for as_dir in $PATH
29692do
29693 IFS=$as_save_IFS
29694 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29697 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029699 break 2
29700 fi
29701done
cristy8b350f62009-11-15 23:12:43 +000029702 done
cristy3ed852e2009-09-05 21:47:34 +000029703IFS=$as_save_IFS
29704
29705 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29706 ;;
29707esac
29708fi
29709WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29710if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029712$as_echo "$WWWDecodeDelegate" >&6; }
29713else
cristy8b350f62009-11-15 23:12:43 +000029714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029715$as_echo "no" >&6; }
29716fi
29717
29718
29719# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29720set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029722$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029723if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029724 $as_echo_n "(cached) " >&6
29725else
29726 case $XPSDelegate in
29727 [\\/]* | ?:[\\/]*)
29728 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29729 ;;
29730 *)
29731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29732for as_dir in $PATH
29733do
29734 IFS=$as_save_IFS
29735 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29738 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740 break 2
29741 fi
29742done
cristy8b350f62009-11-15 23:12:43 +000029743 done
cristy3ed852e2009-09-05 21:47:34 +000029744IFS=$as_save_IFS
29745
29746 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29747 ;;
29748esac
29749fi
29750XPSDelegate=$ac_cv_path_XPSDelegate
29751if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029753$as_echo "$XPSDelegate" >&6; }
29754else
cristy8b350f62009-11-15 23:12:43 +000029755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029756$as_echo "no" >&6; }
29757fi
29758
29759
29760# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29761set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029763$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029764if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029765 $as_echo_n "(cached) " >&6
29766else
29767 case $ZipDelegate in
29768 [\\/]* | ?:[\\/]*)
29769 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29770 ;;
29771 *)
29772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29773for as_dir in $PATH
29774do
29775 IFS=$as_save_IFS
29776 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029777 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29779 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781 break 2
29782 fi
29783done
cristy8b350f62009-11-15 23:12:43 +000029784 done
cristy3ed852e2009-09-05 21:47:34 +000029785IFS=$as_save_IFS
29786
29787 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29788 ;;
29789esac
29790fi
29791ZipDelegate=$ac_cv_path_ZipDelegate
29792if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029794$as_echo "$ZipDelegate" >&6; }
29795else
cristy8b350f62009-11-15 23:12:43 +000029796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029797$as_echo "no" >&6; }
29798fi
29799
29800
29801
29802# Prefer lpr to lp; lp needs options tacked on.
29803if test "$LPRDelegate" != no; then
29804 PrintDelegate="$LPRDelegate"
29805else
29806 PrintDelegate="$LPDelegate -c -s"
29807fi
29808
29809
29810# Installed ImageMagick utiltity paths
29811ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29812DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29813MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29814
29815# Set delegate booleans
29816have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29817have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29818have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29819have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29820have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29821have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29822have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29823have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29824have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29825have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29826have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29827
29828#
29829# Test for font directories
29830#
29831type_include_files=''
29832
29833# Windows
29834windows_font_dir=''
29835if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29836 windows_font_dir="${with_windows_font_dir}/"
29837fi
29838if test -n "$windows_font_dir"; then
29839 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29840 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29841 fi
29842 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29843 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29844 fi
29845 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29846 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29847 fi
29848fi
29849if test -n "$windows_font_dir"; then
29850 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29851fi
29852
29853
29854# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000029855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29857ghostscript_font_dir=''
29858if test "${with_gs_font_dir}" != 'default'; then
29859 ghostscript_font_dir="${with_gs_font_dir}/"
29860else
29861 if test "${native_win32_build}" = 'yes'; then
29862 # Native Windows Build
29863 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29864 if test -f "${font_dir}a010013l.pfb"; then
29865 ghostscript_font_dir="$font_dir"
29866 break 1
29867 fi
29868 done
29869 if test "${PSDelegate}" != 'gswin32c'; then
29870 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29871 fi
29872 else
29873 # Linux / Mac OS X / Unix Build
29874 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
29875 if test -f "${font_dir}a010013l.pfb"; then
29876 ghostscript_font_dir="${font_dir}"
29877 break 1
29878 fi
29879 done
29880 if test "${ghostscript_font_dir}x" = 'x'; then
29881 if test "$PSDelegate" != 'gs'; then
29882 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29883 fi
29884 fi
29885 fi
29886fi
29887if test "${ghostscript_font_dir}x" != 'x'; then
29888 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000029890$as_echo "$ghostscript_font_dir" >&6; }
29891else
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo "not found!" >&6; };
29894fi
29895
29896case "${build_os}" in
29897 mingw* )
29898 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29899 ;;
29900esac
29901
29902
29903
29904#
29905# Handle case where user doesn't want frozen paths
29906#
29907if test "$with_frozenpaths" != 'yes'; then
29908 # Re-set delegate definitions to default (no paths)
29909 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29910 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29911 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29912 BZIPDelegate="$BZIPDelegateDefault"
29913 BrowseDelegate="$BrowseDelegateDefault"
29914 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29915 CatDelegate="$CatDelegateDefault"
29916 ConvertDelegate="$ConvertDelegateDefault"
29917 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29918 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
29919 EchoDelegate="$EchoDelegateDefault"
29920 EditorDelegate="$EditorDelegateDefault"
29921 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
29922 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
29923 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
29924 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
29925 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
29926 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
29927 LPDelegate="$LPDelegateDefault"
29928 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
29929 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
29930 LaunchDelegate="$LaunchDelegateDefault"
29931 MANDelegate="$MANDelegateDefault"
29932 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
29933 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
29934 MVDelegate="$MVDelegateDefault"
29935 MogrifyDelegate="$MogrifyDelegateDefault"
29936 PCLDelegate="$PCLDelegateDefault"
29937 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
29938 POVDelegate="$POVDelegateDefault"
29939 PSDelegate="$PSDelegateDefault"
29940 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
29941 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
29942 RMDelegate="$RMDelegateDefault"
29943 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
29944 ShowImageDelegate="$ShowImageDelegateDefault"
29945 TXTDelegate="$TXTDelegateDefault"
29946 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
29947 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
29948 XPSDelegate="$XPSDelegateDefault"
29949 ZipDelegate="$ZipDelegateDefault"
29950fi
29951
29952# Delegate substitutions
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
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995#
29996# RPM support.
29997#
29998RPM=''
29999for ac_prog in gnutar gtar tar
30000do
30001 # Extract the first word of "$ac_prog", so it can be a program name with args.
30002set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030005if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030006 $as_echo_n "(cached) " >&6
30007else
30008 if test -n "$TAR"; then
30009 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30010else
30011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30012for as_dir in $PATH
30013do
30014 IFS=$as_save_IFS
30015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30018 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020 break 2
30021 fi
30022done
cristy8b350f62009-11-15 23:12:43 +000030023 done
cristy3ed852e2009-09-05 21:47:34 +000030024IFS=$as_save_IFS
30025
30026fi
30027fi
30028TAR=$ac_cv_prog_TAR
30029if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000030030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000030031$as_echo "$TAR" >&6; }
30032else
cristy8b350f62009-11-15 23:12:43 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo "no" >&6; }
30035fi
30036
30037
30038 test -n "$TAR" && break
30039done
30040
30041for ac_prog in perl
30042do
30043 # Extract the first word of "$ac_prog", so it can be a program name with args.
30044set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030046$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030047if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030048 $as_echo_n "(cached) " >&6
30049else
30050 if test -n "$PERL"; then
30051 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30052else
30053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30054for as_dir in $PATH
30055do
30056 IFS=$as_save_IFS
30057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30060 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030062 break 2
30063 fi
30064done
cristy8b350f62009-11-15 23:12:43 +000030065 done
cristy3ed852e2009-09-05 21:47:34 +000030066IFS=$as_save_IFS
30067
30068fi
30069fi
30070PERL=$ac_cv_prog_PERL
30071if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo "$PERL" >&6; }
30074else
cristy8b350f62009-11-15 23:12:43 +000030075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030076$as_echo "no" >&6; }
30077fi
30078
30079
30080 test -n "$PERL" && break
30081done
30082
30083for ac_prog in rpmbuild rpm
30084do
30085 # Extract the first word of "$ac_prog", so it can be a program name with args.
30086set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030088$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030089if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030090 $as_echo_n "(cached) " >&6
30091else
30092 if test -n "$RPM"; then
30093 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30094else
30095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30096for as_dir in $PATH
30097do
30098 IFS=$as_save_IFS
30099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30102 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030104 break 2
30105 fi
30106done
cristy8b350f62009-11-15 23:12:43 +000030107 done
cristy3ed852e2009-09-05 21:47:34 +000030108IFS=$as_save_IFS
30109
30110fi
30111fi
30112RPM=$ac_cv_prog_RPM
30113if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000030114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000030115$as_echo "$RPM" >&6; }
30116else
cristy8b350f62009-11-15 23:12:43 +000030117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030118$as_echo "no" >&6; }
30119fi
30120
30121
30122 test -n "$RPM" && break
30123done
30124
30125
30126ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30127
30128
30129AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30130
30131
30132AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30133
30134
30135AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30136
30137
30138 if test "x$RPM" != "x" ; then
30139 RPM_DELEGATE_TRUE=
30140 RPM_DELEGATE_FALSE='#'
30141else
30142 RPM_DELEGATE_TRUE='#'
30143 RPM_DELEGATE_FALSE=
30144fi
30145
30146
30147#
30148# 7ZIP support (http://p7zip.sourceforge.net/)
30149#
30150P7ZIP=''
30151for ac_prog in 7za
30152do
30153 # Extract the first word of "$ac_prog", so it can be a program name with args.
30154set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030156$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030157if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030158 $as_echo_n "(cached) " >&6
30159else
30160 if test -n "$P7ZIP"; then
30161 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30162else
30163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30164for as_dir in $PATH
30165do
30166 IFS=$as_save_IFS
30167 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030168 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30170 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030172 break 2
30173 fi
30174done
cristy8b350f62009-11-15 23:12:43 +000030175 done
cristy3ed852e2009-09-05 21:47:34 +000030176IFS=$as_save_IFS
30177
30178fi
30179fi
30180P7ZIP=$ac_cv_prog_P7ZIP
30181if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030183$as_echo "$P7ZIP" >&6; }
30184else
cristy8b350f62009-11-15 23:12:43 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030186$as_echo "no" >&6; }
30187fi
30188
30189
30190 test -n "$P7ZIP" && break
30191done
30192
30193
30194 if test "x$P7ZIP" != "x" ; then
30195 P7ZIP_DELEGATE_TRUE=
30196 P7ZIP_DELEGATE_FALSE='#'
30197else
30198 P7ZIP_DELEGATE_TRUE='#'
30199 P7ZIP_DELEGATE_FALSE=
30200fi
30201
30202
30203#
30204# ZIP support (http://www.info-zip.org/Zip.html)
30205#
30206ZIP=''
30207for ac_prog in zip
30208do
30209 # Extract the first word of "$ac_prog", so it can be a program name with args.
30210set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030212$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030213if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030214 $as_echo_n "(cached) " >&6
30215else
30216 if test -n "$ZIP"; then
30217 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30218else
30219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30220for as_dir in $PATH
30221do
30222 IFS=$as_save_IFS
30223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30226 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228 break 2
30229 fi
30230done
cristy8b350f62009-11-15 23:12:43 +000030231 done
cristy3ed852e2009-09-05 21:47:34 +000030232IFS=$as_save_IFS
30233
30234fi
30235fi
30236ZIP=$ac_cv_prog_ZIP
30237if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000030238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000030239$as_echo "$ZIP" >&6; }
30240else
cristy8b350f62009-11-15 23:12:43 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030242$as_echo "no" >&6; }
30243fi
30244
30245
30246 test -n "$ZIP" && break
30247done
30248
30249
30250 if test "x$ZIP" != "x" ; then
30251 ZIP_DELEGATE_TRUE=
30252 ZIP_DELEGATE_FALSE='#'
30253else
30254 ZIP_DELEGATE_TRUE='#'
30255 ZIP_DELEGATE_FALSE=
30256fi
30257
30258
30259#
30260# GhostPCL related configuration.
30261#
30262PCLColorDevice=ppmraw
30263PCLCMYKDevice=bmpsep8
30264PCLMonoDevice=pbmraw
30265if test -z "$PCLVersion"; then
30266 PCLVersion='unknown'
30267fi
30268if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030270$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030272$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030274$as_echo "" >&6; }
30275 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000030276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030277$as_echo_n "checking for pcl color device... " >&6; }
30278 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30279 :
30280 else
30281 PCLColorDevice=ppmraw
30282 fi
cristy8b350f62009-11-15 23:12:43 +000030283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030284$as_echo "$PCLColorDevice" >&6; }
30285
30286 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030288$as_echo_n "checking for pcl CMYK device... " >&6; }
30289 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30290 :
30291 else
30292 PCLCMYKDevice=$PCLColorDevice
30293 fi
cristy8b350f62009-11-15 23:12:43 +000030294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030295$as_echo "$PCLCMYKDevice" >&6; }
30296
30297 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030299$as_echo_n "checking for pcl mono device... " >&6; }
30300 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30301 :
30302 else
30303 PCLMonoDevice=$PCLColorDevice
30304 fi
cristy8b350f62009-11-15 23:12:43 +000030305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030306$as_echo "$PCLMonoDevice" >&6; }
30307fi
30308
30309
30310
30311
30312
30313
30314#
30315# GhostXPS related configuration.
30316#
30317XPSColorDevice=ppmraw
30318XPSCMYKDevice=bmpsep8
30319XPSMonoDevice=pbmraw
30320if test -z "$XPSVersion"; then
30321 XPSVersion='unknown'
30322fi
30323if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030325$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030329$as_echo "" >&6; }
30330 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332$as_echo_n "checking for xps color device... " >&6; }
30333 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30334 :
30335 else
30336 XPSColorDevice=ppmraw
30337 fi
cristy8b350f62009-11-15 23:12:43 +000030338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030339$as_echo "$XPSColorDevice" >&6; }
30340
30341 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030343$as_echo_n "checking for xps CMYK device... " >&6; }
30344 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30345 :
30346 else
30347 XPSCMYKDevice=$XPSColorDevice
30348 fi
cristy8b350f62009-11-15 23:12:43 +000030349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030350$as_echo "$XPSCMYKDevice" >&6; }
30351
30352 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030354$as_echo_n "checking for xps mono device... " >&6; }
30355 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30356 :
30357 else
30358 XPSMonoDevice=$XPSColorDevice
30359 fi
cristy8b350f62009-11-15 23:12:43 +000030360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo "$XPSMonoDevice" >&6; }
30362fi
30363
30364
30365
30366
30367
30368
30369#
30370# Ghostscript related configuration.
30371#
30372if test "$have_png" = 'yes'; then
30373 GSAlphaDevice=pngalpha
30374else
30375 GSAlphaDevice=pnmraw
30376fi
30377GSColorDevice=pnmraw
30378GSCMYKDevice=pam
30379GSMonoDevice=pbmraw
30380GSPDFDevice=pdfwrite
30381GSPSDevice=pswrite
30382GSEPSDevice=epswrite
30383GSVersion='unknown'
30384if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030388$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030390$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo_n "checking for Ghostscript version... " >&6; }
30393 if GSVersion=`$PSDelegate --version`; then
30394 :
30395 else
30396 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30397 fi
cristy8b350f62009-11-15 23:12:43 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000030399$as_echo "$GSVersion" >&6; }
30400
30401 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000030402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030403$as_echo_n "checking for gs alpha device... " >&6; }
30404 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30405 :
30406 else
30407 GSAlphaDevice=pnmraw
30408 fi
cristy8b350f62009-11-15 23:12:43 +000030409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030410$as_echo "$GSAlphaDevice" >&6; }
30411
30412 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000030413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414$as_echo_n "checking for gs color device... " >&6; }
30415 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30416 :
30417 else
30418 GSColorDevice=pnmraw
30419 fi
cristy8b350f62009-11-15 23:12:43 +000030420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030421$as_echo "$GSColorDevice" >&6; }
30422
30423 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000030424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030425$as_echo_n "checking for gs CMYK device... " >&6; }
30426 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30427 :
30428 else
30429 GSCMYKDevice=bmpsep8
30430 fi
cristy8b350f62009-11-15 23:12:43 +000030431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030432$as_echo "$GSCMYKDevice" >&6; }
30433
30434 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000030435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030436$as_echo_n "checking for gs mono device... " >&6; }
30437 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30438 :
30439 else
30440 GSMonoDevice=$GSColorDevice
30441 fi
cristy8b350f62009-11-15 23:12:43 +000030442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030443$as_echo "$GSMonoDevice" >&6; }
30444
30445 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000030446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo_n "checking for gs PDF writing device... " >&6; }
30448 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30449 :
30450 else
30451 GSPDFDevice=nodevice
30452 fi
cristy8b350f62009-11-15 23:12:43 +000030453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030454$as_echo "$GSPDFDevice" >&6; }
30455
30456 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000030457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030458$as_echo_n "checking for gs PS writing device... " >&6; }
30459 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30460 :
30461 else
30462 GSPSDevice=nodevice
30463 fi
cristy8b350f62009-11-15 23:12:43 +000030464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030465$as_echo "$GSPSDevice" >&6; }
30466
30467 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000030468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000030469$as_echo_n "checking for gs EPS writing device... " >&6; }
30470 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30471 :
30472 else
30473 GSEPSDevice=nodevice
30474 fi
cristy8b350f62009-11-15 23:12:43 +000030475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000030476$as_echo "$GSEPSDevice" >&6; }
30477fi
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488#
30489# PerlMagick-related configuration
30490#
30491
30492# Look for PERL if PerlMagick requested
30493# If name/path of desired PERL interpreter is specified, look for that one first
30494have_perl='no'
30495if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030497$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030499$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030501$as_echo "" >&6; }
30502 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030504$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030505if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030506 $as_echo_n "(cached) " >&6
30507else
30508 ac_cv_path_PERL="$with_perl"
30509fi
cristy8b350f62009-11-15 23:12:43 +000030510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030511$as_echo "$ac_cv_path_PERL" >&6; };
30512 PERL=$ac_cv_path_PERL
30513 have_perl="$ac_cv_path_PERL"
30514 else
30515 for ac_prog in perl perl5
30516do
30517 # Extract the first word of "$ac_prog", so it can be a program name with args.
30518set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030520$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030521if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030522 $as_echo_n "(cached) " >&6
30523else
30524 case $PERL in
30525 [\\/]* | ?:[\\/]*)
30526 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30527 ;;
30528 *)
30529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530for as_dir in $PATH
30531do
30532 IFS=$as_save_IFS
30533 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030534 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030538 break 2
30539 fi
30540done
cristy8b350f62009-11-15 23:12:43 +000030541 done
cristy3ed852e2009-09-05 21:47:34 +000030542IFS=$as_save_IFS
30543
30544 ;;
30545esac
30546fi
30547PERL=$ac_cv_path_PERL
30548if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "$PERL" >&6; }
30551else
cristy8b350f62009-11-15 23:12:43 +000030552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030553$as_echo "no" >&6; }
30554fi
30555
30556
30557 test -n "$PERL" && break
30558done
30559 if test "$ac_cv_path_PERL"; then
30560 have_perl="$ac_cv_path_PERL"
30561 fi
30562 fi
30563fi
30564
cristy949301e2010-01-06 01:38:40 +000030565if test "$with_perl" != 'yes' ; then
30566 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
30567fi
30568
30569PERL_SUPPORTS_DESTDIR='no'
30570
cristy3ed852e2009-09-05 21:47:34 +000030571with_perl_static='no'
30572with_perl_dynamic='no'
30573if test "$have_perl" != 'no'; then
30574 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30575 with_perl_static='yes'
30576 fi
30577 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30578 with_perl_dynamic='yes'
30579 fi
30580 # Is PERL's MakeMaker new enough to support DESTDIR?
30581 # Make sure we have perl
30582if test -z "$PERL"; then
30583# Extract the first word of "perl", so it can be a program name with args.
30584set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030586$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030587if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030588 $as_echo_n "(cached) " >&6
30589else
30590 if test -n "$PERL"; then
30591 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30592else
30593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30594for as_dir in $PATH
30595do
30596 IFS=$as_save_IFS
30597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30600 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000030601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030602 break 2
30603 fi
30604done
cristy8b350f62009-11-15 23:12:43 +000030605 done
cristy3ed852e2009-09-05 21:47:34 +000030606IFS=$as_save_IFS
30607
30608fi
30609fi
30610PERL=$ac_cv_prog_PERL
30611if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000030612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000030613$as_echo "$PERL" >&6; }
30614else
cristy8b350f62009-11-15 23:12:43 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030616$as_echo "no" >&6; }
30617fi
30618
30619
30620fi
30621
30622# Check if version of Perl is sufficient
30623ac_perl_version="5.8.1"
30624
30625if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000030626 { $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 +000030627$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30628 # NB: It would be nice to log the error if there is one, but we cannot rely
30629 # on autoconf internals
30630 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30631 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000030632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030633$as_echo "no" >&6; };
30634 PERL_SUPPORTS_DESTDIR='no'
30635 else
cristy8b350f62009-11-15 23:12:43 +000030636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030637$as_echo "ok" >&6; };
30638 PERL_SUPPORTS_DESTDIR='yes'
30639 fi
30640else
cristy8b350f62009-11-15 23:12:43 +000030641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo "$as_me: WARNING: could not find perl" >&2;}
30643fi
30644
30645fi
30646 if test "$have_perl" != 'no'; then
30647 WITH_PERL_TRUE=
30648 WITH_PERL_FALSE='#'
30649else
30650 WITH_PERL_TRUE='#'
30651 WITH_PERL_FALSE=
30652fi
30653
30654 if test $with_perl_static = 'yes'; then
30655 WITH_PERL_STATIC_TRUE=
30656 WITH_PERL_STATIC_FALSE='#'
30657else
30658 WITH_PERL_STATIC_TRUE='#'
30659 WITH_PERL_STATIC_FALSE=
30660fi
30661
30662 if test $with_perl_dynamic = 'yes'; then
30663 WITH_PERL_DYNAMIC_TRUE=
30664 WITH_PERL_DYNAMIC_FALSE='#'
30665else
30666 WITH_PERL_DYNAMIC_TRUE='#'
30667 WITH_PERL_DYNAMIC_FALSE=
30668fi
30669
30670
30671
30672# Determine path to pick up MagickCore library from for use with building PerlMagick
30673MAGICKCORE_PATH="${LIB_DIR}"
30674if test $with_perl_static = 'yes'; then
30675 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30676 libtool_objdir=$objdir
30677
30678 # Linker search path to library, followed by -lMagickCore
30679 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30680fi
30681
30682
30683# Create a simple string containing format names for all delegate libraries
30684DELEGATES=''
30685if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30686if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30687if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30688if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30689if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30690if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30691if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30692if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30693if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30694if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30695if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30696if test "$have_jpeg" = 'yes'; then
30697 DELEGATES="$DELEGATES jpeg";
30698 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30699fi
30700if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30701if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30702if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30703if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30704if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30705if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30706if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30707if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30708if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30709if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30710if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30711if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30712
30713
30714
30715#
30716# Handle special compiler flags
30717#
30718
30719# Add '-p' if prof source profiling support enabled
30720if test "$enable_prof" = 'yes'; then
30721 CFLAGS="-p $CFLAGS"
30722 CXXFLAGS="-p $CXXFLAGS"
30723 LDFLAGS="-p $LDFLAGS"
30724fi
30725
30726# Add '-pg' if gprof source profiling support enabled
30727if test "$enable_gprof" = 'yes'; then
30728 CFLAGS="-pg $CFLAGS"
30729 CXXFLAGS="-pg $CXXFLAGS"
30730 LDFLAGS="-pg $LDFLAGS"
30731fi
30732
30733# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30734# This is a gcc-specific feature
30735if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030737$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030738if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030739 $as_echo_n "(cached) " >&6
30740else
30741 ac_check_lib_save_LIBS=$LIBS
30742LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030744/* end confdefs.h. */
30745
30746/* Override any GCC internal prototype to avoid an error.
30747 Use char because int might match the return type of a GCC
30748 builtin and then its argument prototype would still apply. */
30749#ifdef __cplusplus
30750extern "C"
30751#endif
30752char _gcov_init ();
30753int
30754main ()
30755{
30756return _gcov_init ();
30757 ;
30758 return 0;
30759}
30760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030762 ac_cv_lib_gcov__gcov_init=yes
30763else
cristy8b350f62009-11-15 23:12:43 +000030764 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030765fi
cristy8b350f62009-11-15 23:12:43 +000030766rm -f core conftest.err conftest.$ac_objext \
30767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030768LIBS=$ac_check_lib_save_LIBS
30769fi
cristy8b350f62009-11-15 23:12:43 +000030770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030771$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030772if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030773 cat >>confdefs.h <<_ACEOF
30774#define HAVE_LIBGCOV 1
30775_ACEOF
30776
30777 LIBS="-lgcov $LIBS"
30778
30779fi
30780
cristy8b350f62009-11-15 23:12:43 +000030781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000030782$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030783if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030784 $as_echo_n "(cached) " >&6
30785else
30786 ac_check_lib_save_LIBS=$LIBS
30787LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030789/* end confdefs.h. */
30790
30791/* Override any GCC internal prototype to avoid an error.
30792 Use char because int might match the return type of a GCC
30793 builtin and then its argument prototype would still apply. */
30794#ifdef __cplusplus
30795extern "C"
30796#endif
30797char __gcov_init ();
30798int
30799main ()
30800{
30801return __gcov_init ();
30802 ;
30803 return 0;
30804}
30805_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030806if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030807 ac_cv_lib_gcov___gcov_init=yes
30808else
cristy8b350f62009-11-15 23:12:43 +000030809 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000030810fi
cristy8b350f62009-11-15 23:12:43 +000030811rm -f core conftest.err conftest.$ac_objext \
30812 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030813LIBS=$ac_check_lib_save_LIBS
30814fi
cristy8b350f62009-11-15 23:12:43 +000030815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030817if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000030818 cat >>confdefs.h <<_ACEOF
30819#define HAVE_LIBGCOV 1
30820_ACEOF
30821
30822 LIBS="-lgcov $LIBS"
30823
30824fi
30825
30826 case "$target_os" in
30827 darwin*)
30828 OSX_GCOV_LDFLAG="-Wl,-single_module"
30829 ;;
30830 *)
30831 OSX_GCOV_LDFLAG=""
30832 ;;
30833 esac
30834
30835 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30836 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30837 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30838fi
30839
30840#
30841# Build library dependency list for libMagickCore
30842#
30843
30844MAGICK_LIBLTDL='' # Libltdl for build
30845MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30846MAGICK_LTDLDEPS='' # extra libltdl dependencies
30847if test "$with_ltdl" != 'no'
30848then
30849 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30850 MAGICK_API_LIBLTDL='-lltdl'
30851 fi
30852 MAGICK_LIBLTDL=${LIBLTDL}
30853 MAGICK_LTDLDEPS=${LTDLDEPS}
30854fi
30855
30856
30857
30858if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000030859 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 +000030860else
cristy2e8b51d2009-10-17 18:26:15 +000030861 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 +000030862fi
30863
30864
30865#
30866# Remove extraneous spaces from output variables (asthetic)
30867#
30868X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30869X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30870X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30871X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30872
30873CC=`echo $CC | sed -e 's/ */ /g'`
30874CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30875CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30876CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30877DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30878DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30879LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30880TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30881MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30882#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30883
30884# Pass only user-provided LIBS as "global" libraries
30885LIBS=$USER_LIBS
30886
30887#AC_SUBST(CPPFLAGS)
30888
30889#AC_SUBST(LDFLAGS)
30890#AC_SUBST(X_PRE_LIBS)
30891#AC_SUBST(X_LIBS)
30892#AC_SUBST(X_EXTRA_LIBS)
30893
30894MAGICK_CFLAGS=$CFLAGS
30895MAGICK_CXXFLAGS="$CXXFLAGS"
30896MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30897MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30898MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30899MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30900
30901
30902
30903
30904
30905
30906
30907
30908# Set configured scripts to executable.
30909ac_config_commands="$ac_config_commands default"
30910
30911ac_config_commands="$ac_config_commands MagickCore-config.in"
30912
30913ac_config_commands="$ac_config_commands Magick-config.in"
30914
30915ac_config_commands="$ac_config_commands MagickWand-config.in"
30916
30917ac_config_commands="$ac_config_commands Wand-config.in"
30918
30919ac_config_commands="$ac_config_commands Magick++-config.in"
30920
30921ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30922
30923
cristy8b350f62009-11-15 23:12:43 +000030924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030925$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000030927$as_echo "Update ImageMagick configuration" >&6; }
30928cat >confcache <<\_ACEOF
30929# This file is a shell script that caches the results of configure
30930# tests run on this system so they can be shared between configure
30931# scripts and configure runs, see configure's option --config-cache.
30932# It is not useful on other systems. If it contains results you don't
30933# want to keep, you may remove or edit it.
30934#
30935# config.status only pays attention to the cache file if you give it
30936# the --recheck option to rerun configure.
30937#
30938# `ac_cv_env_foo' variables (set or unset) will be overridden when
30939# loading this file, other *unset* `ac_cv_foo' will be assigned the
30940# following values.
30941
30942_ACEOF
30943
30944# The following way of writing the cache mishandles newlines in values,
30945# but we know of no workaround that is simple, portable, and efficient.
30946# So, we kill variables containing newlines.
30947# Ultrix sh set writes to stderr and can't be redirected directly,
30948# and sets the high bit in the cache file unless we assign to the vars.
30949(
30950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30951 eval ac_val=\$$ac_var
30952 case $ac_val in #(
30953 *${as_nl}*)
30954 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000030955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30957 esac
30958 case $ac_var in #(
30959 _ | IFS | as_nl) ;; #(
30960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000030961 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000030962 esac ;;
30963 esac
30964 done
30965
30966 (set) 2>&1 |
30967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30968 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000030969 # `set' does not quote correctly, so add quotes: double-quote
30970 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000030971 sed -n \
30972 "s/'/'\\\\''/g;
30973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30974 ;; #(
30975 *)
30976 # `set' quotes correctly as required by POSIX, so do not add quotes.
30977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30978 ;;
30979 esac |
30980 sort
30981) |
30982 sed '
30983 /^ac_cv_env_/b end
30984 t clear
30985 :clear
30986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30987 t end
30988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30989 :end' >>confcache
30990if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30991 if test -w "$cache_file"; then
30992 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000030993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030994$as_echo "$as_me: updating cache $cache_file" >&6;}
30995 cat confcache >$cache_file
30996 else
cristy8b350f62009-11-15 23:12:43 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000030998$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30999 fi
31000fi
31001rm -f confcache
31002
31003test "x$prefix" = xNONE && prefix=$ac_default_prefix
31004# Let make expand exec_prefix.
31005test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31006
31007DEFS=-DHAVE_CONFIG_H
31008
31009ac_libobjs=
31010ac_ltlibobjs=
31011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31012 # 1. Remove the extension, and $U if already installed.
31013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31016 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000031017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000031019done
31020LIBOBJS=$ac_libobjs
31021
31022LTLIBOBJS=$ac_ltlibobjs
31023
31024
31025 if test -n "$EXEEXT"; then
31026 am__EXEEXT_TRUE=
31027 am__EXEEXT_FALSE='#'
31028else
31029 am__EXEEXT_TRUE='#'
31030 am__EXEEXT_FALSE=
31031fi
31032
31033if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031034 as_fn_error "conditional \"AMDEP\" was never defined.
31035Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031036fi
31037if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031038 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31039Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031040fi
31041if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031042 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31043Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031044fi
31045if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031046 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31047Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031048fi
31049if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031050 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31051Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031052fi
31053if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031054 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31055Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031056fi
31057if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031058 as_fn_error "conditional \"USING_CL\" was never defined.
31059Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031060fi
cristy18304f92009-11-22 15:48:26 +000031061if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31062 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31063Usually this means the macro was only invoked conditionally." "$LINENO" 5
31064fi
cristy3ed852e2009-09-05 21:47:34 +000031065if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031066 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31067Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031068fi
31069if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031070 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31071Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031072fi
31073LT_CONFIG_H=config/config.h
31074
31075 _ltdl_libobjs=
31076 _ltdl_ltlibobjs=
31077 if test -n "$_LT_LIBOBJS"; then
31078 # Remove the extension.
31079 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31080 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31081 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31082 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31083 done
31084 fi
31085 ltdl_LIBOBJS=$_ltdl_libobjs
31086
31087 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31088
31089
cristyfa112112010-01-04 17:48:07 +000031090if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
31091 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
31092Usually this means the macro was only invoked conditionally." "$LINENO" 5
31093fi
cristy3ed852e2009-09-05 21:47:34 +000031094if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031095 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31096Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031097fi
31098if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031099 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31100Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031101fi
31102if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031103 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31104Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031105fi
31106
31107if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031108 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31109Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031110fi
31111if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031112 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31113Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031114fi
31115if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031116 as_fn_error "conditional \"HasUMEM\" was never defined.
31117Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031118fi
31119if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031120 as_fn_error "conditional \"BZLIB_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 "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031124 as_fn_error "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031128 as_fn_error "conditional \"ZLIB_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 "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031132 as_fn_error "conditional \"AUTOTRACE_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 "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031136 as_fn_error "conditional \"DPS_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 "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031140 as_fn_error "conditional \"DJVU_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 "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031144 as_fn_error "conditional \"FFTW_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 "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031148 as_fn_error "conditional \"FPX_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 "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031152 as_fn_error "conditional \"FONTCONFIG_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 "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031156 as_fn_error "conditional \"FREETYPE_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 "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031160 as_fn_error "conditional \"GS_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 "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031164 as_fn_error "conditional \"GVC_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 "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031168 as_fn_error "conditional \"JBIG_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 "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031172 as_fn_error "conditional \"JPEG_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 "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031176 as_fn_error "conditional \"JP2_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 "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031180 as_fn_error "conditional \"LCMS_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 "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031184 as_fn_error "conditional \"LQR_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 "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031188 as_fn_error "conditional \"OPENEXR_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 "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031192 as_fn_error "conditional \"PNG_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 "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031196 as_fn_error "conditional \"RSVG_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 "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031200 as_fn_error "conditional \"CAIRO_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 "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031204 as_fn_error "conditional \"TIFF_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 "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031208 as_fn_error "conditional \"WMF_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 "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031212 as_fn_error "conditional \"XML_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 "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031216 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31217Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031218fi
31219if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031220 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31221Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031222fi
31223if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031224 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31225Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031226fi
31227if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031228 as_fn_error "conditional \"WITH_PERL\" was never defined.
31229Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031230fi
31231if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031232 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31233Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031234fi
31235if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000031236 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31237Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000031238fi
31239
31240: ${CONFIG_STATUS=./config.status}
31241ac_write_fail=0
31242ac_clean_files_save=$ac_clean_files
31243ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000031244{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031245$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031246as_write_fail=0
31247cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031248#! $SHELL
31249# Generated by $as_me.
31250# Run this file to recreate the current configuration.
31251# Compiler output produced by configure, useful for debugging
31252# configure, is in config.log if it exists.
31253
31254debug=false
31255ac_cs_recheck=false
31256ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000031257
cristy8b350f62009-11-15 23:12:43 +000031258SHELL=\${CONFIG_SHELL-$SHELL}
31259export SHELL
31260_ASEOF
31261cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31262## -------------------- ##
31263## M4sh Initialization. ##
31264## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000031265
31266# Be more Bourne compatible
31267DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000031268if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000031269 emulate sh
31270 NULLCMD=:
31271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31272 # is contrary to our usage. Disable this feature.
31273 alias -g '${1+"$@"}'='"$@"'
31274 setopt NO_GLOB_SUBST
31275else
cristy8b350f62009-11-15 23:12:43 +000031276 case `(set -o) 2>/dev/null` in #(
31277 *posix*) :
31278 set -o posix ;; #(
31279 *) :
31280 ;;
cristy3ed852e2009-09-05 21:47:34 +000031281esac
cristy3ed852e2009-09-05 21:47:34 +000031282fi
31283
31284
cristy3ed852e2009-09-05 21:47:34 +000031285as_nl='
31286'
31287export as_nl
31288# Printing a long string crashes Solaris 7 /usr/bin/printf.
31289as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31290as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31291as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000031292# Prefer a ksh shell builtin over an external printf program on Solaris,
31293# but without wasting forks for bash or zsh.
31294if test -z "$BASH_VERSION$ZSH_VERSION" \
31295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31296 as_echo='print -r --'
31297 as_echo_n='print -rn --'
31298elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000031299 as_echo='printf %s\n'
31300 as_echo_n='printf %s'
31301else
31302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31304 as_echo_n='/usr/ucb/echo -n'
31305 else
31306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31307 as_echo_n_body='eval
31308 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000031309 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000031310 *"$as_nl"*)
31311 expr "X$arg" : "X\\(.*\\)$as_nl";
31312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31313 esac;
31314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31315 '
31316 export as_echo_n_body
31317 as_echo_n='sh -c $as_echo_n_body as_echo'
31318 fi
31319 export as_echo_body
31320 as_echo='sh -c $as_echo_body as_echo'
31321fi
31322
31323# The user is always right.
31324if test "${PATH_SEPARATOR+set}" != set; then
31325 PATH_SEPARATOR=:
31326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31328 PATH_SEPARATOR=';'
31329 }
31330fi
31331
cristy3ed852e2009-09-05 21:47:34 +000031332
31333# IFS
31334# We need space, tab and new line, in precisely that order. Quoting is
31335# there to prevent editors from complaining about space-tab.
31336# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31337# splitting by setting IFS to empty value.)
31338IFS=" "" $as_nl"
31339
31340# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000031341case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000031342 *[\\/]* ) as_myself=$0 ;;
31343 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31344for as_dir in $PATH
31345do
31346 IFS=$as_save_IFS
31347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031348 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31349 done
cristy3ed852e2009-09-05 21:47:34 +000031350IFS=$as_save_IFS
31351
31352 ;;
31353esac
31354# We did not find ourselves, most probably we were run as `sh COMMAND'
31355# in which case we are not to be found in the path.
31356if test "x$as_myself" = x; then
31357 as_myself=$0
31358fi
31359if test ! -f "$as_myself"; then
31360 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000031361 exit 1
cristy3ed852e2009-09-05 21:47:34 +000031362fi
31363
cristy8b350f62009-11-15 23:12:43 +000031364# Unset variables that we do not need and which cause bugs (e.g. in
31365# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31366# suppresses any "Segmentation fault" message there. '((' could
31367# trigger a bug in pdksh 5.2.14.
31368for as_var in BASH_ENV ENV MAIL MAILPATH
31369do eval test x\${$as_var+set} = xset \
31370 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000031371done
31372PS1='$ '
31373PS2='> '
31374PS4='+ '
31375
31376# NLS nuisances.
31377LC_ALL=C
31378export LC_ALL
31379LANGUAGE=C
31380export LANGUAGE
31381
cristy8b350f62009-11-15 23:12:43 +000031382# CDPATH.
31383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31384
31385
31386# as_fn_error ERROR [LINENO LOG_FD]
31387# ---------------------------------
31388# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31389# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31390# script with status $?, using 1 if that was 0.
31391as_fn_error ()
31392{
31393 as_status=$?; test $as_status -eq 0 && as_status=1
31394 if test "$3"; then
31395 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31396 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31397 fi
31398 $as_echo "$as_me: error: $1" >&2
31399 as_fn_exit $as_status
31400} # as_fn_error
31401
31402
31403# as_fn_set_status STATUS
31404# -----------------------
31405# Set $? to STATUS, without forking.
31406as_fn_set_status ()
31407{
31408 return $1
31409} # as_fn_set_status
31410
31411# as_fn_exit STATUS
31412# -----------------
31413# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31414as_fn_exit ()
31415{
31416 set +e
31417 as_fn_set_status $1
31418 exit $1
31419} # as_fn_exit
31420
31421# as_fn_unset VAR
31422# ---------------
31423# Portably unset VAR.
31424as_fn_unset ()
31425{
31426 { eval $1=; unset $1;}
31427}
31428as_unset=as_fn_unset
31429# as_fn_append VAR VALUE
31430# ----------------------
31431# Append the text in VALUE to the end of the definition contained in VAR. Take
31432# advantage of any shell optimizations that allow amortized linear growth over
31433# repeated appends, instead of the typical quadratic growth present in naive
31434# implementations.
31435if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31436 eval 'as_fn_append ()
31437 {
31438 eval $1+=\$2
31439 }'
31440else
31441 as_fn_append ()
31442 {
31443 eval $1=\$$1\$2
31444 }
31445fi # as_fn_append
31446
31447# as_fn_arith ARG...
31448# ------------------
31449# Perform arithmetic evaluation on the ARGs, and store the result in the
31450# global $as_val. Take advantage of shells that can avoid forks. The arguments
31451# must be portable across $(()) and expr.
31452if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31453 eval 'as_fn_arith ()
31454 {
31455 as_val=$(( $* ))
31456 }'
31457else
31458 as_fn_arith ()
31459 {
31460 as_val=`expr "$@" || test $? -eq 1`
31461 }
31462fi # as_fn_arith
31463
31464
cristy3ed852e2009-09-05 21:47:34 +000031465if expr a : '\(a\)' >/dev/null 2>&1 &&
31466 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31467 as_expr=expr
31468else
31469 as_expr=false
31470fi
31471
31472if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31473 as_basename=basename
31474else
31475 as_basename=false
31476fi
31477
cristy8b350f62009-11-15 23:12:43 +000031478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31479 as_dirname=dirname
31480else
31481 as_dirname=false
31482fi
cristy3ed852e2009-09-05 21:47:34 +000031483
cristy3ed852e2009-09-05 21:47:34 +000031484as_me=`$as_basename -- "$0" ||
31485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31486 X"$0" : 'X\(//\)$' \| \
31487 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31488$as_echo X/"$0" |
31489 sed '/^.*\/\([^/][^/]*\)\/*$/{
31490 s//\1/
31491 q
31492 }
31493 /^X\/\(\/\/\)$/{
31494 s//\1/
31495 q
31496 }
31497 /^X\/\(\/\).*/{
31498 s//\1/
31499 q
31500 }
31501 s/.*/./; q'`
31502
cristy8b350f62009-11-15 23:12:43 +000031503# Avoid depending upon Character Ranges.
31504as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31506as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31507as_cr_digits='0123456789'
31508as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000031509
31510ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000031511case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000031512-n*)
cristy8b350f62009-11-15 23:12:43 +000031513 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000031514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000031515 xy) ECHO_C='\c';;
31516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31517 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000031518 esac;;
31519*)
31520 ECHO_N='-n';;
31521esac
cristy3ed852e2009-09-05 21:47:34 +000031522
31523rm -f conf$$ conf$$.exe conf$$.file
31524if test -d conf$$.dir; then
31525 rm -f conf$$.dir/conf$$.file
31526else
31527 rm -f conf$$.dir
31528 mkdir conf$$.dir 2>/dev/null
31529fi
31530if (echo >conf$$.file) 2>/dev/null; then
31531 if ln -s conf$$.file conf$$ 2>/dev/null; then
31532 as_ln_s='ln -s'
31533 # ... but there are two gotchas:
31534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31536 # In both cases, we have to default to `cp -p'.
31537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31538 as_ln_s='cp -p'
31539 elif ln conf$$.file conf$$ 2>/dev/null; then
31540 as_ln_s=ln
31541 else
31542 as_ln_s='cp -p'
31543 fi
31544else
31545 as_ln_s='cp -p'
31546fi
31547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31548rmdir conf$$.dir 2>/dev/null
31549
cristy8b350f62009-11-15 23:12:43 +000031550
31551# as_fn_mkdir_p
31552# -------------
31553# Create "$as_dir" as a directory, including parents if necessary.
31554as_fn_mkdir_p ()
31555{
31556
31557 case $as_dir in #(
31558 -*) as_dir=./$as_dir;;
31559 esac
31560 test -d "$as_dir" || eval $as_mkdir_p || {
31561 as_dirs=
31562 while :; do
31563 case $as_dir in #(
31564 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31565 *) as_qdir=$as_dir;;
31566 esac
31567 as_dirs="'$as_qdir' $as_dirs"
31568 as_dir=`$as_dirname -- "$as_dir" ||
31569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31570 X"$as_dir" : 'X\(//\)[^/]' \| \
31571 X"$as_dir" : 'X\(//\)$' \| \
31572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31573$as_echo X"$as_dir" |
31574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31575 s//\1/
31576 q
31577 }
31578 /^X\(\/\/\)[^/].*/{
31579 s//\1/
31580 q
31581 }
31582 /^X\(\/\/\)$/{
31583 s//\1/
31584 q
31585 }
31586 /^X\(\/\).*/{
31587 s//\1/
31588 q
31589 }
31590 s/.*/./; q'`
31591 test -d "$as_dir" && break
31592 done
31593 test -z "$as_dirs" || eval "mkdir $as_dirs"
31594 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31595
31596
31597} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000031598if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000031599 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000031600else
31601 test -d ./-p && rmdir ./-p
31602 as_mkdir_p=false
31603fi
31604
31605if test -x / >/dev/null 2>&1; then
31606 as_test_x='test -x'
31607else
31608 if ls -dL / >/dev/null 2>&1; then
31609 as_ls_L_option=L
31610 else
31611 as_ls_L_option=
31612 fi
31613 as_test_x='
31614 eval sh -c '\''
31615 if test -d "$1"; then
31616 test -d "$1/.";
31617 else
cristy8b350f62009-11-15 23:12:43 +000031618 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000031619 -*)set "./$1";;
31620 esac;
cristy8b350f62009-11-15 23:12:43 +000031621 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000031622 ???[sx]*):;;*)false;;esac;fi
31623 '\'' sh
31624 '
31625fi
31626as_executable_p=$as_test_x
31627
31628# Sed expression to map a string onto a valid CPP name.
31629as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31630
31631# Sed expression to map a string onto a valid variable name.
31632as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31633
31634
31635exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000031636## ----------------------------------- ##
31637## Main body of $CONFIG_STATUS script. ##
31638## ----------------------------------- ##
31639_ASEOF
31640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000031641
cristy8b350f62009-11-15 23:12:43 +000031642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31643# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000031644# report actual input values of CONFIG_FILES etc. instead of their
31645# values after options handling.
31646ac_log="
cristydc0f0892009-12-29 02:21:55 +000031647This file was extended by ImageMagick $as_me 6.5.9, which was
cristycd4c5312009-11-22 01:19:08 +000031648generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000031649
31650 CONFIG_FILES = $CONFIG_FILES
31651 CONFIG_HEADERS = $CONFIG_HEADERS
31652 CONFIG_LINKS = $CONFIG_LINKS
31653 CONFIG_COMMANDS = $CONFIG_COMMANDS
31654 $ $0 $@
31655
31656on `(hostname || uname -n) 2>/dev/null | sed 1q`
31657"
31658
31659_ACEOF
31660
31661case $ac_config_files in *"
31662"*) set x $ac_config_files; shift; ac_config_files=$*;;
31663esac
31664
31665case $ac_config_headers in *"
31666"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31667esac
31668
31669
31670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31671# Files that config.status was made for.
31672config_files="$ac_config_files"
31673config_headers="$ac_config_headers"
31674config_commands="$ac_config_commands"
31675
31676_ACEOF
31677
31678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31679ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000031680\`$as_me' instantiates files and other configuration actions
31681from templates according to the current configuration. Unless the files
31682and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000031683
cristy8b350f62009-11-15 23:12:43 +000031684Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000031685
31686 -h, --help print this help, then exit
31687 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000031688 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000031689 -q, --quiet, --silent
31690 do not print progress messages
31691 -d, --debug don't remove temporary files
31692 --recheck update $as_me by reconfiguring in the same conditions
31693 --file=FILE[:TEMPLATE]
31694 instantiate the configuration file FILE
31695 --header=FILE[:TEMPLATE]
31696 instantiate the configuration header FILE
31697
31698Configuration files:
31699$config_files
31700
31701Configuration headers:
31702$config_headers
31703
31704Configuration commands:
31705$config_commands
31706
cristy8b350f62009-11-15 23:12:43 +000031707Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000031708
31709_ACEOF
31710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000031711ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000031712ac_cs_version="\\
cristydc0f0892009-12-29 02:21:55 +000031713ImageMagick config.status 6.5.9
cristycd4c5312009-11-22 01:19:08 +000031714configured by $0, generated by GNU Autoconf 2.65,
31715 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000031716
cristy8b350f62009-11-15 23:12:43 +000031717Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000031718This config.status script is free software; the Free Software Foundation
31719gives unlimited permission to copy, distribute and modify it."
31720
31721ac_pwd='$ac_pwd'
31722srcdir='$srcdir'
31723INSTALL='$INSTALL'
31724MKDIR_P='$MKDIR_P'
31725AWK='$AWK'
31726test -n "\$AWK" || AWK=awk
31727_ACEOF
31728
31729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31730# The default lists apply if the user does not specify any file.
31731ac_need_defaults=:
31732while test $# != 0
31733do
31734 case $1 in
31735 --*=*)
31736 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31737 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31738 ac_shift=:
31739 ;;
31740 *)
31741 ac_option=$1
31742 ac_optarg=$2
31743 ac_shift=shift
31744 ;;
31745 esac
31746
31747 case $ac_option in
31748 # Handling of the options.
31749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31750 ac_cs_recheck=: ;;
31751 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31752 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000031753 --config | --confi | --conf | --con | --co | --c )
31754 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000031755 --debug | --debu | --deb | --de | --d | -d )
31756 debug=: ;;
31757 --file | --fil | --fi | --f )
31758 $ac_shift
31759 case $ac_optarg in
31760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31761 esac
cristy8b350f62009-11-15 23:12:43 +000031762 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031763 ac_need_defaults=false;;
31764 --header | --heade | --head | --hea )
31765 $ac_shift
31766 case $ac_optarg in
31767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31768 esac
cristy8b350f62009-11-15 23:12:43 +000031769 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000031770 ac_need_defaults=false;;
31771 --he | --h)
31772 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000031773 as_fn_error "ambiguous option: \`$1'
31774Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000031775 --help | --hel | -h )
31776 $as_echo "$ac_cs_usage"; exit ;;
31777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31779 ac_cs_silent=: ;;
31780
31781 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000031782 -*) as_fn_error "unrecognized option: \`$1'
31783Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000031784
cristy8b350f62009-11-15 23:12:43 +000031785 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000031786 ac_need_defaults=false ;;
31787
31788 esac
31789 shift
31790done
31791
31792ac_configure_extra_args=
31793
31794if $ac_cs_silent; then
31795 exec 6>/dev/null
31796 ac_configure_extra_args="$ac_configure_extra_args --silent"
31797fi
31798
31799_ACEOF
31800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31801if \$ac_cs_recheck; then
31802 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31803 shift
31804 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31805 CONFIG_SHELL='$SHELL'
31806 export CONFIG_SHELL
31807 exec "\$@"
31808fi
31809
31810_ACEOF
31811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31812exec 5>>config.log
31813{
31814 echo
31815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31816## Running $as_me. ##
31817_ASBOX
31818 $as_echo "$ac_log"
31819} >&5
31820
31821_ACEOF
31822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31823#
31824# INIT-COMMANDS
31825#
31826PACKAGE="$PACKAGE"
31827AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31828
31829
31830# The HP-UX ksh and POSIX shell print the target directory to stdout
31831# if CDPATH is set.
31832(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31833
31834sed_quote_subst='$sed_quote_subst'
31835double_quote_subst='$double_quote_subst'
31836delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000031837SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31838Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31839GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31840EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31841FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31842LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31843macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31844macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31845AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31846DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31847OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31848enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31849enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31850pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31851enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31852host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31853host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31854host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31855build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31856build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31857build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31858NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31859LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31860max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31861ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31862exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31863lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31864lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31865lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31866reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31867reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31868deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31869file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31870AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31871AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31872STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31873RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31874old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31875old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31876old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31877CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31878CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31879compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31880GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31881lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31882lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31883lt_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"`'
31884lt_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"`'
31885objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31886SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31887ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31888MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31889lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31890lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31891lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31892lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31893lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31894need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31895DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31896NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31897LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31898OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31899OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31900libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31901shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31902extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31903archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31904enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31905export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31906whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31907compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31908old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31909old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31910archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31911archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31912module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31913module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31914with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31915allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31916no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31917hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31918hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31919hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31920hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31921hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31922hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31923hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31924hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31925inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31926link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31927fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31928always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31929export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31930exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31931include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31932prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31933file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31934variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31935need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31936need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31937version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31938runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31939shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31940shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31941libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31942library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31943soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31944postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31945postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31946finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31947finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31948hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31949sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31950sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31951hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31952enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31953enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31954enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31955old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31956striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31957compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31958predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31959postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31960predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31961postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31962compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31963LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31964old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31965compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31966GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31967lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31968lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31969lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31970lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31971lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31972archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31973enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31974export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31975whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31976compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31977old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31978old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31979archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31980archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31981module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31982module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31983with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31984allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31985no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31986hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31987hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31988hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31989hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31990hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31991hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31992hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31993hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31994inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31995link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31996fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31997always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31998export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31999exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32000include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32001prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32002file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32003hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32004compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32005predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32006postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32007predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32008postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32009compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000032010
32011LTCC='$LTCC'
32012LTCFLAGS='$LTCFLAGS'
32013compiler='$compiler_DEFAULT'
32014
32015# Quote evaled strings.
32016for var in SED \
32017GREP \
32018EGREP \
32019FGREP \
32020LD \
32021NM \
32022LN_S \
32023lt_SP2NL \
32024lt_NL2SP \
32025reload_flag \
32026deplibs_check_method \
32027file_magic_cmd \
32028AR \
32029AR_FLAGS \
32030STRIP \
32031RANLIB \
32032CC \
32033CFLAGS \
32034compiler \
32035lt_cv_sys_global_symbol_pipe \
32036lt_cv_sys_global_symbol_to_cdecl \
32037lt_cv_sys_global_symbol_to_c_name_address \
32038lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000032039SHELL \
32040ECHO \
cristy3ed852e2009-09-05 21:47:34 +000032041lt_prog_compiler_no_builtin_flag \
32042lt_prog_compiler_wl \
32043lt_prog_compiler_pic \
32044lt_prog_compiler_static \
32045lt_cv_prog_compiler_c_o \
32046need_locks \
32047DSYMUTIL \
32048NMEDIT \
32049LIPO \
32050OTOOL \
32051OTOOL64 \
32052shrext_cmds \
32053export_dynamic_flag_spec \
32054whole_archive_flag_spec \
32055compiler_needs_object \
32056with_gnu_ld \
32057allow_undefined_flag \
32058no_undefined_flag \
32059hardcode_libdir_flag_spec \
32060hardcode_libdir_flag_spec_ld \
32061hardcode_libdir_separator \
32062fix_srcfile_path \
32063exclude_expsyms \
32064include_expsyms \
32065file_list_spec \
32066variables_saved_for_relink \
32067libname_spec \
32068library_names_spec \
32069soname_spec \
32070finish_eval \
32071old_striplib \
32072striplib \
32073compiler_lib_search_dirs \
32074predep_objects \
32075postdep_objects \
32076predeps \
32077postdeps \
32078compiler_lib_search_path \
32079LD_CXX \
32080compiler_CXX \
32081lt_prog_compiler_no_builtin_flag_CXX \
32082lt_prog_compiler_wl_CXX \
32083lt_prog_compiler_pic_CXX \
32084lt_prog_compiler_static_CXX \
32085lt_cv_prog_compiler_c_o_CXX \
32086export_dynamic_flag_spec_CXX \
32087whole_archive_flag_spec_CXX \
32088compiler_needs_object_CXX \
32089with_gnu_ld_CXX \
32090allow_undefined_flag_CXX \
32091no_undefined_flag_CXX \
32092hardcode_libdir_flag_spec_CXX \
32093hardcode_libdir_flag_spec_ld_CXX \
32094hardcode_libdir_separator_CXX \
32095fix_srcfile_path_CXX \
32096exclude_expsyms_CXX \
32097include_expsyms_CXX \
32098file_list_spec_CXX \
32099compiler_lib_search_dirs_CXX \
32100predep_objects_CXX \
32101postdep_objects_CXX \
32102predeps_CXX \
32103postdeps_CXX \
32104compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000032105 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032106 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000032108 ;;
32109 *)
32110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32111 ;;
32112 esac
32113done
32114
32115# Double-quote double-evaled strings.
32116for var in reload_cmds \
32117old_postinstall_cmds \
32118old_postuninstall_cmds \
32119old_archive_cmds \
32120extract_expsyms_cmds \
32121old_archive_from_new_cmds \
32122old_archive_from_expsyms_cmds \
32123archive_cmds \
32124archive_expsym_cmds \
32125module_cmds \
32126module_expsym_cmds \
32127export_symbols_cmds \
32128prelink_cmds \
32129postinstall_cmds \
32130postuninstall_cmds \
32131finish_cmds \
32132sys_lib_search_path_spec \
32133sys_lib_dlsearch_path_spec \
32134old_archive_cmds_CXX \
32135old_archive_from_new_cmds_CXX \
32136old_archive_from_expsyms_cmds_CXX \
32137archive_cmds_CXX \
32138archive_expsym_cmds_CXX \
32139module_cmds_CXX \
32140module_expsym_cmds_CXX \
32141export_symbols_cmds_CXX \
32142prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000032143 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000032144 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000032145 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 +000032146 ;;
32147 *)
32148 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32149 ;;
32150 esac
32151done
32152
cristy18304f92009-11-22 15:48:26 +000032153# Fix-up fallback echo if it was mangled by the above quoting rules.
32154case \$lt_ECHO in
32155*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32156 ;;
32157esac
32158
cristy3ed852e2009-09-05 21:47:34 +000032159ac_aux_dir='$ac_aux_dir'
32160xsi_shell='$xsi_shell'
32161lt_shell_append='$lt_shell_append'
32162
32163# See if we are running on zsh, and set the options which allow our
32164# commands through without removal of \ escapes INIT.
32165if test -n "\${ZSH_VERSION+set}" ; then
32166 setopt NO_GLOB_SUBST
32167fi
32168
32169
32170 PACKAGE='$PACKAGE'
32171 VERSION='$VERSION'
32172 TIMESTAMP='$TIMESTAMP'
32173 RM='$RM'
32174 ofile='$ofile'
32175
32176
32177
32178
32179
32180
32181_ACEOF
32182
32183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32184
32185# Handling of arguments.
32186for ac_config_target in $ac_config_targets
32187do
32188 case $ac_config_target in
32189 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32190 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32191 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32192 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32193 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32194 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32195 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32196 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32197 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32198 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32199 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32200 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32201 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32202 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32203 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32204 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32205 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32206 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32207 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32209 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32210 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32211 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32212 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32213 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32214 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32215 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32216 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32217 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32218 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32219 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32220 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32221 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32222 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32223 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32224 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32225 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32226 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32227 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32228 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32229 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32230 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32231 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32232 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32233 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32234 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32235 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32236 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32237 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32238
cristy8b350f62009-11-15 23:12:43 +000032239 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032240 esac
32241done
32242
32243
32244# If the user did not use the arguments to specify the items to instantiate,
32245# then the envvar interface is used. Set only those that are not.
32246# We use the long form for the default assignment because of an extremely
32247# bizarre bug on SunOS 4.1.3.
32248if $ac_need_defaults; then
32249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32252fi
32253
32254# Have a temporary directory for convenience. Make it in the build tree
32255# simply because there is no reason against having it here, and in addition,
32256# creating and moving files from /tmp can sometimes cause problems.
32257# Hook for its removal unless debugging.
32258# Note that there is a small window in which the directory will not be cleaned:
32259# after its creation but before its name has been assigned to `$tmp'.
32260$debug ||
32261{
32262 tmp=
32263 trap 'exit_status=$?
32264 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32265' 0
cristy8b350f62009-11-15 23:12:43 +000032266 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000032267}
32268# Create a (secure) tmp directory for tmp files.
32269
32270{
32271 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32272 test -n "$tmp" && test -d "$tmp"
32273} ||
32274{
32275 tmp=./conf$$-$RANDOM
32276 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000032277} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032278
32279# Set up the scripts for CONFIG_FILES section.
32280# No need to generate them if there are no CONFIG_FILES.
32281# This happens for instance with `./config.status config.h'.
32282if test -n "$CONFIG_FILES"; then
32283
32284
cristy8b350f62009-11-15 23:12:43 +000032285ac_cr=`echo X | tr X '\015'`
32286# On cygwin, bash can eat \r inside `` if the user requested igncr.
32287# But we know of no other shell where ac_cr would be empty at this
32288# point, so we can use a bashism as a fallback.
32289if test "x$ac_cr" = x; then
32290 eval ac_cr=\$\'\\r\'
32291fi
cristy3ed852e2009-09-05 21:47:34 +000032292ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32293if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000032294 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000032295else
32296 ac_cs_awk_cr=$ac_cr
32297fi
32298
32299echo 'BEGIN {' >"$tmp/subs1.awk" &&
32300_ACEOF
32301
32302
32303{
32304 echo "cat >conf$$subs.awk <<_ACEOF" &&
32305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32306 echo "_ACEOF"
32307} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032308 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032309ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32310ac_delim='%!_!# '
32311for ac_last_try in false false false false false :; do
32312 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000032313 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032314
32315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32316 if test $ac_delim_n = $ac_delim_num; then
32317 break
32318 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032319 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032320 else
32321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32322 fi
32323done
32324rm -f conf$$subs.sh
32325
32326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32327cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32328_ACEOF
32329sed -n '
32330h
32331s/^/S["/; s/!.*/"]=/
32332p
32333g
32334s/^[^!]*!//
32335:repl
32336t repl
32337s/'"$ac_delim"'$//
32338t delim
32339:nl
32340h
cristycd4c5312009-11-22 01:19:08 +000032341s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032342t more1
32343s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32344p
32345n
32346b repl
32347:more1
32348s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32349p
32350g
32351s/.\{148\}//
32352t nl
32353:delim
32354h
cristycd4c5312009-11-22 01:19:08 +000032355s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000032356t more2
32357s/["\\]/\\&/g; s/^/"/; s/$/"/
32358p
32359b
32360:more2
32361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32362p
32363g
32364s/.\{148\}//
32365t delim
32366' <conf$$subs.awk | sed '
32367/^[^""]/{
32368 N
32369 s/\n//
32370}
32371' >>$CONFIG_STATUS || ac_write_fail=1
32372rm -f conf$$subs.awk
32373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32374_ACAWK
32375cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32376 for (key in S) S_is_set[key] = 1
32377 FS = ""
32378
32379}
32380{
32381 line = $ 0
32382 nfields = split(line, field, "@")
32383 substed = 0
32384 len = length(field[1])
32385 for (i = 2; i < nfields; i++) {
32386 key = field[i]
32387 keylen = length(key)
32388 if (S_is_set[key]) {
32389 value = S[key]
32390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32391 len += length(value) + length(field[++i])
32392 substed = 1
32393 } else
32394 len += 1 + keylen
32395 }
32396
32397 print line
32398}
32399
32400_ACAWK
32401_ACEOF
32402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32403if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32405else
32406 cat
32407fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000032408 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032409_ACEOF
32410
32411# VPATH may cause trouble with some makes, so we remove $(srcdir),
32412# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32413# trailing colons and then remove the whole line if VPATH becomes empty
32414# (actually we leave an empty line to preserve line numbers).
32415if test "x$srcdir" = x.; then
32416 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32417s/:*\$(srcdir):*/:/
32418s/:*\${srcdir}:*/:/
32419s/:*@srcdir@:*/:/
32420s/^\([^=]*=[ ]*\):*/\1/
32421s/:*$//
32422s/^[^=]*=[ ]*$//
32423}'
32424fi
32425
32426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32427fi # test -n "$CONFIG_FILES"
32428
32429# Set up the scripts for CONFIG_HEADERS section.
32430# No need to generate them if there are no CONFIG_HEADERS.
32431# This happens for instance with `./config.status Makefile'.
32432if test -n "$CONFIG_HEADERS"; then
32433cat >"$tmp/defines.awk" <<\_ACAWK ||
32434BEGIN {
32435_ACEOF
32436
32437# Transform confdefs.h into an awk script `defines.awk', embedded as
32438# here-document in config.status, that substitutes the proper values into
32439# config.h.in to produce config.h.
32440
32441# Create a delimiter string that does not exist in confdefs.h, to ease
32442# handling of long lines.
32443ac_delim='%!_!# '
32444for ac_last_try in false false :; do
32445 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32446 if test -z "$ac_t"; then
32447 break
32448 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000032449 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032450 else
32451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32452 fi
32453done
32454
32455# For the awk script, D is an array of macro values keyed by name,
32456# likewise P contains macro parameters if any. Preserve backslash
32457# newline sequences.
32458
32459ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32460sed -n '
32461s/.\{148\}/&'"$ac_delim"'/g
32462t rset
32463:rset
32464s/^[ ]*#[ ]*define[ ][ ]*/ /
32465t def
32466d
32467:def
32468s/\\$//
32469t bsnl
32470s/["\\]/\\&/g
32471s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32472D["\1"]=" \3"/p
32473s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32474d
32475:bsnl
32476s/["\\]/\\&/g
32477s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32478D["\1"]=" \3\\\\\\n"\\/p
32479t cont
32480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32481t cont
32482d
32483:cont
32484n
32485s/.\{148\}/&'"$ac_delim"'/g
32486t clear
32487:clear
32488s/\\$//
32489t bsnlc
32490s/["\\]/\\&/g; s/^/"/; s/$/"/p
32491d
32492:bsnlc
32493s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32494b cont
32495' <confdefs.h | sed '
32496s/'"$ac_delim"'/"\\\
32497"/g' >>$CONFIG_STATUS || ac_write_fail=1
32498
32499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 for (key in D) D_is_set[key] = 1
32501 FS = ""
32502}
32503/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32504 line = \$ 0
32505 split(line, arg, " ")
32506 if (arg[1] == "#") {
32507 defundef = arg[2]
32508 mac1 = arg[3]
32509 } else {
32510 defundef = substr(arg[1], 2)
32511 mac1 = arg[2]
32512 }
32513 split(mac1, mac2, "(") #)
32514 macro = mac2[1]
32515 prefix = substr(line, 1, index(line, defundef) - 1)
32516 if (D_is_set[macro]) {
32517 # Preserve the white space surrounding the "#".
32518 print prefix "define", macro P[macro] D[macro]
32519 next
32520 } else {
32521 # Replace #undef with comments. This is necessary, for example,
32522 # in the case of _POSIX_SOURCE, which is predefined and required
32523 # on some systems where configure will not decide to define it.
32524 if (defundef == "undef") {
32525 print "/*", prefix defundef, macro, "*/"
32526 next
32527 }
32528 }
32529}
32530{ print }
32531_ACAWK
32532_ACEOF
32533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000032534 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032535fi # test -n "$CONFIG_HEADERS"
32536
32537
32538eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32539shift
32540for ac_tag
32541do
32542 case $ac_tag in
32543 :[FHLC]) ac_mode=$ac_tag; continue;;
32544 esac
32545 case $ac_mode$ac_tag in
32546 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000032547 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032548 :[FH]-) ac_tag=-:-;;
32549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32550 esac
32551 ac_save_IFS=$IFS
32552 IFS=:
32553 set x $ac_tag
32554 IFS=$ac_save_IFS
32555 shift
32556 ac_file=$1
32557 shift
32558
32559 case $ac_mode in
32560 :L) ac_source=$1;;
32561 :[FH])
32562 ac_file_inputs=
32563 for ac_f
32564 do
32565 case $ac_f in
32566 -) ac_f="$tmp/stdin";;
32567 *) # Look for the file first in the build tree, then in the source tree
32568 # (if the path is not absolute). The absolute path cannot be DOS-style,
32569 # because $ac_f cannot contain `:'.
32570 test -f "$ac_f" ||
32571 case $ac_f in
32572 [\\/$]*) false;;
32573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32574 esac ||
cristy8b350f62009-11-15 23:12:43 +000032575 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000032576 esac
32577 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000032578 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000032579 done
32580
32581 # Let's still pretend it is `configure' which instantiates (i.e., don't
32582 # use $as_me), people would be surprised to read:
32583 # /* config.h. Generated by config.status. */
32584 configure_input='Generated from '`
32585 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32586 `' by configure.'
32587 if test x"$ac_file" != x-; then
32588 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000032589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032590$as_echo "$as_me: creating $ac_file" >&6;}
32591 fi
32592 # Neutralize special characters interpreted by sed in replacement strings.
32593 case $configure_input in #(
32594 *\&* | *\|* | *\\* )
32595 ac_sed_conf_input=`$as_echo "$configure_input" |
32596 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32597 *) ac_sed_conf_input=$configure_input;;
32598 esac
32599
32600 case $ac_tag in
32601 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000032602 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000032603 esac
32604 ;;
32605 esac
32606
32607 ac_dir=`$as_dirname -- "$ac_file" ||
32608$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32609 X"$ac_file" : 'X\(//\)[^/]' \| \
32610 X"$ac_file" : 'X\(//\)$' \| \
32611 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32612$as_echo X"$ac_file" |
32613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32614 s//\1/
32615 q
32616 }
32617 /^X\(\/\/\)[^/].*/{
32618 s//\1/
32619 q
32620 }
32621 /^X\(\/\/\)$/{
32622 s//\1/
32623 q
32624 }
32625 /^X\(\/\).*/{
32626 s//\1/
32627 q
32628 }
32629 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032630 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032631 ac_builddir=.
32632
32633case "$ac_dir" in
32634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32635*)
32636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32637 # A ".." for each directory in $ac_dir_suffix.
32638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32639 case $ac_top_builddir_sub in
32640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32642 esac ;;
32643esac
32644ac_abs_top_builddir=$ac_pwd
32645ac_abs_builddir=$ac_pwd$ac_dir_suffix
32646# for backward compatibility:
32647ac_top_builddir=$ac_top_build_prefix
32648
32649case $srcdir in
32650 .) # We are building in place.
32651 ac_srcdir=.
32652 ac_top_srcdir=$ac_top_builddir_sub
32653 ac_abs_top_srcdir=$ac_pwd ;;
32654 [\\/]* | ?:[\\/]* ) # Absolute name.
32655 ac_srcdir=$srcdir$ac_dir_suffix;
32656 ac_top_srcdir=$srcdir
32657 ac_abs_top_srcdir=$srcdir ;;
32658 *) # Relative name.
32659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32660 ac_top_srcdir=$ac_top_build_prefix$srcdir
32661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32662esac
32663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32664
32665
32666 case $ac_mode in
32667 :F)
32668 #
32669 # CONFIG_FILE
32670 #
32671
32672 case $INSTALL in
32673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32675 esac
32676 ac_MKDIR_P=$MKDIR_P
32677 case $MKDIR_P in
32678 [\\/$]* | ?:[\\/]* ) ;;
32679 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32680 esac
32681_ACEOF
32682
32683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32684# If the template does not know about datarootdir, expand it.
32685# FIXME: This hack should be removed a few years after 2.60.
32686ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000032687ac_sed_dataroot='
32688/datarootdir/ {
32689 p
32690 q
32691}
32692/@datadir@/p
32693/@docdir@/p
32694/@infodir@/p
32695/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000032696/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000032697case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32698*datarootdir*) ac_datarootdir_seen=yes;;
32699*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000032700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000032701$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32702_ACEOF
32703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32704 ac_datarootdir_hack='
32705 s&@datadir@&$datadir&g
32706 s&@docdir@&$docdir&g
32707 s&@infodir@&$infodir&g
32708 s&@localedir@&$localedir&g
32709 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000032710 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000032711esac
32712_ACEOF
32713
32714# Neutralize VPATH when `$srcdir' = `.'.
32715# Shell code in configure.ac might set extrasub.
32716# FIXME: do we really want to maintain this feature?
32717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32718ac_sed_extra="$ac_vpsub
32719$extrasub
32720_ACEOF
32721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32722:t
32723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32724s|@configure_input@|$ac_sed_conf_input|;t t
32725s&@top_builddir@&$ac_top_builddir_sub&;t t
32726s&@top_build_prefix@&$ac_top_build_prefix&;t t
32727s&@srcdir@&$ac_srcdir&;t t
32728s&@abs_srcdir@&$ac_abs_srcdir&;t t
32729s&@top_srcdir@&$ac_top_srcdir&;t t
32730s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32731s&@builddir@&$ac_builddir&;t t
32732s&@abs_builddir@&$ac_abs_builddir&;t t
32733s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32734s&@INSTALL@&$ac_INSTALL&;t t
32735s&@MKDIR_P@&$ac_MKDIR_P&;t t
32736$ac_datarootdir_hack
32737"
32738eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000032739 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032740
32741test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32742 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000032744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000032745which seems to be undefined. Please make sure it is defined." >&5
32746$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32747which seems to be undefined. Please make sure it is defined." >&2;}
32748
32749 rm -f "$tmp/stdin"
32750 case $ac_file in
32751 -) cat "$tmp/out" && rm -f "$tmp/out";;
32752 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32753 esac \
cristy8b350f62009-11-15 23:12:43 +000032754 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032755 ;;
32756 :H)
32757 #
32758 # CONFIG_HEADER
32759 #
32760 if test x"$ac_file" != x-; then
32761 {
32762 $as_echo "/* $configure_input */" \
32763 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32764 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000032765 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032766 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000032767 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032768$as_echo "$as_me: $ac_file is unchanged" >&6;}
32769 else
32770 rm -f "$ac_file"
32771 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000032772 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032773 fi
32774 else
32775 $as_echo "/* $configure_input */" \
32776 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000032777 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032778 fi
32779# Compute "$ac_file"'s index in $config_headers.
32780_am_arg="$ac_file"
32781_am_stamp_count=1
32782for _am_header in $config_headers :; do
32783 case $_am_header in
32784 $_am_arg | $_am_arg:* )
32785 break ;;
32786 * )
32787 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32788 esac
32789done
32790echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32791$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32792 X"$_am_arg" : 'X\(//\)[^/]' \| \
32793 X"$_am_arg" : 'X\(//\)$' \| \
32794 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32795$as_echo X"$_am_arg" |
32796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32797 s//\1/
32798 q
32799 }
32800 /^X\(\/\/\)[^/].*/{
32801 s//\1/
32802 q
32803 }
32804 /^X\(\/\/\)$/{
32805 s//\1/
32806 q
32807 }
32808 /^X\(\/\).*/{
32809 s//\1/
32810 q
32811 }
32812 s/.*/./; q'`/stamp-h$_am_stamp_count
32813 ;;
32814
cristy8b350f62009-11-15 23:12:43 +000032815 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816$as_echo "$as_me: executing $ac_file commands" >&6;}
32817 ;;
32818 esac
32819
32820
32821 case $ac_file$ac_mode in
32822 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32823ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32824ac_prefix_conf_PKG=`echo MagickCore`
32825ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32826ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32827ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32828if test ".$ac_prefix_conf_INP" = "."; then
32829 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32830 case "$ac_file" in
32831 *.h) ac_prefix_conf_INP=$ac_file ;;
32832 *)
32833 esac
32834 test ".$ac_prefix_conf_INP" != "." && break
32835 done
32836fi
32837if test ".$ac_prefix_conf_INP" = "."; then
32838 case "$ac_prefix_conf_OUT" in
32839 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32840 ;;
32841 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32842 ;;
32843 *) ac_prefix_conf_INP=config.h
32844 ;;
32845 esac
32846fi
32847if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000032848 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032849else
32850 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32851 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32852 fi fi
cristy8b350f62009-11-15 23:12:43 +000032853 { $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 +000032854$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32855 if test -f $ac_prefix_conf_INP ; then
32856 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32857 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32858 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32859 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32860 echo "#endif/" >>conftest.prefix
32861 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32862 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32863 echo "#endif/" >> conftest.prefix
32864 # now executing _script on _DEF input to create _OUT output file
32865 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32866 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32867 echo ' ' >>$tmp/pconfig.h
32868 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32869
32870 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32871 echo ' ' >>$tmp/pconfig.h
32872 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32873 echo "#endif" >>$tmp/pconfig.h
32874 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32877 else
32878 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32879$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32880 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32881 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32882 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32883$as_echo X"$ac_prefix_conf_OUT" |
32884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32885 s//\1/
32886 q
32887 }
32888 /^X\(\/\/\)[^/].*/{
32889 s//\1/
32890 q
32891 }
32892 /^X\(\/\/\)$/{
32893 s//\1/
32894 q
32895 }
32896 /^X\(\/\).*/{
32897 s//\1/
32898 q
32899 }
32900 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000032901 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032902 rm -f "$ac_prefix_conf_OUT"
32903 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32904 fi
32905 cp conftest.prefix _configs.sed
32906 else
cristy8b350f62009-11-15 23:12:43 +000032907 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 +000032908 fi
32909 rm -f conftest.*
32910fi
32911 ;;
32912 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32913 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32914 # are listed without --file. Let's play safe and only enable the eval
32915 # if we detect the quoting.
32916 case $CONFIG_FILES in
32917 *\'*) eval set x "$CONFIG_FILES" ;;
32918 *) set x $CONFIG_FILES ;;
32919 esac
32920 shift
32921 for mf
32922 do
32923 # Strip MF so we end up with the name of the file.
32924 mf=`echo "$mf" | sed -e 's/:.*$//'`
32925 # Check whether this is an Automake generated Makefile or not.
32926 # We used to match only the files named `Makefile.in', but
32927 # some people rename them; so instead we look at the file content.
32928 # Grep'ing the first line is not enough: some people post-process
32929 # each Makefile.in and add a new line on top of each file to say so.
32930 # Grep'ing the whole file is not good either: AIX grep has a line
32931 # limit of 2048, but all sed's we know have understand at least 4000.
32932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32933 dirpart=`$as_dirname -- "$mf" ||
32934$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32935 X"$mf" : 'X\(//\)[^/]' \| \
32936 X"$mf" : 'X\(//\)$' \| \
32937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32938$as_echo X"$mf" |
32939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32940 s//\1/
32941 q
32942 }
32943 /^X\(\/\/\)[^/].*/{
32944 s//\1/
32945 q
32946 }
32947 /^X\(\/\/\)$/{
32948 s//\1/
32949 q
32950 }
32951 /^X\(\/\).*/{
32952 s//\1/
32953 q
32954 }
32955 s/.*/./; q'`
32956 else
32957 continue
32958 fi
32959 # Extract the definition of DEPDIR, am__include, and am__quote
32960 # from the Makefile without running `make'.
32961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32962 test -z "$DEPDIR" && continue
32963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
32964 test -z "am__include" && continue
32965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32966 # When using ansi2knr, U may be empty or an underscore; expand it
32967 U=`sed -n 's/^U = //p' < "$mf"`
32968 # Find all dependency output files, they are included files with
32969 # $(DEPDIR) in their names. We invoke sed twice because it is the
32970 # simplest approach to changing $(DEPDIR) to its actual value in the
32971 # expansion.
32972 for file in `sed -n "
32973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32975 # Make sure the directory exists.
32976 test -f "$dirpart/$file" && continue
32977 fdir=`$as_dirname -- "$file" ||
32978$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32979 X"$file" : 'X\(//\)[^/]' \| \
32980 X"$file" : 'X\(//\)$' \| \
32981 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32982$as_echo X"$file" |
32983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32984 s//\1/
32985 q
32986 }
32987 /^X\(\/\/\)[^/].*/{
32988 s//\1/
32989 q
32990 }
32991 /^X\(\/\/\)$/{
32992 s//\1/
32993 q
32994 }
32995 /^X\(\/\).*/{
32996 s//\1/
32997 q
32998 }
32999 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033000 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033001 # echo "creating $dirpart/$file"
33002 echo '# dummy' > "$dirpart/$file"
33003 done
33004 done
33005}
33006 ;;
33007 "libtool":C)
33008
33009 # See if we are running on zsh, and set the options which allow our
33010 # commands through without removal of \ escapes.
33011 if test -n "${ZSH_VERSION+set}" ; then
33012 setopt NO_GLOB_SUBST
33013 fi
33014
33015 cfgfile="${ofile}T"
33016 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33017 $RM "$cfgfile"
33018
33019 cat <<_LT_EOF >> "$cfgfile"
33020#! $SHELL
33021
33022# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33023# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33025# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33026#
33027# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000033028# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033029# Written by Gordon Matzigkeit, 1996
33030#
33031# This file is part of GNU Libtool.
33032#
33033# GNU Libtool is free software; you can redistribute it and/or
33034# modify it under the terms of the GNU General Public License as
33035# published by the Free Software Foundation; either version 2 of
33036# the License, or (at your option) any later version.
33037#
33038# As a special exception to the GNU General Public License,
33039# if you distribute this file as part of a program or library that
33040# is built using GNU Libtool, you may include this file under the
33041# same distribution terms that you use for the rest of that program.
33042#
33043# GNU Libtool is distributed in the hope that it will be useful,
33044# but WITHOUT ANY WARRANTY; without even the implied warranty of
33045# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33046# GNU General Public License for more details.
33047#
33048# You should have received a copy of the GNU General Public License
33049# along with GNU Libtool; see the file COPYING. If not, a copy
33050# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33051# obtained by writing to the Free Software Foundation, Inc.,
33052# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33053
33054
33055# The names of the tagged configurations supported by this script.
33056available_tags="CXX "
33057
33058# ### BEGIN LIBTOOL CONFIG
33059
33060# A sed program that does not truncate output.
33061SED=$lt_SED
33062
33063# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33064Xsed="\$SED -e 1s/^X//"
33065
33066# A grep program that handles long lines.
33067GREP=$lt_GREP
33068
33069# An ERE matcher.
33070EGREP=$lt_EGREP
33071
33072# A literal string matcher.
33073FGREP=$lt_FGREP
33074
33075# Which release of libtool.m4 was used?
33076macro_version=$macro_version
33077macro_revision=$macro_revision
33078
33079# Assembler program.
cristy18304f92009-11-22 15:48:26 +000033080AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000033081
33082# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000033083DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000033084
33085# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000033086OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000033087
33088# Whether or not to build shared libraries.
33089build_libtool_libs=$enable_shared
33090
33091# Whether or not to build static libraries.
33092build_old_libs=$enable_static
33093
33094# What type of objects to build.
33095pic_mode=$pic_mode
33096
33097# Whether or not to optimize for fast installation.
33098fast_install=$enable_fast_install
33099
33100# The host system.
33101host_alias=$host_alias
33102host=$host
33103host_os=$host_os
33104
33105# The build system.
33106build_alias=$build_alias
33107build=$build
33108build_os=$build_os
33109
33110# A BSD- or MS-compatible name lister.
33111NM=$lt_NM
33112
33113# Whether we need soft or hard links.
33114LN_S=$lt_LN_S
33115
33116# What is the maximum length of a command?
33117max_cmd_len=$max_cmd_len
33118
33119# Object file suffix (normally "o").
33120objext=$ac_objext
33121
33122# Executable file suffix (normally "").
33123exeext=$exeext
33124
33125# whether the shell understands "unset".
33126lt_unset=$lt_unset
33127
33128# turn spaces into newlines.
33129SP2NL=$lt_lt_SP2NL
33130
33131# turn newlines into spaces.
33132NL2SP=$lt_lt_NL2SP
33133
cristy18304f92009-11-22 15:48:26 +000033134# How to create reloadable object files.
33135reload_flag=$lt_reload_flag
33136reload_cmds=$lt_reload_cmds
33137
cristy3ed852e2009-09-05 21:47:34 +000033138# Method to check whether dependent libraries are shared objects.
33139deplibs_check_method=$lt_deplibs_check_method
33140
33141# Command to use when deplibs_check_method == "file_magic".
33142file_magic_cmd=$lt_file_magic_cmd
33143
33144# The archiver.
33145AR=$lt_AR
33146AR_FLAGS=$lt_AR_FLAGS
33147
33148# A symbol stripping program.
33149STRIP=$lt_STRIP
33150
33151# Commands used to install an old-style archive.
33152RANLIB=$lt_RANLIB
33153old_postinstall_cmds=$lt_old_postinstall_cmds
33154old_postuninstall_cmds=$lt_old_postuninstall_cmds
33155
33156# A C compiler.
33157LTCC=$lt_CC
33158
33159# LTCC compiler flags.
33160LTCFLAGS=$lt_CFLAGS
33161
33162# Take the output of nm and produce a listing of raw symbols and C names.
33163global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33164
33165# Transform the output of nm in a proper C declaration.
33166global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33167
33168# Transform the output of nm in a C name address pair.
33169global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33170
33171# Transform the output of nm in a C name address pair when lib prefix is needed.
33172global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33173
33174# The name of the directory that contains temporary libtool files.
33175objdir=$objdir
33176
cristy18304f92009-11-22 15:48:26 +000033177# Shell to use when invoking shell scripts.
33178SHELL=$lt_SHELL
33179
33180# An echo program that does not interpret backslashes.
33181ECHO=$lt_ECHO
33182
cristy3ed852e2009-09-05 21:47:34 +000033183# Used to examine libraries when file_magic_cmd begins with "file".
33184MAGIC_CMD=$MAGIC_CMD
33185
33186# Must we lock files when doing compilation?
33187need_locks=$lt_need_locks
33188
33189# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33190DSYMUTIL=$lt_DSYMUTIL
33191
33192# Tool to change global to local symbols on Mac OS X.
33193NMEDIT=$lt_NMEDIT
33194
33195# Tool to manipulate fat objects and archives on Mac OS X.
33196LIPO=$lt_LIPO
33197
33198# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33199OTOOL=$lt_OTOOL
33200
33201# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33202OTOOL64=$lt_OTOOL64
33203
33204# Old archive suffix (normally "a").
33205libext=$libext
33206
33207# Shared library suffix (normally ".so").
33208shrext_cmds=$lt_shrext_cmds
33209
33210# The commands to extract the exported symbol list from a shared archive.
33211extract_expsyms_cmds=$lt_extract_expsyms_cmds
33212
33213# Variables whose values should be saved in libtool wrapper scripts and
33214# restored at link time.
33215variables_saved_for_relink=$lt_variables_saved_for_relink
33216
33217# Do we need the "lib" prefix for modules?
33218need_lib_prefix=$need_lib_prefix
33219
33220# Do we need a version for libraries?
33221need_version=$need_version
33222
33223# Library versioning type.
33224version_type=$version_type
33225
33226# Shared library runtime path variable.
33227runpath_var=$runpath_var
33228
33229# Shared library path variable.
33230shlibpath_var=$shlibpath_var
33231
33232# Is shlibpath searched before the hard-coded library search path?
33233shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33234
33235# Format of library name prefix.
33236libname_spec=$lt_libname_spec
33237
33238# List of archive names. First name is the real one, the rest are links.
33239# The last name is the one that the linker finds with -lNAME
33240library_names_spec=$lt_library_names_spec
33241
33242# The coded name of the library, if different from the real name.
33243soname_spec=$lt_soname_spec
33244
33245# Command to use after installation of a shared archive.
33246postinstall_cmds=$lt_postinstall_cmds
33247
33248# Command to use after uninstallation of a shared archive.
33249postuninstall_cmds=$lt_postuninstall_cmds
33250
33251# Commands used to finish a libtool library installation in a directory.
33252finish_cmds=$lt_finish_cmds
33253
33254# As "finish_cmds", except a single script fragment to be evaled but
33255# not shown.
33256finish_eval=$lt_finish_eval
33257
33258# Whether we should hardcode library paths into libraries.
33259hardcode_into_libs=$hardcode_into_libs
33260
33261# Compile-time system search path for libraries.
33262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33263
33264# Run-time system search path for libraries.
33265sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33266
33267# Whether dlopen is supported.
33268dlopen_support=$enable_dlopen
33269
33270# Whether dlopen of programs is supported.
33271dlopen_self=$enable_dlopen_self
33272
33273# Whether dlopen of statically linked programs is supported.
33274dlopen_self_static=$enable_dlopen_self_static
33275
33276# Commands to strip libraries.
33277old_striplib=$lt_old_striplib
33278striplib=$lt_striplib
33279
33280
33281# The linker used to build libraries.
33282LD=$lt_LD
33283
33284# Commands used to build an old-style archive.
33285old_archive_cmds=$lt_old_archive_cmds
33286
33287# A language specific compiler.
33288CC=$lt_compiler
33289
33290# Is the compiler the GNU compiler?
33291with_gcc=$GCC
33292
33293# Compiler flag to turn off builtin functions.
33294no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33295
33296# How to pass a linker flag through the compiler.
33297wl=$lt_lt_prog_compiler_wl
33298
33299# Additional compiler flags for building library objects.
33300pic_flag=$lt_lt_prog_compiler_pic
33301
33302# Compiler flag to prevent dynamic linking.
33303link_static_flag=$lt_lt_prog_compiler_static
33304
33305# Does compiler simultaneously support -c and -o options?
33306compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33307
33308# Whether or not to add -lc for building shared libraries.
33309build_libtool_need_lc=$archive_cmds_need_lc
33310
33311# Whether or not to disallow shared libs when runtime libs are static.
33312allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33313
33314# Compiler flag to allow reflexive dlopens.
33315export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33316
33317# Compiler flag to generate shared objects directly from archives.
33318whole_archive_flag_spec=$lt_whole_archive_flag_spec
33319
33320# Whether the compiler copes with passing no objects directly.
33321compiler_needs_object=$lt_compiler_needs_object
33322
33323# Create an old-style archive from a shared archive.
33324old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33325
33326# Create a temporary old-style archive to link instead of a shared archive.
33327old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33328
33329# Commands used to build a shared archive.
33330archive_cmds=$lt_archive_cmds
33331archive_expsym_cmds=$lt_archive_expsym_cmds
33332
33333# Commands used to build a loadable module if different from building
33334# a shared archive.
33335module_cmds=$lt_module_cmds
33336module_expsym_cmds=$lt_module_expsym_cmds
33337
33338# Whether we are building with GNU ld or not.
33339with_gnu_ld=$lt_with_gnu_ld
33340
33341# Flag that allows shared libraries with undefined symbols to be built.
33342allow_undefined_flag=$lt_allow_undefined_flag
33343
33344# Flag that enforces no undefined symbols.
33345no_undefined_flag=$lt_no_undefined_flag
33346
33347# Flag to hardcode \$libdir into a binary during linking.
33348# This must work even if \$libdir does not exist
33349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33350
33351# If ld is used when linking, flag to hardcode \$libdir into a binary
33352# during linking. This must work even if \$libdir does not exist.
33353hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33354
33355# Whether we need a single "-rpath" flag with a separated argument.
33356hardcode_libdir_separator=$lt_hardcode_libdir_separator
33357
33358# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33359# DIR into the resulting binary.
33360hardcode_direct=$hardcode_direct
33361
33362# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33363# DIR into the resulting binary and the resulting library dependency is
33364# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33365# library is relocated.
33366hardcode_direct_absolute=$hardcode_direct_absolute
33367
33368# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33369# into the resulting binary.
33370hardcode_minus_L=$hardcode_minus_L
33371
33372# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33373# into the resulting binary.
33374hardcode_shlibpath_var=$hardcode_shlibpath_var
33375
33376# Set to "yes" if building a shared library automatically hardcodes DIR
33377# into the library and all subsequent libraries and executables linked
33378# against it.
33379hardcode_automatic=$hardcode_automatic
33380
33381# Set to yes if linker adds runtime paths of dependent libraries
33382# to runtime path list.
33383inherit_rpath=$inherit_rpath
33384
33385# Whether libtool must link a program against all its dependency libraries.
33386link_all_deplibs=$link_all_deplibs
33387
33388# Fix the shell variable \$srcfile for the compiler.
33389fix_srcfile_path=$lt_fix_srcfile_path
33390
33391# Set to "yes" if exported symbols are required.
33392always_export_symbols=$always_export_symbols
33393
33394# The commands to list exported symbols.
33395export_symbols_cmds=$lt_export_symbols_cmds
33396
33397# Symbols that should not be listed in the preloaded symbols.
33398exclude_expsyms=$lt_exclude_expsyms
33399
33400# Symbols that must always be exported.
33401include_expsyms=$lt_include_expsyms
33402
33403# Commands necessary for linking programs (against libraries) with templates.
33404prelink_cmds=$lt_prelink_cmds
33405
33406# Specify filename containing input files.
33407file_list_spec=$lt_file_list_spec
33408
33409# How to hardcode a shared library path into an executable.
33410hardcode_action=$hardcode_action
33411
33412# The directories searched by this compiler when creating a shared library.
33413compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33414
33415# Dependencies to place before and after the objects being linked to
33416# create a shared library.
33417predep_objects=$lt_predep_objects
33418postdep_objects=$lt_postdep_objects
33419predeps=$lt_predeps
33420postdeps=$lt_postdeps
33421
33422# The library search path used internally by the compiler when linking
33423# a shared library.
33424compiler_lib_search_path=$lt_compiler_lib_search_path
33425
33426# ### END LIBTOOL CONFIG
33427
33428_LT_EOF
33429
33430 case $host_os in
33431 aix3*)
33432 cat <<\_LT_EOF >> "$cfgfile"
33433# AIX sometimes has problems with the GCC collect2 program. For some
33434# reason, if we set the COLLECT_NAMES environment variable, the problems
33435# vanish in a puff of smoke.
33436if test "X${COLLECT_NAMES+set}" != Xset; then
33437 COLLECT_NAMES=
33438 export COLLECT_NAMES
33439fi
33440_LT_EOF
33441 ;;
33442 esac
33443
33444
33445ltmain="$ac_aux_dir/ltmain.sh"
33446
33447
33448 # We use sed instead of cat because bash on DJGPP gets confused if
33449 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33450 # text mode, it properly converts lines to CR/LF. This bash problem
33451 # is reportedly fixed, but why not run on old versions too?
33452 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33453 || (rm -f "$cfgfile"; exit 1)
33454
33455 case $xsi_shell in
33456 yes)
33457 cat << \_LT_EOF >> "$cfgfile"
33458
33459# func_dirname file append nondir_replacement
33460# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33461# otherwise set result to NONDIR_REPLACEMENT.
33462func_dirname ()
33463{
33464 case ${1} in
33465 */*) func_dirname_result="${1%/*}${2}" ;;
33466 * ) func_dirname_result="${3}" ;;
33467 esac
33468}
33469
33470# func_basename file
33471func_basename ()
33472{
33473 func_basename_result="${1##*/}"
33474}
33475
33476# func_dirname_and_basename file append nondir_replacement
33477# perform func_basename and func_dirname in a single function
33478# call:
33479# dirname: Compute the dirname of FILE. If nonempty,
33480# add APPEND to the result, otherwise set result
33481# to NONDIR_REPLACEMENT.
33482# value returned in "$func_dirname_result"
33483# basename: Compute filename of FILE.
33484# value retuned in "$func_basename_result"
33485# Implementation must be kept synchronized with func_dirname
33486# and func_basename. For efficiency, we do not delegate to
33487# those functions but instead duplicate the functionality here.
33488func_dirname_and_basename ()
33489{
33490 case ${1} in
33491 */*) func_dirname_result="${1%/*}${2}" ;;
33492 * ) func_dirname_result="${3}" ;;
33493 esac
33494 func_basename_result="${1##*/}"
33495}
33496
33497# func_stripname prefix suffix name
33498# strip PREFIX and SUFFIX off of NAME.
33499# PREFIX and SUFFIX must not contain globbing or regex special
33500# characters, hashes, percent signs, but SUFFIX may contain a leading
33501# dot (in which case that matches only a dot).
33502func_stripname ()
33503{
33504 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33505 # positional parameters, so assign one to ordinary parameter first.
33506 func_stripname_result=${3}
33507 func_stripname_result=${func_stripname_result#"${1}"}
33508 func_stripname_result=${func_stripname_result%"${2}"}
33509}
33510
33511# func_opt_split
33512func_opt_split ()
33513{
33514 func_opt_split_opt=${1%%=*}
33515 func_opt_split_arg=${1#*=}
33516}
33517
33518# func_lo2o object
33519func_lo2o ()
33520{
33521 case ${1} in
33522 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33523 *) func_lo2o_result=${1} ;;
33524 esac
33525}
33526
33527# func_xform libobj-or-source
33528func_xform ()
33529{
33530 func_xform_result=${1%.*}.lo
33531}
33532
33533# func_arith arithmetic-term...
33534func_arith ()
33535{
33536 func_arith_result=$(( $* ))
33537}
33538
33539# func_len string
33540# STRING may not start with a hyphen.
33541func_len ()
33542{
33543 func_len_result=${#1}
33544}
33545
33546_LT_EOF
33547 ;;
33548 *) # Bourne compatible functions.
33549 cat << \_LT_EOF >> "$cfgfile"
33550
33551# func_dirname file append nondir_replacement
33552# Compute the dirname of FILE. If nonempty, add APPEND to the result,
33553# otherwise set result to NONDIR_REPLACEMENT.
33554func_dirname ()
33555{
33556 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000033557 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000033558 if test "X$func_dirname_result" = "X${1}"; then
33559 func_dirname_result="${3}"
33560 else
33561 func_dirname_result="$func_dirname_result${2}"
33562 fi
33563}
33564
33565# func_basename file
33566func_basename ()
33567{
cristy18304f92009-11-22 15:48:26 +000033568 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000033569}
33570
33571
33572# func_stripname prefix suffix name
33573# strip PREFIX and SUFFIX off of NAME.
33574# PREFIX and SUFFIX must not contain globbing or regex special
33575# characters, hashes, percent signs, but SUFFIX may contain a leading
33576# dot (in which case that matches only a dot).
33577# func_strip_suffix prefix name
33578func_stripname ()
33579{
33580 case ${2} in
cristy18304f92009-11-22 15:48:26 +000033581 .*) func_stripname_result=`$ECHO "X${3}" \
33582 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33583 *) func_stripname_result=`$ECHO "X${3}" \
33584 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000033585 esac
33586}
33587
33588# sed scripts:
33589my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33590my_sed_long_arg='1s/^-[^=]*=//'
33591
33592# func_opt_split
33593func_opt_split ()
33594{
cristy18304f92009-11-22 15:48:26 +000033595 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33596 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000033597}
33598
33599# func_lo2o object
33600func_lo2o ()
33601{
cristy18304f92009-11-22 15:48:26 +000033602 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000033603}
33604
33605# func_xform libobj-or-source
33606func_xform ()
33607{
cristy18304f92009-11-22 15:48:26 +000033608 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000033609}
33610
33611# func_arith arithmetic-term...
33612func_arith ()
33613{
33614 func_arith_result=`expr "$@"`
33615}
33616
33617# func_len string
33618# STRING may not start with a hyphen.
33619func_len ()
33620{
33621 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33622}
33623
33624_LT_EOF
33625esac
33626
33627case $lt_shell_append in
33628 yes)
33629 cat << \_LT_EOF >> "$cfgfile"
33630
33631# func_append var value
33632# Append VALUE to the end of shell variable VAR.
33633func_append ()
33634{
33635 eval "$1+=\$2"
33636}
33637_LT_EOF
33638 ;;
33639 *)
33640 cat << \_LT_EOF >> "$cfgfile"
33641
33642# func_append var value
33643# Append VALUE to the end of shell variable VAR.
33644func_append ()
33645{
33646 eval "$1=\$$1\$2"
33647}
33648
33649_LT_EOF
33650 ;;
33651 esac
33652
33653
33654 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33655 || (rm -f "$cfgfile"; exit 1)
33656
33657 mv -f "$cfgfile" "$ofile" ||
33658 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33659 chmod +x "$ofile"
33660
33661
33662 cat <<_LT_EOF >> "$ofile"
33663
33664# ### BEGIN LIBTOOL TAG CONFIG: CXX
33665
33666# The linker used to build libraries.
33667LD=$lt_LD_CXX
33668
33669# Commands used to build an old-style archive.
33670old_archive_cmds=$lt_old_archive_cmds_CXX
33671
33672# A language specific compiler.
33673CC=$lt_compiler_CXX
33674
33675# Is the compiler the GNU compiler?
33676with_gcc=$GCC_CXX
33677
33678# Compiler flag to turn off builtin functions.
33679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33680
33681# How to pass a linker flag through the compiler.
33682wl=$lt_lt_prog_compiler_wl_CXX
33683
33684# Additional compiler flags for building library objects.
33685pic_flag=$lt_lt_prog_compiler_pic_CXX
33686
33687# Compiler flag to prevent dynamic linking.
33688link_static_flag=$lt_lt_prog_compiler_static_CXX
33689
33690# Does compiler simultaneously support -c and -o options?
33691compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33692
33693# Whether or not to add -lc for building shared libraries.
33694build_libtool_need_lc=$archive_cmds_need_lc_CXX
33695
33696# Whether or not to disallow shared libs when runtime libs are static.
33697allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33698
33699# Compiler flag to allow reflexive dlopens.
33700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33701
33702# Compiler flag to generate shared objects directly from archives.
33703whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33704
33705# Whether the compiler copes with passing no objects directly.
33706compiler_needs_object=$lt_compiler_needs_object_CXX
33707
33708# Create an old-style archive from a shared archive.
33709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33710
33711# Create a temporary old-style archive to link instead of a shared archive.
33712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33713
33714# Commands used to build a shared archive.
33715archive_cmds=$lt_archive_cmds_CXX
33716archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33717
33718# Commands used to build a loadable module if different from building
33719# a shared archive.
33720module_cmds=$lt_module_cmds_CXX
33721module_expsym_cmds=$lt_module_expsym_cmds_CXX
33722
33723# Whether we are building with GNU ld or not.
33724with_gnu_ld=$lt_with_gnu_ld_CXX
33725
33726# Flag that allows shared libraries with undefined symbols to be built.
33727allow_undefined_flag=$lt_allow_undefined_flag_CXX
33728
33729# Flag that enforces no undefined symbols.
33730no_undefined_flag=$lt_no_undefined_flag_CXX
33731
33732# Flag to hardcode \$libdir into a binary during linking.
33733# This must work even if \$libdir does not exist
33734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33735
33736# If ld is used when linking, flag to hardcode \$libdir into a binary
33737# during linking. This must work even if \$libdir does not exist.
33738hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33739
33740# Whether we need a single "-rpath" flag with a separated argument.
33741hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33742
33743# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33744# DIR into the resulting binary.
33745hardcode_direct=$hardcode_direct_CXX
33746
33747# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33748# DIR into the resulting binary and the resulting library dependency is
33749# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33750# library is relocated.
33751hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33752
33753# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33754# into the resulting binary.
33755hardcode_minus_L=$hardcode_minus_L_CXX
33756
33757# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33758# into the resulting binary.
33759hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33760
33761# Set to "yes" if building a shared library automatically hardcodes DIR
33762# into the library and all subsequent libraries and executables linked
33763# against it.
33764hardcode_automatic=$hardcode_automatic_CXX
33765
33766# Set to yes if linker adds runtime paths of dependent libraries
33767# to runtime path list.
33768inherit_rpath=$inherit_rpath_CXX
33769
33770# Whether libtool must link a program against all its dependency libraries.
33771link_all_deplibs=$link_all_deplibs_CXX
33772
33773# Fix the shell variable \$srcfile for the compiler.
33774fix_srcfile_path=$lt_fix_srcfile_path_CXX
33775
33776# Set to "yes" if exported symbols are required.
33777always_export_symbols=$always_export_symbols_CXX
33778
33779# The commands to list exported symbols.
33780export_symbols_cmds=$lt_export_symbols_cmds_CXX
33781
33782# Symbols that should not be listed in the preloaded symbols.
33783exclude_expsyms=$lt_exclude_expsyms_CXX
33784
33785# Symbols that must always be exported.
33786include_expsyms=$lt_include_expsyms_CXX
33787
33788# Commands necessary for linking programs (against libraries) with templates.
33789prelink_cmds=$lt_prelink_cmds_CXX
33790
33791# Specify filename containing input files.
33792file_list_spec=$lt_file_list_spec_CXX
33793
33794# How to hardcode a shared library path into an executable.
33795hardcode_action=$hardcode_action_CXX
33796
33797# The directories searched by this compiler when creating a shared library.
33798compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33799
33800# Dependencies to place before and after the objects being linked to
33801# create a shared library.
33802predep_objects=$lt_predep_objects_CXX
33803postdep_objects=$lt_postdep_objects_CXX
33804predeps=$lt_predeps_CXX
33805postdeps=$lt_postdeps_CXX
33806
33807# The library search path used internally by the compiler when linking
33808# a shared library.
33809compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33810
33811# ### END LIBTOOL TAG CONFIG: CXX
33812_LT_EOF
33813
33814 ;;
33815 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33816 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33817 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33818 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33819 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33820 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33821
33822 esac
33823done # for ac_tag
33824
33825
cristy8b350f62009-11-15 23:12:43 +000033826as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000033827_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000033828ac_clean_files=$ac_clean_files_save
33829
33830test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000033831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033832
33833
33834# configure is writing to config.log, and then calls config.status.
33835# config.status does its own redirection, appending to config.log.
33836# Unfortunately, on DOS this fails, as config.log is still kept open
33837# by configure, so config.status won't be able to write to it; its
33838# output is simply discarded. So we exec the FD to /dev/null,
33839# effectively closing config.log, so it can be properly (re)opened and
33840# appended to by config.status. When coming back to configure, we
33841# need to make the FD available again.
33842if test "$no_create" != yes; then
33843 ac_cs_success=:
33844 ac_config_status_args=
33845 test "$silent" = yes &&
33846 ac_config_status_args="$ac_config_status_args --quiet"
33847 exec 5>/dev/null
33848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33849 exec 5>>config.log
33850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33851 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000033852 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000033853fi
33854if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000033855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33857fi
33858
33859
33860rm -f magick-version
33861
33862result_ghostscript_font_dir='none'
33863if test "${ghostscript_font_dir}x" != 'x'; then
33864 result_ghostscript_font_dir=$ghostscript_font_dir
33865fi
33866
33867result_windows_font_dir='none'
33868if test "${windows_font_dir}x" != 'x'; then
33869 result_windows_font_dir=${windows_font_dir}
33870fi
33871
cristy8b350f62009-11-15 23:12:43 +000033872{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000033873ImageMagick is configured as follows. Please verify that this configuration
33874matches your expectations.
33875
33876Host system type: $host
33877Build system type: $build
33878
33879 Option Value
33880-------------------------------------------------------------------------------
33881Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33882Static libraries --enable-static=$enable_static $libtool_build_static_libs
33883Module support --with-modules=$with_modules $with_modules
33884GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33885Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33886High Dynamic Range Imagery
33887 --enable-hdri=$enable_hdri $enable_hdri
33888
33889Delegate Configuration:
33890BZLIB --with-bzlib=$with_bzlib $have_bzlib
33891Autotrace --with-autotrace=$with_autotrace $have_autotrace
33892DJVU --with-djvu=$with_djvu $have_djvu
33893DPS --with-dps=$with_dps $have_dps
33894FFTW --with-fftw=$with_fftw $have_fftw
33895FlashPIX --with-fpx=$with_fpx $have_fpx
33896FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33897FreeType --with-freetype=$with_freetype $have_freetype
33898GhostPCL None $PCLDelegate ($PCLVersion)
33899GhostXPS None $XPSDelegate ($XPSVersion)
33900Ghostscript None $PSDelegate ($GSVersion)
33901Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33902Ghostscript lib --with-gslib=$with_gslib $have_gslib
33903Graphviz --with-gvc=$with_gvc $have_gvc
33904JBIG --with-jbig=$with_jbig $have_jbig
33905JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33906JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33907LCMS --with-lcms=$with_lcms $have_lcms
33908LQR --with-lqr=$with_lqr $have_lqr
33909Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33910OpenEXR --with-openexr=$with_openexr $have_openexr
33911PERL --with-perl=$with_perl $have_perl
33912PNG --with-png=$with_png $have_png
33913RSVG --with-rsvg=$with_rsvg $have_rsvg
33914TIFF --with-tiff=$with_tiff $have_tiff
33915Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33916WMF --with-wmf=$with_wmf $have_wmf
33917X11 --with-x=$with_x $have_x
33918XML --with-xml=$with_xml $have_xml
33919ZLIB --with-zlib=$with_zlib $have_zlib
33920
33921X11 Configuration:
33922 X_CFLAGS = $X_CFLAGS
33923 X_PRE_LIBS = $X_PRE_LIBS
33924 X_LIBS = $X_LIBS
33925 X_EXTRA_LIBS = $X_EXTRA_LIBS
33926
33927Options used to compile and link:
33928 PREFIX = $PREFIX_DIR
33929 EXEC-PREFIX = $EXEC_PREFIX_DIR
33930 VERSION = $PACKAGE_VERSION
33931 CC = $CC
33932 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000033933 CPPFLAGS = $MAGICK_CPPFLAGS
33934 PCFLAGS = $MAGICK_PCFLAGS
33935 DEFS = $DEFS
33936 LDFLAGS = $LDFLAGS
33937 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
33938 LIBS = $MAGICK_LIBS
33939 CXX = $CXX
33940 CXXFLAGS = $CXXFLAGS
33941" >&5
33942$as_echo "
33943ImageMagick is configured as follows. Please verify that this configuration
33944matches your expectations.
33945
33946Host system type: $host
33947Build system type: $build
33948
33949 Option Value
33950-------------------------------------------------------------------------------
33951Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33952Static libraries --enable-static=$enable_static $libtool_build_static_libs
33953Module support --with-modules=$with_modules $with_modules
33954GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33955Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33956High Dynamic Range Imagery
33957 --enable-hdri=$enable_hdri $enable_hdri
33958
33959Delegate Configuration:
33960BZLIB --with-bzlib=$with_bzlib $have_bzlib
33961Autotrace --with-autotrace=$with_autotrace $have_autotrace
33962DJVU --with-djvu=$with_djvu $have_djvu
33963DPS --with-dps=$with_dps $have_dps
33964FFTW --with-fftw=$with_fftw $have_fftw
33965FlashPIX --with-fpx=$with_fpx $have_fpx
33966FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33967FreeType --with-freetype=$with_freetype $have_freetype
33968GhostPCL None $PCLDelegate ($PCLVersion)
33969GhostXPS None $XPSDelegate ($XPSVersion)
33970Ghostscript None $PSDelegate ($GSVersion)
33971Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33972Ghostscript lib --with-gslib=$with_gslib $have_gslib
33973Graphviz --with-gvc=$with_gvc $have_gvc
33974JBIG --with-jbig=$with_jbig $have_jbig
33975JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33976JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33977LCMS --with-lcms=$with_lcms $have_lcms
33978LQR --with-lqr=$with_lqr $have_lqr
33979Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33980OpenEXR --with-openexr=$with_openexr $have_openexr
33981PERL --with-perl=$with_perl $have_perl
33982PNG --with-png=$with_png $have_png
33983RSVG --with-rsvg=$with_rsvg $have_rsvg
33984TIFF --with-tiff=$with_tiff $have_tiff
33985Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33986WMF --with-wmf=$with_wmf $have_wmf
33987X11 --with-x=$with_x $have_x
33988XML --with-xml=$with_xml $have_xml
33989ZLIB --with-zlib=$with_zlib $have_zlib
33990
33991X11 Configuration:
33992 X_CFLAGS = $X_CFLAGS
33993 X_PRE_LIBS = $X_PRE_LIBS
33994 X_LIBS = $X_LIBS
33995 X_EXTRA_LIBS = $X_EXTRA_LIBS
33996
33997Options used to compile and link:
33998 PREFIX = $PREFIX_DIR
33999 EXEC-PREFIX = $EXEC_PREFIX_DIR
34000 VERSION = $PACKAGE_VERSION
34001 CC = $CC
34002 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000034003 CPPFLAGS = $MAGICK_CPPFLAGS
34004 PCFLAGS = $MAGICK_PCFLAGS
34005 DEFS = $DEFS
34006 LDFLAGS = $LDFLAGS
34007 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34008 LIBS = $MAGICK_LIBS
34009 CXX = $CXX
34010 CXXFLAGS = $CXXFLAGS
34011" >&6; }