blob: c04b8e3074bf2639af461fe5b3bb5fb1515cf721 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy5c40fb42010-08-05 16:12:44 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.3.
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,
cristy5c40fb42010-08-05 16:12:44 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
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
cristy5c40fb42010-08-05 16:12:44 +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"
cristy5c40fb42010-08-05 16:12:44 +0000322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000323
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
cristy5c40fb42010-08-05 16:12:44 +0000362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +0000364# 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
cristy5c40fb42010-08-05 16:12:44 +0000366# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000367as_fn_error ()
368{
cristy5c40fb42010-08-05 16:12:44 +0000369 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
cristy8b350f62009-11-15 23:12:43 +0000373 fi
cristy5c40fb42010-08-05 16:12:44 +0000374 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +0000375 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
cristy5c40fb42010-08-05 16:12:44 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy5c40fb42010-08-05 16:12:44 +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.
cristy5c40fb42010-08-05 16:12:44 +0000689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000690# 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'
cristyfbb4a972010-06-30 17:42:22 +0000708PACKAGE_VERSION='6.6.3'
709PACKAGE_STRING='ImageMagick 6.6.3'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000814UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000815TXTDelegate
816SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000817RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000818RMDelegate
819RLEEncodeDelegate
820PSDelegate
821POVDelegate
822PGPDecodeDelegate
823PCLDelegate
824MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000825MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000826MPEGEncodeDelegate
827MPEGDecodeDelegate
828MANDelegate
829LaunchDelegate
830LZWEncodeDelegate
831LZWDecodeDelegate
832LPRDelegate
833LPDelegate
834ILBMEncodeDelegate
835ILBMDecodeDelegate
836HTMLDecodeDelegate
837HPGLDecodeDelegate
838HDRDecodeDelegate
839GnuplotDecodeDelegate
840MogrifyDelegate
841DisplayDelegate
842ConvertDelegate
843FIGDecodeDelegate
844EditorDelegate
845EchoDelegate
846DVIDecodeDelegate
847GVCDecodeDelegate
848DNGDecodeDelegate
849CatDelegate
850CGMDecodeDelegate
851BrowseDelegate
852BZIPDelegate
853BlenderDecodeDelegate
854AVIDecodeDelegate
855AutotraceDecodeDelegate
856SHARE_CONFIGURE_PATH
857SHARE_PATH
858DOCUMENTATION_PATH
859FILTER_PATH
860CODER_PATH
861CONFIGURE_PATH
862LIBRARY_PATH
863EXECUTABLE_PATH
864PERLMAINCC
865XML_LIBS
866XML_DELEGATE_FALSE
867XML_DELEGATE_TRUE
868xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000869WMF_LIBS
870WMF_DELEGATE_FALSE
871WMF_DELEGATE_TRUE
872TIFF_LIBS
873TIFF_DELEGATE_FALSE
874TIFF_DELEGATE_TRUE
875CAIRO_DELEGATE_FALSE
876CAIRO_DELEGATE_TRUE
877RSVG_DELEGATE_FALSE
878RSVG_DELEGATE_TRUE
879CAIRO_SVG_LIBS
880CAIRO_SVG_CFLAGS
881RSVG_LIBS
882RSVG_CFLAGS
883PNG_LIBS
884PNG_DELEGATE_FALSE
885PNG_DELEGATE_TRUE
886OPENEXR_DELEGATE_FALSE
887OPENEXR_DELEGATE_TRUE
888OPENEXR_LIBS
889OPENEXR_CFLAGS
890LQR_DELEGATE_FALSE
891LQR_DELEGATE_TRUE
892LQR_LIBS
893LQR_CFLAGS
894LCMS_LIBS
895LCMS_DELEGATE_FALSE
896LCMS_DELEGATE_TRUE
897JP2_LIBS
898JP2_DELEGATE_FALSE
899JP2_DELEGATE_TRUE
900JPEG_LIBS
901JPEG_DELEGATE_FALSE
902JPEG_DELEGATE_TRUE
903JBIG_LIBS
904JBIG_DELEGATE_FALSE
905JBIG_DELEGATE_TRUE
906GVC_DELEGATE_FALSE
907GVC_DELEGATE_TRUE
908GVC_LIBS
909GVC_CFLAGS
910GS_LIBS
911GS_DELEGATE_FALSE
912GS_DELEGATE_TRUE
913FREETYPE_LIBS
914FREETYPE_DELEGATE_FALSE
915FREETYPE_DELEGATE_TRUE
916freetype_config
917FONTCONFIG_DELEGATE_FALSE
918FONTCONFIG_DELEGATE_TRUE
919FONTCONFIG_LIBS
920FONTCONFIG_CFLAGS
921FPX_LIBS
922FPX_DELEGATE_FALSE
923FPX_DELEGATE_TRUE
924FFTW_LIBS
925FFTW_DELEGATE_FALSE
926FFTW_DELEGATE_TRUE
927DJVU_LIBS
928DJVU_DELEGATE_FALSE
929DJVU_DELEGATE_TRUE
930DPS_LIBS
931DPS_DELEGATE_FALSE
932DPS_DELEGATE_TRUE
933AUTOTRACE_DELEGATE_FALSE
934AUTOTRACE_DELEGATE_TRUE
935AUTOTRACE_LIBS
936AUTOTRACE_CFLAGS
937LIB_DL
938ZLIB_LIBS
939ZLIB_DELEGATE_FALSE
940ZLIB_DELEGATE_TRUE
941XEXT_LIBS
942X11_LIBS
943X11_DELEGATE_FALSE
944X11_DELEGATE_TRUE
945X_EXTRA_LIBS
946X_LIBS
947X_PRE_LIBS
948X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000949XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000950BZLIB_LIBS
951BZLIB_DELEGATE_FALSE
952BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000953CCMALLOCDelegate
954UMEM_LIBS
955HasUMEM_FALSE
956HasUMEM_TRUE
957THREAD_LIBS
958GOMP_LIBS
959WITH_MAGICK_PLUS_PLUS_FALSE
960WITH_MAGICK_PLUS_PLUS_TRUE
961OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000962MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000963POW_LIB
964LIBOBJS
965UINTPTR_T
966UINTMAX_T
967UINT64_T
968INT64_T
969UINT32_T
970INT32_T
971UINT16_T
972INT16_T
973UINT8_T
974INT8_T
975LIBRARY_EXTRA_CPPFLAGS
976MODULE_EXTRA_CPPFLAGS
977LIBSTDCLDFLAGS
978PERL_MAKE_OPTIONS
979QUANTUM_DEPTH
980MAINT
981MAINTAINER_MODE_FALSE
982MAINTAINER_MODE_TRUE
983MAGICK_HDRI
984DLLDFLAGS
985WITH_LTDL_FALSE
986WITH_LTDL_TRUE
987WITH_MODULES_FALSE
988WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000989WITH_SHARED_LIBS_FALSE
990WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000991LTDLOPEN
992LT_CONFIG_H
993CONVENIENCE_LTDL_FALSE
994CONVENIENCE_LTDL_TRUE
995INSTALL_LTDL_FALSE
996INSTALL_LTDL_TRUE
997ARGZ_H
998sys_symbol_underscore
999LIBADD_DL
1000LT_DLPREOPEN
1001LIBADD_DLD_LINK
1002LIBADD_SHL_LOAD
1003LIBADD_DLOPEN
1004LT_DLLOADERS
1005INCLTDL
1006LTDLINCL
1007LTDLDEPS
1008LIBLTDL
1009LIBTOOL_DEPS
1010CXXCPP
1011OTOOL64
1012OTOOL
1013LIPO
1014NMEDIT
1015DSYMUTIL
cristy5c40fb42010-08-05 16:12:44 +00001016lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001017RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001018AR
1019NM
1020ac_ct_DUMPBIN
1021DUMPBIN
1022LIBTOOL
1023OBJDUMP
1024DLLTOOL
1025AS
1026LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001027CL_LIBS
1028CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001029OPENMP_CFLAGS
1030PTHREAD_CFLAGS
1031PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001032PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001033ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001034WinPathScript
1035USING_CL_FALSE
1036USING_CL_TRUE
1037CYGWIN_BUILD_FALSE
1038CYGWIN_BUILD_TRUE
1039WIN32_NATIVE_BUILD_FALSE
1040WIN32_NATIVE_BUILD_TRUE
1041WINGDI32_DELEGATE_FALSE
1042WINGDI32_DELEGATE_TRUE
1043GDI32_LIBS
1044PKG_CONFIG
1045LN_S
cristy3ed852e2009-09-05 21:47:34 +00001046LD
1047FGREP
cristy3ed852e2009-09-05 21:47:34 +00001048SED
cristy95646052009-11-28 23:05:30 +00001049am__fastdepCXX_FALSE
1050am__fastdepCXX_TRUE
1051CXXDEPMODE
1052ac_ct_CXX
1053CXXFLAGS
1054CXX
cristya0b81c32010-01-22 02:54:33 +00001055EGREP
1056GREP
1057CPP
cristy3ed852e2009-09-05 21:47:34 +00001058am__fastdepCC_FALSE
1059am__fastdepCC_TRUE
1060CCDEPMODE
1061AMDEPBACKSLASH
1062AMDEP_FALSE
1063AMDEP_TRUE
1064am__quote
1065am__include
1066DEPDIR
1067OBJEXT
1068EXEEXT
1069ac_ct_CC
1070CPPFLAGS
1071LDFLAGS
1072CFLAGS
1073CC
1074DIRSEP
1075MAGICK_FILTER_MODULE_PATH
1076MAGICK_CONFIGURE_BUILD_PATH
1077MAGICK_CONFIGURE_SRC_PATH
1078MAGICK_CODER_MODULE_PATH
1079MAN_DIR
1080INFO_DIR
1081PERSISTINCLUDE_DIR
1082INCLUDE_DIR
1083LIB_DIR
1084LOCALSTATE_DIR
1085SHAREDSTATE_DIR
1086SYSCONF_DIR
1087DATA_DIR
1088LIBEXEC_DIR
1089SBIN_DIR
1090BIN_DIR
1091EXEC_PREFIX_DIR
1092PREFIX_DIR
1093CONFIG_STATUS_DEPENDENCIES
1094MAGICK_LIB_VERSION_NUMBER
1095MAGICK_LIB_VERSION_TEXT
1096MAGICK_LIB_VERSION
1097AM_BACKSLASH
1098AM_DEFAULT_VERBOSITY
1099am__untar
1100am__tar
1101AMTAR
1102am__leading_dot
1103SET_MAKE
1104AWK
1105mkdir_p
1106MKDIR_P
1107INSTALL_STRIP_PROGRAM
1108STRIP
1109install_sh
1110MAKEINFO
1111AUTOHEADER
1112AUTOMAKE
1113AUTOCONF
1114ACLOCAL
1115VERSION
1116PACKAGE
1117CYGPATH_W
1118am__isrc
1119INSTALL_DATA
1120INSTALL_SCRIPT
1121INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001122PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001123PACKAGE_RELEASE_DATE
1124PACKAGE_LIB_VERSION_NUMBER
1125PACKAGE_LIB_VERSION
1126PACKAGE_CHANGE_DATE
1127PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001128MAGICK_LIBRARY_VERSION_INFO
1129MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001130MAGICK_LIBRARY_AGE
1131MAGICK_LIBRARY_REVISION
1132MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001133MAGICK_TARGET_OS
1134MAGICK_TARGET_VENDOR
1135MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001136target_os
1137target_vendor
1138target_cpu
1139target
1140host_os
1141host_vendor
1142host_cpu
1143host
1144build_os
1145build_vendor
1146build_cpu
1147build
1148CONFIGURE_ARGS
1149DISTCHECK_CONFIG_FLAGS
1150target_alias
1151host_alias
1152build_alias
1153LIBS
1154ECHO_T
1155ECHO_N
1156ECHO_C
1157DEFS
1158mandir
1159localedir
1160libdir
1161psdir
1162pdfdir
1163dvidir
1164htmldir
1165infodir
1166docdir
1167oldincludedir
1168includedir
1169localstatedir
1170sharedstatedir
1171sysconfdir
1172datadir
1173datarootdir
1174libexecdir
1175sbindir
1176bindir
1177program_transform_name
1178prefix
1179exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001180PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001181PACKAGE_BUGREPORT
1182PACKAGE_STRING
1183PACKAGE_VERSION
1184PACKAGE_TARNAME
1185PACKAGE_NAME
1186PATH_SEPARATOR
1187SHELL'
1188ac_subst_files=''
1189ac_user_opts='
1190enable_option_checking
1191enable_silent_rules
1192enable_dependency_tracking
1193with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001194with_dmalloc
1195enable_bounds_checking
1196enable_osx_universal_binary
1197with_threads
1198enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001199enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001200enable_largefile
1201enable_shared
1202enable_static
1203with_pic
1204enable_fast_install
1205enable_libtool_lock
1206with_included_ltdl
1207with_ltdl_include
1208with_ltdl_lib
1209enable_ltdl_install
1210with_modules
1211enable_delegate_build
1212enable_deprecated
1213enable_installed
1214enable_cipher
1215enable_embeddable
1216enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001217enable_assert
1218enable_maintainer_mode
1219enable_ccmalloc
1220enable_efence
1221enable_prof
1222enable_gprof
1223enable_gcov
1224with_method_prefix
1225with_quantum_depth
1226with_cache
1227with_frozenpaths
1228with_magick_plus_plus
1229with_perl
1230with_perl_options
1231with_umem
1232with_libstdc
1233with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001234with_x
cristy3ed852e2009-09-05 21:47:34 +00001235with_zlib
1236with_autotrace
1237with_dps
1238with_djvu
cristy430a7312010-01-21 20:44:04 +00001239with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001240with_fftw
1241with_fpx
1242with_fontconfig
1243with_freetype
1244with_gslib
1245with_fontpath
1246with_gs_font_dir
1247with_gvc
1248with_jbig
1249with_jpeg
1250with_jp2
1251with_lcms
cristy71203402010-06-18 13:12:03 +00001252with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001253with_lqr
1254with_openexr
1255with_png
1256with_rsvg
1257with_tiff
1258with_windows_font_dir
1259with_wmf
1260with_xml
1261'
1262 ac_precious_vars='build_alias
1263host_alias
1264target_alias
1265CC
1266CFLAGS
1267LDFLAGS
1268LIBS
1269CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001270CPP
cristy3ed852e2009-09-05 21:47:34 +00001271CXX
1272CXXFLAGS
1273CCC
1274PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001275CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001276XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001277AUTOTRACE_CFLAGS
1278AUTOTRACE_LIBS
1279FONTCONFIG_CFLAGS
1280FONTCONFIG_LIBS
1281GVC_CFLAGS
1282GVC_LIBS
1283LQR_CFLAGS
1284LQR_LIBS
1285OPENEXR_CFLAGS
1286OPENEXR_LIBS
1287RSVG_CFLAGS
1288RSVG_LIBS
1289CAIRO_SVG_CFLAGS
1290CAIRO_SVG_LIBS'
1291
1292
1293# Initialize some variables set by options.
1294ac_init_help=
1295ac_init_version=false
1296ac_unrecognized_opts=
1297ac_unrecognized_sep=
1298# The variables have the same names as the options, with
1299# dashes changed to underlines.
1300cache_file=/dev/null
1301exec_prefix=NONE
1302no_create=
1303no_recursion=
1304prefix=NONE
1305program_prefix=NONE
1306program_suffix=NONE
1307program_transform_name=s,x,x,
1308silent=
1309site=
1310srcdir=
1311verbose=
1312x_includes=NONE
1313x_libraries=NONE
1314
1315# Installation directory options.
1316# These are left unexpanded so users can "make install exec_prefix=/foo"
1317# and all the variables that are supposed to be based on exec_prefix
1318# by default will actually change.
1319# Use braces instead of parens because sh, perl, etc. also accept them.
1320# (The list follows the same order as the GNU Coding Standards.)
1321bindir='${exec_prefix}/bin'
1322sbindir='${exec_prefix}/sbin'
1323libexecdir='${exec_prefix}/libexec'
1324datarootdir='${prefix}/share'
1325datadir='${datarootdir}'
1326sysconfdir='${prefix}/etc'
1327sharedstatedir='${prefix}/com'
1328localstatedir='${prefix}/var'
1329includedir='${prefix}/include'
1330oldincludedir='/usr/include'
1331docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1332infodir='${datarootdir}/info'
1333htmldir='${docdir}'
1334dvidir='${docdir}'
1335pdfdir='${docdir}'
1336psdir='${docdir}'
1337libdir='${exec_prefix}/lib'
1338localedir='${datarootdir}/locale'
1339mandir='${datarootdir}/man'
1340
1341ac_prev=
1342ac_dashdash=
1343for ac_option
1344do
1345 # If the previous option needs an argument, assign it.
1346 if test -n "$ac_prev"; then
1347 eval $ac_prev=\$ac_option
1348 ac_prev=
1349 continue
1350 fi
1351
1352 case $ac_option in
1353 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1354 *) ac_optarg=yes ;;
1355 esac
1356
1357 # Accept the important Cygnus configure options, so we can diagnose typos.
1358
1359 case $ac_dashdash$ac_option in
1360 --)
1361 ac_dashdash=yes ;;
1362
1363 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1364 ac_prev=bindir ;;
1365 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1366 bindir=$ac_optarg ;;
1367
1368 -build | --build | --buil | --bui | --bu)
1369 ac_prev=build_alias ;;
1370 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1371 build_alias=$ac_optarg ;;
1372
1373 -cache-file | --cache-file | --cache-fil | --cache-fi \
1374 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1375 ac_prev=cache_file ;;
1376 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1377 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1378 cache_file=$ac_optarg ;;
1379
1380 --config-cache | -C)
1381 cache_file=config.cache ;;
1382
1383 -datadir | --datadir | --datadi | --datad)
1384 ac_prev=datadir ;;
1385 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1386 datadir=$ac_optarg ;;
1387
1388 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1389 | --dataroo | --dataro | --datar)
1390 ac_prev=datarootdir ;;
1391 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1392 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1393 datarootdir=$ac_optarg ;;
1394
1395 -disable-* | --disable-*)
1396 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1397 # Reject names that are not valid shell variable names.
1398 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy5c40fb42010-08-05 16:12:44 +00001399 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001400 ac_useropt_orig=$ac_useropt
1401 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1402 case $ac_user_opts in
1403 *"
1404"enable_$ac_useropt"
1405"*) ;;
1406 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1407 ac_unrecognized_sep=', ';;
1408 esac
1409 eval enable_$ac_useropt=no ;;
1410
1411 -docdir | --docdir | --docdi | --doc | --do)
1412 ac_prev=docdir ;;
1413 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1414 docdir=$ac_optarg ;;
1415
1416 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1417 ac_prev=dvidir ;;
1418 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1419 dvidir=$ac_optarg ;;
1420
1421 -enable-* | --enable-*)
1422 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1423 # Reject names that are not valid shell variable names.
1424 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy5c40fb42010-08-05 16:12:44 +00001425 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001426 ac_useropt_orig=$ac_useropt
1427 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1428 case $ac_user_opts in
1429 *"
1430"enable_$ac_useropt"
1431"*) ;;
1432 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1433 ac_unrecognized_sep=', ';;
1434 esac
1435 eval enable_$ac_useropt=\$ac_optarg ;;
1436
1437 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1438 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1439 | --exec | --exe | --ex)
1440 ac_prev=exec_prefix ;;
1441 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1442 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1443 | --exec=* | --exe=* | --ex=*)
1444 exec_prefix=$ac_optarg ;;
1445
1446 -gas | --gas | --ga | --g)
1447 # Obsolete; use --with-gas.
1448 with_gas=yes ;;
1449
1450 -help | --help | --hel | --he | -h)
1451 ac_init_help=long ;;
1452 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1453 ac_init_help=recursive ;;
1454 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1455 ac_init_help=short ;;
1456
1457 -host | --host | --hos | --ho)
1458 ac_prev=host_alias ;;
1459 -host=* | --host=* | --hos=* | --ho=*)
1460 host_alias=$ac_optarg ;;
1461
1462 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1463 ac_prev=htmldir ;;
1464 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1465 | --ht=*)
1466 htmldir=$ac_optarg ;;
1467
1468 -includedir | --includedir | --includedi | --included | --include \
1469 | --includ | --inclu | --incl | --inc)
1470 ac_prev=includedir ;;
1471 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1472 | --includ=* | --inclu=* | --incl=* | --inc=*)
1473 includedir=$ac_optarg ;;
1474
1475 -infodir | --infodir | --infodi | --infod | --info | --inf)
1476 ac_prev=infodir ;;
1477 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1478 infodir=$ac_optarg ;;
1479
1480 -libdir | --libdir | --libdi | --libd)
1481 ac_prev=libdir ;;
1482 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1483 libdir=$ac_optarg ;;
1484
1485 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1486 | --libexe | --libex | --libe)
1487 ac_prev=libexecdir ;;
1488 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1489 | --libexe=* | --libex=* | --libe=*)
1490 libexecdir=$ac_optarg ;;
1491
1492 -localedir | --localedir | --localedi | --localed | --locale)
1493 ac_prev=localedir ;;
1494 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1495 localedir=$ac_optarg ;;
1496
1497 -localstatedir | --localstatedir | --localstatedi | --localstated \
1498 | --localstate | --localstat | --localsta | --localst | --locals)
1499 ac_prev=localstatedir ;;
1500 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1501 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1502 localstatedir=$ac_optarg ;;
1503
1504 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1505 ac_prev=mandir ;;
1506 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1507 mandir=$ac_optarg ;;
1508
1509 -nfp | --nfp | --nf)
1510 # Obsolete; use --without-fp.
1511 with_fp=no ;;
1512
1513 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1514 | --no-cr | --no-c | -n)
1515 no_create=yes ;;
1516
1517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1519 no_recursion=yes ;;
1520
1521 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1522 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1523 | --oldin | --oldi | --old | --ol | --o)
1524 ac_prev=oldincludedir ;;
1525 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1526 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1527 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1528 oldincludedir=$ac_optarg ;;
1529
1530 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1531 ac_prev=prefix ;;
1532 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1533 prefix=$ac_optarg ;;
1534
1535 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1536 | --program-pre | --program-pr | --program-p)
1537 ac_prev=program_prefix ;;
1538 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1539 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1540 program_prefix=$ac_optarg ;;
1541
1542 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1543 | --program-suf | --program-su | --program-s)
1544 ac_prev=program_suffix ;;
1545 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1546 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1547 program_suffix=$ac_optarg ;;
1548
1549 -program-transform-name | --program-transform-name \
1550 | --program-transform-nam | --program-transform-na \
1551 | --program-transform-n | --program-transform- \
1552 | --program-transform | --program-transfor \
1553 | --program-transfo | --program-transf \
1554 | --program-trans | --program-tran \
1555 | --progr-tra | --program-tr | --program-t)
1556 ac_prev=program_transform_name ;;
1557 -program-transform-name=* | --program-transform-name=* \
1558 | --program-transform-nam=* | --program-transform-na=* \
1559 | --program-transform-n=* | --program-transform-=* \
1560 | --program-transform=* | --program-transfor=* \
1561 | --program-transfo=* | --program-transf=* \
1562 | --program-trans=* | --program-tran=* \
1563 | --progr-tra=* | --program-tr=* | --program-t=*)
1564 program_transform_name=$ac_optarg ;;
1565
1566 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1567 ac_prev=pdfdir ;;
1568 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1569 pdfdir=$ac_optarg ;;
1570
1571 -psdir | --psdir | --psdi | --psd | --ps)
1572 ac_prev=psdir ;;
1573 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1574 psdir=$ac_optarg ;;
1575
1576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1577 | -silent | --silent | --silen | --sile | --sil)
1578 silent=yes ;;
1579
1580 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1581 ac_prev=sbindir ;;
1582 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1583 | --sbi=* | --sb=*)
1584 sbindir=$ac_optarg ;;
1585
1586 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1587 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1588 | --sharedst | --shareds | --shared | --share | --shar \
1589 | --sha | --sh)
1590 ac_prev=sharedstatedir ;;
1591 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1592 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1593 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1594 | --sha=* | --sh=*)
1595 sharedstatedir=$ac_optarg ;;
1596
1597 -site | --site | --sit)
1598 ac_prev=site ;;
1599 -site=* | --site=* | --sit=*)
1600 site=$ac_optarg ;;
1601
1602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1603 ac_prev=srcdir ;;
1604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1605 srcdir=$ac_optarg ;;
1606
1607 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1608 | --syscon | --sysco | --sysc | --sys | --sy)
1609 ac_prev=sysconfdir ;;
1610 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1611 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1612 sysconfdir=$ac_optarg ;;
1613
1614 -target | --target | --targe | --targ | --tar | --ta | --t)
1615 ac_prev=target_alias ;;
1616 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1617 target_alias=$ac_optarg ;;
1618
1619 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1620 verbose=yes ;;
1621
1622 -version | --version | --versio | --versi | --vers | -V)
1623 ac_init_version=: ;;
1624
1625 -with-* | --with-*)
1626 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1627 # Reject names that are not valid shell variable names.
1628 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy5c40fb42010-08-05 16:12:44 +00001629 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001630 ac_useropt_orig=$ac_useropt
1631 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1632 case $ac_user_opts in
1633 *"
1634"with_$ac_useropt"
1635"*) ;;
1636 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1637 ac_unrecognized_sep=', ';;
1638 esac
1639 eval with_$ac_useropt=\$ac_optarg ;;
1640
1641 -without-* | --without-*)
1642 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy5c40fb42010-08-05 16:12:44 +00001645 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001646 ac_useropt_orig=$ac_useropt
1647 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1649 *"
1650"with_$ac_useropt"
1651"*) ;;
1652 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1653 ac_unrecognized_sep=', ';;
1654 esac
1655 eval with_$ac_useropt=no ;;
1656
1657 --x)
1658 # Obsolete; use --with-x.
1659 with_x=yes ;;
1660
1661 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1662 | --x-incl | --x-inc | --x-in | --x-i)
1663 ac_prev=x_includes ;;
1664 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1665 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1666 x_includes=$ac_optarg ;;
1667
1668 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1669 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1670 ac_prev=x_libraries ;;
1671 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1672 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1673 x_libraries=$ac_optarg ;;
1674
cristy5c40fb42010-08-05 16:12:44 +00001675 -*) as_fn_error "unrecognized option: \`$ac_option'
1676Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001677 ;;
1678
1679 *=*)
1680 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1681 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001682 case $ac_envvar in #(
1683 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy5c40fb42010-08-05 16:12:44 +00001684 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001685 esac
cristy3ed852e2009-09-05 21:47:34 +00001686 eval $ac_envvar=\$ac_optarg
1687 export $ac_envvar ;;
1688
1689 *)
1690 # FIXME: should be removed in autoconf 3.0.
1691 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1692 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1693 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1694 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1695 ;;
1696
1697 esac
1698done
1699
1700if test -n "$ac_prev"; then
1701 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy5c40fb42010-08-05 16:12:44 +00001702 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001703fi
1704
1705if test -n "$ac_unrecognized_opts"; then
1706 case $enable_option_checking in
1707 no) ;;
cristy5c40fb42010-08-05 16:12:44 +00001708 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001709 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1710 esac
1711fi
1712
1713# Check all directory arguments for consistency.
1714for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1715 datadir sysconfdir sharedstatedir localstatedir includedir \
1716 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1717 libdir localedir mandir
1718do
1719 eval ac_val=\$$ac_var
1720 # Remove trailing slashes.
1721 case $ac_val in
1722 */ )
1723 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1724 eval $ac_var=\$ac_val;;
1725 esac
1726 # Be sure to have absolute directory names.
1727 case $ac_val in
1728 [\\/$]* | ?:[\\/]* ) continue;;
1729 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1730 esac
cristy5c40fb42010-08-05 16:12:44 +00001731 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001732done
1733
1734# There might be people who depend on the old broken behavior: `$host'
1735# used to hold the argument of --host etc.
1736# FIXME: To remove some day.
1737build=$build_alias
1738host=$host_alias
1739target=$target_alias
1740
1741# FIXME: To remove some day.
1742if test "x$host_alias" != x; then
1743 if test "x$build_alias" = x; then
1744 cross_compiling=maybe
cristy5c40fb42010-08-05 16:12:44 +00001745 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1746 If a cross compiler is detected then cross compile mode will be used." >&2
cristy3ed852e2009-09-05 21:47:34 +00001747 elif test "x$build_alias" != "x$host_alias"; then
1748 cross_compiling=yes
1749 fi
1750fi
1751
1752ac_tool_prefix=
1753test -n "$host_alias" && ac_tool_prefix=$host_alias-
1754
1755test "$silent" = yes && exec 6>/dev/null
1756
1757
1758ac_pwd=`pwd` && test -n "$ac_pwd" &&
1759ac_ls_di=`ls -di .` &&
1760ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy5c40fb42010-08-05 16:12:44 +00001761 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001762test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy5c40fb42010-08-05 16:12:44 +00001763 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001764
1765
1766# Find the source files, if location was not specified.
1767if test -z "$srcdir"; then
1768 ac_srcdir_defaulted=yes
1769 # Try the directory containing this script, then the parent directory.
1770 ac_confdir=`$as_dirname -- "$as_myself" ||
1771$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1772 X"$as_myself" : 'X\(//\)[^/]' \| \
1773 X"$as_myself" : 'X\(//\)$' \| \
1774 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1775$as_echo X"$as_myself" |
1776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1777 s//\1/
1778 q
1779 }
1780 /^X\(\/\/\)[^/].*/{
1781 s//\1/
1782 q
1783 }
1784 /^X\(\/\/\)$/{
1785 s//\1/
1786 q
1787 }
1788 /^X\(\/\).*/{
1789 s//\1/
1790 q
1791 }
1792 s/.*/./; q'`
1793 srcdir=$ac_confdir
1794 if test ! -r "$srcdir/$ac_unique_file"; then
1795 srcdir=..
1796 fi
1797else
1798 ac_srcdir_defaulted=no
1799fi
1800if test ! -r "$srcdir/$ac_unique_file"; then
1801 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy5c40fb42010-08-05 16:12:44 +00001802 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001803fi
1804ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1805ac_abs_confdir=`(
cristy5c40fb42010-08-05 16:12:44 +00001806 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001807 pwd)`
1808# When building in place, set srcdir=.
1809if test "$ac_abs_confdir" = "$ac_pwd"; then
1810 srcdir=.
1811fi
1812# Remove unnecessary trailing slashes from srcdir.
1813# Double slashes in file names in object file debugging info
1814# mess up M-x gdb in Emacs.
1815case $srcdir in
1816*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1817esac
1818for ac_var in $ac_precious_vars; do
1819 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1820 eval ac_env_${ac_var}_value=\$${ac_var}
1821 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1822 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1823done
1824
1825#
1826# Report the --help message.
1827#
1828if test "$ac_init_help" = "long"; then
1829 # Omit some internal or obsolete options to make the list less imposing.
1830 # This message is too long to be a string in the A/UX 3.1 sh.
1831 cat <<_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00001832\`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001833
1834Usage: $0 [OPTION]... [VAR=VALUE]...
1835
1836To assign environment variables (e.g., CC, CFLAGS...), specify them as
1837VAR=VALUE. See below for descriptions of some of the useful variables.
1838
1839Defaults for the options are specified in brackets.
1840
1841Configuration:
1842 -h, --help display this help and exit
1843 --help=short display options specific to this package
1844 --help=recursive display the short help of all the included packages
1845 -V, --version display version information and exit
cristy5c40fb42010-08-05 16:12:44 +00001846 -q, --quiet, --silent do not print \`checking...' messages
cristy3ed852e2009-09-05 21:47:34 +00001847 --cache-file=FILE cache test results in FILE [disabled]
1848 -C, --config-cache alias for \`--cache-file=config.cache'
1849 -n, --no-create do not create output files
1850 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1851
1852Installation directories:
1853 --prefix=PREFIX install architecture-independent files in PREFIX
1854 [$ac_default_prefix]
1855 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1856 [PREFIX]
1857
1858By default, \`make install' will install all the files in
1859\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1860an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1861for instance \`--prefix=\$HOME'.
1862
1863For better control, use the options below.
1864
1865Fine tuning of the installation directories:
1866 --bindir=DIR user executables [EPREFIX/bin]
1867 --sbindir=DIR system admin executables [EPREFIX/sbin]
1868 --libexecdir=DIR program executables [EPREFIX/libexec]
1869 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1870 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1871 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1872 --libdir=DIR object code libraries [EPREFIX/lib]
1873 --includedir=DIR C header files [PREFIX/include]
1874 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1875 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1876 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1877 --infodir=DIR info documentation [DATAROOTDIR/info]
1878 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1879 --mandir=DIR man documentation [DATAROOTDIR/man]
1880 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1881 --htmldir=DIR html documentation [DOCDIR]
1882 --dvidir=DIR dvi documentation [DOCDIR]
1883 --pdfdir=DIR pdf documentation [DOCDIR]
1884 --psdir=DIR ps documentation [DOCDIR]
1885_ACEOF
1886
1887 cat <<\_ACEOF
1888
1889Program names:
1890 --program-prefix=PREFIX prepend PREFIX to installed program names
1891 --program-suffix=SUFFIX append SUFFIX to installed program names
1892 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1893
1894X features:
1895 --x-includes=DIR X include files are in DIR
1896 --x-libraries=DIR X library files are in DIR
1897
1898System types:
1899 --build=BUILD configure for building on BUILD [guessed]
1900 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1901 --target=TARGET configure for building compilers for TARGET [HOST]
1902_ACEOF
1903fi
1904
1905if test -n "$ac_init_help"; then
1906 case $ac_init_help in
cristyfbb4a972010-06-30 17:42:22 +00001907 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
cristy3ed852e2009-09-05 21:47:34 +00001908 esac
1909 cat <<\_ACEOF
1910
1911Optional Features:
1912 --disable-option-checking ignore unrecognized --enable/--with options
1913 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1914 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1915 --enable-silent-rules less verbose build output (undo: `make V=1')
1916 --disable-silent-rules verbose build output (undo: `make V=0')
1917 --disable-dependency-tracking speeds up one-time build
1918 --enable-dependency-tracking do not reject slow dependency extractors
1919 --bounds-checking enable run-time bounds-checking
1920 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001921 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001922 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001923 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001924 --disable-largefile omit support for large files
1925 --enable-shared[=PKGS] build shared libraries [default=yes]
1926 --enable-static[=PKGS] build static libraries [default=yes]
1927 --enable-fast-install[=PKGS]
1928 optimize for fast installation [default=yes]
1929 --disable-libtool-lock avoid locking (might break parallel builds)
1930 --enable-ltdl-install install libltdl
1931 --enable-delegate-build look for delegate libraries in build directory
1932 --disable-deprecated exclude deprecated methods in MagickCore and
1933 MagickWand API's
1934 --disable-installed Formally install ImageMagick under PREFIX
1935 --disable-cipher disable enciphering and deciphering image pixels
1936 --enable-embeddable enable self-contained, embeddable,
1937 zero-configuration ImageMagick
1938 --enable-hdri accurately represent the wide range of intensity
1939 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001940 --disable-assert disable assert() statements in build
1941 --enable-maintainer-mode enable make rules and dependencies not useful
1942 (and sometimes confusing) to the casual installer
1943 --enable-ccmalloc enable 'ccmalloc' memory debug support
1944 --enable-efence enable 'efence' memory debug support
1945 --enable-prof enable 'prof' profiling support
1946 --enable-gprof enable 'gprof' profiling support
1947 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001948 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001949
1950Optional Packages:
1951 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1952 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1953 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001954 --with-dmalloc use dmalloc, as in
1955 http://www.dmalloc.com/dmalloc.tar.gz
1956 --without-threads disable threads support
1957 --with-pic try to use only PIC/non-PIC objects [default=use
1958 both]
1959 --with-included-ltdl use the GNU ltdl sources included here
1960 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1961 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1962 --with-modules enable building dynamically loadable modules
1963 --with-method-prefix=PREFIX
1964 prefix MagickCore API methods
1965 --with-quantum-depth=DEPTH
1966 number of bits in a pixel quantum (default 16)
1967 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1968 memory)
1969 --with-frozenpaths freeze delegate paths
1970 --without-magick-plus-plus
1971 disable build/install of Magick++
1972 --with-perl enable build/install of PerlMagick
1973 --with-perl-options=OPTIONS
1974 options to pass on command-line when generating
1975 PerlMagick's build file
1976 --with-umem enable umem memory allocation library support
1977 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1978 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001979 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001980 --without-zlib disable ZLIB support
1981 --with-autotrace enable autotrace support
1982 --without-dps disable Display Postscript support
1983 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001984 --with-dejavu-font-dir=DIR
1985 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001986 --without-fftw disable FFTW support
1987 --without-fpx disable FlashPIX support
1988 --without-fontconfig disable fontconfig support
1989 --without-freetype disable Freetype support
1990 --without-gslib enable Ghostscript library support
1991 --with-fontpath=DIR prepend to default font search path
1992 --with-gs-font-dir=DIR Ghostscript font directory
1993 --without-gvc disable GVC support
1994 --without-jbig disable JBIG support
1995 --without-jpeg disable JPEG support
1996 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001997 --without-lcms disable lcms (v1.1X) support
1998 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001999 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-openexr disable OpenEXR support
2001 --without-png disable PNG support
2002 --without-rsvg disable RSVG support
2003 --without-tiff disable TIFF support
2004 --with-windows-font-dir=DIR
2005 directory containing MS-Windows fonts
2006 --without-wmf disable WMF support
2007 --without-xml disable XML support
2008
2009Some influential environment variables:
2010 CC C compiler command
2011 CFLAGS C compiler flags
2012 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2013 nonstandard directory <lib dir>
2014 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002015 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002016 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002017 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002018 CXX C++ compiler command
2019 CXXFLAGS C++ compiler flags
2020 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002021 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002022 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002023 AUTOTRACE_CFLAGS
2024 C compiler flags for AUTOTRACE, overriding pkg-config
2025 AUTOTRACE_LIBS
2026 linker flags for AUTOTRACE, overriding pkg-config
2027 FONTCONFIG_CFLAGS
2028 C compiler flags for FONTCONFIG, overriding pkg-config
2029 FONTCONFIG_LIBS
2030 linker flags for FONTCONFIG, overriding pkg-config
2031 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2032 GVC_LIBS linker flags for GVC, overriding pkg-config
2033 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2034 LQR_LIBS linker flags for LQR, overriding pkg-config
2035 OPENEXR_CFLAGS
2036 C compiler flags for OPENEXR, overriding pkg-config
2037 OPENEXR_LIBS
2038 linker flags for OPENEXR, overriding pkg-config
2039 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2040 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2041 CAIRO_SVG_CFLAGS
2042 C compiler flags for CAIRO_SVG, overriding pkg-config
2043 CAIRO_SVG_LIBS
2044 linker flags for CAIRO_SVG, overriding pkg-config
2045
2046Use these variables to override the choices made by `configure' or to help
2047it to find libraries and programs with nonstandard names/locations.
2048
2049Report bugs to <http://www.imagemagick.org>.
2050_ACEOF
2051ac_status=$?
2052fi
2053
2054if test "$ac_init_help" = "recursive"; then
2055 # If there are subdirs, report their specific --help.
2056 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2057 test -d "$ac_dir" ||
2058 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2059 continue
2060 ac_builddir=.
2061
2062case "$ac_dir" in
2063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2064*)
2065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2066 # A ".." for each directory in $ac_dir_suffix.
2067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2068 case $ac_top_builddir_sub in
2069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2071 esac ;;
2072esac
2073ac_abs_top_builddir=$ac_pwd
2074ac_abs_builddir=$ac_pwd$ac_dir_suffix
2075# for backward compatibility:
2076ac_top_builddir=$ac_top_build_prefix
2077
2078case $srcdir in
2079 .) # We are building in place.
2080 ac_srcdir=.
2081 ac_top_srcdir=$ac_top_builddir_sub
2082 ac_abs_top_srcdir=$ac_pwd ;;
2083 [\\/]* | ?:[\\/]* ) # Absolute name.
2084 ac_srcdir=$srcdir$ac_dir_suffix;
2085 ac_top_srcdir=$srcdir
2086 ac_abs_top_srcdir=$srcdir ;;
2087 *) # Relative name.
2088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2089 ac_top_srcdir=$ac_top_build_prefix$srcdir
2090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2091esac
2092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2093
2094 cd "$ac_dir" || { ac_status=$?; continue; }
2095 # Check for guested configure.
2096 if test -f "$ac_srcdir/configure.gnu"; then
2097 echo &&
2098 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2099 elif test -f "$ac_srcdir/configure"; then
2100 echo &&
2101 $SHELL "$ac_srcdir/configure" --help=recursive
2102 else
2103 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2104 fi || ac_status=$?
2105 cd "$ac_pwd" || { ac_status=$?; break; }
2106 done
2107fi
2108
2109test -n "$ac_init_help" && exit $ac_status
2110if $ac_init_version; then
2111 cat <<\_ACEOF
cristyfbb4a972010-06-30 17:42:22 +00002112ImageMagick configure 6.6.3
cristy5c40fb42010-08-05 16:12:44 +00002113generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002114
cristy5c40fb42010-08-05 16:12:44 +00002115Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002116This configure script is free software; the Free Software Foundation
2117gives unlimited permission to copy, distribute and modify it.
2118_ACEOF
2119 exit
2120fi
cristy8b350f62009-11-15 23:12:43 +00002121
2122## ------------------------ ##
2123## Autoconf initialization. ##
2124## ------------------------ ##
2125
2126# ac_fn_c_try_compile LINENO
2127# --------------------------
2128# Try to compile conftest.$ac_ext, and return whether this succeeded.
2129ac_fn_c_try_compile ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext
2133 if { { ac_try="$ac_compile"
2134case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137esac
2138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139$as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_compile") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2146 fi
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_c_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest.$ac_objext; then :
2152 ac_retval=0
2153else
2154 $as_echo "$as_me: failed program was:" >&5
2155sed 's/^/| /' conftest.$ac_ext >&5
2156
2157 ac_retval=1
2158fi
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002160 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002161
2162} # ac_fn_c_try_compile
2163
cristy95646052009-11-28 23:05:30 +00002164# ac_fn_c_try_cpp LINENO
2165# ----------------------
2166# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2167ac_fn_c_try_cpp ()
2168{
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 if { { ac_try="$ac_cpp conftest.$ac_ext"
2171case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174esac
2175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176$as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2178 ac_status=$?
2179 if test -s conftest.err; then
2180 grep -v '^ *+' conftest.err >conftest.er1
2181 cat conftest.er1 >&5
2182 mv -f conftest.er1 conftest.err
2183 fi
2184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185 test $ac_status = 0; } >/dev/null && {
2186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2187 test ! -s conftest.err
2188 }; then :
2189 ac_retval=0
2190else
2191 $as_echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_retval=1
2195fi
2196 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 as_fn_set_status $ac_retval
2198
2199} # ac_fn_c_try_cpp
2200
cristy8b350f62009-11-15 23:12:43 +00002201# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2202# -------------------------------------------------------
2203# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2204# the include files in INCLUDES and setting the cache variable VAR
2205# accordingly.
2206ac_fn_c_check_header_mongrel ()
2207{
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy5c40fb42010-08-05 16:12:44 +00002209 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002212if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002213 $as_echo_n "(cached) " >&6
2214fi
2215eval ac_res=\$$3
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217$as_echo "$ac_res" >&6; }
2218else
2219 # Is the header compilable?
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2221$as_echo_n "checking $2 usability... " >&6; }
2222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223/* end confdefs.h. */
2224$4
2225#include <$2>
2226_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_header_compiler=yes
2229else
2230 ac_header_compiler=no
2231fi
2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2234$as_echo "$ac_header_compiler" >&6; }
2235
2236# Is the header present?
2237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2238$as_echo_n "checking $2 presence... " >&6; }
2239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241#include <$2>
2242_ACEOF
2243if ac_fn_c_try_cpp "$LINENO"; then :
2244 ac_header_preproc=yes
2245else
2246 ac_header_preproc=no
2247fi
2248rm -f conftest.err conftest.$ac_ext
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2250$as_echo "$ac_header_preproc" >&6; }
2251
2252# So? What about this header?
2253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2254 yes:no: )
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2256$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2258$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259 ;;
2260 no:yes:* )
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2262$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2264$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2266$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2268$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2270$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00002271( cat <<\_ASBOX
2272## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002273## Report this to http://www.imagemagick.org ##
cristy5c40fb42010-08-05 16:12:44 +00002274## ----------------------------------------- ##
2275_ASBOX
cristy8b350f62009-11-15 23:12:43 +00002276 ) | sed "s/^/$as_me: WARNING: /" >&2
2277 ;;
2278esac
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002281if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002282 $as_echo_n "(cached) " >&6
2283else
2284 eval "$3=\$ac_header_compiler"
2285fi
2286eval ac_res=\$$3
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289fi
2290 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291
2292} # ac_fn_c_check_header_mongrel
2293
2294# ac_fn_c_try_run LINENO
2295# ----------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2297# that executables *can* be run.
2298ac_fn_c_try_run ()
2299{
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>&5
2309 ac_status=$?
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2312 { { case "(($ac_try" in
2313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314 *) ac_try_echo=$ac_try;;
2315esac
2316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317$as_echo "$ac_try_echo"; } >&5
2318 (eval "$ac_try") 2>&5
2319 ac_status=$?
2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321 test $ac_status = 0; }; }; then :
2322 ac_retval=0
2323else
2324 $as_echo "$as_me: program exited with status $ac_status" >&5
2325 $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_retval=$ac_status
2329fi
2330 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002332 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002333
2334} # ac_fn_c_try_run
2335
2336# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2337# -------------------------------------------------------
2338# Tests whether HEADER exists and can be compiled using the include files in
2339# INCLUDES, setting the cache variable VAR accordingly.
2340ac_fn_c_check_header_compile ()
2341{
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002345if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002346 $as_echo_n "(cached) " >&6
2347else
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349/* end confdefs.h. */
2350$4
2351#include <$2>
2352_ACEOF
2353if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355else
2356 eval "$3=no"
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364
2365} # ac_fn_c_check_header_compile
2366
cristya0b81c32010-01-22 02:54:33 +00002367# ac_fn_cxx_try_compile LINENO
2368# ----------------------------
2369# Try to compile conftest.$ac_ext, and return whether this succeeded.
2370ac_fn_cxx_try_compile ()
2371{
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 rm -f conftest.$ac_objext
2374 if { { ac_try="$ac_compile"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380$as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_compile") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2387 fi
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && {
2390 test -z "$ac_cxx_werror_flag" ||
2391 test ! -s conftest.err
2392 } && test -s conftest.$ac_objext; then :
2393 ac_retval=0
2394else
2395 $as_echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 ac_retval=1
2399fi
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 as_fn_set_status $ac_retval
2402
2403} # ac_fn_cxx_try_compile
2404
cristy8b350f62009-11-15 23:12:43 +00002405# ac_fn_c_try_link LINENO
2406# -----------------------
2407# Try to link conftest.$ac_ext, and return whether this succeeded.
2408ac_fn_c_try_link ()
2409{
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 rm -f conftest.$ac_objext conftest$ac_exeext
2412 if { { ac_try="$ac_link"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2418$as_echo "$ac_try_echo"; } >&5
2419 (eval "$ac_link") 2>conftest.err
2420 ac_status=$?
2421 if test -s conftest.err; then
2422 grep -v '^ *+' conftest.err >conftest.er1
2423 cat conftest.er1 >&5
2424 mv -f conftest.er1 conftest.err
2425 fi
2426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2427 test $ac_status = 0; } && {
2428 test -z "$ac_c_werror_flag" ||
2429 test ! -s conftest.err
2430 } && test -s conftest$ac_exeext && {
2431 test "$cross_compiling" = yes ||
2432 $as_test_x conftest$ac_exeext
2433 }; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
2441 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2442 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2443 # interfere with the next link command; also delete a directory that is
2444 # left behind by Apple's compiler. We do this before executing the actions.
2445 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002447 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002448
2449} # ac_fn_c_try_link
2450
2451# ac_fn_c_check_func LINENO FUNC VAR
2452# ----------------------------------
2453# Tests whether FUNC exists, setting the cache variable VAR accordingly
2454ac_fn_c_check_func ()
2455{
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2458$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002459if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002460 $as_echo_n "(cached) " >&6
2461else
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463/* end confdefs.h. */
2464/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2466#define $2 innocuous_$2
2467
2468/* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char $2 (); below.
2470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 <limits.h> exists even on freestanding compilers. */
2472
2473#ifdef __STDC__
2474# include <limits.h>
2475#else
2476# include <assert.h>
2477#endif
2478
2479#undef $2
2480
2481/* Override any GCC internal prototype to avoid an error.
2482 Use char because int might match the return type of a GCC
2483 builtin and then its argument prototype would still apply. */
2484#ifdef __cplusplus
2485extern "C"
2486#endif
2487char $2 ();
2488/* The GNU C library defines this for functions which it implements
2489 to always fail with ENOSYS. Some functions are actually named
2490 something starting with __ and the normal name is an alias. */
2491#if defined __stub_$2 || defined __stub___$2
2492choke me
2493#endif
2494
2495int
2496main ()
2497{
2498return $2 ();
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503if ac_fn_c_try_link "$LINENO"; then :
2504 eval "$3=yes"
2505else
2506 eval "$3=no"
2507fi
2508rm -f core conftest.err conftest.$ac_objext \
2509 conftest$ac_exeext conftest.$ac_ext
2510fi
2511eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513$as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515
2516} # ac_fn_c_check_func
2517
2518# ac_fn_cxx_try_cpp LINENO
2519# ------------------------
2520# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521ac_fn_cxx_try_cpp ()
2522{
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530$as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2537 fi
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544else
2545 $as_echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548 ac_retval=1
2549fi
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002551 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002552
2553} # ac_fn_cxx_try_cpp
2554
2555# ac_fn_cxx_try_link LINENO
2556# -------------------------
2557# Try to link conftest.$ac_ext, and return whether this succeeded.
2558ac_fn_cxx_try_link ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2563case "(($ac_try" in
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2566esac
2567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568$as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2570 ac_status=$?
2571 if test -s conftest.err; then
2572 grep -v '^ *+' conftest.err >conftest.er1
2573 cat conftest.er1 >&5
2574 mv -f conftest.er1 conftest.err
2575 fi
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 $as_test_x conftest$ac_exeext
2583 }; then :
2584 ac_retval=0
2585else
2586 $as_echo "$as_me: failed program was:" >&5
2587sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 ac_retval=1
2590fi
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002597 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002598
2599} # ac_fn_cxx_try_link
2600
cristy5c40fb42010-08-05 16:12:44 +00002601# ac_fn_c_check_decl LINENO SYMBOL VAR
2602# ------------------------------------
2603# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
cristy8b350f62009-11-15 23:12:43 +00002604ac_fn_c_check_decl ()
2605{
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy5c40fb42010-08-05 16:12:44 +00002607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2608$as_echo_n "checking whether $2 is declared... " >&6; }
2609if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002610 $as_echo_n "(cached) " >&6
2611else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$4
2615int
2616main ()
2617{
cristy5c40fb42010-08-05 16:12:44 +00002618#ifndef $2
2619 (void) $2;
cristy8b350f62009-11-15 23:12:43 +00002620#endif
2621
2622 ;
2623 return 0;
2624}
2625_ACEOF
2626if ac_fn_c_try_compile "$LINENO"; then :
2627 eval "$3=yes"
2628else
2629 eval "$3=no"
2630fi
2631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632fi
2633eval ac_res=\$$3
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635$as_echo "$ac_res" >&6; }
2636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2637
2638} # ac_fn_c_check_decl
2639
2640# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2641# -------------------------------------------
2642# Tests whether TYPE exists after having included INCLUDES, setting cache
2643# variable VAR accordingly.
2644ac_fn_c_check_type ()
2645{
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2648$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002649if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002650 $as_echo_n "(cached) " >&6
2651else
2652 eval "$3=no"
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654/* end confdefs.h. */
2655$4
2656int
2657main ()
2658{
2659if (sizeof ($2))
2660 return 0;
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667/* end confdefs.h. */
2668$4
2669int
2670main ()
2671{
2672if (sizeof (($2)))
2673 return 0;
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679
2680else
2681 eval "$3=yes"
2682fi
2683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686fi
2687eval ac_res=\$$3
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689$as_echo "$ac_res" >&6; }
2690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691
2692} # ac_fn_c_check_type
2693
cristy92703d82010-04-26 00:18:18 +00002694# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2695# ----------------------------------------------------
2696# Tries to find if the field MEMBER exists in type AGGR, after including
2697# INCLUDES, setting cache variable VAR accordingly.
2698ac_fn_c_check_member ()
2699{
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2702$as_echo_n "checking for $2.$3... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002703if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy92703d82010-04-26 00:18:18 +00002704 $as_echo_n "(cached) " >&6
2705else
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707/* end confdefs.h. */
2708$5
2709int
2710main ()
2711{
2712static $2 ac_aggr;
2713if (ac_aggr.$3)
2714return 0;
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719if ac_fn_c_try_compile "$LINENO"; then :
2720 eval "$4=yes"
2721else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723/* end confdefs.h. */
2724$5
2725int
2726main ()
2727{
2728static $2 ac_aggr;
2729if (sizeof ac_aggr.$3)
2730return 0;
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735if ac_fn_c_try_compile "$LINENO"; then :
2736 eval "$4=yes"
2737else
2738 eval "$4=no"
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741fi
2742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743fi
2744eval ac_res=\$$4
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746$as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748
2749} # ac_fn_c_check_member
2750
cristy8b350f62009-11-15 23:12:43 +00002751# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2752# --------------------------------------------
2753# Tries to find the compile-time value of EXPR in a program that includes
2754# INCLUDES, setting VAR accordingly. Returns whether the value could be
2755# computed
2756ac_fn_c_compute_int ()
2757{
2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759 if test "$cross_compiling" = yes; then
2760 # Depending upon the size, compute the lo and hi bounds.
2761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2762/* end confdefs.h. */
2763$4
2764int
2765main ()
2766{
2767static int test_array [1 - 2 * !(($2) >= 0)];
2768test_array [0] = 0
2769
2770 ;
2771 return 0;
2772}
2773_ACEOF
2774if ac_fn_c_try_compile "$LINENO"; then :
2775 ac_lo=0 ac_mid=0
2776 while :; do
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h. */
2779$4
2780int
2781main ()
2782{
2783static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2784test_array [0] = 0
2785
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790if ac_fn_c_try_compile "$LINENO"; then :
2791 ac_hi=$ac_mid; break
2792else
2793 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2794 if test $ac_lo -le $ac_mid; then
2795 ac_lo= ac_hi=
2796 break
2797 fi
2798 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2799fi
2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802else
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804/* end confdefs.h. */
2805$4
2806int
2807main ()
2808{
2809static int test_array [1 - 2 * !(($2) < 0)];
2810test_array [0] = 0
2811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817 ac_hi=-1 ac_mid=-1
2818 while :; do
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820/* end confdefs.h. */
2821$4
2822int
2823main ()
2824{
2825static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2826test_array [0] = 0
2827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832if ac_fn_c_try_compile "$LINENO"; then :
2833 ac_lo=$ac_mid; break
2834else
2835 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2836 if test $ac_mid -le $ac_hi; then
2837 ac_lo= ac_hi=
2838 break
2839 fi
2840 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2841fi
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 done
2844else
2845 ac_lo= ac_hi=
2846fi
2847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848fi
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850# Binary search between lo and hi bounds.
2851while test "x$ac_lo" != "x$ac_hi"; do
2852 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h. */
2855$4
2856int
2857main ()
2858{
2859static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2860test_array [0] = 0
2861
2862 ;
2863 return 0;
2864}
2865_ACEOF
2866if ac_fn_c_try_compile "$LINENO"; then :
2867 ac_hi=$ac_mid
2868else
2869 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2870fi
2871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872done
2873case $ac_lo in #((
2874?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2875'') ac_retval=1 ;;
2876esac
2877 else
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h. */
2880$4
2881static long int longval () { return $2; }
2882static unsigned long int ulongval () { return $2; }
2883#include <stdio.h>
2884#include <stdlib.h>
2885int
2886main ()
2887{
2888
2889 FILE *f = fopen ("conftest.val", "w");
2890 if (! f)
2891 return 1;
2892 if (($2) < 0)
2893 {
2894 long int i = longval ();
2895 if (i != ($2))
2896 return 1;
2897 fprintf (f, "%ld", i);
2898 }
2899 else
2900 {
2901 unsigned long int i = ulongval ();
2902 if (i != ($2))
2903 return 1;
2904 fprintf (f, "%lu", i);
2905 }
2906 /* Do not output a trailing newline, as this causes \r\n confusion
2907 on some platforms. */
2908 return ferror (f) || fclose (f) != 0;
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914if ac_fn_c_try_run "$LINENO"; then :
2915 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2916else
2917 ac_retval=1
2918fi
2919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2920 conftest.$ac_objext conftest.beam conftest.$ac_ext
2921rm -f conftest.val
2922
2923 fi
2924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002925 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002926
2927} # ac_fn_c_compute_int
2928
2929# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2930# ---------------------------------------------------------
2931# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2932# the include files in INCLUDES and setting the cache variable VAR
2933# accordingly.
2934ac_fn_cxx_check_header_mongrel ()
2935{
2936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy5c40fb42010-08-05 16:12:44 +00002937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2939$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00002940if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00002941 $as_echo_n "(cached) " >&6
2942fi
2943eval ac_res=\$$3
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945$as_echo "$ac_res" >&6; }
2946else
2947 # Is the header compilable?
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2949$as_echo_n "checking $2 usability... " >&6; }
2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h. */
2952$4
2953#include <$2>
2954_ACEOF
2955if ac_fn_cxx_try_compile "$LINENO"; then :
2956 ac_header_compiler=yes
2957else
2958 ac_header_compiler=no
2959fi
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2962$as_echo "$ac_header_compiler" >&6; }
2963
2964# Is the header present?
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2966$as_echo_n "checking $2 presence... " >&6; }
2967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968/* end confdefs.h. */
2969#include <$2>
2970_ACEOF
2971if ac_fn_cxx_try_cpp "$LINENO"; then :
2972 ac_header_preproc=yes
2973else
2974 ac_header_preproc=no
2975fi
2976rm -f conftest.err conftest.$ac_ext
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2978$as_echo "$ac_header_preproc" >&6; }
2979
2980# So? What about this header?
2981case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2982 yes:no: )
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2984$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2987 ;;
2988 no:yes:* )
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2990$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2992$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2994$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2996$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2998$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00002999( cat <<\_ASBOX
3000## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003001## Report this to http://www.imagemagick.org ##
cristy5c40fb42010-08-05 16:12:44 +00003002## ----------------------------------------- ##
3003_ASBOX
cristy8b350f62009-11-15 23:12:43 +00003004 ) | sed "s/^/$as_me: WARNING: /" >&2
3005 ;;
3006esac
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3008$as_echo_n "checking for $2... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +00003009if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy8b350f62009-11-15 23:12:43 +00003010 $as_echo_n "(cached) " >&6
3011else
3012 eval "$3=\$ac_header_compiler"
3013fi
3014eval ac_res=\$$3
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3016$as_echo "$ac_res" >&6; }
3017fi
3018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3019
3020} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003021cat >config.log <<_ACEOF
3022This file contains any messages produced by compilers while
3023running configure, to aid debugging if configure makes a mistake.
3024
cristyfbb4a972010-06-30 17:42:22 +00003025It was created by ImageMagick $as_me 6.6.3, which was
cristy5c40fb42010-08-05 16:12:44 +00003026generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003027
3028 $ $0 $@
3029
3030_ACEOF
3031exec 5>>config.log
3032{
3033cat <<_ASUNAME
3034## --------- ##
3035## Platform. ##
3036## --------- ##
3037
3038hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3039uname -m = `(uname -m) 2>/dev/null || echo unknown`
3040uname -r = `(uname -r) 2>/dev/null || echo unknown`
3041uname -s = `(uname -s) 2>/dev/null || echo unknown`
3042uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043
3044/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3045/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3046
3047/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3048/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3049/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3050/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3051/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3052/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3053/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3054
3055_ASUNAME
3056
3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058for as_dir in $PATH
3059do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003062 $as_echo "PATH: $as_dir"
3063 done
cristy3ed852e2009-09-05 21:47:34 +00003064IFS=$as_save_IFS
3065
3066} >&5
3067
3068cat >&5 <<_ACEOF
3069
3070
3071## ----------- ##
3072## Core tests. ##
3073## ----------- ##
3074
3075_ACEOF
3076
3077
3078# Keep a trace of the command line.
3079# Strip out --no-create and --no-recursion so they do not pile up.
3080# Strip out --silent because we don't want to record it for future runs.
3081# Also quote any args containing shell meta-characters.
3082# Make two passes to allow for proper duplicate-argument suppression.
3083ac_configure_args=
3084ac_configure_args0=
3085ac_configure_args1=
3086ac_must_keep_next=false
3087for ac_pass in 1 2
3088do
3089 for ac_arg
3090 do
3091 case $ac_arg in
3092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3094 | -silent | --silent | --silen | --sile | --sil)
3095 continue ;;
3096 *\'*)
3097 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3098 esac
3099 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003100 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003101 2)
cristy8b350f62009-11-15 23:12:43 +00003102 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003103 if test $ac_must_keep_next = true; then
3104 ac_must_keep_next=false # Got value, back to normal.
3105 else
3106 case $ac_arg in
3107 *=* | --config-cache | -C | -disable-* | --disable-* \
3108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3110 | -with-* | --with-* | -without-* | --without-* | --x)
3111 case "$ac_configure_args0 " in
3112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3113 esac
3114 ;;
3115 -* ) ac_must_keep_next=true ;;
3116 esac
3117 fi
cristy8b350f62009-11-15 23:12:43 +00003118 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003119 ;;
3120 esac
3121 done
3122done
cristy8b350f62009-11-15 23:12:43 +00003123{ ac_configure_args0=; unset ac_configure_args0;}
3124{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003125
3126# When interrupted or exit'd, cleanup temporary files, and complete
3127# config.log. We remove comments because anyway the quotes in there
3128# would cause problems or look ugly.
3129# WARNING: Use '\'' to represent an apostrophe within the trap.
3130# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131trap 'exit_status=$?
3132 # Save into config.log some information that might help in debugging.
3133 {
3134 echo
3135
cristy5c40fb42010-08-05 16:12:44 +00003136 cat <<\_ASBOX
3137## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003138## Cache variables. ##
cristy5c40fb42010-08-05 16:12:44 +00003139## ---------------- ##
3140_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003141 echo
3142 # The following way of writing the cache mishandles newlines in values,
3143(
3144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145 eval ac_val=\$$ac_var
3146 case $ac_val in #(
3147 *${as_nl}*)
3148 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003150$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3151 esac
3152 case $ac_var in #(
3153 _ | IFS | as_nl) ;; #(
3154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003155 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003156 esac ;;
3157 esac
3158 done
3159 (set) 2>&1 |
3160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161 *${as_nl}ac_space=\ *)
3162 sed -n \
3163 "s/'\''/'\''\\\\'\'''\''/g;
3164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3165 ;; #(
3166 *)
3167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168 ;;
3169 esac |
3170 sort
3171)
3172 echo
3173
cristy5c40fb42010-08-05 16:12:44 +00003174 cat <<\_ASBOX
3175## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003176## Output variables. ##
cristy5c40fb42010-08-05 16:12:44 +00003177## ----------------- ##
3178_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003179 echo
3180 for ac_var in $ac_subst_vars
3181 do
3182 eval ac_val=\$$ac_var
3183 case $ac_val in
3184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3185 esac
3186 $as_echo "$ac_var='\''$ac_val'\''"
3187 done | sort
3188 echo
3189
3190 if test -n "$ac_subst_files"; then
cristy5c40fb42010-08-05 16:12:44 +00003191 cat <<\_ASBOX
3192## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003193## File substitutions. ##
cristy5c40fb42010-08-05 16:12:44 +00003194## ------------------- ##
3195_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003196 echo
3197 for ac_var in $ac_subst_files
3198 do
3199 eval ac_val=\$$ac_var
3200 case $ac_val in
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 esac
3203 $as_echo "$ac_var='\''$ac_val'\''"
3204 done | sort
3205 echo
3206 fi
3207
3208 if test -s confdefs.h; then
cristy5c40fb42010-08-05 16:12:44 +00003209 cat <<\_ASBOX
3210## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003211## confdefs.h. ##
cristy5c40fb42010-08-05 16:12:44 +00003212## ----------- ##
3213_ASBOX
cristy3ed852e2009-09-05 21:47:34 +00003214 echo
3215 cat confdefs.h
3216 echo
3217 fi
3218 test "$ac_signal" != 0 &&
3219 $as_echo "$as_me: caught signal $ac_signal"
3220 $as_echo "$as_me: exit $exit_status"
3221 } >&5
3222 rm -f core *.core core.conftest.* &&
3223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3224 exit $exit_status
3225' 0
3226for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003228done
3229ac_signal=0
3230
3231# confdefs.h avoids OS command line length limits that DEFS can exceed.
3232rm -f -r conftest* confdefs.h
3233
cristy8b350f62009-11-15 23:12:43 +00003234$as_echo "/* confdefs.h */" > confdefs.h
3235
cristy3ed852e2009-09-05 21:47:34 +00003236# Predefined preprocessor variables.
3237
3238cat >>confdefs.h <<_ACEOF
3239#define PACKAGE_NAME "$PACKAGE_NAME"
3240_ACEOF
3241
cristy3ed852e2009-09-05 21:47:34 +00003242cat >>confdefs.h <<_ACEOF
3243#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3244_ACEOF
3245
cristy3ed852e2009-09-05 21:47:34 +00003246cat >>confdefs.h <<_ACEOF
3247#define PACKAGE_VERSION "$PACKAGE_VERSION"
3248_ACEOF
3249
cristy3ed852e2009-09-05 21:47:34 +00003250cat >>confdefs.h <<_ACEOF
3251#define PACKAGE_STRING "$PACKAGE_STRING"
3252_ACEOF
3253
cristy3ed852e2009-09-05 21:47:34 +00003254cat >>confdefs.h <<_ACEOF
3255#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3256_ACEOF
3257
cristy8b350f62009-11-15 23:12:43 +00003258cat >>confdefs.h <<_ACEOF
3259#define PACKAGE_URL "$PACKAGE_URL"
3260_ACEOF
3261
cristy3ed852e2009-09-05 21:47:34 +00003262
3263# Let the site file select an alternate cache file if it wants to.
3264# Prefer an explicitly selected file to automatically selected ones.
3265ac_site_file1=NONE
3266ac_site_file2=NONE
3267if test -n "$CONFIG_SITE"; then
cristy5c40fb42010-08-05 16:12:44 +00003268 ac_site_file1=$CONFIG_SITE
cristy3ed852e2009-09-05 21:47:34 +00003269elif test "x$prefix" != xNONE; then
3270 ac_site_file1=$prefix/share/config.site
3271 ac_site_file2=$prefix/etc/config.site
3272else
3273 ac_site_file1=$ac_default_prefix/share/config.site
3274 ac_site_file2=$ac_default_prefix/etc/config.site
3275fi
3276for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3277do
3278 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003279 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003281$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3282 sed 's/^/| /' "$ac_site_file" >&5
cristy5c40fb42010-08-05 16:12:44 +00003283 . "$ac_site_file"
cristy3ed852e2009-09-05 21:47:34 +00003284 fi
3285done
3286
3287if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003288 # Some versions of bash will fail to source /dev/null (special files
3289 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3290 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003292$as_echo "$as_me: loading cache $cache_file" >&6;}
3293 case $cache_file in
3294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3295 *) . "./$cache_file";;
3296 esac
3297 fi
3298else
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: creating cache $cache_file" >&6;}
3301 >$cache_file
3302fi
3303
cristycd4c5312009-11-22 01:19:08 +00003304as_fn_append ac_header_list " stdlib.h"
3305as_fn_append ac_header_list " unistd.h"
3306as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003307# Check that the precious variables saved in the cache have kept the same
3308# value.
3309ac_cache_corrupted=false
3310for ac_var in $ac_precious_vars; do
3311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3312 eval ac_new_set=\$ac_env_${ac_var}_set
3313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3314 eval ac_new_val=\$ac_env_${ac_var}_value
3315 case $ac_old_set,$ac_new_set in
3316 set,)
cristy8b350f62009-11-15 23:12:43 +00003317 { $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 +00003318$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3319 ac_cache_corrupted=: ;;
3320 ,set)
cristy8b350f62009-11-15 23:12:43 +00003321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003322$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3323 ac_cache_corrupted=: ;;
3324 ,);;
3325 *)
3326 if test "x$ac_old_val" != "x$ac_new_val"; then
3327 # differences in whitespace do not lead to failure.
3328 ac_old_val_w=`echo x $ac_old_val`
3329 ac_new_val_w=`echo x $ac_new_val`
3330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003332$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3333 ac_cache_corrupted=:
3334 else
cristy8b350f62009-11-15 23:12:43 +00003335 { $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 +00003336$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3337 eval $ac_var=\$ac_old_val
3338 fi
cristy8b350f62009-11-15 23:12:43 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003342$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3343 fi;;
3344 esac
3345 # Pass precious variables to config.status.
3346 if test "$ac_new_set" = set; then
3347 case $ac_new_val in
3348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3349 *) ac_arg=$ac_var=$ac_new_val ;;
3350 esac
3351 case " $ac_configure_args " in
3352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003354 esac
3355 fi
3356done
3357if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003361$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00003362 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003363fi
cristy8b350f62009-11-15 23:12:43 +00003364## -------------------- ##
3365## Main body of script. ##
3366## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003367
3368ac_ext=c
3369ac_cpp='$CPP $CPPFLAGS'
3370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373
3374
3375
3376ac_aux_dir=
3377for ac_dir in config "$srcdir"/config; do
cristy5c40fb42010-08-05 16:12:44 +00003378 for ac_t in install-sh install.sh shtool; do
3379 if test -f "$ac_dir/$ac_t"; then
3380 ac_aux_dir=$ac_dir
3381 ac_install_sh="$ac_aux_dir/$ac_t -c"
3382 break 2
3383 fi
3384 done
cristy3ed852e2009-09-05 21:47:34 +00003385done
3386if test -z "$ac_aux_dir"; then
cristy5c40fb42010-08-05 16:12:44 +00003387 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003388fi
3389
3390# These three variables are undocumented and unsupported,
3391# and are intended to be withdrawn in a future Autoconf release.
3392# They can cause serious problems if a builder's source tree is in a directory
3393# whose full name contains unusual characters.
3394ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3395ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3396ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3397
3398
3399
3400
3401ac_config_headers="$ac_config_headers config/config.h"
3402
3403ac_config_commands="$ac_config_commands magick/magick-config.h"
3404
cristy430a7312010-01-21 20:44:04 +00003405ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003406
3407
3408#
3409# Save initial user-tunable values
3410#
3411USER_LIBS=$LIBS
3412for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3413 eval isset=\${$var+set}
3414 if test "$isset" = 'set'; then
3415 eval val=$`echo $var`
3416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3417 fi
3418done
3419
3420
3421CONFIGURE_ARGS="$0 ${ac_configure_args}"
3422
3423
3424# Source file containing package/library versioning information.
3425. ${srcdir}/version.sh
3426
cristy15a88782010-01-31 23:24:49 +00003427echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003428# Make sure we can run config.sub.
3429$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy5c40fb42010-08-05 16:12:44 +00003430 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003431
cristy8b350f62009-11-15 23:12:43 +00003432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003434if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003435 $as_echo_n "(cached) " >&6
3436else
3437 ac_build_alias=$build_alias
3438test "x$ac_build_alias" = x &&
3439 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3440test "x$ac_build_alias" = x &&
cristy5c40fb42010-08-05 16:12:44 +00003441 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003442ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy5c40fb42010-08-05 16:12:44 +00003443 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003444
3445fi
cristy8b350f62009-11-15 23:12:43 +00003446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003447$as_echo "$ac_cv_build" >&6; }
3448case $ac_cv_build in
3449*-*-*) ;;
cristy5c40fb42010-08-05 16:12:44 +00003450*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003451esac
3452build=$ac_cv_build
3453ac_save_IFS=$IFS; IFS='-'
3454set x $ac_cv_build
3455shift
3456build_cpu=$1
3457build_vendor=$2
3458shift; shift
3459# Remember, the first character of IFS is used to create $*,
3460# except with old shells:
3461build_os=$*
3462IFS=$ac_save_IFS
3463case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3464
3465
cristy8b350f62009-11-15 23:12:43 +00003466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003467$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003468if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003469 $as_echo_n "(cached) " >&6
3470else
3471 if test "x$host_alias" = x; then
3472 ac_cv_host=$ac_cv_build
3473else
3474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy5c40fb42010-08-05 16:12:44 +00003475 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003476fi
3477
3478fi
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo "$ac_cv_host" >&6; }
3481case $ac_cv_host in
3482*-*-*) ;;
cristy5c40fb42010-08-05 16:12:44 +00003483*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003484esac
3485host=$ac_cv_host
3486ac_save_IFS=$IFS; IFS='-'
3487set x $ac_cv_host
3488shift
3489host_cpu=$1
3490host_vendor=$2
3491shift; shift
3492# Remember, the first character of IFS is used to create $*,
3493# except with old shells:
3494host_os=$*
3495IFS=$ac_save_IFS
3496case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3497
3498
cristy8b350f62009-11-15 23:12:43 +00003499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003500$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003501if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003502 $as_echo_n "(cached) " >&6
3503else
3504 if test "x$target_alias" = x; then
3505 ac_cv_target=$ac_cv_host
3506else
3507 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy5c40fb42010-08-05 16:12:44 +00003508 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003509fi
3510
3511fi
cristy8b350f62009-11-15 23:12:43 +00003512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003513$as_echo "$ac_cv_target" >&6; }
3514case $ac_cv_target in
3515*-*-*) ;;
cristy5c40fb42010-08-05 16:12:44 +00003516*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003517esac
3518target=$ac_cv_target
3519ac_save_IFS=$IFS; IFS='-'
3520set x $ac_cv_target
3521shift
3522target_cpu=$1
3523target_vendor=$2
3524shift; shift
3525# Remember, the first character of IFS is used to create $*,
3526# except with old shells:
3527target_os=$*
3528IFS=$ac_save_IFS
3529case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3530
3531
3532# The aliases save the names the user supplied, while $host etc.
3533# will get canonicalized.
3534test -n "$target_alias" &&
3535 test "$program_prefix$program_suffix$program_transform_name" = \
3536 NONENONEs,x,x, &&
3537 program_prefix=${target_alias}-
3538
cristy837d6dc2010-02-27 01:16:57 +00003539
3540
3541
3542
cristy3225a072010-04-17 01:47:28 +00003543MAGICK_TARGET_CPU=$target_cpu
3544
3545
3546MAGICK_TARGET_VENDOR=$target_vendor
3547
3548
3549MAGICK_TARGET_OS=$target_os
3550
3551
cristy3ed852e2009-09-05 21:47:34 +00003552# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003553MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3554
3555MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3556
cristy3ed852e2009-09-05 21:47:34 +00003557
3558
3559# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003561$as_echo_n "checking whether build environment is sane... " >&6; }
3562# Just in case
3563sleep 1
3564echo timestamp > conftest.file
3565# Reject unsafe characters in $srcdir or the absolute working directory
3566# name. Accept space and tab only in the latter.
3567am_lf='
3568'
3569case `pwd` in
3570 *[\\\"\#\$\&\'\`$am_lf]*)
cristy5c40fb42010-08-05 16:12:44 +00003571 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003572esac
3573case $srcdir in
3574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy5c40fb42010-08-05 16:12:44 +00003575 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003576esac
3577
3578# Do `set' in a subshell so we don't clobber the current shell's
3579# arguments. Must try -L first in case configure is actually a
3580# symlink; some systems play weird games with the mod time of symlinks
3581# (eg FreeBSD returns the mod time of the symlink's containing
3582# directory).
3583if (
3584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3585 if test "$*" = "X"; then
3586 # -L didn't work.
3587 set X `ls -t "$srcdir/configure" conftest.file`
3588 fi
3589 rm -f conftest.file
3590 if test "$*" != "X $srcdir/configure conftest.file" \
3591 && test "$*" != "X conftest.file $srcdir/configure"; then
3592
3593 # If neither matched, then we have a broken ls. This can happen
3594 # if, for instance, CONFIG_SHELL is bash and it inherits a
3595 # broken ls alias from the environment. This has actually
3596 # happened. Such a system could not be considered "sane".
cristy5c40fb42010-08-05 16:12:44 +00003597 as_fn_error "ls -t appears to fail. Make sure there is not a broken
cristy8b350f62009-11-15 23:12:43 +00003598alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003599 fi
3600
3601 test "$2" = conftest.file
3602 )
3603then
3604 # Ok.
3605 :
3606else
cristy5c40fb42010-08-05 16:12:44 +00003607 as_fn_error "newly created file is older than distributed files!
cristy8b350f62009-11-15 23:12:43 +00003608Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003609fi
cristy8b350f62009-11-15 23:12:43 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003611$as_echo "yes" >&6; }
3612
3613am__api_version='1.11'
3614
3615# Find a good install program. We prefer a C program (faster),
3616# so one script is as good as another. But avoid the broken or
3617# incompatible versions:
3618# SysV /etc/install, /usr/sbin/install
3619# SunOS /usr/etc/install
3620# IRIX /sbin/install
3621# AIX /bin/install
3622# AmigaOS /C/install, which installs bootblocks on floppy discs
3623# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3624# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3625# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3626# OS/2's system install, which has a completely different semantic
3627# ./install, which can be erroneously created by make from ./install.sh.
3628# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003630$as_echo_n "checking for a BSD-compatible install... " >&6; }
3631if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003632if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003633 $as_echo_n "(cached) " >&6
3634else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003640 # Account for people who put trailing slashes in PATH elements.
3641case $as_dir/ in #((
3642 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003645 /usr/ucb/* ) ;;
3646 *)
3647 # OSF1 and SCO ODT 3.0 have their own names for install.
3648 # Don't use installbsd from OSF since it installs stuff as root
3649 # by default.
3650 for ac_prog in ginstall scoinst install; do
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3653 if test $ac_prog = install &&
3654 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3655 # AIX install. It has an incompatible calling convention.
3656 :
3657 elif test $ac_prog = install &&
3658 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3659 # program-specific install script used by HP pwplus--don't use.
3660 :
3661 else
3662 rm -rf conftest.one conftest.two conftest.dir
3663 echo one > conftest.one
3664 echo two > conftest.two
3665 mkdir conftest.dir
3666 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3667 test -s conftest.one && test -s conftest.two &&
3668 test -s conftest.dir/conftest.one &&
3669 test -s conftest.dir/conftest.two
3670 then
3671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3672 break 3
3673 fi
3674 fi
3675 fi
3676 done
3677 done
3678 ;;
3679esac
3680
cristy8b350f62009-11-15 23:12:43 +00003681 done
cristy3ed852e2009-09-05 21:47:34 +00003682IFS=$as_save_IFS
3683
3684rm -rf conftest.one conftest.two conftest.dir
3685
3686fi
3687 if test "${ac_cv_path_install+set}" = set; then
3688 INSTALL=$ac_cv_path_install
3689 else
3690 # As a last resort, use the slow shell script. Don't cache a
3691 # value for INSTALL within a source directory, because that will
3692 # break other packages using the cache if that directory is
3693 # removed, or if the value is a relative name.
3694 INSTALL=$ac_install_sh
3695 fi
3696fi
cristy8b350f62009-11-15 23:12:43 +00003697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003698$as_echo "$INSTALL" >&6; }
3699
3700# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3701# It thinks the first close brace ends the variable substitution.
3702test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3703
3704test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3705
3706test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3707
3708test "$program_prefix" != NONE &&
3709 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3710# Use a double $ so make ignores it.
3711test "$program_suffix" != NONE &&
3712 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3713# Double any \ or $.
3714# By default was `s,x,x', remove it if useless.
3715ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3716program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3717
3718# expand $ac_aux_dir to an absolute path
3719am_aux_dir=`cd $ac_aux_dir && pwd`
3720
3721if test x"${MISSING+set}" != xset; then
3722 case $am_aux_dir in
3723 *\ * | *\ *)
3724 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3725 *)
3726 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3727 esac
3728fi
3729# Use eval to expand $SHELL
3730if eval "$MISSING --run true"; then
3731 am_missing_run="$MISSING --run "
3732else
3733 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003735$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3736fi
3737
3738if test x"${install_sh}" != xset; then
3739 case $am_aux_dir in
3740 *\ * | *\ *)
3741 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3742 *)
3743 install_sh="\${SHELL} $am_aux_dir/install-sh"
3744 esac
3745fi
3746
3747# Installed binaries are usually stripped using `strip' when the user
3748# run `make install-strip'. However `strip' might not be the right
3749# tool to use in cross-compilation environments, therefore Automake
3750# will honor the `STRIP' environment variable to overrule this program.
3751if test "$cross_compiling" != no; then
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3754set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003756$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003757if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003758 $as_echo_n "(cached) " >&6
3759else
3760 if test -n "$STRIP"; then
3761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003772 break 2
3773 fi
3774done
cristy8b350f62009-11-15 23:12:43 +00003775 done
cristy3ed852e2009-09-05 21:47:34 +00003776IFS=$as_save_IFS
3777
3778fi
3779fi
3780STRIP=$ac_cv_prog_STRIP
3781if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003783$as_echo "$STRIP" >&6; }
3784else
cristy8b350f62009-11-15 23:12:43 +00003785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003786$as_echo "no" >&6; }
3787fi
3788
3789
3790fi
3791if test -z "$ac_cv_prog_STRIP"; then
3792 ac_ct_STRIP=$STRIP
3793 # Extract the first word of "strip", so it can be a program name with args.
3794set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003796$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003797if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003798 $as_echo_n "(cached) " >&6
3799else
3800 if test -n "$ac_ct_STRIP"; then
3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802else
3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804for as_dir in $PATH
3805do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003808 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003812 break 2
3813 fi
3814done
cristy8b350f62009-11-15 23:12:43 +00003815 done
cristy3ed852e2009-09-05 21:47:34 +00003816IFS=$as_save_IFS
3817
3818fi
3819fi
3820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3821if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003823$as_echo "$ac_ct_STRIP" >&6; }
3824else
cristy8b350f62009-11-15 23:12:43 +00003825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003826$as_echo "no" >&6; }
3827fi
3828
3829 if test "x$ac_ct_STRIP" = x; then
3830 STRIP=":"
3831 else
3832 case $cross_compiling:$ac_tool_warned in
3833yes:)
cristy8b350f62009-11-15 23:12:43 +00003834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3836ac_tool_warned=yes ;;
3837esac
3838 STRIP=$ac_ct_STRIP
3839 fi
3840else
3841 STRIP="$ac_cv_prog_STRIP"
3842fi
3843
3844fi
3845INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3846
cristy8b350f62009-11-15 23:12:43 +00003847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003848$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3849if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003850 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003851 $as_echo_n "(cached) " >&6
3852else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3855do
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003858 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3861 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3862 'mkdir (GNU coreutils) '* | \
3863 'mkdir (coreutils) '* | \
3864 'mkdir (fileutils) '4.1*)
3865 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3866 break 3;;
3867 esac
3868 done
3869 done
cristy8b350f62009-11-15 23:12:43 +00003870 done
cristy3ed852e2009-09-05 21:47:34 +00003871IFS=$as_save_IFS
3872
3873fi
3874
cristycd4c5312009-11-22 01:19:08 +00003875 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003876 if test "${ac_cv_path_mkdir+set}" = set; then
3877 MKDIR_P="$ac_cv_path_mkdir -p"
3878 else
3879 # As a last resort, use the slow shell script. Don't cache a
3880 # value for MKDIR_P within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003883 MKDIR_P="$ac_install_sh -d"
3884 fi
3885fi
cristy8b350f62009-11-15 23:12:43 +00003886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003887$as_echo "$MKDIR_P" >&6; }
3888
3889mkdir_p="$MKDIR_P"
3890case $mkdir_p in
3891 [\\/$]* | ?:[\\/]*) ;;
3892 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3893esac
3894
3895for ac_prog in gawk mawk nawk awk
3896do
3897 # Extract the first word of "$ac_prog", so it can be a program name with args.
3898set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003900$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003901if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003902 $as_echo_n "(cached) " >&6
3903else
3904 if test -n "$AWK"; then
3905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003916 break 2
3917 fi
3918done
cristy8b350f62009-11-15 23:12:43 +00003919 done
cristy3ed852e2009-09-05 21:47:34 +00003920IFS=$as_save_IFS
3921
3922fi
3923fi
3924AWK=$ac_cv_prog_AWK
3925if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003927$as_echo "$AWK" >&6; }
3928else
cristy8b350f62009-11-15 23:12:43 +00003929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003930$as_echo "no" >&6; }
3931fi
3932
3933
3934 test -n "$AWK" && break
3935done
3936
cristy8b350f62009-11-15 23:12:43 +00003937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3939set x ${MAKE-make}
3940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy5c40fb42010-08-05 16:12:44 +00003941if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003942 $as_echo_n "(cached) " >&6
3943else
3944 cat >conftest.make <<\_ACEOF
3945SHELL = /bin/sh
3946all:
3947 @echo '@@@%%%=$(MAKE)=@@@%%%'
3948_ACEOF
cristy5c40fb42010-08-05 16:12:44 +00003949# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristy3ed852e2009-09-05 21:47:34 +00003950case `${MAKE-make} -f conftest.make 2>/dev/null` in
3951 *@@@%%%=?*=@@@%%%*)
3952 eval ac_cv_prog_make_${ac_make}_set=yes;;
3953 *)
3954 eval ac_cv_prog_make_${ac_make}_set=no;;
3955esac
3956rm -f conftest.make
3957fi
3958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003960$as_echo "yes" >&6; }
3961 SET_MAKE=
3962else
cristy8b350f62009-11-15 23:12:43 +00003963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003964$as_echo "no" >&6; }
3965 SET_MAKE="MAKE=${MAKE-make}"
3966fi
3967
3968rm -rf .tst 2>/dev/null
3969mkdir .tst 2>/dev/null
3970if test -d .tst; then
3971 am__leading_dot=.
3972else
3973 am__leading_dot=_
3974fi
3975rmdir .tst 2>/dev/null
3976
3977if test "`cd $srcdir && pwd`" != "`pwd`"; then
3978 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3979 # is not polluted with repeated "-I."
3980 am__isrc=' -I$(srcdir)'
3981 # test to see if srcdir already configured
3982 if test -f $srcdir/config.status; then
cristy5c40fb42010-08-05 16:12:44 +00003983 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003984 fi
3985fi
3986
3987# test whether we have cygpath
3988if test -z "$CYGPATH_W"; then
3989 if (cygpath --version) >/dev/null 2>/dev/null; then
3990 CYGPATH_W='cygpath -w'
3991 else
3992 CYGPATH_W=echo
3993 fi
3994fi
3995
3996
3997# Define the identity of the package.
3998 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003999 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00004000
4001
4002# Some tools Automake needs.
4003
4004ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4005
4006
4007AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4008
4009
4010AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4011
4012
4013AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4014
4015
4016MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4017
4018# We need awk for the "check" target. The system "awk" is bad on
4019# some platforms.
4020# Always define AMTAR for backward compatibility.
4021
4022AMTAR=${AMTAR-"${am_missing_run}tar"}
4023
4024am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4025
4026
4027
4028
4029
4030
4031# Enable support for silent build rules
4032# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004033if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004034 enableval=$enable_silent_rules;
4035fi
4036
4037case $enable_silent_rules in
4038yes) AM_DEFAULT_VERBOSITY=0;;
4039no) AM_DEFAULT_VERBOSITY=1;;
4040*) AM_DEFAULT_VERBOSITY=0;;
4041esac
4042AM_BACKSLASH='\'
4043
4044
4045MAGICK_LIB_VERSION="0x"
4046if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4047 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4048fi
4049MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4050if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4051 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4052fi
4053MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4054if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4055 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4056fi
4057MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4058
4059
4060# Definition used to define MagickLibVersionText in version.h
4061MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4062
4063
4064# Definition used to define MagickLibVersionNumber in version.h
4065MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4066
4067
4068# Regenerate config.status if ChangeLog or version.sh is updated.
4069CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4070
4071
4072PERLMAINCC=$CC
4073
4074MAGICK_CFLAGS=''
4075MAGICK_CPPFLAGS=$CPPFLAGS_USER
4076MAGICK_PCFLAGS=$CPPFLAGS_USER
4077MAGICK_LDFLAGS=''
4078MAGICK_LIBS=''
4079
4080#
4081# Evaluate shell variable equivalents to Makefile directory variables
4082#
4083if test "x$prefix" = xNONE; then
4084 prefix=$ac_default_prefix
4085fi
4086# Let make expand exec_prefix.
4087if test "x$exec_prefix" = xNONE; then
4088 exec_prefix='${prefix}'
4089fi
4090
4091#
4092eval "eval PREFIX_DIR=${prefix}"
4093
4094eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4095
4096eval "eval BIN_DIR=$bindir"
4097
4098eval "eval SBIN_DIR=$sbindir"
4099
4100eval "eval LIBEXEC_DIR=$libexecdir"
4101
4102eval "eval DATA_DIR=$datadir"
4103
4104eval "eval SYSCONF_DIR=$sysconfdir"
4105
4106eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4107
4108eval "eval LOCALSTATE_DIR=$localstatedir"
4109
4110eval "eval LIB_DIR=$libdir"
4111
4112eval "eval INCLUDE_DIR=$includedir"
4113
4114eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4115
4116eval "eval INFO_DIR=$infodir"
4117
4118eval "eval MAN_DIR=$mandir"
4119
4120
4121# Get full paths to source and build directories
4122srcdirfull="`cd $srcdir && pwd`"
4123builddir="`pwd`"
4124
4125#
4126# Compute variables useful for running uninstalled software.
4127#
4128MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4129MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4130MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4131MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4132DIRSEP=':'
4133case "${build_os}" in
4134 mingw* )
4135 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4136 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4137 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4138 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4139 DIRSEP=';'
4140 ;;
4141esac
4142case "${host_os}" in
4143 mingw* )
4144 DIRSEP=';'
4145 ;;
4146esac
4147
4148
4149
4150
4151
4152
cristya0b81c32010-01-22 02:54:33 +00004153
4154#
4155# Enable OS features.
4156#
4157DEPDIR="${am__leading_dot}deps"
4158
4159ac_config_commands="$ac_config_commands depfiles"
4160
4161
4162am_make=${MAKE-make}
4163cat > confinc << 'END'
4164am__doit:
4165 @echo this is the am__doit target
4166.PHONY: am__doit
4167END
4168# If we don't find an include directive, just comment out the code.
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4170$as_echo_n "checking for style of include used by $am_make... " >&6; }
4171am__include="#"
4172am__quote=
4173_am_result=none
4174# First try GNU make style include.
4175echo "include confinc" > confmf
4176# Ignore all kinds of additional output from `make'.
4177case `$am_make -s -f confmf 2> /dev/null` in #(
4178*the\ am__doit\ target*)
4179 am__include=include
4180 am__quote=
4181 _am_result=GNU
4182 ;;
4183esac
4184# Now try BSD make style include.
4185if test "$am__include" = "#"; then
4186 echo '.include "confinc"' > confmf
4187 case `$am_make -s -f confmf 2> /dev/null` in #(
4188 *the\ am__doit\ target*)
4189 am__include=.include
4190 am__quote="\""
4191 _am_result=BSD
4192 ;;
4193 esac
4194fi
4195
4196
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4198$as_echo "$_am_result" >&6; }
4199rm -f confinc confmf
4200
4201# Check whether --enable-dependency-tracking was given.
4202if test "${enable_dependency_tracking+set}" = set; then :
4203 enableval=$enable_dependency_tracking;
4204fi
4205
4206if test "x$enable_dependency_tracking" != xno; then
4207 am_depcomp="$ac_aux_dir/depcomp"
4208 AMDEPBACKSLASH='\'
4209fi
4210 if test "x$enable_dependency_tracking" != xno; then
4211 AMDEP_TRUE=
4212 AMDEP_FALSE='#'
4213else
4214 AMDEP_TRUE='#'
4215 AMDEP_FALSE=
4216fi
4217
4218
cristy3ed852e2009-09-05 21:47:34 +00004219ac_ext=c
4220ac_cpp='$CPP $CPPFLAGS'
4221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004229if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004230 $as_echo_n "(cached) " >&6
4231else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004244 break 2
4245 fi
4246done
cristy8b350f62009-11-15 23:12:43 +00004247 done
cristy3ed852e2009-09-05 21:47:34 +00004248IFS=$as_save_IFS
4249
4250fi
4251fi
4252CC=$ac_cv_prog_CC
4253if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004255$as_echo "$CC" >&6; }
4256else
cristy8b350f62009-11-15 23:12:43 +00004257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004258$as_echo "no" >&6; }
4259fi
4260
4261
4262fi
4263if test -z "$ac_cv_prog_CC"; then
4264 ac_ct_CC=$CC
4265 # Extract the first word of "gcc", so it can be a program name with args.
4266set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004268$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004269if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004270 $as_echo_n "(cached) " >&6
4271else
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004280 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004284 break 2
4285 fi
4286done
cristy8b350f62009-11-15 23:12:43 +00004287 done
cristy3ed852e2009-09-05 21:47:34 +00004288IFS=$as_save_IFS
4289
4290fi
4291fi
4292ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004295$as_echo "$ac_ct_CC" >&6; }
4296else
cristy8b350f62009-11-15 23:12:43 +00004297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004298$as_echo "no" >&6; }
4299fi
4300
4301 if test "x$ac_ct_CC" = x; then
4302 CC=""
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305yes:)
cristy8b350f62009-11-15 23:12:43 +00004306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308ac_tool_warned=yes ;;
4309esac
4310 CC=$ac_ct_CC
4311 fi
4312else
4313 CC="$ac_cv_prog_CC"
4314fi
4315
4316if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4319set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004321$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004322if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004323 $as_echo_n "(cached) " >&6
4324else
4325 if test -n "$CC"; then
4326 ac_cv_prog_CC="$CC" # Let the user override the test.
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004337 break 2
4338 fi
4339done
cristy8b350f62009-11-15 23:12:43 +00004340 done
cristy3ed852e2009-09-05 21:47:34 +00004341IFS=$as_save_IFS
4342
4343fi
4344fi
4345CC=$ac_cv_prog_CC
4346if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004348$as_echo "$CC" >&6; }
4349else
cristy8b350f62009-11-15 23:12:43 +00004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004351$as_echo "no" >&6; }
4352fi
4353
4354
4355 fi
4356fi
4357if test -z "$CC"; then
4358 # Extract the first word of "cc", so it can be a program name with args.
4359set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004361$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004362if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004363 $as_echo_n "(cached) " >&6
4364else
4365 if test -n "$CC"; then
4366 ac_cv_prog_CC="$CC" # Let the user override the test.
4367else
4368 ac_prog_rejected=no
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004374 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4377 ac_prog_rejected=yes
4378 continue
4379 fi
4380 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382 break 2
4383 fi
4384done
cristy8b350f62009-11-15 23:12:43 +00004385 done
cristy3ed852e2009-09-05 21:47:34 +00004386IFS=$as_save_IFS
4387
4388if test $ac_prog_rejected = yes; then
4389 # We found a bogon in the path, so make sure we never use it.
4390 set dummy $ac_cv_prog_CC
4391 shift
4392 if test $# != 0; then
4393 # We chose a different compiler from the bogus one.
4394 # However, it has the same basename, so the bogon will be chosen
4395 # first if we set CC to just the basename; use the full file name.
4396 shift
4397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4398 fi
4399fi
4400fi
4401fi
4402CC=$ac_cv_prog_CC
4403if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo "$CC" >&6; }
4406else
cristy8b350f62009-11-15 23:12:43 +00004407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo "no" >&6; }
4409fi
4410
4411
4412fi
4413if test -z "$CC"; then
4414 if test -n "$ac_tool_prefix"; then
4415 for ac_prog in cl.exe
4416 do
4417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004420$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004421if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004422 $as_echo_n "(cached) " >&6
4423else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436 break 2
4437 fi
4438done
cristy8b350f62009-11-15 23:12:43 +00004439 done
cristy3ed852e2009-09-05 21:47:34 +00004440IFS=$as_save_IFS
4441
4442fi
4443fi
4444CC=$ac_cv_prog_CC
4445if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "$CC" >&6; }
4448else
cristy8b350f62009-11-15 23:12:43 +00004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004450$as_echo "no" >&6; }
4451fi
4452
4453
4454 test -n "$CC" && break
4455 done
4456fi
4457if test -z "$CC"; then
4458 ac_ct_CC=$CC
4459 for ac_prog in cl.exe
4460do
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004464$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004465if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004466 $as_echo_n "(cached) " >&6
4467else
4468 if test -n "$ac_ct_CC"; then
4469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004480 break 2
4481 fi
4482done
cristy8b350f62009-11-15 23:12:43 +00004483 done
cristy3ed852e2009-09-05 21:47:34 +00004484IFS=$as_save_IFS
4485
4486fi
4487fi
4488ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "$ac_ct_CC" >&6; }
4492else
cristy8b350f62009-11-15 23:12:43 +00004493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004494$as_echo "no" >&6; }
4495fi
4496
4497
4498 test -n "$ac_ct_CC" && break
4499done
4500
4501 if test "x$ac_ct_CC" = x; then
4502 CC=""
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505yes:)
cristy8b350f62009-11-15 23:12:43 +00004506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508ac_tool_warned=yes ;;
4509esac
4510 CC=$ac_ct_CC
4511 fi
4512fi
4513
4514fi
4515
4516
cristy8b350f62009-11-15 23:12:43 +00004517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00004519as_fn_error "no acceptable C compiler found in \$PATH
4520See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004521
4522# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524set X $ac_compile
4525ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004526for ac_option in --version -v -V -qversion; do
4527 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004528case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531esac
cristy8b350f62009-11-15 23:12:43 +00004532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533$as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004535 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004536 if test -s conftest.err; then
4537 sed '10a\
4538... rest of stderr output deleted ...
4539 10q' conftest.err >conftest.er1
4540 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004541 fi
cristycd4c5312009-11-22 01:19:08 +00004542 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4545done
cristy3ed852e2009-09-05 21:47:34 +00004546
cristy8b350f62009-11-15 23:12:43 +00004547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004548/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004549
cristy3ed852e2009-09-05 21:47:34 +00004550int
4551main ()
4552{
4553
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004560# Try to create an executable without -o first, disregard a.out.
4561# It will help us diagnose broken compilers, and finding out an intuition
4562# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4564$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4566
4567# The possible output files:
4568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4569
4570ac_rmfiles=
4571for ac_file in $ac_files
4572do
4573 case $ac_file in
4574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4576 esac
4577done
4578rm -f $ac_rmfiles
4579
cristy8b350f62009-11-15 23:12:43 +00004580if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
cristy8b350f62009-11-15 23:12:43 +00004585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004587 (eval "$ac_link_default") 2>&5
4588 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4593# in a Makefile. We should not override ac_cv_exeext if it was cached,
4594# so that the user can short-circuit this test for compilers unknown to
4595# Autoconf.
4596for ac_file in $ac_files ''
4597do
4598 test -f "$ac_file" || continue
4599 case $ac_file in
4600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4601 ;;
4602 [ab].out )
4603 # We found the default executable, but exeext='' is most
4604 # certainly right.
4605 break;;
4606 *.* )
cristy8b350f62009-11-15 23:12:43 +00004607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004608 then :; else
4609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4610 fi
4611 # We set ac_cv_exeext here because the later test for it is not
4612 # safe: cross compilers may not add the suffix if given an `-o'
4613 # argument, so we may need to know it at that point already.
4614 # Even if this section looks crufty: it has the advantage of
4615 # actually working.
4616 break;;
4617 * )
4618 break;;
4619 esac
4620done
4621test "$ac_cv_exeext" = no && ac_cv_exeext=
4622
4623else
4624 ac_file=''
4625fi
cristy8b350f62009-11-15 23:12:43 +00004626if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
cristy8b350f62009-11-15 23:12:43 +00004632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00004634{ as_fn_set_status 77
4635as_fn_error "C compiler cannot create executables
4636See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004637else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004640fi
cristycd4c5312009-11-22 01:19:08 +00004641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4642$as_echo_n "checking for C compiler default output file name... " >&6; }
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4644$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004645ac_exeext=$ac_cv_exeext
4646
cristycd4c5312009-11-22 01:19:08 +00004647rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004648ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004650$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004651if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004652case "(($ac_try" in
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4655esac
cristy8b350f62009-11-15 23:12:43 +00004656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4657$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004658 (eval "$ac_link") 2>&5
4659 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4661 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4663# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4664# work properly (i.e., refer to `conftest.exe'), while it won't with
4665# `rm'.
4666for ac_file in conftest.exe conftest conftest.*; do
4667 test -f "$ac_file" || continue
4668 case $ac_file in
4669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4671 break;;
4672 * ) break;;
4673 esac
4674done
4675else
cristy8b350f62009-11-15 23:12:43 +00004676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00004678as_fn_error "cannot compute suffix of executables: cannot compile and link
4679See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004680fi
cristycd4c5312009-11-22 01:19:08 +00004681rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004683$as_echo "$ac_cv_exeext" >&6; }
4684
4685rm -f conftest.$ac_ext
4686EXEEXT=$ac_cv_exeext
4687ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689/* end confdefs.h. */
4690#include <stdio.h>
4691int
4692main ()
4693{
4694FILE *f = fopen ("conftest.out", "w");
4695 return ferror (f) || fclose (f) != 0;
4696
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701ac_clean_files="$ac_clean_files conftest.out"
4702# Check that the compiler produces executables we can run. If not, either
4703# the compiler is broken, or we cross compile.
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4705$as_echo_n "checking whether we are cross compiling... " >&6; }
4706if test "$cross_compiling" != yes; then
4707 { { ac_try="$ac_link"
4708case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711esac
4712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4713$as_echo "$ac_try_echo"; } >&5
4714 (eval "$ac_link") 2>&5
4715 ac_status=$?
4716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4717 test $ac_status = 0; }
4718 if { ac_try='./conftest$ac_cv_exeext'
4719 { { case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722esac
4723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724$as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_try") 2>&5
4726 ac_status=$?
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }; }; then
4729 cross_compiling=no
4730 else
4731 if test "$cross_compiling" = maybe; then
4732 cross_compiling=yes
4733 else
4734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00004736as_fn_error "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004737If you meant to cross compile, use \`--host'.
cristy5c40fb42010-08-05 16:12:44 +00004738See \`config.log' for more details." "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004739 fi
4740 fi
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4743$as_echo "$cross_compiling" >&6; }
4744
4745rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4746ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004748$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004749if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004750 $as_echo_n "(cached) " >&6
4751else
cristy8b350f62009-11-15 23:12:43 +00004752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004753/* end confdefs.h. */
4754
4755int
4756main ()
4757{
4758
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004764if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004765case "(($ac_try" in
4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4768esac
cristy8b350f62009-11-15 23:12:43 +00004769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4770$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004771 (eval "$ac_compile") 2>&5
4772 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004775 for ac_file in conftest.o conftest.obj conftest.*; do
4776 test -f "$ac_file" || continue;
4777 case $ac_file in
4778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4780 break;;
4781 esac
4782done
4783else
4784 $as_echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
cristy8b350f62009-11-15 23:12:43 +00004787{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00004789as_fn_error "cannot compute suffix of object files: cannot compile
4790See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004791fi
cristy3ed852e2009-09-05 21:47:34 +00004792rm -f conftest.$ac_cv_objext conftest.$ac_ext
4793fi
cristy8b350f62009-11-15 23:12:43 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004795$as_echo "$ac_cv_objext" >&6; }
4796OBJEXT=$ac_cv_objext
4797ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004799$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004800if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004801 $as_echo_n "(cached) " >&6
4802else
cristy8b350f62009-11-15 23:12:43 +00004803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004804/* end confdefs.h. */
4805
4806int
4807main ()
4808{
4809#ifndef __GNUC__
4810 choke me
4811#endif
4812
4813 ;
4814 return 0;
4815}
4816_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004817if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004818 ac_compiler_gnu=yes
4819else
cristy8b350f62009-11-15 23:12:43 +00004820 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004821fi
cristy3ed852e2009-09-05 21:47:34 +00004822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823ac_cv_c_compiler_gnu=$ac_compiler_gnu
4824
4825fi
cristy8b350f62009-11-15 23:12:43 +00004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4828if test $ac_compiler_gnu = yes; then
4829 GCC=yes
4830else
4831 GCC=
4832fi
4833ac_test_CFLAGS=${CFLAGS+set}
4834ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004836$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004837if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004838 $as_echo_n "(cached) " >&6
4839else
4840 ac_save_c_werror_flag=$ac_c_werror_flag
4841 ac_c_werror_flag=yes
4842 ac_cv_prog_cc_g=no
4843 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004845/* end confdefs.h. */
4846
4847int
4848main ()
4849{
4850
4851 ;
4852 return 0;
4853}
4854_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004855if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004856 ac_cv_prog_cc_g=yes
4857else
cristy8b350f62009-11-15 23:12:43 +00004858 CFLAGS=""
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004860/* end confdefs.h. */
4861
4862int
4863main ()
4864{
4865
4866 ;
4867 return 0;
4868}
4869_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004870if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004871
cristy8b350f62009-11-15 23:12:43 +00004872else
4873 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004874 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004876/* end confdefs.h. */
4877
4878int
4879main ()
4880{
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004886if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004887 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004888fi
cristy3ed852e2009-09-05 21:47:34 +00004889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890fi
cristy3ed852e2009-09-05 21:47:34 +00004891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892fi
cristy3ed852e2009-09-05 21:47:34 +00004893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 ac_c_werror_flag=$ac_save_c_werror_flag
4895fi
cristy8b350f62009-11-15 23:12:43 +00004896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004897$as_echo "$ac_cv_prog_cc_g" >&6; }
4898if test "$ac_test_CFLAGS" = set; then
4899 CFLAGS=$ac_save_CFLAGS
4900elif test $ac_cv_prog_cc_g = yes; then
4901 if test "$GCC" = yes; then
4902 CFLAGS="-g -O2"
4903 else
4904 CFLAGS="-g"
4905 fi
4906else
4907 if test "$GCC" = yes; then
4908 CFLAGS="-O2"
4909 else
4910 CFLAGS=
4911 fi
4912fi
cristy8b350f62009-11-15 23:12:43 +00004913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004914$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004915if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004916 $as_echo_n "(cached) " >&6
4917else
4918 ac_cv_prog_cc_c89=no
4919ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004921/* end confdefs.h. */
4922#include <stdarg.h>
4923#include <stdio.h>
4924#include <sys/types.h>
4925#include <sys/stat.h>
4926/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4927struct buf { int x; };
4928FILE * (*rcsopen) (struct buf *, struct stat *, int);
4929static char *e (p, i)
4930 char **p;
4931 int i;
4932{
4933 return p[i];
4934}
4935static char *f (char * (*g) (char **, int), char **p, ...)
4936{
4937 char *s;
4938 va_list v;
4939 va_start (v,p);
4940 s = g (p, va_arg (v,int));
4941 va_end (v);
4942 return s;
4943}
4944
4945/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4946 function prototypes and stuff, but not '\xHH' hex character constants.
4947 These don't provoke an error unfortunately, instead are silently treated
4948 as 'x'. The following induces an error, until -std is added to get
4949 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4950 array size at least. It's necessary to write '\x00'==0 to get something
4951 that's true only with -std. */
4952int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4953
4954/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4955 inside strings and character constants. */
4956#define FOO(x) 'x'
4957int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4958
4959int test (int i, double x);
4960struct s1 {int (*f) (int a);};
4961struct s2 {int (*f) (double a);};
4962int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4963int argc;
4964char **argv;
4965int
4966main ()
4967{
4968return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4974 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4975do
4976 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004977 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004978 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004979fi
cristy3ed852e2009-09-05 21:47:34 +00004980rm -f core conftest.err conftest.$ac_objext
4981 test "x$ac_cv_prog_cc_c89" != "xno" && break
4982done
4983rm -f conftest.$ac_ext
4984CC=$ac_save_CC
4985
4986fi
4987# AC_CACHE_VAL
4988case "x$ac_cv_prog_cc_c89" in
4989 x)
cristy8b350f62009-11-15 23:12:43 +00004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004991$as_echo "none needed" >&6; } ;;
4992 xno)
cristy8b350f62009-11-15 23:12:43 +00004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004994$as_echo "unsupported" >&6; } ;;
4995 *)
4996 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004998$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4999esac
cristy8b350f62009-11-15 23:12:43 +00005000if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005001
cristy8b350f62009-11-15 23:12:43 +00005002fi
cristy3ed852e2009-09-05 21:47:34 +00005003
5004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005009
cristya0b81c32010-01-22 02:54:33 +00005010depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005011
cristya0b81c32010-01-22 02:54:33 +00005012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5013$as_echo_n "checking dependency style of $depcc... " >&6; }
5014if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005016else
cristya0b81c32010-01-22 02:54:33 +00005017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5018 # We make a subdir and do the tests there. Otherwise we can end up
5019 # making bogus files that we don't know about and never remove. For
5020 # instance it was reported that on HP-UX the gcc test will end up
5021 # making a dummy file named `D' -- because `-MD' means `put the output
5022 # in D'.
5023 mkdir conftest.dir
5024 # Copy depcomp to subdir because otherwise we won't find it if we're
5025 # using a relative directory.
5026 cp "$am_depcomp" conftest.dir
5027 cd conftest.dir
5028 # We will build objects and dependencies in a subdirectory because
5029 # it helps to detect inapplicable dependency modes. For instance
5030 # both Tru64's cc and ICC support -MD to output dependencies as a
5031 # side effect of compilation, but ICC will put the dependencies in
5032 # the current directory while Tru64 will put them in the object
5033 # directory.
5034 mkdir sub
5035
5036 am_cv_CC_dependencies_compiler_type=none
5037 if test "$am_compiler_list" = ""; then
5038 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5039 fi
5040 am__universal=false
5041 case " $depcc " in #(
5042 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5043 esac
5044
5045 for depmode in $am_compiler_list; do
5046 # Setup a source with many dependencies, because some compilers
5047 # like to wrap large dependency lists on column 80 (with \), and
5048 # we should not choose a depcomp mode which is confused by this.
5049 #
5050 # We need to recreate these files for each test, as the compiler may
5051 # overwrite some of them when testing with obscure command lines.
5052 # This happens at least with the AIX C compiler.
5053 : > sub/conftest.c
5054 for i in 1 2 3 4 5 6; do
5055 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5056 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5057 # Solaris 8's {/usr,}/bin/sh.
5058 touch sub/conftst$i.h
5059 done
5060 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5061
5062 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5063 # mode. It turns out that the SunPro C++ compiler does not properly
5064 # handle `-M -o', and we need to detect this. Also, some Intel
5065 # versions had trouble with output in subdirs
5066 am__obj=sub/conftest.${OBJEXT-o}
5067 am__minus_obj="-o $am__obj"
5068 case $depmode in
5069 gcc)
5070 # This depmode causes a compiler race in universal mode.
5071 test "$am__universal" = false || continue
5072 ;;
5073 nosideeffect)
5074 # after this tag, mechanisms are not by side-effect, so they'll
5075 # only be used when explicitly requested
5076 if test "x$enable_dependency_tracking" = xyes; then
5077 continue
5078 else
5079 break
5080 fi
5081 ;;
5082 msvisualcpp | msvcmsys)
5083 # This compiler won't grok `-c -o', but also, the minuso test has
5084 # not run yet. These depmodes are late enough in the game, and
5085 # so weak that their functioning should not be impacted.
5086 am__obj=conftest.${OBJEXT-o}
5087 am__minus_obj=
5088 ;;
5089 none) break ;;
5090 esac
5091 if depmode=$depmode \
5092 source=sub/conftest.c object=$am__obj \
5093 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5094 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5095 >/dev/null 2>conftest.err &&
5096 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5098 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5100 # icc doesn't choke on unknown options, it will just issue warnings
5101 # or remarks (even with -Werror). So we grep stderr for any message
5102 # that says an option was ignored or not supported.
5103 # When given -MP, icc 7.0 and 7.1 complain thusly:
5104 # icc: Command line warning: ignoring option '-M'; no argument required
5105 # The diagnosis changed in icc 8.0:
5106 # icc: Command line remark: option '-MP' not supported
5107 if (grep 'ignoring option' conftest.err ||
5108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5109 am_cv_CC_dependencies_compiler_type=$depmode
5110 break
5111 fi
5112 fi
5113 done
5114
5115 cd ..
5116 rm -rf conftest.dir
5117else
5118 am_cv_CC_dependencies_compiler_type=none
5119fi
5120
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5123$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5124CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5125
5126 if
5127 test "x$enable_dependency_tracking" != xno \
5128 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5129 am__fastdepCC_TRUE=
5130 am__fastdepCC_FALSE='#'
5131else
5132 am__fastdepCC_TRUE='#'
5133 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005134fi
5135
5136
5137
cristya0b81c32010-01-22 02:54:33 +00005138ac_ext=c
5139ac_cpp='$CPP $CPPFLAGS'
5140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5144$as_echo_n "checking how to run the C preprocessor... " >&6; }
5145# On Suns, sometimes $CPP names a directory.
5146if test -n "$CPP" && test -d "$CPP"; then
5147 CPP=
5148fi
5149if test -z "$CPP"; then
5150 if test "${ac_cv_prog_CPP+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 # Double quotes because CPP needs to be expanded
5154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5155 do
5156 ac_preproc_ok=false
5157for ac_c_preproc_warn_flag in '' yes
5158do
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166/* end confdefs.h. */
5167#ifdef __STDC__
5168# include <limits.h>
5169#else
5170# include <assert.h>
5171#endif
5172 Syntax error
5173_ACEOF
5174if ac_fn_c_try_cpp "$LINENO"; then :
5175
5176else
5177 # Broken: fails on valid input.
5178continue
5179fi
5180rm -f conftest.err conftest.$ac_ext
5181
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h. */
5186#include <ac_nonexistent.h>
5187_ACEOF
5188if ac_fn_c_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5190continue
5191else
5192 # Passes both tests.
5193ac_preproc_ok=:
5194break
5195fi
5196rm -f conftest.err conftest.$ac_ext
5197
5198done
5199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200rm -f conftest.err conftest.$ac_ext
5201if $ac_preproc_ok; then :
5202 break
5203fi
5204
5205 done
5206 ac_cv_prog_CPP=$CPP
5207
5208fi
5209 CPP=$ac_cv_prog_CPP
5210else
5211 ac_cv_prog_CPP=$CPP
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5214$as_echo "$CPP" >&6; }
5215ac_preproc_ok=false
5216for ac_c_preproc_warn_flag in '' yes
5217do
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225/* end confdefs.h. */
5226#ifdef __STDC__
5227# include <limits.h>
5228#else
5229# include <assert.h>
5230#endif
5231 Syntax error
5232_ACEOF
5233if ac_fn_c_try_cpp "$LINENO"; then :
5234
5235else
5236 # Broken: fails on valid input.
5237continue
5238fi
5239rm -f conftest.err conftest.$ac_ext
5240
5241 # OK, works on sane cases. Now check whether nonexistent headers
5242 # can be detected and how.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244/* end confdefs.h. */
5245#include <ac_nonexistent.h>
5246_ACEOF
5247if ac_fn_c_try_cpp "$LINENO"; then :
5248 # Broken: success on invalid input.
5249continue
5250else
5251 # Passes both tests.
5252ac_preproc_ok=:
5253break
5254fi
5255rm -f conftest.err conftest.$ac_ext
5256
5257done
5258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5259rm -f conftest.err conftest.$ac_ext
5260if $ac_preproc_ok; then :
5261
5262else
5263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00005265as_fn_error "C preprocessor \"$CPP\" fails sanity check
5266See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005267fi
5268
5269ac_ext=c
5270ac_cpp='$CPP $CPPFLAGS'
5271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5273ac_compiler_gnu=$ac_cv_c_compiler_gnu
5274
5275
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5277$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5278if test "${ac_cv_path_GREP+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280else
5281 if test -z "$GREP"; then
5282 ac_path_GREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5286do
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in grep ggrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5293# Check for GNU ac_path_GREP and select it if it is found.
5294 # Check for GNU $ac_path_GREP
5295case `"$ac_path_GREP" --version 2>&1` in
5296*GNU*)
5297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5298*)
5299 ac_count=0
5300 $as_echo_n 0123456789 >"conftest.in"
5301 while :
5302 do
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 $as_echo 'GREP' >> "conftest.nl"
5307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_GREP="$ac_path_GREP"
5313 ac_path_GREP_max=$ac_count
5314 fi
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319esac
5320
5321 $ac_path_GREP_found && break 3
5322 done
5323 done
5324 done
5325IFS=$as_save_IFS
5326 if test -z "$ac_cv_path_GREP"; then
cristy5c40fb42010-08-05 16:12:44 +00005327 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005328 fi
5329else
5330 ac_cv_path_GREP=$GREP
5331fi
5332
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5335$as_echo "$ac_cv_path_GREP" >&6; }
5336 GREP="$ac_cv_path_GREP"
5337
5338
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5340$as_echo_n "checking for egrep... " >&6; }
5341if test "${ac_cv_path_EGREP+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343else
5344 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5345 then ac_cv_path_EGREP="$GREP -E"
5346 else
5347 if test -z "$EGREP"; then
5348 ac_path_EGREP_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_prog in egrep; do
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5358 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5359# Check for GNU ac_path_EGREP and select it if it is found.
5360 # Check for GNU $ac_path_EGREP
5361case `"$ac_path_EGREP" --version 2>&1` in
5362*GNU*)
5363 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5364*)
5365 ac_count=0
5366 $as_echo_n 0123456789 >"conftest.in"
5367 while :
5368 do
5369 cat "conftest.in" "conftest.in" >"conftest.tmp"
5370 mv "conftest.tmp" "conftest.in"
5371 cp "conftest.in" "conftest.nl"
5372 $as_echo 'EGREP' >> "conftest.nl"
5373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5375 as_fn_arith $ac_count + 1 && ac_count=$as_val
5376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5377 # Best one so far, save it but keep looking for a better one
5378 ac_cv_path_EGREP="$ac_path_EGREP"
5379 ac_path_EGREP_max=$ac_count
5380 fi
5381 # 10*(2^10) chars as input seems more than enough
5382 test $ac_count -gt 10 && break
5383 done
5384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5385esac
5386
5387 $ac_path_EGREP_found && break 3
5388 done
5389 done
5390 done
5391IFS=$as_save_IFS
5392 if test -z "$ac_cv_path_EGREP"; then
cristy5c40fb42010-08-05 16:12:44 +00005393 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005394 fi
5395else
5396 ac_cv_path_EGREP=$EGREP
5397fi
5398
5399 fi
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5402$as_echo "$ac_cv_path_EGREP" >&6; }
5403 EGREP="$ac_cv_path_EGREP"
5404
5405
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5407$as_echo_n "checking for ANSI C header files... " >&6; }
5408if test "${ac_cv_header_stdc+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412/* end confdefs.h. */
5413#include <stdlib.h>
5414#include <stdarg.h>
5415#include <string.h>
5416#include <float.h>
5417
5418int
5419main ()
5420{
5421
5422 ;
5423 return 0;
5424}
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_cv_header_stdc=yes
5428else
5429 ac_cv_header_stdc=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432
5433if test $ac_cv_header_stdc = yes; then
5434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#include <string.h>
5438
5439_ACEOF
5440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "memchr" >/dev/null 2>&1; then :
5442
5443else
5444 ac_cv_header_stdc=no
5445fi
5446rm -f conftest*
5447
5448fi
5449
5450if test $ac_cv_header_stdc = yes; then
5451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454#include <stdlib.h>
5455
5456_ACEOF
5457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5458 $EGREP "free" >/dev/null 2>&1; then :
5459
5460else
5461 ac_cv_header_stdc=no
5462fi
5463rm -f conftest*
5464
5465fi
5466
5467if test $ac_cv_header_stdc = yes; then
5468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5469 if test "$cross_compiling" = yes; then :
5470 :
5471else
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473/* end confdefs.h. */
5474#include <ctype.h>
5475#include <stdlib.h>
5476#if ((' ' & 0x0FF) == 0x020)
5477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5479#else
5480# define ISLOWER(c) \
5481 (('a' <= (c) && (c) <= 'i') \
5482 || ('j' <= (c) && (c) <= 'r') \
5483 || ('s' <= (c) && (c) <= 'z'))
5484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5485#endif
5486
5487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488int
5489main ()
5490{
5491 int i;
5492 for (i = 0; i < 256; i++)
5493 if (XOR (islower (i), ISLOWER (i))
5494 || toupper (i) != TOUPPER (i))
5495 return 2;
5496 return 0;
5497}
5498_ACEOF
5499if ac_fn_c_try_run "$LINENO"; then :
5500
5501else
5502 ac_cv_header_stdc=no
5503fi
5504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5505 conftest.$ac_objext conftest.beam conftest.$ac_ext
5506fi
5507
5508fi
5509fi
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5511$as_echo "$ac_cv_header_stdc" >&6; }
5512if test $ac_cv_header_stdc = yes; then
5513
5514$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5515
5516fi
5517
5518# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5519for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5520 inttypes.h stdint.h unistd.h
5521do :
5522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5523ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5524"
cristy5c40fb42010-08-05 16:12:44 +00005525eval as_val=\$$as_ac_Header
5526 if test "x$as_val" = x""yes; then :
cristya0b81c32010-01-22 02:54:33 +00005527 cat >>confdefs.h <<_ACEOF
5528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5529_ACEOF
5530
5531fi
5532
5533done
5534
5535
5536
5537 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5538if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5539 MINIX=yes
5540else
5541 MINIX=
5542fi
5543
5544
5545 if test "$MINIX" = yes; then
5546
5547$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5548
5549
5550$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5551
5552
5553$as_echo "#define _MINIX 1" >>confdefs.h
5554
5555 fi
5556
5557
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5559$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5560if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562else
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h. */
5565
5566# define __EXTENSIONS__ 1
5567 $ac_includes_default
5568int
5569main ()
5570{
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_safe_to_define___extensions__=yes
5578else
5579 ac_cv_safe_to_define___extensions__=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5584$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5585 test $ac_cv_safe_to_define___extensions__ = yes &&
5586 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5587
5588 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5589
5590 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5591
5592 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5593
5594 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5595
5596
5597
5598# Check for programs
5599ac_ext=c
5600ac_cpp='$CPP $CPPFLAGS'
5601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603ac_compiler_gnu=$ac_cv_c_compiler_gnu
5604if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5606set dummy ${ac_tool_prefix}gcc; ac_word=$2
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if test "${ac_cv_prog_CC+set}" = set; then :
5610 $as_echo_n "(cached) " >&6
5611else
5612 if test -n "$CC"; then
5613 ac_cv_prog_CC="$CC" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627 done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632CC=$ac_cv_prog_CC
5633if test -n "$CC"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5635$as_echo "$CC" >&6; }
5636else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642fi
5643if test -z "$ac_cv_prog_CC"; then
5644 ac_ct_CC=$CC
5645 # Extract the first word of "gcc", so it can be a program name with args.
5646set dummy gcc; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651else
5652 if test -n "$ac_ct_CC"; then
5653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_ac_ct_CC="gcc"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666done
5667 done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672ac_ct_CC=$ac_cv_prog_ac_ct_CC
5673if test -n "$ac_ct_CC"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5675$as_echo "$ac_ct_CC" >&6; }
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681 if test "x$ac_ct_CC" = x; then
5682 CC=""
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685yes:)
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688ac_tool_warned=yes ;;
5689esac
5690 CC=$ac_ct_CC
5691 fi
5692else
5693 CC="$ac_cv_prog_CC"
5694fi
5695
5696if test -z "$CC"; then
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5699set dummy ${ac_tool_prefix}cc; ac_word=$2
5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701$as_echo_n "checking for $ac_word... " >&6; }
5702if test "${ac_cv_prog_CC+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5704else
5705 if test -n "$CC"; then
5706 ac_cv_prog_CC="$CC" # Let the user override the test.
5707else
5708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_CC="${ac_tool_prefix}cc"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719done
5720 done
5721IFS=$as_save_IFS
5722
5723fi
5724fi
5725CC=$ac_cv_prog_CC
5726if test -n "$CC"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5728$as_echo "$CC" >&6; }
5729else
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732fi
5733
5734
5735 fi
5736fi
5737if test -z "$CC"; then
5738 # Extract the first word of "cc", so it can be a program name with args.
5739set dummy cc; ac_word=$2
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741$as_echo_n "checking for $ac_word... " >&6; }
5742if test "${ac_cv_prog_CC+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744else
5745 if test -n "$CC"; then
5746 ac_cv_prog_CC="$CC" # Let the user override the test.
5747else
5748 ac_prog_rejected=no
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5757 ac_prog_rejected=yes
5758 continue
5759 fi
5760 ac_cv_prog_CC="cc"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765 done
5766IFS=$as_save_IFS
5767
5768if test $ac_prog_rejected = yes; then
5769 # We found a bogon in the path, so make sure we never use it.
5770 set dummy $ac_cv_prog_CC
5771 shift
5772 if test $# != 0; then
5773 # We chose a different compiler from the bogus one.
5774 # However, it has the same basename, so the bogon will be chosen
5775 # first if we set CC to just the basename; use the full file name.
5776 shift
5777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5778 fi
5779fi
5780fi
5781fi
5782CC=$ac_cv_prog_CC
5783if test -n "$CC"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5785$as_echo "$CC" >&6; }
5786else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788$as_echo "no" >&6; }
5789fi
5790
5791
5792fi
5793if test -z "$CC"; then
5794 if test -n "$ac_tool_prefix"; then
5795 for ac_prog in cl.exe
5796 do
5797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if test "${ac_cv_prog_CC+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$CC"; then
5805 ac_cv_prog_CC="$CC" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824CC=$ac_cv_prog_CC
5825if test -n "$CC"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5827$as_echo "$CC" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833
5834 test -n "$CC" && break
5835 done
5836fi
5837if test -z "$CC"; then
5838 ac_ct_CC=$CC
5839 for ac_prog in cl.exe
5840do
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842set dummy $ac_prog; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$ac_ct_CC"; then
5849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_ac_ct_CC="$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863 done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868ac_ct_CC=$ac_cv_prog_ac_ct_CC
5869if test -n "$ac_ct_CC"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5871$as_echo "$ac_ct_CC" >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878 test -n "$ac_ct_CC" && break
5879done
5880
5881 if test "x$ac_ct_CC" = x; then
5882 CC=""
5883 else
5884 case $cross_compiling:$ac_tool_warned in
5885yes:)
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5888ac_tool_warned=yes ;;
5889esac
5890 CC=$ac_ct_CC
5891 fi
5892fi
5893
5894fi
5895
5896
5897test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00005899as_fn_error "no acceptable C compiler found in \$PATH
5900See \`config.log' for more details." "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005901
5902# Provide some information about the compiler.
5903$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5904set X $ac_compile
5905ac_compiler=$2
5906for ac_option in --version -v -V -qversion; do
5907 { { ac_try="$ac_compiler $ac_option >&5"
5908case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
5912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5913$as_echo "$ac_try_echo"; } >&5
5914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5915 ac_status=$?
5916 if test -s conftest.err; then
5917 sed '10a\
5918... rest of stderr output deleted ...
5919 10q' conftest.err >conftest.er1
5920 cat conftest.er1 >&5
5921 fi
5922 rm -f conftest.er1 conftest.err
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }
5925done
5926
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5928$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5929if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h. */
5934
5935int
5936main ()
5937{
5938#ifndef __GNUC__
5939 choke me
5940#endif
5941
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946if ac_fn_c_try_compile "$LINENO"; then :
5947 ac_compiler_gnu=yes
5948else
5949 ac_compiler_gnu=no
5950fi
5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952ac_cv_c_compiler_gnu=$ac_compiler_gnu
5953
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5956$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5957if test $ac_compiler_gnu = yes; then
5958 GCC=yes
5959else
5960 GCC=
5961fi
5962ac_test_CFLAGS=${CFLAGS+set}
5963ac_save_CFLAGS=$CFLAGS
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5965$as_echo_n "checking whether $CC accepts -g... " >&6; }
5966if test "${ac_cv_prog_cc_g+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968else
5969 ac_save_c_werror_flag=$ac_c_werror_flag
5970 ac_c_werror_flag=yes
5971 ac_cv_prog_cc_g=no
5972 CFLAGS="-g"
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975
5976int
5977main ()
5978{
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984if ac_fn_c_try_compile "$LINENO"; then :
5985 ac_cv_prog_cc_g=yes
5986else
5987 CFLAGS=""
5988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h. */
5990
5991int
5992main ()
5993{
5994
5995 ;
5996 return 0;
5997}
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"; then :
6000
6001else
6002 ac_c_werror_flag=$ac_save_c_werror_flag
6003 CFLAGS="-g"
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005/* end confdefs.h. */
6006
6007int
6008main ()
6009{
6010
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015if ac_fn_c_try_compile "$LINENO"; then :
6016 ac_cv_prog_cc_g=yes
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_c_werror_flag=$ac_save_c_werror_flag
6024fi
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6026$as_echo "$ac_cv_prog_cc_g" >&6; }
6027if test "$ac_test_CFLAGS" = set; then
6028 CFLAGS=$ac_save_CFLAGS
6029elif test $ac_cv_prog_cc_g = yes; then
6030 if test "$GCC" = yes; then
6031 CFLAGS="-g -O2"
6032 else
6033 CFLAGS="-g"
6034 fi
6035else
6036 if test "$GCC" = yes; then
6037 CFLAGS="-O2"
6038 else
6039 CFLAGS=
6040 fi
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6043$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6044if test "${ac_cv_prog_cc_c89+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046else
6047 ac_cv_prog_cc_c89=no
6048ac_save_CC=$CC
6049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050/* end confdefs.h. */
6051#include <stdarg.h>
6052#include <stdio.h>
6053#include <sys/types.h>
6054#include <sys/stat.h>
6055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6056struct buf { int x; };
6057FILE * (*rcsopen) (struct buf *, struct stat *, int);
6058static char *e (p, i)
6059 char **p;
6060 int i;
6061{
6062 return p[i];
6063}
6064static char *f (char * (*g) (char **, int), char **p, ...)
6065{
6066 char *s;
6067 va_list v;
6068 va_start (v,p);
6069 s = g (p, va_arg (v,int));
6070 va_end (v);
6071 return s;
6072}
6073
6074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6075 function prototypes and stuff, but not '\xHH' hex character constants.
6076 These don't provoke an error unfortunately, instead are silently treated
6077 as 'x'. The following induces an error, until -std is added to get
6078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6079 array size at least. It's necessary to write '\x00'==0 to get something
6080 that's true only with -std. */
6081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082
6083/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6084 inside strings and character constants. */
6085#define FOO(x) 'x'
6086int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087
6088int test (int i, double x);
6089struct s1 {int (*f) (int a);};
6090struct s2 {int (*f) (double a);};
6091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6092int argc;
6093char **argv;
6094int
6095main ()
6096{
6097return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104do
6105 CC="$ac_save_CC $ac_arg"
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ac_cv_prog_cc_c89=$ac_arg
6108fi
6109rm -f core conftest.err conftest.$ac_objext
6110 test "x$ac_cv_prog_cc_c89" != "xno" && break
6111done
6112rm -f conftest.$ac_ext
6113CC=$ac_save_CC
6114
6115fi
6116# AC_CACHE_VAL
6117case "x$ac_cv_prog_cc_c89" in
6118 x)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6120$as_echo "none needed" >&6; } ;;
6121 xno)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6123$as_echo "unsupported" >&6; } ;;
6124 *)
6125 CC="$CC $ac_cv_prog_cc_c89"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6127$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6128esac
6129if test "x$ac_cv_prog_cc_c89" != xno; then :
6130
6131fi
6132
6133ac_ext=c
6134ac_cpp='$CPP $CPPFLAGS'
6135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
cristy3ed852e2009-09-05 21:47:34 +00006139depcc="$CC" am_compiler_list=
6140
cristy8b350f62009-11-15 23:12:43 +00006141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006142$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006143if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006144 $as_echo_n "(cached) " >&6
6145else
6146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6147 # We make a subdir and do the tests there. Otherwise we can end up
6148 # making bogus files that we don't know about and never remove. For
6149 # instance it was reported that on HP-UX the gcc test will end up
6150 # making a dummy file named `D' -- because `-MD' means `put the output
6151 # in D'.
6152 mkdir conftest.dir
6153 # Copy depcomp to subdir because otherwise we won't find it if we're
6154 # using a relative directory.
6155 cp "$am_depcomp" conftest.dir
6156 cd conftest.dir
6157 # We will build objects and dependencies in a subdirectory because
6158 # it helps to detect inapplicable dependency modes. For instance
6159 # both Tru64's cc and ICC support -MD to output dependencies as a
6160 # side effect of compilation, but ICC will put the dependencies in
6161 # the current directory while Tru64 will put them in the object
6162 # directory.
6163 mkdir sub
6164
6165 am_cv_CC_dependencies_compiler_type=none
6166 if test "$am_compiler_list" = ""; then
6167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6168 fi
6169 am__universal=false
6170 case " $depcc " in #(
6171 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6172 esac
6173
6174 for depmode in $am_compiler_list; do
6175 # Setup a source with many dependencies, because some compilers
6176 # like to wrap large dependency lists on column 80 (with \), and
6177 # we should not choose a depcomp mode which is confused by this.
6178 #
6179 # We need to recreate these files for each test, as the compiler may
6180 # overwrite some of them when testing with obscure command lines.
6181 # This happens at least with the AIX C compiler.
6182 : > sub/conftest.c
6183 for i in 1 2 3 4 5 6; do
6184 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6185 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6186 # Solaris 8's {/usr,}/bin/sh.
6187 touch sub/conftst$i.h
6188 done
6189 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6190
6191 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6192 # mode. It turns out that the SunPro C++ compiler does not properly
6193 # handle `-M -o', and we need to detect this. Also, some Intel
6194 # versions had trouble with output in subdirs
6195 am__obj=sub/conftest.${OBJEXT-o}
6196 am__minus_obj="-o $am__obj"
6197 case $depmode in
6198 gcc)
6199 # This depmode causes a compiler race in universal mode.
6200 test "$am__universal" = false || continue
6201 ;;
6202 nosideeffect)
6203 # after this tag, mechanisms are not by side-effect, so they'll
6204 # only be used when explicitly requested
6205 if test "x$enable_dependency_tracking" = xyes; then
6206 continue
6207 else
6208 break
6209 fi
6210 ;;
6211 msvisualcpp | msvcmsys)
6212 # This compiler won't grok `-c -o', but also, the minuso test has
6213 # not run yet. These depmodes are late enough in the game, and
6214 # so weak that their functioning should not be impacted.
6215 am__obj=conftest.${OBJEXT-o}
6216 am__minus_obj=
6217 ;;
6218 none) break ;;
6219 esac
6220 if depmode=$depmode \
6221 source=sub/conftest.c object=$am__obj \
6222 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6223 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6224 >/dev/null 2>conftest.err &&
6225 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6226 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6227 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6228 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6229 # icc doesn't choke on unknown options, it will just issue warnings
6230 # or remarks (even with -Werror). So we grep stderr for any message
6231 # that says an option was ignored or not supported.
6232 # When given -MP, icc 7.0 and 7.1 complain thusly:
6233 # icc: Command line warning: ignoring option '-M'; no argument required
6234 # The diagnosis changed in icc 8.0:
6235 # icc: Command line remark: option '-MP' not supported
6236 if (grep 'ignoring option' conftest.err ||
6237 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6238 am_cv_CC_dependencies_compiler_type=$depmode
6239 break
6240 fi
6241 fi
6242 done
6243
6244 cd ..
6245 rm -rf conftest.dir
6246else
6247 am_cv_CC_dependencies_compiler_type=none
6248fi
6249
6250fi
cristy8b350f62009-11-15 23:12:43 +00006251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006252$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6253CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6254
6255 if
6256 test "x$enable_dependency_tracking" != xno \
6257 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6258 am__fastdepCC_TRUE=
6259 am__fastdepCC_FALSE='#'
6260else
6261 am__fastdepCC_TRUE='#'
6262 am__fastdepCC_FALSE=
6263fi
6264
6265
cristy95646052009-11-28 23:05:30 +00006266ac_ext=cpp
6267ac_cpp='$CXXCPP $CPPFLAGS'
6268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271if test -z "$CXX"; then
6272 if test -n "$CCC"; then
6273 CXX=$CCC
6274 else
6275 if test -n "$ac_tool_prefix"; then
6276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6277 do
6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if test "${ac_cv_prog_CXX+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284else
6285 if test -n "$CXX"; then
6286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300 done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305CXX=$ac_cv_prog_CXX
6306if test -n "$CXX"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6308$as_echo "$CXX" >&6; }
6309else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313
6314
6315 test -n "$CXX" && break
6316 done
6317fi
6318if test -z "$CXX"; then
6319 ac_ct_CXX=$CXX
6320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6321do
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323set dummy $ac_prog; ac_word=$2
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328else
6329 if test -n "$ac_ct_CXX"; then
6330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_CXX="$ac_prog"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344 done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6350if test -n "$ac_ct_CXX"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6352$as_echo "$ac_ct_CXX" >&6; }
6353else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358
6359 test -n "$ac_ct_CXX" && break
6360done
6361
6362 if test "x$ac_ct_CXX" = x; then
6363 CXX="g++"
6364 else
6365 case $cross_compiling:$ac_tool_warned in
6366yes:)
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6369ac_tool_warned=yes ;;
6370esac
6371 CXX=$ac_ct_CXX
6372 fi
6373fi
6374
6375 fi
6376fi
6377# Provide some information about the compiler.
6378$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6379set X $ac_compile
6380ac_compiler=$2
6381for ac_option in --version -v -V -qversion; do
6382 { { ac_try="$ac_compiler $ac_option >&5"
6383case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386esac
6387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6388$as_echo "$ac_try_echo"; } >&5
6389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6390 ac_status=$?
6391 if test -s conftest.err; then
6392 sed '10a\
6393... rest of stderr output deleted ...
6394 10q' conftest.err >conftest.er1
6395 cat conftest.er1 >&5
6396 fi
6397 rm -f conftest.er1 conftest.err
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; }
6400done
6401
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6403$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406else
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h. */
6409
6410int
6411main ()
6412{
6413#ifndef __GNUC__
6414 choke me
6415#endif
6416
6417 ;
6418 return 0;
6419}
6420_ACEOF
6421if ac_fn_cxx_try_compile "$LINENO"; then :
6422 ac_compiler_gnu=yes
6423else
6424 ac_compiler_gnu=no
6425fi
6426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6431$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6432if test $ac_compiler_gnu = yes; then
6433 GXX=yes
6434else
6435 GXX=
6436fi
6437ac_test_CXXFLAGS=${CXXFLAGS+set}
6438ac_save_CXXFLAGS=$CXXFLAGS
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6440$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6441if test "${ac_cv_prog_cxx_g+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443else
6444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6445 ac_cxx_werror_flag=yes
6446 ac_cv_prog_cxx_g=no
6447 CXXFLAGS="-g"
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h. */
6450
6451int
6452main ()
6453{
6454
6455 ;
6456 return 0;
6457}
6458_ACEOF
6459if ac_fn_cxx_try_compile "$LINENO"; then :
6460 ac_cv_prog_cxx_g=yes
6461else
6462 CXXFLAGS=""
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h. */
6465
6466int
6467main ()
6468{
6469
6470 ;
6471 return 0;
6472}
6473_ACEOF
6474if ac_fn_cxx_try_compile "$LINENO"; then :
6475
6476else
6477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6478 CXXFLAGS="-g"
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480/* end confdefs.h. */
6481
6482int
6483main ()
6484{
6485
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490if ac_fn_cxx_try_compile "$LINENO"; then :
6491 ac_cv_prog_cxx_g=yes
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi
6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6501$as_echo "$ac_cv_prog_cxx_g" >&6; }
6502if test "$ac_test_CXXFLAGS" = set; then
6503 CXXFLAGS=$ac_save_CXXFLAGS
6504elif test $ac_cv_prog_cxx_g = yes; then
6505 if test "$GXX" = yes; then
6506 CXXFLAGS="-g -O2"
6507 else
6508 CXXFLAGS="-g"
6509 fi
6510else
6511 if test "$GXX" = yes; then
6512 CXXFLAGS="-O2"
6513 else
6514 CXXFLAGS=
6515 fi
6516fi
6517ac_ext=c
6518ac_cpp='$CPP $CPPFLAGS'
6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522
6523depcc="$CXX" am_compiler_list=
6524
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6526$as_echo_n "checking dependency style of $depcc... " >&6; }
6527if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529else
6530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6531 # We make a subdir and do the tests there. Otherwise we can end up
6532 # making bogus files that we don't know about and never remove. For
6533 # instance it was reported that on HP-UX the gcc test will end up
6534 # making a dummy file named `D' -- because `-MD' means `put the output
6535 # in D'.
6536 mkdir conftest.dir
6537 # Copy depcomp to subdir because otherwise we won't find it if we're
6538 # using a relative directory.
6539 cp "$am_depcomp" conftest.dir
6540 cd conftest.dir
6541 # We will build objects and dependencies in a subdirectory because
6542 # it helps to detect inapplicable dependency modes. For instance
6543 # both Tru64's cc and ICC support -MD to output dependencies as a
6544 # side effect of compilation, but ICC will put the dependencies in
6545 # the current directory while Tru64 will put them in the object
6546 # directory.
6547 mkdir sub
6548
6549 am_cv_CXX_dependencies_compiler_type=none
6550 if test "$am_compiler_list" = ""; then
6551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6552 fi
6553 am__universal=false
6554 case " $depcc " in #(
6555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6556 esac
6557
6558 for depmode in $am_compiler_list; do
6559 # Setup a source with many dependencies, because some compilers
6560 # like to wrap large dependency lists on column 80 (with \), and
6561 # we should not choose a depcomp mode which is confused by this.
6562 #
6563 # We need to recreate these files for each test, as the compiler may
6564 # overwrite some of them when testing with obscure command lines.
6565 # This happens at least with the AIX C compiler.
6566 : > sub/conftest.c
6567 for i in 1 2 3 4 5 6; do
6568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6570 # Solaris 8's {/usr,}/bin/sh.
6571 touch sub/conftst$i.h
6572 done
6573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6574
6575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6576 # mode. It turns out that the SunPro C++ compiler does not properly
6577 # handle `-M -o', and we need to detect this. Also, some Intel
6578 # versions had trouble with output in subdirs
6579 am__obj=sub/conftest.${OBJEXT-o}
6580 am__minus_obj="-o $am__obj"
6581 case $depmode in
6582 gcc)
6583 # This depmode causes a compiler race in universal mode.
6584 test "$am__universal" = false || continue
6585 ;;
6586 nosideeffect)
6587 # after this tag, mechanisms are not by side-effect, so they'll
6588 # only be used when explicitly requested
6589 if test "x$enable_dependency_tracking" = xyes; then
6590 continue
6591 else
6592 break
6593 fi
6594 ;;
6595 msvisualcpp | msvcmsys)
6596 # This compiler won't grok `-c -o', but also, the minuso test has
6597 # not run yet. These depmodes are late enough in the game, and
6598 # so weak that their functioning should not be impacted.
6599 am__obj=conftest.${OBJEXT-o}
6600 am__minus_obj=
6601 ;;
6602 none) break ;;
6603 esac
6604 if depmode=$depmode \
6605 source=sub/conftest.c object=$am__obj \
6606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6608 >/dev/null 2>conftest.err &&
6609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6613 # icc doesn't choke on unknown options, it will just issue warnings
6614 # or remarks (even with -Werror). So we grep stderr for any message
6615 # that says an option was ignored or not supported.
6616 # When given -MP, icc 7.0 and 7.1 complain thusly:
6617 # icc: Command line warning: ignoring option '-M'; no argument required
6618 # The diagnosis changed in icc 8.0:
6619 # icc: Command line remark: option '-MP' not supported
6620 if (grep 'ignoring option' conftest.err ||
6621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6622 am_cv_CXX_dependencies_compiler_type=$depmode
6623 break
6624 fi
6625 fi
6626 done
6627
6628 cd ..
6629 rm -rf conftest.dir
6630else
6631 am_cv_CXX_dependencies_compiler_type=none
6632fi
6633
6634fi
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6636$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6637CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6638
6639 if
6640 test "x$enable_dependency_tracking" != xno \
6641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6642 am__fastdepCXX_TRUE=
6643 am__fastdepCXX_FALSE='#'
6644else
6645 am__fastdepCXX_TRUE='#'
6646 am__fastdepCXX_FALSE=
6647fi
6648
6649
cristy8b350f62009-11-15 23:12:43 +00006650 case $ac_cv_prog_cc_stdc in #(
6651 no) :
6652 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6653 *) :
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006655$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006656if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006657 $as_echo_n "(cached) " >&6
6658else
6659 ac_cv_prog_cc_c99=no
6660ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006662/* end confdefs.h. */
6663#include <stdarg.h>
6664#include <stdbool.h>
6665#include <stdlib.h>
6666#include <wchar.h>
6667#include <stdio.h>
6668
6669// Check varargs macros. These examples are taken from C99 6.10.3.5.
6670#define debug(...) fprintf (stderr, __VA_ARGS__)
6671#define showlist(...) puts (#__VA_ARGS__)
6672#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6673static void
6674test_varargs_macros (void)
6675{
6676 int x = 1234;
6677 int y = 5678;
6678 debug ("Flag");
6679 debug ("X = %d\n", x);
6680 showlist (The first, second, and third items.);
6681 report (x>y, "x is %d but y is %d", x, y);
6682}
6683
6684// Check long long types.
6685#define BIG64 18446744073709551615ull
6686#define BIG32 4294967295ul
6687#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6688#if !BIG_OK
6689 your preprocessor is broken;
6690#endif
6691#if BIG_OK
6692#else
6693 your preprocessor is broken;
6694#endif
6695static long long int bignum = -9223372036854775807LL;
6696static unsigned long long int ubignum = BIG64;
6697
6698struct incomplete_array
6699{
6700 int datasize;
6701 double data[];
6702};
6703
6704struct named_init {
6705 int number;
6706 const wchar_t *name;
6707 double average;
6708};
6709
6710typedef const char *ccp;
6711
6712static inline int
6713test_restrict (ccp restrict text)
6714{
6715 // See if C++-style comments work.
6716 // Iterate through items via the restricted pointer.
6717 // Also check for declarations in for loops.
6718 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6719 continue;
6720 return 0;
6721}
6722
6723// Check varargs and va_copy.
6724static void
6725test_varargs (const char *format, ...)
6726{
6727 va_list args;
6728 va_start (args, format);
6729 va_list args_copy;
6730 va_copy (args_copy, args);
6731
6732 const char *str;
6733 int number;
6734 float fnumber;
6735
6736 while (*format)
6737 {
6738 switch (*format++)
6739 {
6740 case 's': // string
6741 str = va_arg (args_copy, const char *);
6742 break;
6743 case 'd': // int
6744 number = va_arg (args_copy, int);
6745 break;
6746 case 'f': // float
6747 fnumber = va_arg (args_copy, double);
6748 break;
6749 default:
6750 break;
6751 }
6752 }
6753 va_end (args_copy);
6754 va_end (args);
6755}
6756
6757int
6758main ()
6759{
6760
6761 // Check bool.
6762 _Bool success = false;
6763
6764 // Check restrict.
6765 if (test_restrict ("String literal") == 0)
6766 success = true;
6767 char *restrict newvar = "Another string";
6768
6769 // Check varargs.
6770 test_varargs ("s, d' f .", "string", 65, 34.234);
6771 test_varargs_macros ();
6772
6773 // Check flexible array members.
6774 struct incomplete_array *ia =
6775 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6776 ia->datasize = 10;
6777 for (int i = 0; i < ia->datasize; ++i)
6778 ia->data[i] = i * 1.234;
6779
6780 // Check named initializers.
6781 struct named_init ni = {
6782 .number = 34,
6783 .name = L"Test wide string",
6784 .average = 543.34343,
6785 };
6786
6787 ni.number = 58;
6788
6789 int dynamic_array[ni.number];
6790 dynamic_array[ni.number - 1] = 543;
6791
6792 // work around unused variable warnings
6793 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6794 || dynamic_array[ni.number - 1] != 543);
6795
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6801do
6802 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006803 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006804 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006805fi
cristy3ed852e2009-09-05 21:47:34 +00006806rm -f core conftest.err conftest.$ac_objext
6807 test "x$ac_cv_prog_cc_c99" != "xno" && break
6808done
6809rm -f conftest.$ac_ext
6810CC=$ac_save_CC
6811
6812fi
6813# AC_CACHE_VAL
6814case "x$ac_cv_prog_cc_c99" in
6815 x)
cristy8b350f62009-11-15 23:12:43 +00006816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006817$as_echo "none needed" >&6; } ;;
6818 xno)
cristy8b350f62009-11-15 23:12:43 +00006819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006820$as_echo "unsupported" >&6; } ;;
6821 *)
6822 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006824$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6825esac
cristy8b350f62009-11-15 23:12:43 +00006826if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006827 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6828else
cristy8b350f62009-11-15 23:12:43 +00006829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006830$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006831if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006832 $as_echo_n "(cached) " >&6
6833else
6834 ac_cv_prog_cc_c89=no
6835ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006837/* end confdefs.h. */
6838#include <stdarg.h>
6839#include <stdio.h>
6840#include <sys/types.h>
6841#include <sys/stat.h>
6842/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6843struct buf { int x; };
6844FILE * (*rcsopen) (struct buf *, struct stat *, int);
6845static char *e (p, i)
6846 char **p;
6847 int i;
6848{
6849 return p[i];
6850}
6851static char *f (char * (*g) (char **, int), char **p, ...)
6852{
6853 char *s;
6854 va_list v;
6855 va_start (v,p);
6856 s = g (p, va_arg (v,int));
6857 va_end (v);
6858 return s;
6859}
6860
6861/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6862 function prototypes and stuff, but not '\xHH' hex character constants.
6863 These don't provoke an error unfortunately, instead are silently treated
6864 as 'x'. The following induces an error, until -std is added to get
6865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6866 array size at least. It's necessary to write '\x00'==0 to get something
6867 that's true only with -std. */
6868int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6869
6870/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6871 inside strings and character constants. */
6872#define FOO(x) 'x'
6873int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6874
6875int test (int i, double x);
6876struct s1 {int (*f) (int a);};
6877struct s2 {int (*f) (double a);};
6878int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6879int argc;
6880char **argv;
6881int
6882main ()
6883{
6884return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6885 ;
6886 return 0;
6887}
6888_ACEOF
6889for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6891do
6892 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006893 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006894 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006895fi
cristy3ed852e2009-09-05 21:47:34 +00006896rm -f core conftest.err conftest.$ac_objext
6897 test "x$ac_cv_prog_cc_c89" != "xno" && break
6898done
6899rm -f conftest.$ac_ext
6900CC=$ac_save_CC
6901
6902fi
6903# AC_CACHE_VAL
6904case "x$ac_cv_prog_cc_c89" in
6905 x)
cristy8b350f62009-11-15 23:12:43 +00006906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006907$as_echo "none needed" >&6; } ;;
6908 xno)
cristy8b350f62009-11-15 23:12:43 +00006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006910$as_echo "unsupported" >&6; } ;;
6911 *)
6912 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006914$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6915esac
cristy8b350f62009-11-15 23:12:43 +00006916if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006917 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6918else
6919 ac_cv_prog_cc_stdc=no
6920fi
6921
cristy3ed852e2009-09-05 21:47:34 +00006922fi
cristy3ed852e2009-09-05 21:47:34 +00006923 ;;
6924esac
cristy8b350f62009-11-15 23:12:43 +00006925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006926$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006927 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006928 $as_echo_n "(cached) " >&6
6929fi
6930
cristy8b350f62009-11-15 23:12:43 +00006931 case $ac_cv_prog_cc_stdc in #(
6932 no) :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6934$as_echo "unsupported" >&6; } ;; #(
6935 '') :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6937$as_echo "none needed" >&6; } ;; #(
6938 *) :
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006940$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6941esac
6942
cristy3ed852e2009-09-05 21:47:34 +00006943ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006949$as_echo_n "checking how to run the C preprocessor... " >&6; }
6950# On Suns, sometimes $CPP names a directory.
6951if test -n "$CPP" && test -d "$CPP"; then
6952 CPP=
6953fi
6954if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006955 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006956 $as_echo_n "(cached) " >&6
6957else
6958 # Double quotes because CPP needs to be expanded
6959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6960 do
6961 ac_preproc_ok=false
6962for ac_c_preproc_warn_flag in '' yes
6963do
6964 # Use a header file that comes with gcc, so configuring glibc
6965 # with a fresh cross-compiler works.
6966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 # <limits.h> exists even on freestanding compilers.
6968 # On the NeXT, cc -E runs the code through the compiler's parser,
6969 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006971/* end confdefs.h. */
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977 Syntax error
6978_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006979if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006980
cristy8b350f62009-11-15 23:12:43 +00006981else
cristy3ed852e2009-09-05 21:47:34 +00006982 # Broken: fails on valid input.
6983continue
6984fi
cristy3ed852e2009-09-05 21:47:34 +00006985rm -f conftest.err conftest.$ac_ext
6986
6987 # OK, works on sane cases. Now check whether nonexistent headers
6988 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006990/* end confdefs.h. */
6991#include <ac_nonexistent.h>
6992_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006993if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006994 # Broken: success on invalid input.
6995continue
6996else
cristy3ed852e2009-09-05 21:47:34 +00006997 # Passes both tests.
6998ac_preproc_ok=:
6999break
7000fi
cristy3ed852e2009-09-05 21:47:34 +00007001rm -f conftest.err conftest.$ac_ext
7002
7003done
7004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007006if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007007 break
7008fi
7009
7010 done
7011 ac_cv_prog_CPP=$CPP
7012
7013fi
7014 CPP=$ac_cv_prog_CPP
7015else
7016 ac_cv_prog_CPP=$CPP
7017fi
cristy8b350f62009-11-15 23:12:43 +00007018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007019$as_echo "$CPP" >&6; }
7020ac_preproc_ok=false
7021for ac_c_preproc_warn_flag in '' yes
7022do
7023 # Use a header file that comes with gcc, so configuring glibc
7024 # with a fresh cross-compiler works.
7025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7026 # <limits.h> exists even on freestanding compilers.
7027 # On the NeXT, cc -E runs the code through the compiler's parser,
7028 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007030/* end confdefs.h. */
7031#ifdef __STDC__
7032# include <limits.h>
7033#else
7034# include <assert.h>
7035#endif
7036 Syntax error
7037_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007038if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007039
cristy8b350f62009-11-15 23:12:43 +00007040else
cristy3ed852e2009-09-05 21:47:34 +00007041 # Broken: fails on valid input.
7042continue
7043fi
cristy3ed852e2009-09-05 21:47:34 +00007044rm -f conftest.err conftest.$ac_ext
7045
7046 # OK, works on sane cases. Now check whether nonexistent headers
7047 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007049/* end confdefs.h. */
7050#include <ac_nonexistent.h>
7051_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007052if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007053 # Broken: success on invalid input.
7054continue
7055else
cristy3ed852e2009-09-05 21:47:34 +00007056 # Passes both tests.
7057ac_preproc_ok=:
7058break
7059fi
cristy3ed852e2009-09-05 21:47:34 +00007060rm -f conftest.err conftest.$ac_ext
7061
7062done
7063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7064rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007065if $ac_preproc_ok; then :
7066
cristy3ed852e2009-09-05 21:47:34 +00007067else
cristy8b350f62009-11-15 23:12:43 +00007068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00007070as_fn_error "C preprocessor \"$CPP\" fails sanity check
7071See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007072fi
7073
7074ac_ext=c
7075ac_cpp='$CPP $CPPFLAGS'
7076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
cristy8b350f62009-11-15 23:12:43 +00007080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007081$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007082if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007083 $as_echo_n "(cached) " >&6
7084else
7085 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7086 for ac_i in 1 2 3 4 5 6 7; do
7087 ac_script="$ac_script$as_nl$ac_script"
7088 done
7089 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007090 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007091 if test -z "$SED"; then
7092 ac_path_SED_found=false
7093 # Loop through the user's path and test for each of PROGNAME-LIST
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007099 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7102 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7103# Check for GNU ac_path_SED and select it if it is found.
7104 # Check for GNU $ac_path_SED
7105case `"$ac_path_SED" --version 2>&1` in
7106*GNU*)
7107 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7108*)
7109 ac_count=0
7110 $as_echo_n 0123456789 >"conftest.in"
7111 while :
7112 do
7113 cat "conftest.in" "conftest.in" >"conftest.tmp"
7114 mv "conftest.tmp" "conftest.in"
7115 cp "conftest.in" "conftest.nl"
7116 $as_echo '' >> "conftest.nl"
7117 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007119 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007120 if test $ac_count -gt ${ac_path_SED_max-0}; then
7121 # Best one so far, save it but keep looking for a better one
7122 ac_cv_path_SED="$ac_path_SED"
7123 ac_path_SED_max=$ac_count
7124 fi
7125 # 10*(2^10) chars as input seems more than enough
7126 test $ac_count -gt 10 && break
7127 done
7128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7129esac
7130
7131 $ac_path_SED_found && break 3
7132 done
7133 done
cristy8b350f62009-11-15 23:12:43 +00007134 done
cristy3ed852e2009-09-05 21:47:34 +00007135IFS=$as_save_IFS
7136 if test -z "$ac_cv_path_SED"; then
cristy5c40fb42010-08-05 16:12:44 +00007137 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007138 fi
7139else
7140 ac_cv_path_SED=$SED
7141fi
7142
7143fi
cristy8b350f62009-11-15 23:12:43 +00007144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007145$as_echo "$ac_cv_path_SED" >&6; }
7146 SED="$ac_cv_path_SED"
7147 rm -f conftest.sed
7148
7149test -z "$SED" && SED=sed
7150Xsed="$SED -e 1s/^X//"
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
cristy8b350f62009-11-15 23:12:43 +00007162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007163$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007164if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007165 $as_echo_n "(cached) " >&6
7166else
7167 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7168 then ac_cv_path_FGREP="$GREP -F"
7169 else
7170 if test -z "$FGREP"; then
7171 ac_path_FGREP_found=false
7172 # Loop through the user's path and test for each of PROGNAME-LIST
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007178 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7181 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7182# Check for GNU ac_path_FGREP and select it if it is found.
7183 # Check for GNU $ac_path_FGREP
7184case `"$ac_path_FGREP" --version 2>&1` in
7185*GNU*)
7186 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7187*)
7188 ac_count=0
7189 $as_echo_n 0123456789 >"conftest.in"
7190 while :
7191 do
7192 cat "conftest.in" "conftest.in" >"conftest.tmp"
7193 mv "conftest.tmp" "conftest.in"
7194 cp "conftest.in" "conftest.nl"
7195 $as_echo 'FGREP' >> "conftest.nl"
7196 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007198 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007199 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7200 # Best one so far, save it but keep looking for a better one
7201 ac_cv_path_FGREP="$ac_path_FGREP"
7202 ac_path_FGREP_max=$ac_count
7203 fi
7204 # 10*(2^10) chars as input seems more than enough
7205 test $ac_count -gt 10 && break
7206 done
7207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7208esac
7209
7210 $ac_path_FGREP_found && break 3
7211 done
7212 done
cristy8b350f62009-11-15 23:12:43 +00007213 done
cristy3ed852e2009-09-05 21:47:34 +00007214IFS=$as_save_IFS
7215 if test -z "$ac_cv_path_FGREP"; then
cristy5c40fb42010-08-05 16:12:44 +00007216 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007217 fi
7218else
7219 ac_cv_path_FGREP=$FGREP
7220fi
7221
7222 fi
7223fi
cristy8b350f62009-11-15 23:12:43 +00007224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007225$as_echo "$ac_cv_path_FGREP" >&6; }
7226 FGREP="$ac_cv_path_FGREP"
7227
7228
7229test -z "$GREP" && GREP=grep
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007250if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007251 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7252else
7253 with_gnu_ld=no
7254fi
7255
7256ac_prog=ld
7257if test "$GCC" = yes; then
7258 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo_n "checking for ld used by $CC... " >&6; }
7261 case $host in
7262 *-*-mingw*)
7263 # gcc leaves a trailing carriage return which upsets mingw
7264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7265 *)
7266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7267 esac
7268 case $ac_prog in
7269 # Accept absolute paths.
7270 [\\/]* | ?:[\\/]*)
7271 re_direlt='/[^/][^/]*/\.\./'
7272 # Canonicalize the pathname of ld
7273 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7274 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7275 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7276 done
7277 test -z "$LD" && LD="$ac_prog"
7278 ;;
7279 "")
7280 # If it fails, then pretend we aren't using GCC.
7281 ac_prog=ld
7282 ;;
7283 *)
7284 # If it is relative, then search for the first ld in PATH.
7285 with_gnu_ld=unknown
7286 ;;
7287 esac
7288elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo_n "checking for GNU ld... " >&6; }
7291else
cristy8b350f62009-11-15 23:12:43 +00007292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007293$as_echo_n "checking for non-GNU ld... " >&6; }
7294fi
cristy8b350f62009-11-15 23:12:43 +00007295if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007296 $as_echo_n "(cached) " >&6
7297else
7298 if test -z "$LD"; then
7299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7300 for ac_dir in $PATH; do
7301 IFS="$lt_save_ifs"
7302 test -z "$ac_dir" && ac_dir=.
7303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7304 lt_cv_path_LD="$ac_dir/$ac_prog"
7305 # Check to see if the program is GNU ld. I'd rather use --version,
7306 # but apparently some variants of GNU ld only accept -v.
7307 # Break only if it was the GNU/non-GNU ld that we prefer.
7308 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7309 *GNU* | *'with BFD'*)
7310 test "$with_gnu_ld" != no && break
7311 ;;
7312 *)
7313 test "$with_gnu_ld" != yes && break
7314 ;;
7315 esac
7316 fi
7317 done
7318 IFS="$lt_save_ifs"
7319else
7320 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7321fi
7322fi
7323
7324LD="$lt_cv_path_LD"
7325if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007327$as_echo "$LD" >&6; }
7328else
cristy8b350f62009-11-15 23:12:43 +00007329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007330$as_echo "no" >&6; }
7331fi
cristy5c40fb42010-08-05 16:12:44 +00007332test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +00007333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007334$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007335if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007336 $as_echo_n "(cached) " >&6
7337else
7338 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7339case `$LD -v 2>&1 </dev/null` in
7340*GNU* | *'with BFD'*)
7341 lt_cv_prog_gnu_ld=yes
7342 ;;
7343*)
7344 lt_cv_prog_gnu_ld=no
7345 ;;
7346esac
7347fi
cristy8b350f62009-11-15 23:12:43 +00007348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007349$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7350with_gnu_ld=$lt_cv_prog_gnu_ld
7351
7352
7353
7354
7355
7356
7357
7358
7359
cristy3ed852e2009-09-05 21:47:34 +00007360
cristy837d6dc2010-02-27 01:16:57 +00007361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7362$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7363if test "${ac_cv_prog_cc_c99+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365else
7366 ac_cv_prog_cc_c99=no
7367ac_save_CC=$CC
7368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h. */
7370#include <stdarg.h>
7371#include <stdbool.h>
7372#include <stdlib.h>
7373#include <wchar.h>
7374#include <stdio.h>
7375
7376// Check varargs macros. These examples are taken from C99 6.10.3.5.
7377#define debug(...) fprintf (stderr, __VA_ARGS__)
7378#define showlist(...) puts (#__VA_ARGS__)
7379#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7380static void
7381test_varargs_macros (void)
7382{
7383 int x = 1234;
7384 int y = 5678;
7385 debug ("Flag");
7386 debug ("X = %d\n", x);
7387 showlist (The first, second, and third items.);
7388 report (x>y, "x is %d but y is %d", x, y);
7389}
7390
7391// Check long long types.
7392#define BIG64 18446744073709551615ull
7393#define BIG32 4294967295ul
7394#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7395#if !BIG_OK
7396 your preprocessor is broken;
7397#endif
7398#if BIG_OK
7399#else
7400 your preprocessor is broken;
7401#endif
7402static long long int bignum = -9223372036854775807LL;
7403static unsigned long long int ubignum = BIG64;
7404
7405struct incomplete_array
7406{
7407 int datasize;
7408 double data[];
7409};
7410
7411struct named_init {
7412 int number;
7413 const wchar_t *name;
7414 double average;
7415};
7416
7417typedef const char *ccp;
7418
7419static inline int
7420test_restrict (ccp restrict text)
7421{
7422 // See if C++-style comments work.
7423 // Iterate through items via the restricted pointer.
7424 // Also check for declarations in for loops.
7425 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7426 continue;
7427 return 0;
7428}
7429
7430// Check varargs and va_copy.
7431static void
7432test_varargs (const char *format, ...)
7433{
7434 va_list args;
7435 va_start (args, format);
7436 va_list args_copy;
7437 va_copy (args_copy, args);
7438
7439 const char *str;
7440 int number;
7441 float fnumber;
7442
7443 while (*format)
7444 {
7445 switch (*format++)
7446 {
7447 case 's': // string
7448 str = va_arg (args_copy, const char *);
7449 break;
7450 case 'd': // int
7451 number = va_arg (args_copy, int);
7452 break;
7453 case 'f': // float
7454 fnumber = va_arg (args_copy, double);
7455 break;
7456 default:
7457 break;
7458 }
7459 }
7460 va_end (args_copy);
7461 va_end (args);
7462}
7463
7464int
7465main ()
7466{
7467
7468 // Check bool.
7469 _Bool success = false;
7470
7471 // Check restrict.
7472 if (test_restrict ("String literal") == 0)
7473 success = true;
7474 char *restrict newvar = "Another string";
7475
7476 // Check varargs.
7477 test_varargs ("s, d' f .", "string", 65, 34.234);
7478 test_varargs_macros ();
7479
7480 // Check flexible array members.
7481 struct incomplete_array *ia =
7482 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7483 ia->datasize = 10;
7484 for (int i = 0; i < ia->datasize; ++i)
7485 ia->data[i] = i * 1.234;
7486
7487 // Check named initializers.
7488 struct named_init ni = {
7489 .number = 34,
7490 .name = L"Test wide string",
7491 .average = 543.34343,
7492 };
7493
7494 ni.number = 58;
7495
7496 int dynamic_array[ni.number];
7497 dynamic_array[ni.number - 1] = 543;
7498
7499 // work around unused variable warnings
7500 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7501 || dynamic_array[ni.number - 1] != 543);
7502
7503 ;
7504 return 0;
7505}
7506_ACEOF
7507for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7508do
7509 CC="$ac_save_CC $ac_arg"
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_cv_prog_cc_c99=$ac_arg
7512fi
7513rm -f core conftest.err conftest.$ac_objext
7514 test "x$ac_cv_prog_cc_c99" != "xno" && break
7515done
7516rm -f conftest.$ac_ext
7517CC=$ac_save_CC
7518
7519fi
7520# AC_CACHE_VAL
7521case "x$ac_cv_prog_cc_c99" in
7522 x)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7524$as_echo "none needed" >&6; } ;;
7525 xno)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7527$as_echo "unsupported" >&6; } ;;
7528 *)
7529 CC="$CC $ac_cv_prog_cc_c99"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7531$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7532esac
7533if test "x$ac_cv_prog_cc_c99" != xno; then :
7534
7535fi
7536
7537
cristy3ed852e2009-09-05 21:47:34 +00007538if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007540$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7541else
cristy8b350f62009-11-15 23:12:43 +00007542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007543$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7544fi
7545set dummy $CC; ac_cc=`$as_echo "$2" |
7546 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy5c40fb42010-08-05 16:12:44 +00007547if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007548 $as_echo_n "(cached) " >&6
7549else
cristy8b350f62009-11-15 23:12:43 +00007550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007551/* end confdefs.h. */
7552
7553int
7554main ()
7555{
7556
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561# Make sure it works both with $CC and with simple cc.
7562# We do the test twice because some compilers refuse to overwrite an
7563# existing .o file with -o, though they will create one.
7564ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7565rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007566if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7569esac
cristy8b350f62009-11-15 23:12:43 +00007570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7571$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007572 (eval "$ac_try") 2>&5
7573 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; } &&
7576 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579esac
cristy8b350f62009-11-15 23:12:43 +00007580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7581$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007582 (eval "$ac_try") 2>&5
7583 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007586then
7587 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7588 if test "x$CC" != xcc; then
7589 # Test first that cc exists at all.
7590 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007591 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7594esac
cristy8b350f62009-11-15 23:12:43 +00007595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7596$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007597 (eval "$ac_try") 2>&5
7598 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7600 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007601 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7602 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007603 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606esac
cristy8b350f62009-11-15 23:12:43 +00007607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7608$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007609 (eval "$ac_try") 2>&5
7610 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; } &&
7613 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7616esac
cristy8b350f62009-11-15 23:12:43 +00007617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7618$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007619 (eval "$ac_try") 2>&5
7620 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7622 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007623 then
7624 # cc works too.
7625 :
7626 else
7627 # cc exists but doesn't like -o.
7628 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7629 fi
7630 fi
7631 fi
7632else
7633 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7634fi
7635rm -f core conftest*
7636
7637fi
7638if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "yes" >&6; }
7641else
cristy8b350f62009-11-15 23:12:43 +00007642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007643$as_echo "no" >&6; }
7644
cristy8b350f62009-11-15 23:12:43 +00007645$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007646
7647fi
7648
7649# FIXME: we rely on the cache variable name because
7650# there is no other way.
7651set dummy $CC
7652am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7653eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7654if test "$am_t" != yes; then
7655 # Losing compiler, so override with the script.
7656 # FIXME: It is wrong to rewrite CC.
7657 # But if we don't then we get into trouble of one sort or another.
7658 # A longer-term fix would be to have automake use am__CC in this case,
7659 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7660 CC="$am_aux_dir/compile $CC"
7661fi
7662
7663
cristy92703d82010-04-26 00:18:18 +00007664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7665$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7666if test "${ac_cv_cflags_warn_all+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007668else
cristy92703d82010-04-26 00:18:18 +00007669 ac_cv_cflags_warn_all="no, unknown"
7670
7671 ac_ext=c
7672ac_cpp='$CPP $CPPFLAGS'
7673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7675ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676
7677 ac_save_CFLAGS="$CFLAGS"
7678for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7679do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h. */
7682
7683int
7684main ()
7685{
7686return 0;
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007693fi
cristy92703d82010-04-26 00:18:18 +00007694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695done
7696 CFLAGS="$ac_save_CFLAGS"
7697 ac_ext=c
7698ac_cpp='$CPP $CPPFLAGS'
7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007702
7703
cristy92703d82010-04-26 00:18:18 +00007704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7706$as_echo "$ac_cv_cflags_warn_all" >&6; }
7707case ".$ac_cv_cflags_warn_all" in
7708 .ok|.ok,*) ;;
7709 .|.no|.no,*)
7710 ;;
7711 *)
7712 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7713 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7714 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7715 ac_status=$?
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; }
7718 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7719 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }
7723 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7724 fi
7725 ;;
7726esac
cristy3ed852e2009-09-05 21:47:34 +00007727
cristya0b81c32010-01-22 02:54:33 +00007728$ac_includes_default
7729
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7731$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7732set x ${MAKE-make}
7733ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy5c40fb42010-08-05 16:12:44 +00007734if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristya0b81c32010-01-22 02:54:33 +00007735 $as_echo_n "(cached) " >&6
7736else
7737 cat >conftest.make <<\_ACEOF
7738SHELL = /bin/sh
7739all:
7740 @echo '@@@%%%=$(MAKE)=@@@%%%'
7741_ACEOF
cristy5c40fb42010-08-05 16:12:44 +00007742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007743case `${MAKE-make} -f conftest.make 2>/dev/null` in
7744 *@@@%%%=?*=@@@%%%*)
7745 eval ac_cv_prog_make_${ac_make}_set=yes;;
7746 *)
7747 eval ac_cv_prog_make_${ac_make}_set=no;;
7748esac
7749rm -f conftest.make
7750fi
7751if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7753$as_echo "yes" >&6; }
7754 SET_MAKE=
7755else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758 SET_MAKE="MAKE=${MAKE-make}"
7759fi
7760
cristy8b350f62009-11-15 23:12:43 +00007761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007762$as_echo_n "checking whether ln -s works... " >&6; }
7763LN_S=$as_ln_s
7764if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007766$as_echo "yes" >&6; }
7767else
cristy8b350f62009-11-15 23:12:43 +00007768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007769$as_echo "no, using $LN_S" >&6; }
7770fi
7771
cristy8b350f62009-11-15 23:12:43 +00007772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007773$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7774
7775# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007776if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007777 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007779$as_echo "yes" >&6; }
7780
cristy8b350f62009-11-15 23:12:43 +00007781$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007782
7783 LIBS="$LIBS -ldmalloc"
7784 LDFLAGS="$LDFLAGS -g"
7785else
cristy8b350f62009-11-15 23:12:43 +00007786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007787$as_echo "no" >&6; }
7788fi
7789else
cristy8b350f62009-11-15 23:12:43 +00007790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007791$as_echo "no" >&6; }
7792fi
7793
7794
7795
cristy0d3a6382010-04-26 00:45:55 +00007796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7797$as_echo_n "checking for __attribute__... " >&6; }
7798if test "${ax_cv___attribute__+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802/* end confdefs.h. */
7803#include <stdlib.h>
7804 static void foo(void) __attribute__ ((unused));
7805 static void
7806 foo(void) {
7807 exit(1);
7808 }
7809
7810int
7811main ()
7812{
7813
7814 ;
7815 return 0;
7816}
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"; then :
7819 ax_cv___attribute__=yes
7820else
7821 ax_cv___attribute__=no
7822
7823fi
7824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7828$as_echo "$ax_cv___attribute__" >&6; }
7829 if test "$ax_cv___attribute__" = "yes"; then
7830
7831$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7832
7833 fi
7834
7835
cristy3ed852e2009-09-05 21:47:34 +00007836
7837if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7840set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007842$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007843if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007844 $as_echo_n "(cached) " >&6
7845else
7846 case $PKG_CONFIG in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7849 ;;
7850 *)
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007860 break 2
7861 fi
7862done
cristy8b350f62009-11-15 23:12:43 +00007863 done
cristy3ed852e2009-09-05 21:47:34 +00007864IFS=$as_save_IFS
7865
7866 ;;
7867esac
7868fi
7869PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7870if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007872$as_echo "$PKG_CONFIG" >&6; }
7873else
cristy8b350f62009-11-15 23:12:43 +00007874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007875$as_echo "no" >&6; }
7876fi
7877
7878
7879fi
7880if test -z "$ac_cv_path_PKG_CONFIG"; then
7881 ac_pt_PKG_CONFIG=$PKG_CONFIG
7882 # Extract the first word of "pkg-config", so it can be a program name with args.
7883set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007885$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007886if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007887 $as_echo_n "(cached) " >&6
7888else
7889 case $ac_pt_PKG_CONFIG in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7892 ;;
7893 *)
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007903 break 2
7904 fi
7905done
cristy8b350f62009-11-15 23:12:43 +00007906 done
cristy3ed852e2009-09-05 21:47:34 +00007907IFS=$as_save_IFS
7908
7909 ;;
7910esac
7911fi
7912ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7913if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007915$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7916else
cristy8b350f62009-11-15 23:12:43 +00007917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007918$as_echo "no" >&6; }
7919fi
7920
7921 if test "x$ac_pt_PKG_CONFIG" = x; then
7922 PKG_CONFIG=""
7923 else
7924 case $cross_compiling:$ac_tool_warned in
7925yes:)
cristy8b350f62009-11-15 23:12:43 +00007926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928ac_tool_warned=yes ;;
7929esac
7930 PKG_CONFIG=$ac_pt_PKG_CONFIG
7931 fi
7932else
7933 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7934fi
7935
7936fi
7937if test -n "$PKG_CONFIG"; then
7938 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007940$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7941 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007943$as_echo "yes" >&6; }
7944 else
cristy8b350f62009-11-15 23:12:43 +00007945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007946$as_echo "no" >&6; }
7947 PKG_CONFIG=""
7948 fi
7949
7950fi
7951
7952#
cristy3ed852e2009-09-05 21:47:34 +00007953# Enable run-time checking.
7954#
7955# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007956if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007957 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7958else
7959 enable_bounds_checking='no'
7960fi
7961
7962
7963if test "$enable_bounds_checking" = yes; then
7964
cristy8b350f62009-11-15 23:12:43 +00007965$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007966
7967fi
7968
7969#
7970# Tests for Windows
7971#
7972
7973
cristy0d3a6382010-04-26 00:45:55 +00007974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7975$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7976if test "${ax_cv_c_compiler_ms+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978else
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h. */
7981
7982int
7983main ()
7984{
7985#ifndef _MSC_VER
7986 choke me
7987#endif
7988
7989 ;
7990 return 0;
7991}
7992_ACEOF
7993if ac_fn_c_try_compile "$LINENO"; then :
7994 ax_compiler_ms=yes
7995else
7996 ax_compiler_ms=no
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999ax_cv_c_compiler_ms=$ax_compiler_ms
8000
8001fi
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8003$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008004
8005GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008006native_win32_build='no'
8007cygwin_build='no'
8008case "${host_os}" in
8009 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008010 cygwin_build='yes'
8011 GDI32_LIBS='-lgdi32'
8012 ;;
8013 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008014 native_win32_build='yes'
8015 GDI32_LIBS='-lgdi32'
8016 ;;
8017esac
8018if test "${GDI32_LIBS}x" != 'x'; then
8019
cristy8b350f62009-11-15 23:12:43 +00008020$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008021
8022fi
8023
8024 if test "${GDI32_LIBS}x" != 'x' ; then
8025 WINGDI32_DELEGATE_TRUE=
8026 WINGDI32_DELEGATE_FALSE='#'
8027else
8028 WINGDI32_DELEGATE_TRUE='#'
8029 WINGDI32_DELEGATE_FALSE=
8030fi
8031
8032 if test "${native_win32_build}" = 'yes' ; then
8033 WIN32_NATIVE_BUILD_TRUE=
8034 WIN32_NATIVE_BUILD_FALSE='#'
8035else
8036 WIN32_NATIVE_BUILD_TRUE='#'
8037 WIN32_NATIVE_BUILD_FALSE=
8038fi
8039
8040 if test "${cygwin_build}" = 'yes' ; then
8041 CYGWIN_BUILD_TRUE=
8042 CYGWIN_BUILD_FALSE='#'
8043else
8044 CYGWIN_BUILD_TRUE='#'
8045 CYGWIN_BUILD_FALSE=
8046fi
8047
8048 if test "x${CC}" = 'xcl.exe' ; then
8049 USING_CL_TRUE=
8050 USING_CL_FALSE='#'
8051else
8052 USING_CL_TRUE='#'
8053 USING_CL_FALSE=
8054fi
8055
8056
8057WinPathScript="${srcdirfull}/winpath.sh"
8058
8059
8060#
8061# Compiler flags tweaks
8062#
8063if test "${GCC}" != "yes"; then
8064 case "${host}" in
8065 *-*-hpux* )
8066 # aCC: HP ANSI C++ B3910B A.03.34
8067 CFLAGS="${CFLAGS} -Wp,-H30000"
8068 if test -n "${CXXFLAGS}"; then
8069 CXXFLAGS='-AA'
8070 else
8071 CXXFLAGS="${CXXFLAGS} -AA"
8072 fi
8073 ;;
8074 *-dec-osf5.* )
8075 # Compaq alphaev68-dec-osf5.1 compiler
8076 if test -n "${CXXFLAGS}"; then
8077 CXXFLAGS='-std strict_ansi -noimplicit_include'
8078 else
8079 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8080 fi
8081 esac
8082fi
8083
8084# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008086$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008087if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008088 $as_echo_n "(cached) " >&6
8089else
8090
8091im_cv_ld_lazyload='none'
8092case "${host}" in
8093 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8094 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8095 im_cv_ld_lazyload='-Wl,-zlazyload'
8096 fi
8097 ;;
8098esac
8099
8100fi
cristy8b350f62009-11-15 23:12:43 +00008101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008102$as_echo "$im_cv_ld_lazyload" >&6; }
8103if test "${im_cv_ld_lazyload}" != 'none' ; then
8104 if test -z "${LDFLAGS}" ; then
8105 LDFLAGS="${im_cv_ld_lazyload}"
8106 else
8107 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8108 fi
8109fi
8110
8111case "$host" in
8112*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008113 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008114if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008115 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8116else
8117 build_osxuniversal=no
8118fi
8119
8120
8121 if test "${build_osxuniversal}" != no ; then
8122 if test "$enable_dependency_tracking" != no ; then
cristy5c40fb42010-08-05 16:12:44 +00008123 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008124Please re-run configure with these options:
8125 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008126 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008127 fi
8128 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8129 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8130 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131 fi
8132 ;;
8133esac
8134
8135# Enable support for threads
8136
8137# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008138if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008139 withval=$with_threads; with_threads=$withval
8140else
8141 with_threads='yes'
8142fi
8143
8144
8145have_threads=no
8146if test "$with_threads" != 'no'; then
8147
8148
8149
8150ac_ext=c
8151ac_cpp='$CPP $CPPFLAGS'
8152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154ac_compiler_gnu=$ac_cv_c_compiler_gnu
8155
cristy964cb7f2010-04-25 23:18:00 +00008156ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008157
8158# We used to check for pthread.h first, but this fails if pthread.h
8159# requires special compiler flags (e.g. on True64 or Sequent).
8160# It gets checked for in the link test anyway.
8161
8162# First of all, check if the user has set any of the PTHREAD_LIBS,
8163# etcetera environment variables, and if threads linking works using
8164# them:
8165if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8166 save_CFLAGS="$CFLAGS"
8167 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8168 save_LIBS="$LIBS"
8169 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008170 { $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 +00008171$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008173/* end confdefs.h. */
8174
8175/* Override any GCC internal prototype to avoid an error.
8176 Use char because int might match the return type of a GCC
8177 builtin and then its argument prototype would still apply. */
8178#ifdef __cplusplus
8179extern "C"
8180#endif
8181char pthread_join ();
8182int
8183main ()
8184{
8185return pthread_join ();
8186 ;
8187 return 0;
8188}
8189_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008190if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008191 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008192fi
cristy8b350f62009-11-15 23:12:43 +00008193rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8196$as_echo "$ax_pthread_ok" >&6; }
8197 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008198 PTHREAD_LIBS=""
8199 PTHREAD_CFLAGS=""
8200 fi
8201 LIBS="$save_LIBS"
8202 CFLAGS="$save_CFLAGS"
8203fi
8204
8205# We must check for the threads library under a number of different
8206# names; the ordering is very important because some systems
8207# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8208# libraries is broken (non-POSIX).
8209
8210# Create a list of thread flags to try. Items starting with a "-" are
8211# C compiler flags, and other items are library names, except for "none"
8212# which indicates that we try without any flags at all, and "pthread-config"
8213# which is a program returning the flags for the Pth emulation library.
8214
cristy964cb7f2010-04-25 23:18:00 +00008215ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008216
8217# The ordering *is* (sometimes) important. Some notes on the
8218# individual items follow:
8219
8220# pthreads: AIX (must check this before -lpthread)
8221# none: in case threads are in libc; should be tried before -Kthread and
8222# other compiler flags to prevent continual compiler warnings
8223# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8224# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8225# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8226# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8227# -pthreads: Solaris/gcc
8228# -mthreads: Mingw32/gcc, Lynx/gcc
8229# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8230# doesn't hurt to check since this sometimes defines pthreads too;
8231# also defines -D_REENTRANT)
8232# ... -mt is also the pthreads flag for HP/aCC
8233# pthread: Linux, etcetera
8234# --thread-safe: KAI C++
8235# pthread-config: use pthread-config program (for GNU Pth library)
8236
8237case "${host_cpu}-${host_os}" in
8238 *solaris*)
8239
8240 # On Solaris (at least, for some versions), libc contains stubbed
8241 # (non-functional) versions of the pthreads routines, so link-based
8242 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8243 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8244 # a function called by this macro, so we could check for that, but
8245 # who knows whether they'll stub that too in a future libc.) So,
8246 # we'll just look for -pthreads and -lpthread first:
8247
cristy964cb7f2010-04-25 23:18:00 +00008248 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008249 ;;
cristy964cb7f2010-04-25 23:18:00 +00008250
8251 *-darwin*)
8252 acx_pthread_flags="-pthread $acx_pthread_flags"
8253 ;;
cristy3ed852e2009-09-05 21:47:34 +00008254esac
8255
cristy964cb7f2010-04-25 23:18:00 +00008256if test x"$ax_pthread_ok" = xno; then
8257for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008258
8259 case $flag in
8260 none)
cristy8b350f62009-11-15 23:12:43 +00008261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008262$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8263 ;;
8264
8265 -*)
cristy8b350f62009-11-15 23:12:43 +00008266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008267$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8268 PTHREAD_CFLAGS="$flag"
8269 ;;
8270
8271 pthread-config)
8272 # Extract the first word of "pthread-config", so it can be a program name with args.
8273set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008275$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008276if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008277 $as_echo_n "(cached) " >&6
8278else
cristy964cb7f2010-04-25 23:18:00 +00008279 if test -n "$ax_pthread_config"; then
8280 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008289 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008291 break 2
8292 fi
8293done
cristy8b350f62009-11-15 23:12:43 +00008294 done
cristy3ed852e2009-09-05 21:47:34 +00008295IFS=$as_save_IFS
8296
cristy964cb7f2010-04-25 23:18:00 +00008297 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008298fi
8299fi
cristy964cb7f2010-04-25 23:18:00 +00008300ax_pthread_config=$ac_cv_prog_ax_pthread_config
8301if test -n "$ax_pthread_config"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8303$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008304else
cristy8b350f62009-11-15 23:12:43 +00008305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008306$as_echo "no" >&6; }
8307fi
8308
8309
cristy964cb7f2010-04-25 23:18:00 +00008310 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008311 PTHREAD_CFLAGS="`pthread-config --cflags`"
8312 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8313 ;;
8314
8315 *)
cristy8b350f62009-11-15 23:12:43 +00008316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008317$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8318 PTHREAD_LIBS="-l$flag"
8319 ;;
8320 esac
8321
8322 save_LIBS="$LIBS"
8323 save_CFLAGS="$CFLAGS"
8324 LIBS="$PTHREAD_LIBS $LIBS"
8325 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8326
8327 # Check for various functions. We must include pthread.h,
8328 # since some functions may be macros. (On the Sequent, we
8329 # need a special flag -Kthread to make this header compile.)
8330 # We check for pthread_join because it is in -lpthread on IRIX
8331 # while pthread_create is in libc. We check for pthread_attr_init
8332 # due to DEC craziness with -lpthreads. We check for
8333 # pthread_cleanup_push because it is one of the few pthread
8334 # functions on Solaris that doesn't have a non-functional libc stub.
8335 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008337/* end confdefs.h. */
8338#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008339 static void routine(void* a) {a=0;}
8340 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008341int
8342main ()
8343{
cristy964cb7f2010-04-25 23:18:00 +00008344pthread_t th; pthread_attr_t attr;
8345 pthread_join(th, 0);
8346 pthread_attr_init(&attr);
8347 pthread_cleanup_push(routine, 0);
8348 pthread_create(&th,0,start_routine,0);
8349 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008350 ;
8351 return 0;
8352}
8353_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008354if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008355 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008356fi
cristy8b350f62009-11-15 23:12:43 +00008357rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008359
8360 LIBS="$save_LIBS"
8361 CFLAGS="$save_CFLAGS"
8362
cristy964cb7f2010-04-25 23:18:00 +00008363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8364$as_echo "$ax_pthread_ok" >&6; }
8365 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008366 break;
8367 fi
8368
8369 PTHREAD_LIBS=""
8370 PTHREAD_CFLAGS=""
8371done
8372fi
8373
8374# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008375if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008376 save_LIBS="$LIBS"
8377 LIBS="$PTHREAD_LIBS $LIBS"
8378 save_CFLAGS="$CFLAGS"
8379 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8380
8381 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008383$as_echo_n "checking for joinable pthread attribute... " >&6; }
8384 attr_name=unknown
8385 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008387/* end confdefs.h. */
8388#include <pthread.h>
8389int
8390main ()
8391{
8392int attr=$attr; return attr;
8393 ;
8394 return 0;
8395}
8396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008398 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008399fi
cristy8b350f62009-11-15 23:12:43 +00008400rm -f core conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008402 done
cristy8b350f62009-11-15 23:12:43 +00008403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008404$as_echo "$attr_name" >&6; }
8405 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8406
8407cat >>confdefs.h <<_ACEOF
8408#define PTHREAD_CREATE_JOINABLE $attr_name
8409_ACEOF
8410
8411 fi
8412
cristy8b350f62009-11-15 23:12:43 +00008413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008414$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8415 flag=no
8416 case "${host_cpu}-${host_os}" in
8417 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8418 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8419 esac
cristy8b350f62009-11-15 23:12:43 +00008420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008421$as_echo "${flag}" >&6; }
8422 if test "x$flag" != xno; then
8423 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8424 fi
8425
8426 LIBS="$save_LIBS"
8427 CFLAGS="$save_CFLAGS"
8428
8429 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008430 if test x"$GCC" != xyes; then
8431 for ac_prog in xlc_r cc_r
8432do
8433 # Extract the first word of "$ac_prog", so it can be a program name with args.
8434set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008436$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008437if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008438 $as_echo_n "(cached) " >&6
8439else
8440 if test -n "$PTHREAD_CC"; then
8441 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008448 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008449 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 +00008450 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008452 break 2
8453 fi
8454done
cristy8b350f62009-11-15 23:12:43 +00008455 done
cristy3ed852e2009-09-05 21:47:34 +00008456IFS=$as_save_IFS
8457
cristy3ed852e2009-09-05 21:47:34 +00008458fi
8459fi
8460PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8461if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008463$as_echo "$PTHREAD_CC" >&6; }
8464else
cristy8b350f62009-11-15 23:12:43 +00008465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008466$as_echo "no" >&6; }
8467fi
8468
cristy736173a2009-09-20 21:18:22 +00008469
8470 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008471done
cristy736173a2009-09-20 21:18:22 +00008472test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008473
cristy736173a2009-09-20 21:18:22 +00008474 else
8475 PTHREAD_CC=$CC
8476 fi
cristy3ed852e2009-09-05 21:47:34 +00008477else
cristy736173a2009-09-20 21:18:22 +00008478 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008479fi
8480
cristy3ed852e2009-09-05 21:47:34 +00008481
8482
8483
8484
8485# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008486if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008487
cristy8b350f62009-11-15 23:12:43 +00008488$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008489
8490 :
8491else
cristy964cb7f2010-04-25 23:18:00 +00008492 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008493
8494fi
8495ac_ext=c
8496ac_cpp='$CPP $CPPFLAGS'
8497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500
8501
cristy964cb7f2010-04-25 23:18:00 +00008502 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008503 have_threads=yes
8504 DEF_THREAD="$PTHREAD_CFLAGS"
8505 CFLAGS="$CFLAGS $DEF_THREAD"
8506 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8507 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008508 { $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 +00008509$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8510 CC="$PTHREAD_CC"
8511 fi
8512 fi
8513fi
8514
8515# Enable support for OpenMP
8516if test "$have_threads" != 'yes'; then
8517 ac_cv_prog_c_openmp=unsupported
8518fi
8519
8520 OPENMP_CFLAGS=
8521 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008522if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008523 enableval=$enable_openmp;
8524fi
8525
8526 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008528$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008529if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008530 $as_echo_n "(cached) " >&6
8531else
cristy8b350f62009-11-15 23:12:43 +00008532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008534
8535#ifndef _OPENMP
8536 choke me
8537#endif
8538#include <omp.h>
8539int main () { return omp_get_num_threads (); }
8540
8541_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008542if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008543 ac_cv_prog_c_openmp='none needed'
8544else
cristy8b350f62009-11-15 23:12:43 +00008545 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008546 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8547 ac_save_CFLAGS=$CFLAGS
8548 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008551
8552#ifndef _OPENMP
8553 choke me
8554#endif
8555#include <omp.h>
8556int main () { return omp_get_num_threads (); }
8557
8558_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008560 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008561fi
cristy8b350f62009-11-15 23:12:43 +00008562rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008564 CFLAGS=$ac_save_CFLAGS
8565 if test "$ac_cv_prog_c_openmp" != unsupported; then
8566 break
8567 fi
8568 done
8569fi
cristy8b350f62009-11-15 23:12:43 +00008570rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008572fi
cristy8b350f62009-11-15 23:12:43 +00008573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008574$as_echo "$ac_cv_prog_c_openmp" >&6; }
8575 case $ac_cv_prog_c_openmp in #(
8576 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008577 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008578 *)
cristy8b350f62009-11-15 23:12:43 +00008579 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008580 esac
8581 fi
8582
8583
8584CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8585MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8586
8587
cristy736173a2009-09-20 21:18:22 +00008588# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008589
cristy964cb7f2010-04-25 23:18:00 +00008590
8591
8592ac_ext=c
8593ac_cpp='$CPP $CPPFLAGS'
8594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8596ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597
8598ax_pthread_ok=no
8599
8600# We used to check for pthread.h first, but this fails if pthread.h
8601# requires special compiler flags (e.g. on True64 or Sequent).
8602# It gets checked for in the link test anyway.
8603
8604# First of all, check if the user has set any of the PTHREAD_LIBS,
8605# etcetera environment variables, and if threads linking works using
8606# them:
8607if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8608 save_CFLAGS="$CFLAGS"
8609 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8610 save_LIBS="$LIBS"
8611 LIBS="$PTHREAD_LIBS $LIBS"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8613$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h. */
8616
8617/* Override any GCC internal prototype to avoid an error.
8618 Use char because int might match the return type of a GCC
8619 builtin and then its argument prototype would still apply. */
8620#ifdef __cplusplus
8621extern "C"
8622#endif
8623char pthread_join ();
8624int
8625main ()
8626{
8627return pthread_join ();
8628 ;
8629 return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"; then :
8633 ax_pthread_ok=yes
8634fi
8635rm -f core conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8638$as_echo "$ax_pthread_ok" >&6; }
8639 if test x"$ax_pthread_ok" = xno; then
8640 PTHREAD_LIBS=""
8641 PTHREAD_CFLAGS=""
8642 fi
8643 LIBS="$save_LIBS"
8644 CFLAGS="$save_CFLAGS"
8645fi
8646
8647# We must check for the threads library under a number of different
8648# names; the ordering is very important because some systems
8649# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8650# libraries is broken (non-POSIX).
8651
8652# Create a list of thread flags to try. Items starting with a "-" are
8653# C compiler flags, and other items are library names, except for "none"
8654# which indicates that we try without any flags at all, and "pthread-config"
8655# which is a program returning the flags for the Pth emulation library.
8656
8657ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8658
8659# The ordering *is* (sometimes) important. Some notes on the
8660# individual items follow:
8661
8662# pthreads: AIX (must check this before -lpthread)
8663# none: in case threads are in libc; should be tried before -Kthread and
8664# other compiler flags to prevent continual compiler warnings
8665# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8666# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8667# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8668# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8669# -pthreads: Solaris/gcc
8670# -mthreads: Mingw32/gcc, Lynx/gcc
8671# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8672# doesn't hurt to check since this sometimes defines pthreads too;
8673# also defines -D_REENTRANT)
8674# ... -mt is also the pthreads flag for HP/aCC
8675# pthread: Linux, etcetera
8676# --thread-safe: KAI C++
8677# pthread-config: use pthread-config program (for GNU Pth library)
8678
8679case "${host_cpu}-${host_os}" in
8680 *solaris*)
8681
8682 # On Solaris (at least, for some versions), libc contains stubbed
8683 # (non-functional) versions of the pthreads routines, so link-based
8684 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8685 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8686 # a function called by this macro, so we could check for that, but
8687 # who knows whether they'll stub that too in a future libc.) So,
8688 # we'll just look for -pthreads and -lpthread first:
8689
8690 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8691 ;;
8692
8693 *-darwin*)
8694 acx_pthread_flags="-pthread $acx_pthread_flags"
8695 ;;
8696esac
8697
8698if test x"$ax_pthread_ok" = xno; then
8699for flag in $ax_pthread_flags; do
8700
8701 case $flag in
8702 none)
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8704$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8705 ;;
8706
8707 -*)
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8709$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8710 PTHREAD_CFLAGS="$flag"
8711 ;;
8712
8713 pthread-config)
8714 # Extract the first word of "pthread-config", so it can be a program name with args.
8715set dummy pthread-config; ac_word=$2
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717$as_echo_n "checking for $ac_word... " >&6; }
8718if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8720else
8721 if test -n "$ax_pthread_config"; then
8722 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8723else
8724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8725for as_dir in $PATH
8726do
8727 IFS=$as_save_IFS
8728 test -z "$as_dir" && as_dir=.
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8731 ac_cv_prog_ax_pthread_config="yes"
8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8733 break 2
8734 fi
8735done
8736 done
8737IFS=$as_save_IFS
8738
8739 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8740fi
8741fi
8742ax_pthread_config=$ac_cv_prog_ax_pthread_config
8743if test -n "$ax_pthread_config"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8745$as_echo "$ax_pthread_config" >&6; }
8746else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
8749fi
8750
8751
8752 if test x"$ax_pthread_config" = xno; then continue; fi
8753 PTHREAD_CFLAGS="`pthread-config --cflags`"
8754 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8755 ;;
8756
8757 *)
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8759$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8760 PTHREAD_LIBS="-l$flag"
8761 ;;
8762 esac
8763
8764 save_LIBS="$LIBS"
8765 save_CFLAGS="$CFLAGS"
8766 LIBS="$PTHREAD_LIBS $LIBS"
8767 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8768
8769 # Check for various functions. We must include pthread.h,
8770 # since some functions may be macros. (On the Sequent, we
8771 # need a special flag -Kthread to make this header compile.)
8772 # We check for pthread_join because it is in -lpthread on IRIX
8773 # while pthread_create is in libc. We check for pthread_attr_init
8774 # due to DEC craziness with -lpthreads. We check for
8775 # pthread_cleanup_push because it is one of the few pthread
8776 # functions on Solaris that doesn't have a non-functional libc stub.
8777 # We try pthread_create on general principles.
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h. */
8780#include <pthread.h>
8781 static void routine(void* a) {a=0;}
8782 static void* start_routine(void* a) {return a;}
8783int
8784main ()
8785{
8786pthread_t th; pthread_attr_t attr;
8787 pthread_join(th, 0);
8788 pthread_attr_init(&attr);
8789 pthread_cleanup_push(routine, 0);
8790 pthread_create(&th,0,start_routine,0);
8791 pthread_cleanup_pop(0);
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"; then :
8797 ax_pthread_ok=yes
8798fi
8799rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8801
8802 LIBS="$save_LIBS"
8803 CFLAGS="$save_CFLAGS"
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8806$as_echo "$ax_pthread_ok" >&6; }
8807 if test "x$ax_pthread_ok" = xyes; then
8808 break;
8809 fi
8810
8811 PTHREAD_LIBS=""
8812 PTHREAD_CFLAGS=""
8813done
8814fi
8815
8816# Various other checks:
8817if test "x$ax_pthread_ok" = xyes; then
8818 save_LIBS="$LIBS"
8819 LIBS="$PTHREAD_LIBS $LIBS"
8820 save_CFLAGS="$CFLAGS"
8821 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8822
8823 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8825$as_echo_n "checking for joinable pthread attribute... " >&6; }
8826 attr_name=unknown
8827 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h. */
8830#include <pthread.h>
8831int
8832main ()
8833{
8834int attr=$attr; return attr;
8835 ;
8836 return 0;
8837}
8838_ACEOF
8839if ac_fn_c_try_link "$LINENO"; then :
8840 attr_name=$attr; break
8841fi
8842rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 done
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8846$as_echo "$attr_name" >&6; }
8847 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8848
8849cat >>confdefs.h <<_ACEOF
8850#define PTHREAD_CREATE_JOINABLE $attr_name
8851_ACEOF
8852
8853 fi
8854
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8856$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8857 flag=no
8858 case "${host_cpu}-${host_os}" in
8859 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8860 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8861 esac
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8863$as_echo "${flag}" >&6; }
8864 if test "x$flag" != xno; then
8865 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8866 fi
8867
8868 LIBS="$save_LIBS"
8869 CFLAGS="$save_CFLAGS"
8870
8871 # More AIX lossage: must compile with xlc_r or cc_r
8872 if test x"$GCC" != xyes; then
8873 for ac_prog in xlc_r cc_r
8874do
8875 # Extract the first word of "$ac_prog", so it can be a program name with args.
8876set dummy $ac_prog; ac_word=$2
8877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878$as_echo_n "checking for $ac_word... " >&6; }
8879if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881else
8882 if test -n "$PTHREAD_CC"; then
8883 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8884else
8885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886for as_dir in $PATH
8887do
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_PTHREAD_CC="$ac_prog"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8895 fi
8896done
8897 done
8898IFS=$as_save_IFS
8899
8900fi
8901fi
8902PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8903if test -n "$PTHREAD_CC"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8905$as_echo "$PTHREAD_CC" >&6; }
8906else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908$as_echo "no" >&6; }
8909fi
8910
8911
8912 test -n "$PTHREAD_CC" && break
8913done
8914test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8915
8916 else
8917 PTHREAD_CC=$CC
8918 fi
8919else
8920 PTHREAD_CC="$CC"
8921fi
8922
8923
8924
8925
8926
8927# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8928if test x"$ax_pthread_ok" = xyes; then
8929
8930$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8931
8932 :
8933else
8934 ax_pthread_ok=no
8935
8936fi
8937ac_ext=c
8938ac_cpp='$CPP $CPPFLAGS'
8939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8941ac_compiler_gnu=$ac_cv_c_compiler_gnu
8942
8943
8944
cristy43596fe2010-01-21 16:46:08 +00008945# Check whether --enable-opencl was given.
8946if test "${enable_opencl+set}" = set; then :
8947 enableval=$enable_opencl; disable_opencl=$enableval
8948else
8949 disable_opencl='yes'
8950fi
8951
8952
8953if test "$disable_opencl" = 'yes'; then
8954 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008955ac_cpp='$CPP $CPPFLAGS'
8956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
cristy43596fe2010-01-21 16:46:08 +00008960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008961$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008962if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008963 $as_echo_n "(cached) " >&6
8964else
cristy8b350f62009-11-15 23:12:43 +00008965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008966/* end confdefs.h. */
8967
8968int
8969main ()
8970{
8971#ifndef _MSC_VER
8972 choke me
8973#endif
8974
8975 ;
8976 return 0;
8977}
8978_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008979if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008980 ax_compiler_ms=yes
8981else
cristy8b350f62009-11-15 23:12:43 +00008982 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008983fi
cristy736173a2009-09-20 21:18:22 +00008984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985ax_cv_c_compiler_ms=$ax_compiler_ms
8986
8987fi
cristy8b350f62009-11-15 23:12:43 +00008988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008989$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008990 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008991 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8992fi
8993
cristy43596fe2010-01-21 16:46:08 +00008994 ax_save_CPPFLAGS=$CPPFLAGS
8995 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8996 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008997do :
8998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8999ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy5c40fb42010-08-05 16:12:44 +00009000eval as_val=\$$as_ac_Header
9001 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009002 cat >>confdefs.h <<_ACEOF
9003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9004_ACEOF
9005
9006fi
9007
9008done
9009
cristy43596fe2010-01-21 16:46:08 +00009010 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009011
cristy43596fe2010-01-21 16:46:08 +00009012 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009013do :
9014 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9015if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009016 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009017#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009018_ACEOF
9019
9020fi
9021
9022done
9023
9024
9025
9026
cristy43596fe2010-01-21 16:46:08 +00009027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009028$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009029if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009030 $as_echo_n "(cached) " >&6
9031else
9032 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009033 case $host_cpu in
9034 x86_64) ax_check_cl_libdir=lib64 ;;
9035 *) ax_check_cl_libdir=lib ;;
9036 esac
9037 ax_save_CPPFLAGS=$CPPFLAGS
9038 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9039 ax_save_LIBS=$LIBS
9040 LIBS=""
9041 ax_check_libs="-lOpenCL -lCL -lclparser"
9042 for ax_lib in $ax_check_libs; do
9043 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009044 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9045else
9046 ax_try_lib=$ax_lib
9047fi
cristy43596fe2010-01-21 16:46:08 +00009048 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009050/* end confdefs.h. */
9051
cristy43596fe2010-01-21 16:46:08 +00009052 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9053 # include <windows.h>
9054 # endif
9055 # ifdef HAVE_CL_CL_H
9056 # include <CL/cl.h>
9057 # elif defined(HAVE_OPENCL_CL_H)
9058 # include <OpenCL/cl.h>
9059 # else
9060 # error no CL.h
9061 # endif
cristy736173a2009-09-20 21:18:22 +00009062int
9063main ()
9064{
cristyc7083c12009-10-14 03:16:55 +00009065clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009066 ;
9067 return 0;
9068}
9069_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009070if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009071 ax_cv_check_cl_libcl=$ax_try_lib; break
9072else
cristy8b350f62009-11-15 23:12:43 +00009073 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 +00009074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009075/* end confdefs.h. */
9076
cristy43596fe2010-01-21 16:46:08 +00009077 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9078 # include <windows.h>
9079 # endif
9080 # ifdef HAVE_CL_CL_H
9081 # include <CL/cl.h>
9082 # elif defined(HAVE_OPENCL_CL_H)
9083 # include <OpenCL/cl.h>
9084 # else
9085 # error no CL.h
9086 # endif
cristy736173a2009-09-20 21:18:22 +00009087int
9088main ()
9089{
cristyc7083c12009-10-14 03:16:55 +00009090clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009091 ;
9092 return 0;
9093}
9094_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009095if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009096 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9097else
cristy4dc44432009-12-30 23:30:06 +00009098 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 +00009099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009100/* end confdefs.h. */
9101
cristy43596fe2010-01-21 16:46:08 +00009102 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9103 # include <windows.h>
9104 # endif
9105 # ifdef HAVE_CL_CL_H
9106 # include <CL/cl.h>
9107 # elif defined(HAVE_OPENCL_CL_H)
9108 # include <OpenCL/cl.h>
9109 # else
9110 # error no CL.h
9111 # endif
cristy736173a2009-09-20 21:18:22 +00009112int
9113main ()
9114{
cristyc7083c12009-10-14 03:16:55 +00009115clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009116 ;
9117 return 0;
9118}
9119_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009120if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009121 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009122fi
cristy8b350f62009-11-15 23:12:43 +00009123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009125fi
cristy8b350f62009-11-15 23:12:43 +00009126rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009128fi
cristy8b350f62009-11-15 23:12:43 +00009129rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009131 done
cristy736173a2009-09-20 21:18:22 +00009132
cristy43596fe2010-01-21 16:46:08 +00009133 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009134 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009136/* end confdefs.h. */
9137
cristy43596fe2010-01-21 16:46:08 +00009138 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9139 # include <windows.h>
9140 # endif
9141 # ifdef HAVE_CL_CL_H
9142 # include <CL/cl.h>
9143 # elif defined(HAVE_OPENCL_CL_H)
9144 # include <OpenCL/cl.h>
9145 # else
9146 # error no CL.h
9147 # endif
cristy736173a2009-09-20 21:18:22 +00009148int
9149main ()
9150{
cristyc7083c12009-10-14 03:16:55 +00009151clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009152 ;
9153 return 0;
9154}
9155_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009156if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009157 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009158fi
cristy8b350f62009-11-15 23:12:43 +00009159rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009161fi
9162
cristy43596fe2010-01-21 16:46:08 +00009163 LIBS=$ax_save_LIBS
9164 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009165fi
cristy8b350f62009-11-15 23:12:43 +00009166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009167$as_echo "$ax_cv_check_cl_libcl" >&6; }
9168
cristy43596fe2010-01-21 16:46:08 +00009169 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009170 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9171else
cristy99cc3002010-01-21 14:50:11 +00009172 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9173$as_echo "#define _OPENCL 1" >>confdefs.h
9174
cristy736173a2009-09-20 21:18:22 +00009175fi
cristy43596fe2010-01-21 16:46:08 +00009176 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009177ac_cpp='$CPP $CPPFLAGS'
9178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9180ac_compiler_gnu=$ac_cv_c_compiler_gnu
9181
cristy43596fe2010-01-21 16:46:08 +00009182fi
cristy736173a2009-09-20 21:18:22 +00009183
9184
9185
9186
cristyc7083c12009-10-14 03:16:55 +00009187CFLAGS="$CL_CFLAGS $CFLAGS"
9188LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009189
cristy2e8b51d2009-10-17 18:26:15 +00009190
cristy3ed852e2009-09-05 21:47:34 +00009191########
9192#
9193# Check for large file support
9194#
9195########
9196# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009197if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009198 enableval=$enable_largefile;
9199fi
9200
9201if test "$enable_largefile" != no; then
9202
cristy8b350f62009-11-15 23:12:43 +00009203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009204$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009205if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009206 $as_echo_n "(cached) " >&6
9207else
9208 ac_cv_sys_largefile_CC=no
9209 if test "$GCC" != yes; then
9210 ac_save_CC=$CC
9211 while :; do
9212 # IRIX 6.2 and later do not support large files by default,
9213 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009215/* end confdefs.h. */
9216#include <sys/types.h>
9217 /* Check that off_t can represent 2**63 - 1 correctly.
9218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9219 since some C++ compilers masquerading as C compilers
9220 incorrectly reject 9223372036854775807. */
9221#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9223 && LARGE_OFF_T % 2147483647 == 1)
9224 ? 1 : -1];
9225int
9226main ()
9227{
9228
9229 ;
9230 return 0;
9231}
9232_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009233 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009234 break
cristy3ed852e2009-09-05 21:47:34 +00009235fi
cristy3ed852e2009-09-05 21:47:34 +00009236rm -f core conftest.err conftest.$ac_objext
9237 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009238 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009239 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009240fi
cristy3ed852e2009-09-05 21:47:34 +00009241rm -f core conftest.err conftest.$ac_objext
9242 break
9243 done
9244 CC=$ac_save_CC
9245 rm -f conftest.$ac_ext
9246 fi
9247fi
cristy8b350f62009-11-15 23:12:43 +00009248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009249$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9250 if test "$ac_cv_sys_largefile_CC" != no; then
9251 CC=$CC$ac_cv_sys_largefile_CC
9252 fi
9253
cristy8b350f62009-11-15 23:12:43 +00009254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009255$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009256if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009257 $as_echo_n "(cached) " >&6
9258else
9259 while :; do
cristy8b350f62009-11-15 23:12:43 +00009260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009261/* end confdefs.h. */
9262#include <sys/types.h>
9263 /* Check that off_t can represent 2**63 - 1 correctly.
9264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9265 since some C++ compilers masquerading as C compilers
9266 incorrectly reject 9223372036854775807. */
9267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9269 && LARGE_OFF_T % 2147483647 == 1)
9270 ? 1 : -1];
9271int
9272main ()
9273{
9274
9275 ;
9276 return 0;
9277}
9278_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009279if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009280 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009281fi
cristy3ed852e2009-09-05 21:47:34 +00009282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009284/* end confdefs.h. */
9285#define _FILE_OFFSET_BITS 64
9286#include <sys/types.h>
9287 /* Check that off_t can represent 2**63 - 1 correctly.
9288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9289 since some C++ compilers masquerading as C compilers
9290 incorrectly reject 9223372036854775807. */
9291#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9293 && LARGE_OFF_T % 2147483647 == 1)
9294 ? 1 : -1];
9295int
9296main ()
9297{
9298
9299 ;
9300 return 0;
9301}
9302_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009303if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009304 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009305fi
cristy3ed852e2009-09-05 21:47:34 +00009306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307 ac_cv_sys_file_offset_bits=unknown
9308 break
9309done
9310fi
cristy8b350f62009-11-15 23:12:43 +00009311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009312$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9313case $ac_cv_sys_file_offset_bits in #(
9314 no | unknown) ;;
9315 *)
9316cat >>confdefs.h <<_ACEOF
9317#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9318_ACEOF
9319;;
9320esac
9321rm -rf conftest*
9322 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009324$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009325if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009326 $as_echo_n "(cached) " >&6
9327else
9328 while :; do
cristy8b350f62009-11-15 23:12:43 +00009329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009330/* end confdefs.h. */
9331#include <sys/types.h>
9332 /* Check that off_t can represent 2**63 - 1 correctly.
9333 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9334 since some C++ compilers masquerading as C compilers
9335 incorrectly reject 9223372036854775807. */
9336#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9337 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9338 && LARGE_OFF_T % 2147483647 == 1)
9339 ? 1 : -1];
9340int
9341main ()
9342{
9343
9344 ;
9345 return 0;
9346}
9347_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009348if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009350fi
cristy3ed852e2009-09-05 21:47:34 +00009351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009353/* end confdefs.h. */
9354#define _LARGE_FILES 1
9355#include <sys/types.h>
9356 /* Check that off_t can represent 2**63 - 1 correctly.
9357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9358 since some C++ compilers masquerading as C compilers
9359 incorrectly reject 9223372036854775807. */
9360#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9362 && LARGE_OFF_T % 2147483647 == 1)
9363 ? 1 : -1];
9364int
9365main ()
9366{
9367
9368 ;
9369 return 0;
9370}
9371_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009373 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009374fi
cristy3ed852e2009-09-05 21:47:34 +00009375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 ac_cv_sys_large_files=unknown
9377 break
9378done
9379fi
cristy8b350f62009-11-15 23:12:43 +00009380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009381$as_echo "$ac_cv_sys_large_files" >&6; }
9382case $ac_cv_sys_large_files in #(
9383 no | unknown) ;;
9384 *)
9385cat >>confdefs.h <<_ACEOF
9386#define _LARGE_FILES $ac_cv_sys_large_files
9387_ACEOF
9388;;
9389esac
9390rm -rf conftest*
9391 fi
9392fi
9393
cristy8b350f62009-11-15 23:12:43 +00009394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009395$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009396if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009397 $as_echo_n "(cached) " >&6
9398else
9399 while :; do
cristy8b350f62009-11-15 23:12:43 +00009400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009401/* end confdefs.h. */
9402#include <sys/types.h> /* for off_t */
9403 #include <stdio.h>
9404int
9405main ()
9406{
9407int (*fp) (FILE *, off_t, int) = fseeko;
9408 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9409 ;
9410 return 0;
9411}
9412_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009413if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009414 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009415fi
cristy8b350f62009-11-15 23:12:43 +00009416rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009419/* end confdefs.h. */
9420#define _LARGEFILE_SOURCE 1
9421#include <sys/types.h> /* for off_t */
9422 #include <stdio.h>
9423int
9424main ()
9425{
9426int (*fp) (FILE *, off_t, int) = fseeko;
9427 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9428 ;
9429 return 0;
9430}
9431_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009432if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009433 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009434fi
cristy8b350f62009-11-15 23:12:43 +00009435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009437 ac_cv_sys_largefile_source=unknown
9438 break
9439done
9440fi
cristy8b350f62009-11-15 23:12:43 +00009441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009442$as_echo "$ac_cv_sys_largefile_source" >&6; }
9443case $ac_cv_sys_largefile_source in #(
9444 no | unknown) ;;
9445 *)
9446cat >>confdefs.h <<_ACEOF
9447#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9448_ACEOF
9449;;
9450esac
9451rm -rf conftest*
9452
9453# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9454# in glibc 2.1.3, but that breaks too many other things.
9455# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9456if test $ac_cv_sys_largefile_source != unknown; then
9457
cristy8b350f62009-11-15 23:12:43 +00009458$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009459
9460fi
9461
9462LFS_CPPFLAGS=''
9463if test "$enable_largefile" != no; then
9464 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9465 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9466 else
cristy8b350f62009-11-15 23:12:43 +00009467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009468$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009469 if test "$cross_compiling" = yes; then :
9470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +00009472as_fn_error "cannot run test program while cross compiling
9473See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009474else
cristy8b350f62009-11-15 23:12:43 +00009475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009477#include <unistd.h>
9478 main () {
9479 exit(!(sizeof(off_t) == 8));
9480 }
9481_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009482if ac_fn_c_try_run "$LINENO"; then :
9483 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009484
cristy8b350f62009-11-15 23:12:43 +00009485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "yes" >&6; }
9487else
cristy8b350f62009-11-15 23:12:43 +00009488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009489$as_echo "no" >&6; }
9490fi
cristy8b350f62009-11-15 23:12:43 +00009491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9492 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009493fi
9494
cristy3ed852e2009-09-05 21:47:34 +00009495 fi
9496 if test "$ac_cv_sys_large_files" != 'no'; then
9497 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9498 fi
9499 if test "$ac_cv_sys_largefile_source" != 'no'; then
9500 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9501 fi
9502fi
9503
9504
9505#
9506# Configure libtool & libltdl
9507#
9508# Configure libtool
9509enable_dlopen=yes
9510
9511
9512
9513case `pwd` in
9514 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009516$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9517esac
9518
9519
9520
cristy5c40fb42010-08-05 16:12:44 +00009521macro_version='2.2.6b'
9522macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536ltmain="$ac_aux_dir/ltmain.sh"
9537
cristy8b350f62009-11-15 23:12:43 +00009538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009539$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009540if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009541 $as_echo_n "(cached) " >&6
9542else
9543 if test -n "$NM"; then
9544 # Let the user override the test.
9545 lt_cv_path_NM="$NM"
9546else
9547 lt_nm_to_check="${ac_tool_prefix}nm"
9548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9549 lt_nm_to_check="$lt_nm_to_check nm"
9550 fi
9551 for lt_tmp_nm in $lt_nm_to_check; do
9552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9554 IFS="$lt_save_ifs"
9555 test -z "$ac_dir" && ac_dir=.
9556 tmp_nm="$ac_dir/$lt_tmp_nm"
9557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9558 # Check to see if the nm accepts a BSD-compat flag.
9559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9560 # nm: unknown option "B" ignored
9561 # Tru64's nm complains that /dev/null is an invalid object file
9562 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9563 */dev/null* | *'Invalid file or object type'*)
9564 lt_cv_path_NM="$tmp_nm -B"
9565 break
9566 ;;
9567 *)
9568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9569 */dev/null*)
9570 lt_cv_path_NM="$tmp_nm -p"
9571 break
9572 ;;
9573 *)
9574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9575 continue # so that we can try to find one that supports BSD flags
9576 ;;
9577 esac
9578 ;;
9579 esac
9580 fi
9581 done
9582 IFS="$lt_save_ifs"
9583 done
9584 : ${lt_cv_path_NM=no}
9585fi
9586fi
cristy8b350f62009-11-15 23:12:43 +00009587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009588$as_echo "$lt_cv_path_NM" >&6; }
9589if test "$lt_cv_path_NM" != "no"; then
9590 NM="$lt_cv_path_NM"
9591else
9592 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy5c40fb42010-08-05 16:12:44 +00009593 if test -n "$ac_tool_prefix"; then
9594 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009595 do
9596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9597set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009599$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009600if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009601 $as_echo_n "(cached) " >&6
9602else
9603 if test -n "$DUMPBIN"; then
9604 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9605else
9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009615 break 2
9616 fi
9617done
cristy8b350f62009-11-15 23:12:43 +00009618 done
cristy3ed852e2009-09-05 21:47:34 +00009619IFS=$as_save_IFS
9620
9621fi
9622fi
9623DUMPBIN=$ac_cv_prog_DUMPBIN
9624if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009626$as_echo "$DUMPBIN" >&6; }
9627else
cristy8b350f62009-11-15 23:12:43 +00009628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009629$as_echo "no" >&6; }
9630fi
9631
9632
9633 test -n "$DUMPBIN" && break
9634 done
9635fi
9636if test -z "$DUMPBIN"; then
9637 ac_ct_DUMPBIN=$DUMPBIN
cristy5c40fb42010-08-05 16:12:44 +00009638 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009639do
9640 # Extract the first word of "$ac_prog", so it can be a program name with args.
9641set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009643$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009644if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009645 $as_echo_n "(cached) " >&6
9646else
9647 if test -n "$ac_ct_DUMPBIN"; then
9648 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9649else
9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651for as_dir in $PATH
9652do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009659 break 2
9660 fi
9661done
cristy8b350f62009-11-15 23:12:43 +00009662 done
cristy3ed852e2009-09-05 21:47:34 +00009663IFS=$as_save_IFS
9664
9665fi
9666fi
9667ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9668if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "$ac_ct_DUMPBIN" >&6; }
9671else
cristy8b350f62009-11-15 23:12:43 +00009672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009673$as_echo "no" >&6; }
9674fi
9675
9676
9677 test -n "$ac_ct_DUMPBIN" && break
9678done
9679
9680 if test "x$ac_ct_DUMPBIN" = x; then
9681 DUMPBIN=":"
9682 else
9683 case $cross_compiling:$ac_tool_warned in
9684yes:)
cristy8b350f62009-11-15 23:12:43 +00009685{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9687ac_tool_warned=yes ;;
9688esac
9689 DUMPBIN=$ac_ct_DUMPBIN
9690 fi
9691fi
9692
9693
9694 if test "$DUMPBIN" != ":"; then
9695 NM="$DUMPBIN"
9696 fi
9697fi
9698test -z "$NM" && NM=nm
9699
9700
9701
9702
9703
9704
cristy8b350f62009-11-15 23:12:43 +00009705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009706$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009707if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009708 $as_echo_n "(cached) " >&6
9709else
9710 lt_cv_nm_interface="BSD nm"
9711 echo "int some_variable = 0;" > conftest.$ac_ext
cristy5c40fb42010-08-05 16:12:44 +00009712 (eval echo "\"\$as_me:9712: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009713 (eval "$ac_compile" 2>conftest.err)
9714 cat conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +00009715 (eval echo "\"\$as_me:9715: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009716 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9717 cat conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +00009718 (eval echo "\"\$as_me:9718: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009719 cat conftest.out >&5
9720 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9721 lt_cv_nm_interface="MS dumpbin"
9722 fi
9723 rm -f conftest*
9724fi
cristy8b350f62009-11-15 23:12:43 +00009725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009726$as_echo "$lt_cv_nm_interface" >&6; }
9727
9728# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009730$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009731if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009732 $as_echo_n "(cached) " >&6
9733else
9734 i=0
9735 teststring="ABCD"
9736
9737 case $build_os in
9738 msdosdjgpp*)
9739 # On DJGPP, this test can blow up pretty badly due to problems in libc
9740 # (any single argument exceeding 2000 bytes causes a buffer overrun
9741 # during glob expansion). Even if it were fixed, the result of this
9742 # check would be larger than it should be.
9743 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9744 ;;
9745
9746 gnu*)
9747 # Under GNU Hurd, this test is not required because there is
9748 # no limit to the length of command line arguments.
9749 # Libtool will interpret -1 as no limit whatsoever
9750 lt_cv_sys_max_cmd_len=-1;
9751 ;;
9752
9753 cygwin* | mingw* | cegcc*)
9754 # On Win9x/ME, this test blows up -- it succeeds, but takes
9755 # about 5 minutes as the teststring grows exponentially.
9756 # Worse, since 9x/ME are not pre-emptively multitasking,
9757 # you end up with a "frozen" computer, even though with patience
9758 # the test eventually succeeds (with a max line length of 256k).
9759 # Instead, let's just punt: use the minimum linelength reported by
9760 # all of the supported platforms: 8192 (on NT/2K/XP).
9761 lt_cv_sys_max_cmd_len=8192;
9762 ;;
9763
9764 amigaos*)
9765 # On AmigaOS with pdksh, this test takes hours, literally.
9766 # So we just punt and use a minimum line length of 8192.
9767 lt_cv_sys_max_cmd_len=8192;
9768 ;;
9769
9770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9771 # This has been around since 386BSD, at least. Likely further.
9772 if test -x /sbin/sysctl; then
9773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9774 elif test -x /usr/sbin/sysctl; then
9775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9776 else
9777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9778 fi
9779 # And add a safety zone
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9782 ;;
9783
9784 interix*)
9785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9786 lt_cv_sys_max_cmd_len=196608
9787 ;;
9788
9789 osf*)
9790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9792 # nice to cause kernel panics so lets avoid the loop below.
9793 # First set a reasonable default.
9794 lt_cv_sys_max_cmd_len=16384
9795 #
9796 if test -x /sbin/sysconfig; then
9797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9799 esac
9800 fi
9801 ;;
9802 sco3.2v5*)
9803 lt_cv_sys_max_cmd_len=102400
9804 ;;
9805 sysv5* | sco5v6* | sysv4.2uw2*)
9806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9807 if test -n "$kargmax"; then
9808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9809 else
9810 lt_cv_sys_max_cmd_len=32768
9811 fi
9812 ;;
9813 *)
9814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9815 if test -n "$lt_cv_sys_max_cmd_len"; then
9816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9818 else
9819 # Make teststring a little bigger before we do anything with it.
9820 # a 1K string should be a reasonable start.
9821 for i in 1 2 3 4 5 6 7 8 ; do
9822 teststring=$teststring$teststring
9823 done
9824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9825 # If test is not a shell built-in, we'll probably end up computing a
9826 # maximum length that is only half of the actual maximum length, but
9827 # we can't tell.
cristy5c40fb42010-08-05 16:12:44 +00009828 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9829 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009830 test $i != 17 # 1/2 MB should be enough
9831 do
9832 i=`expr $i + 1`
9833 teststring=$teststring$teststring
9834 done
9835 # Only check the string length outside the loop.
9836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9837 teststring=
9838 # Add a significant safety factor because C++ compilers can tack on
9839 # massive amounts of additional arguments before passing them to the
9840 # linker. It appears as though 1/2 is a usable value.
9841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9842 fi
9843 ;;
9844 esac
9845
9846fi
9847
9848if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009850$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9851else
cristy8b350f62009-11-15 23:12:43 +00009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009853$as_echo "none" >&6; }
9854fi
9855max_cmd_len=$lt_cv_sys_max_cmd_len
9856
9857
9858
9859
9860
9861
9862: ${CP="cp -f"}
9863: ${MV="mv -f"}
9864: ${RM="rm -f"}
9865
cristy8b350f62009-11-15 23:12:43 +00009866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009867$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9868# Try some XSI features
9869xsi_shell=no
9870( _lt_dummy="a/b/c"
9871 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9872 = c,a/b,, \
9873 && eval 'test $(( 1 + 1 )) -eq 2 \
9874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9875 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009877$as_echo "$xsi_shell" >&6; }
9878
9879
cristy8b350f62009-11-15 23:12:43 +00009880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009881$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9882lt_shell_append=no
9883( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9884 >/dev/null 2>&1 \
9885 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009887$as_echo "$lt_shell_append" >&6; }
9888
9889
9890if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9891 lt_unset=unset
9892else
9893 lt_unset=false
9894fi
9895
9896
9897
9898
9899
9900# test EBCDIC or ASCII
9901case `echo X|tr X '\101'` in
9902 A) # ASCII based system
9903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9904 lt_SP2NL='tr \040 \012'
9905 lt_NL2SP='tr \015\012 \040\040'
9906 ;;
9907 *) # EBCDIC based system
9908 lt_SP2NL='tr \100 \n'
9909 lt_NL2SP='tr \r\n \100\100'
9910 ;;
9911esac
9912
9913
9914
9915
9916
9917
9918
9919
9920
cristy8b350f62009-11-15 23:12:43 +00009921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009922$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009923if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009924 $as_echo_n "(cached) " >&6
9925else
9926 lt_cv_ld_reload_flag='-r'
9927fi
cristy8b350f62009-11-15 23:12:43 +00009928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009929$as_echo "$lt_cv_ld_reload_flag" >&6; }
9930reload_flag=$lt_cv_ld_reload_flag
9931case $reload_flag in
9932"" | " "*) ;;
9933*) reload_flag=" $reload_flag" ;;
9934esac
9935reload_cmds='$LD$reload_flag -o $output$reload_objs'
9936case $host_os in
9937 darwin*)
9938 if test "$GCC" = yes; then
9939 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9940 else
9941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9942 fi
9943 ;;
9944esac
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954if test -n "$ac_tool_prefix"; then
9955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9956set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009958$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009959if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009960 $as_echo_n "(cached) " >&6
9961else
9962 if test -n "$OBJDUMP"; then
9963 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9964else
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009970 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009974 break 2
9975 fi
9976done
cristy8b350f62009-11-15 23:12:43 +00009977 done
cristy3ed852e2009-09-05 21:47:34 +00009978IFS=$as_save_IFS
9979
9980fi
9981fi
9982OBJDUMP=$ac_cv_prog_OBJDUMP
9983if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009985$as_echo "$OBJDUMP" >&6; }
9986else
cristy8b350f62009-11-15 23:12:43 +00009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009988$as_echo "no" >&6; }
9989fi
9990
9991
9992fi
9993if test -z "$ac_cv_prog_OBJDUMP"; then
9994 ac_ct_OBJDUMP=$OBJDUMP
9995 # Extract the first word of "objdump", so it can be a program name with args.
9996set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009998$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009999if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010000 $as_echo_n "(cached) " >&6
10001else
10002 if test -n "$ac_ct_OBJDUMP"; then
10003 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10004else
10005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006for as_dir in $PATH
10007do
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010014 break 2
10015 fi
10016done
cristy8b350f62009-11-15 23:12:43 +000010017 done
cristy3ed852e2009-09-05 21:47:34 +000010018IFS=$as_save_IFS
10019
10020fi
10021fi
10022ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10023if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo "$ac_ct_OBJDUMP" >&6; }
10026else
cristy8b350f62009-11-15 23:12:43 +000010027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010028$as_echo "no" >&6; }
10029fi
10030
10031 if test "x$ac_ct_OBJDUMP" = x; then
10032 OBJDUMP="false"
10033 else
10034 case $cross_compiling:$ac_tool_warned in
10035yes:)
cristy8b350f62009-11-15 23:12:43 +000010036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10038ac_tool_warned=yes ;;
10039esac
10040 OBJDUMP=$ac_ct_OBJDUMP
10041 fi
10042else
10043 OBJDUMP="$ac_cv_prog_OBJDUMP"
10044fi
10045
10046test -z "$OBJDUMP" && OBJDUMP=objdump
10047
10048
10049
10050
10051
10052
cristy8b350f62009-11-15 23:12:43 +000010053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010054$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010055if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010056 $as_echo_n "(cached) " >&6
10057else
10058 lt_cv_file_magic_cmd='$MAGIC_CMD'
10059lt_cv_file_magic_test_file=
10060lt_cv_deplibs_check_method='unknown'
10061# Need to set the preceding variable on all platforms that support
10062# interlibrary dependencies.
10063# 'none' -- dependencies not supported.
10064# `unknown' -- same as none, but documents that we really don't know.
10065# 'pass_all' -- all dependencies passed with no checks.
10066# 'test_compile' -- check by making test program.
10067# 'file_magic [[regex]]' -- check by looking for files in library path
10068# which responds to the $file_magic_cmd with a given extended regex.
10069# If you have `file' or equivalent on your system and you're not sure
10070# whether `pass_all' will *always* work, you probably want this one.
10071
10072case $host_os in
10073aix[4-9]*)
10074 lt_cv_deplibs_check_method=pass_all
10075 ;;
10076
10077beos*)
10078 lt_cv_deplibs_check_method=pass_all
10079 ;;
10080
10081bsdi[45]*)
10082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083 lt_cv_file_magic_cmd='/usr/bin/file -L'
10084 lt_cv_file_magic_test_file=/shlib/libc.so
10085 ;;
10086
10087cygwin*)
10088 # func_win32_libid is a shell function defined in ltmain.sh
10089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090 lt_cv_file_magic_cmd='func_win32_libid'
10091 ;;
10092
10093mingw* | pw32*)
10094 # Base MSYS/MinGW do not provide the 'file' command needed by
10095 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10096 # unless we find 'file', for example because we are cross-compiling.
cristy5c40fb42010-08-05 16:12:44 +000010097 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010098 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10099 lt_cv_file_magic_cmd='func_win32_libid'
10100 else
cristy5c40fb42010-08-05 16:12:44 +000010101 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
cristy3ed852e2009-09-05 21:47:34 +000010102 lt_cv_file_magic_cmd='$OBJDUMP -f'
10103 fi
10104 ;;
10105
cristy5c40fb42010-08-05 16:12:44 +000010106cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010107 # use the weaker test based on 'objdump'. See mingw*.
10108 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10109 lt_cv_file_magic_cmd='$OBJDUMP -f'
10110 ;;
10111
10112darwin* | rhapsody*)
10113 lt_cv_deplibs_check_method=pass_all
10114 ;;
10115
10116freebsd* | dragonfly*)
10117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10118 case $host_cpu in
10119 i*86 )
10120 # Not sure whether the presence of OpenBSD here was a mistake.
10121 # Let's accept both of them until this is cleared up.
10122 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10123 lt_cv_file_magic_cmd=/usr/bin/file
10124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10125 ;;
10126 esac
10127 else
10128 lt_cv_deplibs_check_method=pass_all
10129 fi
10130 ;;
10131
10132gnu*)
10133 lt_cv_deplibs_check_method=pass_all
10134 ;;
10135
10136hpux10.20* | hpux11*)
10137 lt_cv_file_magic_cmd=/usr/bin/file
10138 case $host_cpu in
10139 ia64*)
10140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10141 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10142 ;;
10143 hppa*64*)
cristy5c40fb42010-08-05 16:12:44 +000010144 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 +000010145 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10146 ;;
10147 *)
cristy5c40fb42010-08-05 16:12:44 +000010148 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 +000010149 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10150 ;;
10151 esac
10152 ;;
10153
10154interix[3-9]*)
10155 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10157 ;;
10158
10159irix5* | irix6* | nonstopux*)
10160 case $LD in
10161 *-32|*"-32 ") libmagic=32-bit;;
10162 *-n32|*"-n32 ") libmagic=N32;;
10163 *-64|*"-64 ") libmagic=64-bit;;
10164 *) libmagic=never-match;;
10165 esac
10166 lt_cv_deplibs_check_method=pass_all
10167 ;;
10168
10169# This must be Linux ELF.
cristy5c40fb42010-08-05 16:12:44 +000010170linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010171 lt_cv_deplibs_check_method=pass_all
10172 ;;
10173
10174netbsd*)
10175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10177 else
10178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10179 fi
10180 ;;
10181
10182newos6*)
10183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10184 lt_cv_file_magic_cmd=/usr/bin/file
10185 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10186 ;;
10187
10188*nto* | *qnx*)
10189 lt_cv_deplibs_check_method=pass_all
10190 ;;
10191
10192openbsd*)
10193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10195 else
10196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10197 fi
10198 ;;
10199
10200osf3* | osf4* | osf5*)
10201 lt_cv_deplibs_check_method=pass_all
10202 ;;
10203
10204rdos*)
10205 lt_cv_deplibs_check_method=pass_all
10206 ;;
10207
10208solaris*)
10209 lt_cv_deplibs_check_method=pass_all
10210 ;;
10211
10212sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10213 lt_cv_deplibs_check_method=pass_all
10214 ;;
10215
10216sysv4 | sysv4.3*)
10217 case $host_vendor in
10218 motorola)
10219 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]'
10220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10221 ;;
10222 ncr)
10223 lt_cv_deplibs_check_method=pass_all
10224 ;;
10225 sequent)
10226 lt_cv_file_magic_cmd='/bin/file'
10227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10228 ;;
10229 sni)
10230 lt_cv_file_magic_cmd='/bin/file'
10231 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10232 lt_cv_file_magic_test_file=/lib/libc.so
10233 ;;
10234 siemens)
10235 lt_cv_deplibs_check_method=pass_all
10236 ;;
10237 pc)
10238 lt_cv_deplibs_check_method=pass_all
10239 ;;
10240 esac
10241 ;;
10242
10243tpf*)
10244 lt_cv_deplibs_check_method=pass_all
10245 ;;
10246esac
10247
10248fi
cristy8b350f62009-11-15 23:12:43 +000010249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010250$as_echo "$lt_cv_deplibs_check_method" >&6; }
10251file_magic_cmd=$lt_cv_file_magic_cmd
10252deplibs_check_method=$lt_cv_deplibs_check_method
10253test -z "$deplibs_check_method" && deplibs_check_method=unknown
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266if test -n "$ac_tool_prefix"; then
10267 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10268set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010270$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010271if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010272 $as_echo_n "(cached) " >&6
10273else
10274 if test -n "$AR"; then
10275 ac_cv_prog_AR="$AR" # Let the user override the test.
10276else
10277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278for as_dir in $PATH
10279do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010282 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10284 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010286 break 2
10287 fi
10288done
cristy8b350f62009-11-15 23:12:43 +000010289 done
cristy3ed852e2009-09-05 21:47:34 +000010290IFS=$as_save_IFS
10291
10292fi
10293fi
10294AR=$ac_cv_prog_AR
10295if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297$as_echo "$AR" >&6; }
10298else
cristy8b350f62009-11-15 23:12:43 +000010299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010300$as_echo "no" >&6; }
10301fi
10302
10303
10304fi
10305if test -z "$ac_cv_prog_AR"; then
10306 ac_ct_AR=$AR
10307 # Extract the first word of "ar", so it can be a program name with args.
10308set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010310$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010311if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010312 $as_echo_n "(cached) " >&6
10313else
10314 if test -n "$ac_ct_AR"; then
10315 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10316else
10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318for as_dir in $PATH
10319do
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010326 break 2
10327 fi
10328done
cristy8b350f62009-11-15 23:12:43 +000010329 done
cristy3ed852e2009-09-05 21:47:34 +000010330IFS=$as_save_IFS
10331
10332fi
10333fi
10334ac_ct_AR=$ac_cv_prog_ac_ct_AR
10335if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010337$as_echo "$ac_ct_AR" >&6; }
10338else
cristy8b350f62009-11-15 23:12:43 +000010339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010340$as_echo "no" >&6; }
10341fi
10342
10343 if test "x$ac_ct_AR" = x; then
10344 AR="false"
10345 else
10346 case $cross_compiling:$ac_tool_warned in
10347yes:)
cristy8b350f62009-11-15 23:12:43 +000010348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10350ac_tool_warned=yes ;;
10351esac
10352 AR=$ac_ct_AR
10353 fi
10354else
10355 AR="$ac_cv_prog_AR"
10356fi
10357
10358test -z "$AR" && AR=ar
10359test -z "$AR_FLAGS" && AR_FLAGS=cru
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371if test -n "$ac_tool_prefix"; then
10372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10373set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010375$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010376if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010377 $as_echo_n "(cached) " >&6
10378else
10379 if test -n "$STRIP"; then
10380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10381else
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010387 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010391 break 2
10392 fi
10393done
cristy8b350f62009-11-15 23:12:43 +000010394 done
cristy3ed852e2009-09-05 21:47:34 +000010395IFS=$as_save_IFS
10396
10397fi
10398fi
10399STRIP=$ac_cv_prog_STRIP
10400if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010402$as_echo "$STRIP" >&6; }
10403else
cristy8b350f62009-11-15 23:12:43 +000010404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010405$as_echo "no" >&6; }
10406fi
10407
10408
10409fi
10410if test -z "$ac_cv_prog_STRIP"; then
10411 ac_ct_STRIP=$STRIP
10412 # Extract the first word of "strip", so it can be a program name with args.
10413set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010415$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010416if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010417 $as_echo_n "(cached) " >&6
10418else
10419 if test -n "$ac_ct_STRIP"; then
10420 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10421else
10422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423for as_dir in $PATH
10424do
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010431 break 2
10432 fi
10433done
cristy8b350f62009-11-15 23:12:43 +000010434 done
cristy3ed852e2009-09-05 21:47:34 +000010435IFS=$as_save_IFS
10436
10437fi
10438fi
10439ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10440if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010442$as_echo "$ac_ct_STRIP" >&6; }
10443else
cristy8b350f62009-11-15 23:12:43 +000010444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010445$as_echo "no" >&6; }
10446fi
10447
10448 if test "x$ac_ct_STRIP" = x; then
10449 STRIP=":"
10450 else
10451 case $cross_compiling:$ac_tool_warned in
10452yes:)
cristy8b350f62009-11-15 23:12:43 +000010453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10455ac_tool_warned=yes ;;
10456esac
10457 STRIP=$ac_ct_STRIP
10458 fi
10459else
10460 STRIP="$ac_cv_prog_STRIP"
10461fi
10462
10463test -z "$STRIP" && STRIP=:
10464
10465
10466
10467
10468
10469
10470if test -n "$ac_tool_prefix"; then
10471 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10472set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010474$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010475if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010476 $as_echo_n "(cached) " >&6
10477else
10478 if test -n "$RANLIB"; then
10479 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10480else
10481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482for as_dir in $PATH
10483do
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010490 break 2
10491 fi
10492done
cristy8b350f62009-11-15 23:12:43 +000010493 done
cristy3ed852e2009-09-05 21:47:34 +000010494IFS=$as_save_IFS
10495
10496fi
10497fi
10498RANLIB=$ac_cv_prog_RANLIB
10499if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010501$as_echo "$RANLIB" >&6; }
10502else
cristy8b350f62009-11-15 23:12:43 +000010503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010504$as_echo "no" >&6; }
10505fi
10506
10507
10508fi
10509if test -z "$ac_cv_prog_RANLIB"; then
10510 ac_ct_RANLIB=$RANLIB
10511 # Extract the first word of "ranlib", so it can be a program name with args.
10512set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010514$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010515if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010516 $as_echo_n "(cached) " >&6
10517else
10518 if test -n "$ac_ct_RANLIB"; then
10519 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10520else
10521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522for as_dir in $PATH
10523do
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010526 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10528 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010530 break 2
10531 fi
10532done
cristy8b350f62009-11-15 23:12:43 +000010533 done
cristy3ed852e2009-09-05 21:47:34 +000010534IFS=$as_save_IFS
10535
10536fi
10537fi
10538ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10539if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010541$as_echo "$ac_ct_RANLIB" >&6; }
10542else
cristy8b350f62009-11-15 23:12:43 +000010543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010544$as_echo "no" >&6; }
10545fi
10546
10547 if test "x$ac_ct_RANLIB" = x; then
10548 RANLIB=":"
10549 else
10550 case $cross_compiling:$ac_tool_warned in
10551yes:)
cristy8b350f62009-11-15 23:12:43 +000010552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10554ac_tool_warned=yes ;;
10555esac
10556 RANLIB=$ac_ct_RANLIB
10557 fi
10558else
10559 RANLIB="$ac_cv_prog_RANLIB"
10560fi
10561
10562test -z "$RANLIB" && RANLIB=:
10563
10564
10565
10566
10567
10568
10569# Determine commands to create old-style static archives.
10570old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10571old_postinstall_cmds='chmod 644 $oldlib'
10572old_postuninstall_cmds=
10573
10574if test -n "$RANLIB"; then
10575 case $host_os in
10576 openbsd*)
10577 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10578 ;;
10579 *)
10580 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10581 ;;
10582 esac
10583 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10584fi
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619# If no C compiler was specified, use CC.
10620LTCC=${LTCC-"$CC"}
10621
10622# If no C compiler flags were specified, use CFLAGS.
10623LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10624
10625# Allow CC to be a program name with arguments.
10626compiler=$CC
10627
10628
10629# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010631$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010632if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010633 $as_echo_n "(cached) " >&6
10634else
10635
10636# These are sane defaults that work on at least a few old systems.
10637# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10638
10639# Character class describing NM global symbol codes.
10640symcode='[BCDEGRST]'
10641
10642# Regexp to match symbols that can be accessed directly from C.
10643sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10644
10645# Define system-specific variables.
10646case $host_os in
10647aix*)
10648 symcode='[BCDT]'
10649 ;;
10650cygwin* | mingw* | pw32* | cegcc*)
10651 symcode='[ABCDGISTW]'
10652 ;;
10653hpux*)
10654 if test "$host_cpu" = ia64; then
10655 symcode='[ABCDEGRST]'
10656 fi
10657 ;;
10658irix* | nonstopux*)
10659 symcode='[BCDEGRST]'
10660 ;;
10661osf*)
10662 symcode='[BCDEGQRST]'
10663 ;;
10664solaris*)
10665 symcode='[BDRT]'
10666 ;;
10667sco3.2v5*)
10668 symcode='[DT]'
10669 ;;
10670sysv4.2uw2*)
10671 symcode='[DT]'
10672 ;;
10673sysv5* | sco5v6* | unixware* | OpenUNIX*)
10674 symcode='[ABDT]'
10675 ;;
10676sysv4)
10677 symcode='[DFNSTU]'
10678 ;;
10679esac
10680
10681# If we're using GNU nm, then use its standard symbol codes.
10682case `$NM -V 2>&1` in
10683*GNU* | *'with BFD'*)
10684 symcode='[ABCDGIRSTW]' ;;
10685esac
10686
10687# Transform an extracted symbol line into a proper C declaration.
10688# Some systems (esp. on ia64) link data and code symbols differently,
10689# so use this general approach.
10690lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10691
10692# Transform an extracted symbol line into symbol name and symbol address
10693lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10694lt_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'"
10695
10696# Handle CRLF in mingw tool chain
10697opt_cr=
10698case $build_os in
10699mingw*)
10700 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10701 ;;
10702esac
10703
10704# Try without a prefix underscore, then with it.
10705for ac_symprfx in "" "_"; do
10706
10707 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10708 symxfrm="\\1 $ac_symprfx\\2 \\2"
10709
10710 # Write the raw and C identifiers.
10711 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10712 # Fake it for dumpbin and say T for any non-static function
10713 # and D for any global variable.
10714 # Also find C++ and __fastcall symbols from MSVC++,
10715 # which start with @ or ?.
10716 lt_cv_sys_global_symbol_pipe="$AWK '"\
10717" {last_section=section; section=\$ 3};"\
10718" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10719" \$ 0!~/External *\|/{next};"\
10720" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10721" {if(hide[section]) next};"\
10722" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10723" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10724" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10725" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10726" ' prfx=^$ac_symprfx"
10727 else
10728 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10729 fi
10730
10731 # Check to see that the pipe works correctly.
10732 pipe_works=no
10733
10734 rm -f conftest*
10735 cat > conftest.$ac_ext <<_LT_EOF
10736#ifdef __cplusplus
10737extern "C" {
10738#endif
10739char nm_test_var;
10740void nm_test_func(void);
10741void nm_test_func(void){}
10742#ifdef __cplusplus
10743}
10744#endif
10745int main(){nm_test_var='a';nm_test_func();return(0);}
10746_LT_EOF
10747
cristy8b350f62009-11-15 23:12:43 +000010748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010749 (eval $ac_compile) 2>&5
10750 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10752 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010753 # Now try to grab the symbols.
10754 nlist=conftest.nm
cristy5c40fb42010-08-05 16:12:44 +000010755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10756 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010757 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10759 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010760 # Try sorting and uniquifying the output.
10761 if sort "$nlist" | uniq > "$nlist"T; then
10762 mv -f "$nlist"T "$nlist"
10763 else
10764 rm -f "$nlist"T
10765 fi
10766
10767 # Make sure that we snagged all the symbols we need.
10768 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10769 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10770 cat <<_LT_EOF > conftest.$ac_ext
10771#ifdef __cplusplus
10772extern "C" {
10773#endif
10774
10775_LT_EOF
10776 # Now generate the symbol file.
10777 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10778
10779 cat <<_LT_EOF >> conftest.$ac_ext
10780
10781/* The mapping between symbol names and symbols. */
10782const struct {
10783 const char *name;
10784 void *address;
10785}
10786lt__PROGRAM__LTX_preloaded_symbols[] =
10787{
10788 { "@PROGRAM@", (void *) 0 },
10789_LT_EOF
10790 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10791 cat <<\_LT_EOF >> conftest.$ac_ext
10792 {0, (void *) 0}
10793};
10794
10795/* This works around a problem in FreeBSD linker */
10796#ifdef FREEBSD_WORKAROUND
10797static const void *lt_preloaded_setup() {
10798 return lt__PROGRAM__LTX_preloaded_symbols;
10799}
10800#endif
10801
10802#ifdef __cplusplus
10803}
10804#endif
10805_LT_EOF
10806 # Now try linking the two files.
10807 mv conftest.$ac_objext conftstm.$ac_objext
10808 lt_save_LIBS="$LIBS"
10809 lt_save_CFLAGS="$CFLAGS"
10810 LIBS="conftstm.$ac_objext"
10811 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010813 (eval $ac_link) 2>&5
10814 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10816 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010817 pipe_works=yes
10818 fi
10819 LIBS="$lt_save_LIBS"
10820 CFLAGS="$lt_save_CFLAGS"
10821 else
10822 echo "cannot find nm_test_func in $nlist" >&5
10823 fi
10824 else
10825 echo "cannot find nm_test_var in $nlist" >&5
10826 fi
10827 else
10828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10829 fi
10830 else
10831 echo "$progname: failed program was:" >&5
10832 cat conftest.$ac_ext >&5
10833 fi
10834 rm -rf conftest* conftst*
10835
10836 # Do not use the global_symbol_pipe unless it works.
10837 if test "$pipe_works" = yes; then
10838 break
10839 else
10840 lt_cv_sys_global_symbol_pipe=
10841 fi
10842done
10843
10844fi
10845
10846if test -z "$lt_cv_sys_global_symbol_pipe"; then
10847 lt_cv_sys_global_symbol_to_cdecl=
10848fi
10849if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010851$as_echo "failed" >&6; }
10852else
cristy8b350f62009-11-15 23:12:43 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010854$as_echo "ok" >&6; }
10855fi
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010879if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010880 enableval=$enable_libtool_lock;
10881fi
10882
10883test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10884
10885# Some flags need to be propagated to the compiler or linker for good
10886# libtool support.
10887case $host in
10888ia64-*-hpux*)
10889 # Find out which ABI we are using.
10890 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010892 (eval $ac_compile) 2>&5
10893 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010896 case `/usr/bin/file conftest.$ac_objext` in
10897 *ELF-32*)
10898 HPUX_IA64_MODE="32"
10899 ;;
10900 *ELF-64*)
10901 HPUX_IA64_MODE="64"
10902 ;;
10903 esac
10904 fi
10905 rm -rf conftest*
10906 ;;
10907*-*-irix6*)
10908 # Find out which ABI we are using.
cristy5c40fb42010-08-05 16:12:44 +000010909 echo '#line 10909 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010911 (eval $ac_compile) 2>&5
10912 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10914 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010915 if test "$lt_cv_prog_gnu_ld" = yes; then
10916 case `/usr/bin/file conftest.$ac_objext` in
10917 *32-bit*)
10918 LD="${LD-ld} -melf32bsmip"
10919 ;;
10920 *N32*)
10921 LD="${LD-ld} -melf32bmipn32"
10922 ;;
10923 *64-bit*)
10924 LD="${LD-ld} -melf64bmip"
10925 ;;
10926 esac
10927 else
10928 case `/usr/bin/file conftest.$ac_objext` in
10929 *32-bit*)
10930 LD="${LD-ld} -32"
10931 ;;
10932 *N32*)
10933 LD="${LD-ld} -n32"
10934 ;;
10935 *64-bit*)
10936 LD="${LD-ld} -64"
10937 ;;
10938 esac
10939 fi
10940 fi
10941 rm -rf conftest*
10942 ;;
10943
10944x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10945s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10946 # Find out which ABI we are using.
10947 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010949 (eval $ac_compile) 2>&5
10950 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010953 case `/usr/bin/file conftest.o` in
10954 *32-bit*)
10955 case $host in
10956 x86_64-*kfreebsd*-gnu)
10957 LD="${LD-ld} -m elf_i386_fbsd"
10958 ;;
10959 x86_64-*linux*)
10960 LD="${LD-ld} -m elf_i386"
10961 ;;
10962 ppc64-*linux*|powerpc64-*linux*)
10963 LD="${LD-ld} -m elf32ppclinux"
10964 ;;
10965 s390x-*linux*)
10966 LD="${LD-ld} -m elf_s390"
10967 ;;
10968 sparc64-*linux*)
10969 LD="${LD-ld} -m elf32_sparc"
10970 ;;
10971 esac
10972 ;;
10973 *64-bit*)
10974 case $host in
10975 x86_64-*kfreebsd*-gnu)
10976 LD="${LD-ld} -m elf_x86_64_fbsd"
10977 ;;
10978 x86_64-*linux*)
10979 LD="${LD-ld} -m elf_x86_64"
10980 ;;
10981 ppc*-*linux*|powerpc*-*linux*)
10982 LD="${LD-ld} -m elf64ppc"
10983 ;;
10984 s390*-*linux*|s390*-*tpf*)
10985 LD="${LD-ld} -m elf64_s390"
10986 ;;
10987 sparc*-*linux*)
10988 LD="${LD-ld} -m elf64_sparc"
10989 ;;
10990 esac
10991 ;;
10992 esac
10993 fi
10994 rm -rf conftest*
10995 ;;
10996
10997*-*-sco3.2v5*)
10998 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10999 SAVE_CFLAGS="$CFLAGS"
11000 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000011001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011002$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011003if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011004 $as_echo_n "(cached) " >&6
11005else
11006 ac_ext=c
11007ac_cpp='$CPP $CPPFLAGS'
11008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11010ac_compiler_gnu=$ac_cv_c_compiler_gnu
11011
cristy8b350f62009-11-15 23:12:43 +000011012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011013/* end confdefs.h. */
11014
11015int
11016main ()
11017{
11018
11019 ;
11020 return 0;
11021}
11022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011024 lt_cv_cc_needs_belf=yes
11025else
cristy8b350f62009-11-15 23:12:43 +000011026 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011027fi
cristy8b350f62009-11-15 23:12:43 +000011028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011030 ac_ext=c
11031ac_cpp='$CPP $CPPFLAGS'
11032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11034ac_compiler_gnu=$ac_cv_c_compiler_gnu
11035
11036fi
cristy8b350f62009-11-15 23:12:43 +000011037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011038$as_echo "$lt_cv_cc_needs_belf" >&6; }
11039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11041 CFLAGS="$SAVE_CFLAGS"
11042 fi
11043 ;;
11044sparc*-*solaris*)
11045 # Find out which ABI we are using.
11046 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011048 (eval $ac_compile) 2>&5
11049 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11051 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011052 case `/usr/bin/file conftest.o` in
11053 *64-bit*)
11054 case $lt_cv_prog_gnu_ld in
11055 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11056 *)
11057 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11058 LD="${LD-ld} -64"
11059 fi
11060 ;;
11061 esac
11062 ;;
11063 esac
11064 fi
11065 rm -rf conftest*
11066 ;;
11067esac
11068
11069need_locks="$enable_libtool_lock"
11070
11071
11072 case $host_os in
11073 rhapsody* | darwin*)
11074 if test -n "$ac_tool_prefix"; then
11075 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11076set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011078$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011079if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011080 $as_echo_n "(cached) " >&6
11081else
11082 if test -n "$DSYMUTIL"; then
11083 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011090 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11092 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011094 break 2
11095 fi
11096done
cristy8b350f62009-11-15 23:12:43 +000011097 done
cristy3ed852e2009-09-05 21:47:34 +000011098IFS=$as_save_IFS
11099
11100fi
11101fi
11102DSYMUTIL=$ac_cv_prog_DSYMUTIL
11103if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105$as_echo "$DSYMUTIL" >&6; }
11106else
cristy8b350f62009-11-15 23:12:43 +000011107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011108$as_echo "no" >&6; }
11109fi
11110
11111
11112fi
11113if test -z "$ac_cv_prog_DSYMUTIL"; then
11114 ac_ct_DSYMUTIL=$DSYMUTIL
11115 # Extract the first word of "dsymutil", so it can be a program name with args.
11116set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011119if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011120 $as_echo_n "(cached) " >&6
11121else
11122 if test -n "$ac_ct_DSYMUTIL"; then
11123 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11132 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011134 break 2
11135 fi
11136done
cristy8b350f62009-11-15 23:12:43 +000011137 done
cristy3ed852e2009-09-05 21:47:34 +000011138IFS=$as_save_IFS
11139
11140fi
11141fi
11142ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11143if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011145$as_echo "$ac_ct_DSYMUTIL" >&6; }
11146else
cristy8b350f62009-11-15 23:12:43 +000011147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011148$as_echo "no" >&6; }
11149fi
11150
11151 if test "x$ac_ct_DSYMUTIL" = x; then
11152 DSYMUTIL=":"
11153 else
11154 case $cross_compiling:$ac_tool_warned in
11155yes:)
cristy8b350f62009-11-15 23:12:43 +000011156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11158ac_tool_warned=yes ;;
11159esac
11160 DSYMUTIL=$ac_ct_DSYMUTIL
11161 fi
11162else
11163 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11164fi
11165
11166 if test -n "$ac_tool_prefix"; then
11167 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11168set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011170$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011171if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011172 $as_echo_n "(cached) " >&6
11173else
11174 if test -n "$NMEDIT"; then
11175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11176else
11177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $PATH
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011182 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011186 break 2
11187 fi
11188done
cristy8b350f62009-11-15 23:12:43 +000011189 done
cristy3ed852e2009-09-05 21:47:34 +000011190IFS=$as_save_IFS
11191
11192fi
11193fi
11194NMEDIT=$ac_cv_prog_NMEDIT
11195if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011197$as_echo "$NMEDIT" >&6; }
11198else
cristy8b350f62009-11-15 23:12:43 +000011199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011200$as_echo "no" >&6; }
11201fi
11202
11203
11204fi
11205if test -z "$ac_cv_prog_NMEDIT"; then
11206 ac_ct_NMEDIT=$NMEDIT
11207 # Extract the first word of "nmedit", so it can be a program name with args.
11208set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011210$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011211if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011212 $as_echo_n "(cached) " >&6
11213else
11214 if test -n "$ac_ct_NMEDIT"; then
11215 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011226 break 2
11227 fi
11228done
cristy8b350f62009-11-15 23:12:43 +000011229 done
cristy3ed852e2009-09-05 21:47:34 +000011230IFS=$as_save_IFS
11231
11232fi
11233fi
11234ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11235if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011237$as_echo "$ac_ct_NMEDIT" >&6; }
11238else
cristy8b350f62009-11-15 23:12:43 +000011239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011240$as_echo "no" >&6; }
11241fi
11242
11243 if test "x$ac_ct_NMEDIT" = x; then
11244 NMEDIT=":"
11245 else
11246 case $cross_compiling:$ac_tool_warned in
11247yes:)
cristy8b350f62009-11-15 23:12:43 +000011248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11250ac_tool_warned=yes ;;
11251esac
11252 NMEDIT=$ac_ct_NMEDIT
11253 fi
11254else
11255 NMEDIT="$ac_cv_prog_NMEDIT"
11256fi
11257
11258 if test -n "$ac_tool_prefix"; then
11259 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11260set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011263if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011264 $as_echo_n "(cached) " >&6
11265else
11266 if test -n "$LIPO"; then
11267 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11268else
11269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270for as_dir in $PATH
11271do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011278 break 2
11279 fi
11280done
cristy8b350f62009-11-15 23:12:43 +000011281 done
cristy3ed852e2009-09-05 21:47:34 +000011282IFS=$as_save_IFS
11283
11284fi
11285fi
11286LIPO=$ac_cv_prog_LIPO
11287if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011289$as_echo "$LIPO" >&6; }
11290else
cristy8b350f62009-11-15 23:12:43 +000011291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011292$as_echo "no" >&6; }
11293fi
11294
11295
11296fi
11297if test -z "$ac_cv_prog_LIPO"; then
11298 ac_ct_LIPO=$LIPO
11299 # Extract the first word of "lipo", so it can be a program name with args.
11300set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011302$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011303if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011304 $as_echo_n "(cached) " >&6
11305else
11306 if test -n "$ac_ct_LIPO"; then
11307 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11308else
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011314 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11316 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011318 break 2
11319 fi
11320done
cristy8b350f62009-11-15 23:12:43 +000011321 done
cristy3ed852e2009-09-05 21:47:34 +000011322IFS=$as_save_IFS
11323
11324fi
11325fi
11326ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11327if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011329$as_echo "$ac_ct_LIPO" >&6; }
11330else
cristy8b350f62009-11-15 23:12:43 +000011331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011332$as_echo "no" >&6; }
11333fi
11334
11335 if test "x$ac_ct_LIPO" = x; then
11336 LIPO=":"
11337 else
11338 case $cross_compiling:$ac_tool_warned in
11339yes:)
cristy8b350f62009-11-15 23:12:43 +000011340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11342ac_tool_warned=yes ;;
11343esac
11344 LIPO=$ac_ct_LIPO
11345 fi
11346else
11347 LIPO="$ac_cv_prog_LIPO"
11348fi
11349
11350 if test -n "$ac_tool_prefix"; then
11351 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11352set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011354$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011355if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011356 $as_echo_n "(cached) " >&6
11357else
11358 if test -n "$OTOOL"; then
11359 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011370 break 2
11371 fi
11372done
cristy8b350f62009-11-15 23:12:43 +000011373 done
cristy3ed852e2009-09-05 21:47:34 +000011374IFS=$as_save_IFS
11375
11376fi
11377fi
11378OTOOL=$ac_cv_prog_OTOOL
11379if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011381$as_echo "$OTOOL" >&6; }
11382else
cristy8b350f62009-11-15 23:12:43 +000011383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011384$as_echo "no" >&6; }
11385fi
11386
11387
11388fi
11389if test -z "$ac_cv_prog_OTOOL"; then
11390 ac_ct_OTOOL=$OTOOL
11391 # Extract the first word of "otool", so it can be a program name with args.
11392set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011395if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011396 $as_echo_n "(cached) " >&6
11397else
11398 if test -n "$ac_ct_OTOOL"; then
11399 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011410 break 2
11411 fi
11412done
cristy8b350f62009-11-15 23:12:43 +000011413 done
cristy3ed852e2009-09-05 21:47:34 +000011414IFS=$as_save_IFS
11415
11416fi
11417fi
11418ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11419if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011421$as_echo "$ac_ct_OTOOL" >&6; }
11422else
cristy8b350f62009-11-15 23:12:43 +000011423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011424$as_echo "no" >&6; }
11425fi
11426
11427 if test "x$ac_ct_OTOOL" = x; then
11428 OTOOL=":"
11429 else
11430 case $cross_compiling:$ac_tool_warned in
11431yes:)
cristy8b350f62009-11-15 23:12:43 +000011432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11434ac_tool_warned=yes ;;
11435esac
11436 OTOOL=$ac_ct_OTOOL
11437 fi
11438else
11439 OTOOL="$ac_cv_prog_OTOOL"
11440fi
11441
11442 if test -n "$ac_tool_prefix"; then
11443 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11444set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011446$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011447if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011448 $as_echo_n "(cached) " >&6
11449else
11450 if test -n "$OTOOL64"; then
11451 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11452else
11453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011458 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11460 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011462 break 2
11463 fi
11464done
cristy8b350f62009-11-15 23:12:43 +000011465 done
cristy3ed852e2009-09-05 21:47:34 +000011466IFS=$as_save_IFS
11467
11468fi
11469fi
11470OTOOL64=$ac_cv_prog_OTOOL64
11471if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011473$as_echo "$OTOOL64" >&6; }
11474else
cristy8b350f62009-11-15 23:12:43 +000011475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011476$as_echo "no" >&6; }
11477fi
11478
11479
11480fi
11481if test -z "$ac_cv_prog_OTOOL64"; then
11482 ac_ct_OTOOL64=$OTOOL64
11483 # Extract the first word of "otool64", so it can be a program name with args.
11484set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011486$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011487if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011488 $as_echo_n "(cached) " >&6
11489else
11490 if test -n "$ac_ct_OTOOL64"; then
11491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11492else
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011498 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11500 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011502 break 2
11503 fi
11504done
cristy8b350f62009-11-15 23:12:43 +000011505 done
cristy3ed852e2009-09-05 21:47:34 +000011506IFS=$as_save_IFS
11507
11508fi
11509fi
11510ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11511if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011513$as_echo "$ac_ct_OTOOL64" >&6; }
11514else
cristy8b350f62009-11-15 23:12:43 +000011515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011516$as_echo "no" >&6; }
11517fi
11518
11519 if test "x$ac_ct_OTOOL64" = x; then
11520 OTOOL64=":"
11521 else
11522 case $cross_compiling:$ac_tool_warned in
11523yes:)
cristy8b350f62009-11-15 23:12:43 +000011524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526ac_tool_warned=yes ;;
11527esac
11528 OTOOL64=$ac_ct_OTOOL64
11529 fi
11530else
11531 OTOOL64="$ac_cv_prog_OTOOL64"
11532fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
cristy8b350f62009-11-15 23:12:43 +000011560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011561$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011562if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011563 $as_echo_n "(cached) " >&6
11564else
11565 lt_cv_apple_cc_single_mod=no
11566 if test -z "${LT_MULTI_MODULE}"; then
11567 # By default we will add the -single_module flag. You can override
11568 # by either setting the environment variable LT_MULTI_MODULE
11569 # non-empty at configure time, or by adding -multi_module to the
11570 # link flags.
11571 rm -rf libconftest.dylib*
11572 echo "int foo(void){return 1;}" > conftest.c
11573 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11574-dynamiclib -Wl,-single_module conftest.c" >&5
11575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11576 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11577 _lt_result=$?
11578 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11579 lt_cv_apple_cc_single_mod=yes
11580 else
11581 cat conftest.err >&5
11582 fi
11583 rm -rf libconftest.dylib*
11584 rm -f conftest.*
11585 fi
11586fi
cristy8b350f62009-11-15 23:12:43 +000011587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011588$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011590$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011591if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011592 $as_echo_n "(cached) " >&6
11593else
11594 lt_cv_ld_exported_symbols_list=no
11595 save_LDFLAGS=$LDFLAGS
11596 echo "_main" > conftest.sym
11597 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011599/* end confdefs.h. */
11600
11601int
11602main ()
11603{
11604
11605 ;
11606 return 0;
11607}
11608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011609if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011610 lt_cv_ld_exported_symbols_list=yes
11611else
cristy8b350f62009-11-15 23:12:43 +000011612 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011613fi
cristy8b350f62009-11-15 23:12:43 +000011614rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011616 LDFLAGS="$save_LDFLAGS"
11617
11618fi
cristy8b350f62009-11-15 23:12:43 +000011619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011620$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11621 case $host_os in
11622 rhapsody* | darwin1.[012])
11623 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11624 darwin1.*)
11625 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11626 darwin*) # darwin 5.x on
11627 # if running on 10.5 or later, the deployment target defaults
11628 # to the OS version, if on x86, and 10.4, the deployment
11629 # target defaults to 10.4. Don't you love it?
11630 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11631 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11632 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11633 10.[012]*)
11634 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11635 10.*)
11636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11637 esac
11638 ;;
11639 esac
11640 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11641 _lt_dar_single_mod='$single_module'
11642 fi
11643 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11644 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11645 else
11646 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11647 fi
cristy5c40fb42010-08-05 16:12:44 +000011648 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011649 _lt_dsymutil='~$DSYMUTIL $lib || :'
11650 else
11651 _lt_dsymutil=
11652 fi
11653 ;;
11654 esac
11655
cristy3ed852e2009-09-05 21:47:34 +000011656for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011657do :
11658 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11659"
11660if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011661 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011662#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011663_ACEOF
11664
11665fi
11666
11667done
11668
11669
11670
cristy5c40fb42010-08-05 16:12:44 +000011671ac_ext=cpp
11672ac_cpp='$CXXCPP $CPPFLAGS'
11673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11676if test -z "$CXX"; then
11677 if test -n "$CCC"; then
11678 CXX=$CCC
11679 else
11680 if test -n "$ac_tool_prefix"; then
11681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11682 do
11683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11686$as_echo_n "checking for $ac_word... " >&6; }
11687if test "${ac_cv_prog_CXX+set}" = set; then :
11688 $as_echo_n "(cached) " >&6
11689else
11690 if test -n "$CXX"; then
11691 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11692else
11693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694for as_dir in $PATH
11695do
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11700 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 break 2
11703 fi
11704done
11705 done
11706IFS=$as_save_IFS
11707
11708fi
11709fi
11710CXX=$ac_cv_prog_CXX
11711if test -n "$CXX"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11713$as_echo "$CXX" >&6; }
11714else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
11717fi
11718
11719
11720 test -n "$CXX" && break
11721 done
11722fi
11723if test -z "$CXX"; then
11724 ac_ct_CXX=$CXX
11725 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11726do
11727 # Extract the first word of "$ac_prog", so it can be a program name with args.
11728set dummy $ac_prog; ac_word=$2
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
11731if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11732 $as_echo_n "(cached) " >&6
11733else
11734 if test -n "$ac_ct_CXX"; then
11735 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11736else
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
11742 for ac_exec_ext in '' $ac_executable_extensions; do
11743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11744 ac_cv_prog_ac_ct_CXX="$ac_prog"
11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746 break 2
11747 fi
11748done
11749 done
11750IFS=$as_save_IFS
11751
11752fi
11753fi
11754ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11755if test -n "$ac_ct_CXX"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11757$as_echo "$ac_ct_CXX" >&6; }
11758else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761fi
11762
11763
11764 test -n "$ac_ct_CXX" && break
11765done
11766
11767 if test "x$ac_ct_CXX" = x; then
11768 CXX="g++"
11769 else
11770 case $cross_compiling:$ac_tool_warned in
11771yes:)
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774ac_tool_warned=yes ;;
11775esac
11776 CXX=$ac_ct_CXX
11777 fi
11778fi
11779
11780 fi
11781fi
11782# Provide some information about the compiler.
11783$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11784set X $ac_compile
11785ac_compiler=$2
11786for ac_option in --version -v -V -qversion; do
11787 { { ac_try="$ac_compiler $ac_option >&5"
11788case "(($ac_try" in
11789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790 *) ac_try_echo=$ac_try;;
11791esac
11792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11793$as_echo "$ac_try_echo"; } >&5
11794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11795 ac_status=$?
11796 if test -s conftest.err; then
11797 sed '10a\
11798... rest of stderr output deleted ...
11799 10q' conftest.err >conftest.er1
11800 cat conftest.er1 >&5
11801 fi
11802 rm -f conftest.er1 conftest.err
11803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11804 test $ac_status = 0; }
11805done
11806
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11808$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11809if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
11811else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813/* end confdefs.h. */
11814
11815int
11816main ()
11817{
11818#ifndef __GNUC__
11819 choke me
11820#endif
11821
11822 ;
11823 return 0;
11824}
11825_ACEOF
11826if ac_fn_cxx_try_compile "$LINENO"; then :
11827 ac_compiler_gnu=yes
11828else
11829 ac_compiler_gnu=no
11830fi
11831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11833
11834fi
11835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11836$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11837if test $ac_compiler_gnu = yes; then
11838 GXX=yes
11839else
11840 GXX=
11841fi
11842ac_test_CXXFLAGS=${CXXFLAGS+set}
11843ac_save_CXXFLAGS=$CXXFLAGS
11844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11845$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11846if test "${ac_cv_prog_cxx_g+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848else
11849 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11850 ac_cxx_werror_flag=yes
11851 ac_cv_prog_cxx_g=no
11852 CXXFLAGS="-g"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h. */
11855
11856int
11857main ()
11858{
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864if ac_fn_cxx_try_compile "$LINENO"; then :
11865 ac_cv_prog_cxx_g=yes
11866else
11867 CXXFLAGS=""
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869/* end confdefs.h. */
11870
11871int
11872main ()
11873{
11874
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879if ac_fn_cxx_try_compile "$LINENO"; then :
11880
11881else
11882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11883 CXXFLAGS="-g"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h. */
11886
11887int
11888main ()
11889{
11890
11891 ;
11892 return 0;
11893}
11894_ACEOF
11895if ac_fn_cxx_try_compile "$LINENO"; then :
11896 ac_cv_prog_cxx_g=yes
11897fi
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899fi
11900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901fi
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11906$as_echo "$ac_cv_prog_cxx_g" >&6; }
11907if test "$ac_test_CXXFLAGS" = set; then
11908 CXXFLAGS=$ac_save_CXXFLAGS
11909elif test $ac_cv_prog_cxx_g = yes; then
11910 if test "$GXX" = yes; then
11911 CXXFLAGS="-g -O2"
11912 else
11913 CXXFLAGS="-g"
11914 fi
11915else
11916 if test "$GXX" = yes; then
11917 CXXFLAGS="-O2"
11918 else
11919 CXXFLAGS=
11920 fi
11921fi
11922ac_ext=c
11923ac_cpp='$CPP $CPPFLAGS'
11924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927
11928depcc="$CXX" am_compiler_list=
11929
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11931$as_echo_n "checking dependency style of $depcc... " >&6; }
11932if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11934else
11935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11936 # We make a subdir and do the tests there. Otherwise we can end up
11937 # making bogus files that we don't know about and never remove. For
11938 # instance it was reported that on HP-UX the gcc test will end up
11939 # making a dummy file named `D' -- because `-MD' means `put the output
11940 # in D'.
11941 mkdir conftest.dir
11942 # Copy depcomp to subdir because otherwise we won't find it if we're
11943 # using a relative directory.
11944 cp "$am_depcomp" conftest.dir
11945 cd conftest.dir
11946 # We will build objects and dependencies in a subdirectory because
11947 # it helps to detect inapplicable dependency modes. For instance
11948 # both Tru64's cc and ICC support -MD to output dependencies as a
11949 # side effect of compilation, but ICC will put the dependencies in
11950 # the current directory while Tru64 will put them in the object
11951 # directory.
11952 mkdir sub
11953
11954 am_cv_CXX_dependencies_compiler_type=none
11955 if test "$am_compiler_list" = ""; then
11956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11957 fi
11958 am__universal=false
11959 case " $depcc " in #(
11960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11961 esac
11962
11963 for depmode in $am_compiler_list; do
11964 # Setup a source with many dependencies, because some compilers
11965 # like to wrap large dependency lists on column 80 (with \), and
11966 # we should not choose a depcomp mode which is confused by this.
11967 #
11968 # We need to recreate these files for each test, as the compiler may
11969 # overwrite some of them when testing with obscure command lines.
11970 # This happens at least with the AIX C compiler.
11971 : > sub/conftest.c
11972 for i in 1 2 3 4 5 6; do
11973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11975 # Solaris 8's {/usr,}/bin/sh.
11976 touch sub/conftst$i.h
11977 done
11978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11979
11980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11981 # mode. It turns out that the SunPro C++ compiler does not properly
11982 # handle `-M -o', and we need to detect this. Also, some Intel
11983 # versions had trouble with output in subdirs
11984 am__obj=sub/conftest.${OBJEXT-o}
11985 am__minus_obj="-o $am__obj"
11986 case $depmode in
11987 gcc)
11988 # This depmode causes a compiler race in universal mode.
11989 test "$am__universal" = false || continue
11990 ;;
11991 nosideeffect)
11992 # after this tag, mechanisms are not by side-effect, so they'll
11993 # only be used when explicitly requested
11994 if test "x$enable_dependency_tracking" = xyes; then
11995 continue
11996 else
11997 break
11998 fi
11999 ;;
12000 msvisualcpp | msvcmsys)
12001 # This compiler won't grok `-c -o', but also, the minuso test has
12002 # not run yet. These depmodes are late enough in the game, and
12003 # so weak that their functioning should not be impacted.
12004 am__obj=conftest.${OBJEXT-o}
12005 am__minus_obj=
12006 ;;
12007 none) break ;;
12008 esac
12009 if depmode=$depmode \
12010 source=sub/conftest.c object=$am__obj \
12011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12013 >/dev/null 2>conftest.err &&
12014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12018 # icc doesn't choke on unknown options, it will just issue warnings
12019 # or remarks (even with -Werror). So we grep stderr for any message
12020 # that says an option was ignored or not supported.
12021 # When given -MP, icc 7.0 and 7.1 complain thusly:
12022 # icc: Command line warning: ignoring option '-M'; no argument required
12023 # The diagnosis changed in icc 8.0:
12024 # icc: Command line remark: option '-MP' not supported
12025 if (grep 'ignoring option' conftest.err ||
12026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12027 am_cv_CXX_dependencies_compiler_type=$depmode
12028 break
12029 fi
12030 fi
12031 done
12032
12033 cd ..
12034 rm -rf conftest.dir
12035else
12036 am_cv_CXX_dependencies_compiler_type=none
12037fi
12038
12039fi
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12041$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12042CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12043
12044 if
12045 test "x$enable_dependency_tracking" != xno \
12046 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12047 am__fastdepCXX_TRUE=
12048 am__fastdepCXX_FALSE='#'
12049else
12050 am__fastdepCXX_TRUE='#'
12051 am__fastdepCXX_FALSE=
12052fi
12053
12054
12055if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12056 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12057 (test "X$CXX" != "Xg++"))) ; then
12058 ac_ext=cpp
12059ac_cpp='$CXXCPP $CPPFLAGS'
12060ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12061ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12062ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12064$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12065if test -z "$CXXCPP"; then
12066 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068else
12069 # Double quotes because CXXCPP needs to be expanded
12070 for CXXCPP in "$CXX -E" "/lib/cpp"
12071 do
12072 ac_preproc_ok=false
12073for ac_cxx_preproc_warn_flag in '' yes
12074do
12075 # Use a header file that comes with gcc, so configuring glibc
12076 # with a fresh cross-compiler works.
12077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12078 # <limits.h> exists even on freestanding compilers.
12079 # On the NeXT, cc -E runs the code through the compiler's parser,
12080 # not just through cpp. "Syntax error" is here to catch this case.
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h. */
12083#ifdef __STDC__
12084# include <limits.h>
12085#else
12086# include <assert.h>
12087#endif
12088 Syntax error
12089_ACEOF
12090if ac_fn_cxx_try_cpp "$LINENO"; then :
12091
12092else
12093 # Broken: fails on valid input.
12094continue
12095fi
12096rm -f conftest.err conftest.$ac_ext
12097
12098 # OK, works on sane cases. Now check whether nonexistent headers
12099 # can be detected and how.
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101/* end confdefs.h. */
12102#include <ac_nonexistent.h>
12103_ACEOF
12104if ac_fn_cxx_try_cpp "$LINENO"; then :
12105 # Broken: success on invalid input.
12106continue
12107else
12108 # Passes both tests.
12109ac_preproc_ok=:
12110break
12111fi
12112rm -f conftest.err conftest.$ac_ext
12113
12114done
12115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12116rm -f conftest.err conftest.$ac_ext
12117if $ac_preproc_ok; then :
12118 break
12119fi
12120
12121 done
12122 ac_cv_prog_CXXCPP=$CXXCPP
12123
12124fi
12125 CXXCPP=$ac_cv_prog_CXXCPP
12126else
12127 ac_cv_prog_CXXCPP=$CXXCPP
12128fi
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12130$as_echo "$CXXCPP" >&6; }
12131ac_preproc_ok=false
12132for ac_cxx_preproc_warn_flag in '' yes
12133do
12134 # Use a header file that comes with gcc, so configuring glibc
12135 # with a fresh cross-compiler works.
12136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12137 # <limits.h> exists even on freestanding compilers.
12138 # On the NeXT, cc -E runs the code through the compiler's parser,
12139 # not just through cpp. "Syntax error" is here to catch this case.
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h. */
12142#ifdef __STDC__
12143# include <limits.h>
12144#else
12145# include <assert.h>
12146#endif
12147 Syntax error
12148_ACEOF
12149if ac_fn_cxx_try_cpp "$LINENO"; then :
12150
12151else
12152 # Broken: fails on valid input.
12153continue
12154fi
12155rm -f conftest.err conftest.$ac_ext
12156
12157 # OK, works on sane cases. Now check whether nonexistent headers
12158 # can be detected and how.
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160/* end confdefs.h. */
12161#include <ac_nonexistent.h>
12162_ACEOF
12163if ac_fn_cxx_try_cpp "$LINENO"; then :
12164 # Broken: success on invalid input.
12165continue
12166else
12167 # Passes both tests.
12168ac_preproc_ok=:
12169break
12170fi
12171rm -f conftest.err conftest.$ac_ext
12172
12173done
12174# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12175rm -f conftest.err conftest.$ac_ext
12176if $ac_preproc_ok; then :
12177
12178else
12179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12181_lt_caught_CXX_error=yes; }
12182fi
12183
12184ac_ext=c
12185ac_cpp='$CPP $CPPFLAGS'
12186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188ac_compiler_gnu=$ac_cv_c_compiler_gnu
12189
12190else
12191 _lt_caught_CXX_error=yes
12192fi
12193
12194
cristy3ed852e2009-09-05 21:47:34 +000012195
12196
12197
12198# Set options
12199enable_win32_dll=yes
12200
12201case $host in
cristy5c40fb42010-08-05 16:12:44 +000012202*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012203 if test -n "$ac_tool_prefix"; then
12204 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12205set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012208if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012209 $as_echo_n "(cached) " >&6
12210else
12211 if test -n "$AS"; then
12212 ac_cv_prog_AS="$AS" # Let the user override the test.
12213else
12214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12215for as_dir in $PATH
12216do
12217 IFS=$as_save_IFS
12218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12221 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012223 break 2
12224 fi
12225done
cristy8b350f62009-11-15 23:12:43 +000012226 done
cristy3ed852e2009-09-05 21:47:34 +000012227IFS=$as_save_IFS
12228
12229fi
12230fi
12231AS=$ac_cv_prog_AS
12232if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012234$as_echo "$AS" >&6; }
12235else
cristy8b350f62009-11-15 23:12:43 +000012236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012237$as_echo "no" >&6; }
12238fi
12239
12240
12241fi
12242if test -z "$ac_cv_prog_AS"; then
12243 ac_ct_AS=$AS
12244 # Extract the first word of "as", so it can be a program name with args.
12245set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012247$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012248if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012249 $as_echo_n "(cached) " >&6
12250else
12251 if test -n "$ac_ct_AS"; then
12252 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12253else
12254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255for as_dir in $PATH
12256do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012263 break 2
12264 fi
12265done
cristy8b350f62009-11-15 23:12:43 +000012266 done
cristy3ed852e2009-09-05 21:47:34 +000012267IFS=$as_save_IFS
12268
12269fi
12270fi
12271ac_ct_AS=$ac_cv_prog_ac_ct_AS
12272if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012274$as_echo "$ac_ct_AS" >&6; }
12275else
cristy8b350f62009-11-15 23:12:43 +000012276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012277$as_echo "no" >&6; }
12278fi
12279
12280 if test "x$ac_ct_AS" = x; then
12281 AS="false"
12282 else
12283 case $cross_compiling:$ac_tool_warned in
12284yes:)
cristy8b350f62009-11-15 23:12:43 +000012285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12287ac_tool_warned=yes ;;
12288esac
12289 AS=$ac_ct_AS
12290 fi
12291else
12292 AS="$ac_cv_prog_AS"
12293fi
12294
12295 if test -n "$ac_tool_prefix"; then
12296 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12297set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012299$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012300if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012301 $as_echo_n "(cached) " >&6
12302else
12303 if test -n "$DLLTOOL"; then
12304 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12305else
12306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307for as_dir in $PATH
12308do
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012315 break 2
12316 fi
12317done
cristy8b350f62009-11-15 23:12:43 +000012318 done
cristy3ed852e2009-09-05 21:47:34 +000012319IFS=$as_save_IFS
12320
12321fi
12322fi
12323DLLTOOL=$ac_cv_prog_DLLTOOL
12324if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012326$as_echo "$DLLTOOL" >&6; }
12327else
cristy8b350f62009-11-15 23:12:43 +000012328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012329$as_echo "no" >&6; }
12330fi
12331
12332
12333fi
12334if test -z "$ac_cv_prog_DLLTOOL"; then
12335 ac_ct_DLLTOOL=$DLLTOOL
12336 # Extract the first word of "dlltool", so it can be a program name with args.
12337set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012339$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012340if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012341 $as_echo_n "(cached) " >&6
12342else
12343 if test -n "$ac_ct_DLLTOOL"; then
12344 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12345else
12346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347for as_dir in $PATH
12348do
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12353 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012355 break 2
12356 fi
12357done
cristy8b350f62009-11-15 23:12:43 +000012358 done
cristy3ed852e2009-09-05 21:47:34 +000012359IFS=$as_save_IFS
12360
12361fi
12362fi
12363ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12364if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012366$as_echo "$ac_ct_DLLTOOL" >&6; }
12367else
cristy8b350f62009-11-15 23:12:43 +000012368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012369$as_echo "no" >&6; }
12370fi
12371
12372 if test "x$ac_ct_DLLTOOL" = x; then
12373 DLLTOOL="false"
12374 else
12375 case $cross_compiling:$ac_tool_warned in
12376yes:)
cristy8b350f62009-11-15 23:12:43 +000012377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12379ac_tool_warned=yes ;;
12380esac
12381 DLLTOOL=$ac_ct_DLLTOOL
12382 fi
12383else
12384 DLLTOOL="$ac_cv_prog_DLLTOOL"
12385fi
12386
12387 if test -n "$ac_tool_prefix"; then
12388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12389set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012391$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012392if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012393 $as_echo_n "(cached) " >&6
12394else
12395 if test -n "$OBJDUMP"; then
12396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12397else
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012407 break 2
12408 fi
12409done
cristy8b350f62009-11-15 23:12:43 +000012410 done
cristy3ed852e2009-09-05 21:47:34 +000012411IFS=$as_save_IFS
12412
12413fi
12414fi
12415OBJDUMP=$ac_cv_prog_OBJDUMP
12416if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012418$as_echo "$OBJDUMP" >&6; }
12419else
cristy8b350f62009-11-15 23:12:43 +000012420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012421$as_echo "no" >&6; }
12422fi
12423
12424
12425fi
12426if test -z "$ac_cv_prog_OBJDUMP"; then
12427 ac_ct_OBJDUMP=$OBJDUMP
12428 # Extract the first word of "objdump", so it can be a program name with args.
12429set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012431$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012432if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012433 $as_echo_n "(cached) " >&6
12434else
12435 if test -n "$ac_ct_OBJDUMP"; then
12436 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12437else
12438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439for as_dir in $PATH
12440do
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012447 break 2
12448 fi
12449done
cristy8b350f62009-11-15 23:12:43 +000012450 done
cristy3ed852e2009-09-05 21:47:34 +000012451IFS=$as_save_IFS
12452
12453fi
12454fi
12455ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12456if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012458$as_echo "$ac_ct_OBJDUMP" >&6; }
12459else
cristy8b350f62009-11-15 23:12:43 +000012460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012461$as_echo "no" >&6; }
12462fi
12463
12464 if test "x$ac_ct_OBJDUMP" = x; then
12465 OBJDUMP="false"
12466 else
12467 case $cross_compiling:$ac_tool_warned in
12468yes:)
cristy8b350f62009-11-15 23:12:43 +000012469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12471ac_tool_warned=yes ;;
12472esac
12473 OBJDUMP=$ac_ct_OBJDUMP
12474 fi
12475else
12476 OBJDUMP="$ac_cv_prog_OBJDUMP"
12477fi
12478
12479 ;;
12480esac
12481
12482test -z "$AS" && AS=as
12483
12484
12485
12486
12487
12488test -z "$DLLTOOL" && DLLTOOL=dlltool
12489
12490
12491
12492
12493
12494test -z "$OBJDUMP" && OBJDUMP=objdump
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012505if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012506 enableval=$enable_shared; p=${PACKAGE-default}
12507 case $enableval in
12508 yes) enable_shared=yes ;;
12509 no) enable_shared=no ;;
12510 *)
12511 enable_shared=no
12512 # Look at the argument we got. We use all the common list separators.
12513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12514 for pkg in $enableval; do
12515 IFS="$lt_save_ifs"
12516 if test "X$pkg" = "X$p"; then
12517 enable_shared=yes
12518 fi
12519 done
12520 IFS="$lt_save_ifs"
12521 ;;
12522 esac
12523else
12524 enable_shared=yes
12525fi
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012536if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012537 enableval=$enable_static; p=${PACKAGE-default}
12538 case $enableval in
12539 yes) enable_static=yes ;;
12540 no) enable_static=no ;;
12541 *)
12542 enable_static=no
12543 # Look at the argument we got. We use all the common list separators.
12544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12545 for pkg in $enableval; do
12546 IFS="$lt_save_ifs"
12547 if test "X$pkg" = "X$p"; then
12548 enable_static=yes
12549 fi
12550 done
12551 IFS="$lt_save_ifs"
12552 ;;
12553 esac
12554else
12555 enable_static=yes
12556fi
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012568if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012569 withval=$with_pic; pic_mode="$withval"
12570else
12571 pic_mode=default
12572fi
12573
12574
12575test -z "$pic_mode" && pic_mode=default
12576
12577
12578
12579
12580
12581
12582
12583 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012584if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012585 enableval=$enable_fast_install; p=${PACKAGE-default}
12586 case $enableval in
12587 yes) enable_fast_install=yes ;;
12588 no) enable_fast_install=no ;;
12589 *)
12590 enable_fast_install=no
12591 # Look at the argument we got. We use all the common list separators.
12592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12593 for pkg in $enableval; do
12594 IFS="$lt_save_ifs"
12595 if test "X$pkg" = "X$p"; then
12596 enable_fast_install=yes
12597 fi
12598 done
12599 IFS="$lt_save_ifs"
12600 ;;
12601 esac
12602else
12603 enable_fast_install=yes
12604fi
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616# This can be used to rebuild libtool when needed
12617LIBTOOL_DEPS="$ltmain"
12618
12619# Always use our own libtool.
12620LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646test -z "$LN_S" && LN_S="ln -s"
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661if test -n "${ZSH_VERSION+set}" ; then
12662 setopt NO_GLOB_SUBST
12663fi
12664
cristy8b350f62009-11-15 23:12:43 +000012665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012666$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012667if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012668 $as_echo_n "(cached) " >&6
12669else
12670 rm -f .libs 2>/dev/null
12671mkdir .libs 2>/dev/null
12672if test -d .libs; then
12673 lt_cv_objdir=.libs
12674else
12675 # MS-DOS does not allow filenames that begin with a dot.
12676 lt_cv_objdir=_libs
12677fi
12678rmdir .libs 2>/dev/null
12679fi
cristy8b350f62009-11-15 23:12:43 +000012680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012681$as_echo "$lt_cv_objdir" >&6; }
12682objdir=$lt_cv_objdir
12683
12684
12685
12686
12687
12688cat >>confdefs.h <<_ACEOF
12689#define LT_OBJDIR "$lt_cv_objdir/"
12690_ACEOF
12691
12692
12693
12694
cristy5c40fb42010-08-05 16:12:44 +000012695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
cristy3ed852e2009-09-05 21:47:34 +000012708case $host_os in
12709aix3*)
12710 # AIX sometimes has problems with the GCC collect2 program. For some
12711 # reason, if we set the COLLECT_NAMES environment variable, the problems
12712 # vanish in a puff of smoke.
12713 if test "X${COLLECT_NAMES+set}" != Xset; then
12714 COLLECT_NAMES=
12715 export COLLECT_NAMES
12716 fi
12717 ;;
12718esac
12719
cristy5c40fb42010-08-05 16:12:44 +000012720# Sed substitution that helps us do robust quoting. It backslashifies
12721# metacharacters that are still active within double-quoted strings.
12722sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12723
12724# Same as above, but do not quote variable references.
12725double_quote_subst='s/\(["`\\]\)/\\\1/g'
12726
12727# Sed substitution to delay expansion of an escaped shell variable in a
12728# double_quote_subst'ed string.
12729delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12730
12731# Sed substitution to delay expansion of an escaped single quote.
12732delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12733
12734# Sed substitution to avoid accidental globbing in evaled expressions
12735no_glob_subst='s/\*/\\\*/g'
12736
cristy3ed852e2009-09-05 21:47:34 +000012737# Global variables:
12738ofile=libtool
12739can_build_shared=yes
12740
12741# All known linkers require a `.a' archive for static linking (except MSVC,
12742# which needs '.lib').
12743libext=a
12744
12745with_gnu_ld="$lt_cv_prog_gnu_ld"
12746
12747old_CC="$CC"
12748old_CFLAGS="$CFLAGS"
12749
12750# Set sane defaults for various variables
12751test -z "$CC" && CC=cc
12752test -z "$LTCC" && LTCC=$CC
12753test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12754test -z "$LD" && LD=ld
12755test -z "$ac_objext" && ac_objext=o
12756
12757for cc_temp in $compiler""; do
12758 case $cc_temp in
12759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12761 \-*) ;;
12762 *) break;;
12763 esac
12764done
cristy5c40fb42010-08-05 16:12:44 +000012765cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012766
12767
12768# Only perform the check for file, if the check method requires it
12769test -z "$MAGIC_CMD" && MAGIC_CMD=file
12770case $deplibs_check_method in
12771file_magic*)
12772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012774$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012775if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 case $MAGIC_CMD in
12779[\\/*] | ?:[\\/]*)
12780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12781 ;;
12782*)
12783 lt_save_MAGIC_CMD="$MAGIC_CMD"
12784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12786 for ac_dir in $ac_dummy; do
12787 IFS="$lt_save_ifs"
12788 test -z "$ac_dir" && ac_dir=.
12789 if test -f $ac_dir/${ac_tool_prefix}file; then
12790 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12791 if test -n "$file_magic_test_file"; then
12792 case $deplibs_check_method in
12793 "file_magic "*)
12794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12797 $EGREP "$file_magic_regex" > /dev/null; then
12798 :
12799 else
12800 cat <<_LT_EOF 1>&2
12801
12802*** Warning: the command libtool uses to detect shared libraries,
12803*** $file_magic_cmd, produces output that libtool cannot recognize.
12804*** The result is that libtool may fail to recognize shared libraries
12805*** as such. This will affect the creation of libtool libraries that
12806*** depend on shared libraries, but programs linked with such libtool
12807*** libraries will work regardless of this problem. Nevertheless, you
12808*** may want to report the problem to your system manager and/or to
12809*** bug-libtool@gnu.org
12810
12811_LT_EOF
12812 fi ;;
12813 esac
12814 fi
12815 break
12816 fi
12817 done
12818 IFS="$lt_save_ifs"
12819 MAGIC_CMD="$lt_save_MAGIC_CMD"
12820 ;;
12821esac
12822fi
12823
12824MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12825if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012827$as_echo "$MAGIC_CMD" >&6; }
12828else
cristy8b350f62009-11-15 23:12:43 +000012829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012830$as_echo "no" >&6; }
12831fi
12832
12833
12834
12835
12836
12837if test -z "$lt_cv_path_MAGIC_CMD"; then
12838 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012840$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012841if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012842 $as_echo_n "(cached) " >&6
12843else
12844 case $MAGIC_CMD in
12845[\\/*] | ?:[\\/]*)
12846 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12847 ;;
12848*)
12849 lt_save_MAGIC_CMD="$MAGIC_CMD"
12850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12851 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12852 for ac_dir in $ac_dummy; do
12853 IFS="$lt_save_ifs"
12854 test -z "$ac_dir" && ac_dir=.
12855 if test -f $ac_dir/file; then
12856 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12857 if test -n "$file_magic_test_file"; then
12858 case $deplibs_check_method in
12859 "file_magic "*)
12860 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12861 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12862 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12863 $EGREP "$file_magic_regex" > /dev/null; then
12864 :
12865 else
12866 cat <<_LT_EOF 1>&2
12867
12868*** Warning: the command libtool uses to detect shared libraries,
12869*** $file_magic_cmd, produces output that libtool cannot recognize.
12870*** The result is that libtool may fail to recognize shared libraries
12871*** as such. This will affect the creation of libtool libraries that
12872*** depend on shared libraries, but programs linked with such libtool
12873*** libraries will work regardless of this problem. Nevertheless, you
12874*** may want to report the problem to your system manager and/or to
12875*** bug-libtool@gnu.org
12876
12877_LT_EOF
12878 fi ;;
12879 esac
12880 fi
12881 break
12882 fi
12883 done
12884 IFS="$lt_save_ifs"
12885 MAGIC_CMD="$lt_save_MAGIC_CMD"
12886 ;;
12887esac
12888fi
12889
12890MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12891if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012893$as_echo "$MAGIC_CMD" >&6; }
12894else
cristy8b350f62009-11-15 23:12:43 +000012895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012896$as_echo "no" >&6; }
12897fi
12898
12899
12900 else
12901 MAGIC_CMD=:
12902 fi
12903fi
12904
12905 fi
12906 ;;
12907esac
12908
12909# Use C for the default configuration in the libtool script
12910
12911lt_save_CC="$CC"
12912ac_ext=c
12913ac_cpp='$CPP $CPPFLAGS'
12914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12916ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917
12918
12919# Source file extension for C test sources.
12920ac_ext=c
12921
12922# Object file extension for compiled C test sources.
12923objext=o
12924objext=$objext
12925
12926# Code to be used in simple compile tests
12927lt_simple_compile_test_code="int some_variable = 0;"
12928
12929# Code to be used in simple link tests
12930lt_simple_link_test_code='int main(){return(0);}'
12931
12932
12933
12934
12935
12936
12937
12938# If no C compiler was specified, use CC.
12939LTCC=${LTCC-"$CC"}
12940
12941# If no C compiler flags were specified, use CFLAGS.
12942LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12943
12944# Allow CC to be a program name with arguments.
12945compiler=$CC
12946
12947# Save the default compiler, since it gets overwritten when the other
12948# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12949compiler_DEFAULT=$CC
12950
12951# save warnings/boilerplate of simple test code
12952ac_outfile=conftest.$ac_objext
12953echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12954eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12955_lt_compiler_boilerplate=`cat conftest.err`
12956$RM conftest*
12957
12958ac_outfile=conftest.$ac_objext
12959echo "$lt_simple_link_test_code" >conftest.$ac_ext
12960eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12961_lt_linker_boilerplate=`cat conftest.err`
12962$RM -r conftest*
12963
12964
12965## CAVEAT EMPTOR:
12966## There is no encapsulation within the following macros, do not change
12967## the running order or otherwise move them around unless you know exactly
12968## what you are doing...
12969if test -n "$compiler"; then
12970
12971lt_prog_compiler_no_builtin_flag=
12972
12973if test "$GCC" = yes; then
cristy5c40fb42010-08-05 16:12:44 +000012974 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012975
cristy8b350f62009-11-15 23:12:43 +000012976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012977$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012978if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012979 $as_echo_n "(cached) " >&6
12980else
12981 lt_cv_prog_compiler_rtti_exceptions=no
12982 ac_outfile=conftest.$ac_objext
12983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12984 lt_compiler_flag="-fno-rtti -fno-exceptions"
12985 # Insert the option either (1) after the last *FLAGS variable, or
12986 # (2) before a word containing "conftest.", or (3) at the end.
12987 # Note that $ac_compile itself does not contain backslashes and begins
12988 # with a dollar sign (not a hyphen), so the echo should work correctly.
12989 # The option is referenced via a variable to avoid confusing sed.
12990 lt_compile=`echo "$ac_compile" | $SED \
12991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12993 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000012994 (eval echo "\"\$as_me:12994: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012995 (eval "$lt_compile" 2>conftest.err)
12996 ac_status=$?
12997 cat conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000012998 echo "$as_me:12998: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012999 if (exit $ac_status) && test -s "$ac_outfile"; then
13000 # The compiler can only warn and ignore the option if not recognized
13001 # So say no if there are warnings other than the usual output.
cristy5c40fb42010-08-05 16:12:44 +000013002 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13005 lt_cv_prog_compiler_rtti_exceptions=yes
13006 fi
13007 fi
13008 $RM conftest*
13009
13010fi
cristy8b350f62009-11-15 23:12:43 +000013011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013012$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13013
13014if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13016else
13017 :
13018fi
13019
13020fi
13021
13022
13023
13024
13025
13026
13027 lt_prog_compiler_wl=
13028lt_prog_compiler_pic=
13029lt_prog_compiler_static=
13030
cristy8b350f62009-11-15 23:12:43 +000013031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013032$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13033
13034 if test "$GCC" = yes; then
13035 lt_prog_compiler_wl='-Wl,'
13036 lt_prog_compiler_static='-static'
13037
13038 case $host_os in
13039 aix*)
13040 # All AIX code is PIC.
13041 if test "$host_cpu" = ia64; then
13042 # AIX 5 now supports IA64 processor
13043 lt_prog_compiler_static='-Bstatic'
13044 fi
13045 ;;
13046
13047 amigaos*)
13048 case $host_cpu in
13049 powerpc)
13050 # see comment about AmigaOS4 .so support
13051 lt_prog_compiler_pic='-fPIC'
13052 ;;
13053 m68k)
13054 # FIXME: we need at least 68020 code to build shared libraries, but
13055 # adding the `-m68020' flag to GCC prevents building anything better,
13056 # like `-m68040'.
13057 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13058 ;;
13059 esac
13060 ;;
13061
13062 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063 # PIC is the default for these OSes.
13064 ;;
13065
13066 mingw* | cygwin* | pw32* | os2* | cegcc*)
13067 # This hack is so that the source file can tell whether it is being
13068 # built for inclusion in a dll (and should export symbols for example).
13069 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13070 # (--disable-auto-import) libraries
13071 lt_prog_compiler_pic='-DDLL_EXPORT'
13072 ;;
13073
13074 darwin* | rhapsody*)
13075 # PIC is the default on this platform
13076 # Common symbols not allowed in MH_DYLIB files
13077 lt_prog_compiler_pic='-fno-common'
13078 ;;
13079
13080 hpux*)
13081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13083 # sets the default TLS model and affects inlining.
13084 case $host_cpu in
13085 hppa*64*)
13086 # +Z the default
13087 ;;
13088 *)
13089 lt_prog_compiler_pic='-fPIC'
13090 ;;
13091 esac
13092 ;;
13093
13094 interix[3-9]*)
13095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13096 # Instead, we relocate shared libraries at runtime.
13097 ;;
13098
13099 msdosdjgpp*)
13100 # Just because we use GCC doesn't mean we suddenly get shared libraries
13101 # on systems that don't support them.
13102 lt_prog_compiler_can_build_shared=no
13103 enable_shared=no
13104 ;;
13105
13106 *nto* | *qnx*)
13107 # QNX uses GNU C++, but need to define -shared option too, otherwise
13108 # it will coredump.
13109 lt_prog_compiler_pic='-fPIC -shared'
13110 ;;
13111
13112 sysv4*MP*)
13113 if test -d /usr/nec; then
13114 lt_prog_compiler_pic=-Kconform_pic
13115 fi
13116 ;;
13117
13118 *)
13119 lt_prog_compiler_pic='-fPIC'
13120 ;;
13121 esac
13122 else
13123 # PORTME Check for flag to pass linker flags through the system compiler.
13124 case $host_os in
13125 aix*)
13126 lt_prog_compiler_wl='-Wl,'
13127 if test "$host_cpu" = ia64; then
13128 # AIX 5 now supports IA64 processor
13129 lt_prog_compiler_static='-Bstatic'
13130 else
13131 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13132 fi
13133 ;;
13134
13135 mingw* | cygwin* | pw32* | os2* | cegcc*)
13136 # This hack is so that the source file can tell whether it is being
13137 # built for inclusion in a dll (and should export symbols for example).
13138 lt_prog_compiler_pic='-DDLL_EXPORT'
13139 ;;
13140
13141 hpux9* | hpux10* | hpux11*)
13142 lt_prog_compiler_wl='-Wl,'
13143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13144 # not for PA HP-UX.
13145 case $host_cpu in
13146 hppa*64*|ia64*)
13147 # +Z the default
13148 ;;
13149 *)
13150 lt_prog_compiler_pic='+Z'
13151 ;;
13152 esac
13153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13154 lt_prog_compiler_static='${wl}-a ${wl}archive'
13155 ;;
13156
13157 irix5* | irix6* | nonstopux*)
13158 lt_prog_compiler_wl='-Wl,'
13159 # PIC (with -KPIC) is the default.
13160 lt_prog_compiler_static='-non_shared'
13161 ;;
13162
cristy5c40fb42010-08-05 16:12:44 +000013163 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013164 case $cc_basename in
13165 # old Intel for x86_64 which still supported -KPIC.
13166 ecc*)
13167 lt_prog_compiler_wl='-Wl,'
13168 lt_prog_compiler_pic='-KPIC'
13169 lt_prog_compiler_static='-static'
13170 ;;
13171 # icc used to be incompatible with GCC.
13172 # ICC 10 doesn't accept -KPIC any more.
13173 icc* | ifort*)
13174 lt_prog_compiler_wl='-Wl,'
13175 lt_prog_compiler_pic='-fPIC'
13176 lt_prog_compiler_static='-static'
13177 ;;
13178 # Lahey Fortran 8.1.
13179 lf95*)
13180 lt_prog_compiler_wl='-Wl,'
13181 lt_prog_compiler_pic='--shared'
13182 lt_prog_compiler_static='--static'
13183 ;;
cristy5c40fb42010-08-05 16:12:44 +000013184 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013185 # Portland Group compilers (*not* the Pentium gcc compiler,
13186 # which looks to be a dead project)
13187 lt_prog_compiler_wl='-Wl,'
13188 lt_prog_compiler_pic='-fpic'
13189 lt_prog_compiler_static='-Bstatic'
13190 ;;
13191 ccc*)
13192 lt_prog_compiler_wl='-Wl,'
13193 # All Alpha code is PIC.
13194 lt_prog_compiler_static='-non_shared'
13195 ;;
cristy5c40fb42010-08-05 16:12:44 +000013196 xl*)
13197 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013198 lt_prog_compiler_wl='-Wl,'
13199 lt_prog_compiler_pic='-qpic'
13200 lt_prog_compiler_static='-qstaticlink'
13201 ;;
13202 *)
13203 case `$CC -V 2>&1 | sed 5q` in
13204 *Sun\ C*)
13205 # Sun C 5.9
13206 lt_prog_compiler_pic='-KPIC'
13207 lt_prog_compiler_static='-Bstatic'
13208 lt_prog_compiler_wl='-Wl,'
13209 ;;
cristy5c40fb42010-08-05 16:12:44 +000013210 *Sun\ F*)
13211 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13212 lt_prog_compiler_pic='-KPIC'
13213 lt_prog_compiler_static='-Bstatic'
13214 lt_prog_compiler_wl=''
13215 ;;
cristy3ed852e2009-09-05 21:47:34 +000013216 esac
13217 ;;
13218 esac
13219 ;;
13220
13221 newsos6)
13222 lt_prog_compiler_pic='-KPIC'
13223 lt_prog_compiler_static='-Bstatic'
13224 ;;
13225
13226 *nto* | *qnx*)
13227 # QNX uses GNU C++, but need to define -shared option too, otherwise
13228 # it will coredump.
13229 lt_prog_compiler_pic='-fPIC -shared'
13230 ;;
13231
13232 osf3* | osf4* | osf5*)
13233 lt_prog_compiler_wl='-Wl,'
13234 # All OSF/1 code is PIC.
13235 lt_prog_compiler_static='-non_shared'
13236 ;;
13237
13238 rdos*)
13239 lt_prog_compiler_static='-non_shared'
13240 ;;
13241
13242 solaris*)
13243 lt_prog_compiler_pic='-KPIC'
13244 lt_prog_compiler_static='-Bstatic'
13245 case $cc_basename in
cristy5c40fb42010-08-05 16:12:44 +000013246 f77* | f90* | f95*)
cristy3ed852e2009-09-05 21:47:34 +000013247 lt_prog_compiler_wl='-Qoption ld ';;
13248 *)
13249 lt_prog_compiler_wl='-Wl,';;
13250 esac
13251 ;;
13252
13253 sunos4*)
13254 lt_prog_compiler_wl='-Qoption ld '
13255 lt_prog_compiler_pic='-PIC'
13256 lt_prog_compiler_static='-Bstatic'
13257 ;;
13258
13259 sysv4 | sysv4.2uw2* | sysv4.3*)
13260 lt_prog_compiler_wl='-Wl,'
13261 lt_prog_compiler_pic='-KPIC'
13262 lt_prog_compiler_static='-Bstatic'
13263 ;;
13264
13265 sysv4*MP*)
13266 if test -d /usr/nec ;then
13267 lt_prog_compiler_pic='-Kconform_pic'
13268 lt_prog_compiler_static='-Bstatic'
13269 fi
13270 ;;
13271
13272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13273 lt_prog_compiler_wl='-Wl,'
13274 lt_prog_compiler_pic='-KPIC'
13275 lt_prog_compiler_static='-Bstatic'
13276 ;;
13277
13278 unicos*)
13279 lt_prog_compiler_wl='-Wl,'
13280 lt_prog_compiler_can_build_shared=no
13281 ;;
13282
13283 uts4*)
13284 lt_prog_compiler_pic='-pic'
13285 lt_prog_compiler_static='-Bstatic'
13286 ;;
13287
13288 *)
13289 lt_prog_compiler_can_build_shared=no
13290 ;;
13291 esac
13292 fi
13293
13294case $host_os in
13295 # For platforms which do not support PIC, -DPIC is meaningless:
13296 *djgpp*)
13297 lt_prog_compiler_pic=
13298 ;;
13299 *)
13300 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13301 ;;
13302esac
cristy8b350f62009-11-15 23:12:43 +000013303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013304$as_echo "$lt_prog_compiler_pic" >&6; }
13305
13306
13307
13308
13309
13310
13311#
13312# Check to make sure the PIC flag actually works.
13313#
13314if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013316$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013317if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013318 $as_echo_n "(cached) " >&6
13319else
13320 lt_cv_prog_compiler_pic_works=no
13321 ac_outfile=conftest.$ac_objext
13322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13324 # Insert the option either (1) after the last *FLAGS variable, or
13325 # (2) before a word containing "conftest.", or (3) at the end.
13326 # Note that $ac_compile itself does not contain backslashes and begins
13327 # with a dollar sign (not a hyphen), so the echo should work correctly.
13328 # The option is referenced via a variable to avoid confusing sed.
13329 lt_compile=`echo "$ac_compile" | $SED \
13330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13332 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000013333 (eval echo "\"\$as_me:13333: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013334 (eval "$lt_compile" 2>conftest.err)
13335 ac_status=$?
13336 cat conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000013337 echo "$as_me:13337: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013338 if (exit $ac_status) && test -s "$ac_outfile"; then
13339 # The compiler can only warn and ignore the option if not recognized
13340 # So say no if there are warnings other than the usual output.
cristy5c40fb42010-08-05 16:12:44 +000013341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13344 lt_cv_prog_compiler_pic_works=yes
13345 fi
13346 fi
13347 $RM conftest*
13348
13349fi
cristy8b350f62009-11-15 23:12:43 +000013350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013351$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13352
13353if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13354 case $lt_prog_compiler_pic in
13355 "" | " "*) ;;
13356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13357 esac
13358else
13359 lt_prog_compiler_pic=
13360 lt_prog_compiler_can_build_shared=no
13361fi
13362
13363fi
13364
13365
13366
13367
13368
13369
13370#
13371# Check to make sure the static flag actually works.
13372#
13373wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013375$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013376if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013377 $as_echo_n "(cached) " >&6
13378else
13379 lt_cv_prog_compiler_static_works=no
13380 save_LDFLAGS="$LDFLAGS"
13381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13384 # The linker can only warn and ignore the option if not recognized
13385 # So say no if there are warnings
13386 if test -s conftest.err; then
13387 # Append any errors to the config.log.
13388 cat conftest.err 1>&5
cristy5c40fb42010-08-05 16:12:44 +000013389 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13391 if diff conftest.exp conftest.er2 >/dev/null; then
13392 lt_cv_prog_compiler_static_works=yes
13393 fi
13394 else
13395 lt_cv_prog_compiler_static_works=yes
13396 fi
13397 fi
13398 $RM -r conftest*
13399 LDFLAGS="$save_LDFLAGS"
13400
13401fi
cristy8b350f62009-11-15 23:12:43 +000013402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013403$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13404
13405if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13406 :
13407else
13408 lt_prog_compiler_static=
13409fi
13410
13411
13412
13413
13414
13415
13416
cristy8b350f62009-11-15 23:12:43 +000013417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013419if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013420 $as_echo_n "(cached) " >&6
13421else
13422 lt_cv_prog_compiler_c_o=no
13423 $RM -r conftest 2>/dev/null
13424 mkdir conftest
13425 cd conftest
13426 mkdir out
13427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13428
13429 lt_compiler_flag="-o out/conftest2.$ac_objext"
13430 # Insert the option either (1) after the last *FLAGS variable, or
13431 # (2) before a word containing "conftest.", or (3) at the end.
13432 # Note that $ac_compile itself does not contain backslashes and begins
13433 # with a dollar sign (not a hyphen), so the echo should work correctly.
13434 lt_compile=`echo "$ac_compile" | $SED \
13435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13437 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000013438 (eval echo "\"\$as_me:13438: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013439 (eval "$lt_compile" 2>out/conftest.err)
13440 ac_status=$?
13441 cat out/conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000013442 echo "$as_me:13442: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013443 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13444 then
13445 # The compiler can only warn and ignore the option if not recognized
13446 # So say no if there are warnings
cristy5c40fb42010-08-05 16:12:44 +000013447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13450 lt_cv_prog_compiler_c_o=yes
13451 fi
13452 fi
13453 chmod u+w . 2>&5
13454 $RM conftest*
13455 # SGI C++ compiler will create directory out/ii_files/ for
13456 # template instantiation
13457 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13458 $RM out/* && rmdir out
13459 cd ..
13460 $RM -r conftest
13461 $RM conftest*
13462
13463fi
cristy8b350f62009-11-15 23:12:43 +000013464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13466
13467
13468
13469
13470
13471
cristy8b350f62009-11-15 23:12:43 +000013472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013473$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013474if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013475 $as_echo_n "(cached) " >&6
13476else
13477 lt_cv_prog_compiler_c_o=no
13478 $RM -r conftest 2>/dev/null
13479 mkdir conftest
13480 cd conftest
13481 mkdir out
13482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13483
13484 lt_compiler_flag="-o out/conftest2.$ac_objext"
13485 # Insert the option either (1) after the last *FLAGS variable, or
13486 # (2) before a word containing "conftest.", or (3) at the end.
13487 # Note that $ac_compile itself does not contain backslashes and begins
13488 # with a dollar sign (not a hyphen), so the echo should work correctly.
13489 lt_compile=`echo "$ac_compile" | $SED \
13490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13492 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000013493 (eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013494 (eval "$lt_compile" 2>out/conftest.err)
13495 ac_status=$?
13496 cat out/conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000013497 echo "$as_me:13497: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13499 then
13500 # The compiler can only warn and ignore the option if not recognized
13501 # So say no if there are warnings
cristy5c40fb42010-08-05 16:12:44 +000013502 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13505 lt_cv_prog_compiler_c_o=yes
13506 fi
13507 fi
13508 chmod u+w . 2>&5
13509 $RM conftest*
13510 # SGI C++ compiler will create directory out/ii_files/ for
13511 # template instantiation
13512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13513 $RM out/* && rmdir out
13514 cd ..
13515 $RM -r conftest
13516 $RM conftest*
13517
13518fi
cristy8b350f62009-11-15 23:12:43 +000013519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013520$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13521
13522
13523
13524
13525hard_links="nottested"
13526if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13527 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013529$as_echo_n "checking if we can lock with hard links... " >&6; }
13530 hard_links=yes
13531 $RM conftest*
13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13533 touch conftest.a
13534 ln conftest.a conftest.b 2>&5 || hard_links=no
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013537$as_echo "$hard_links" >&6; }
13538 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013539 { $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 +000013540$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13541 need_locks=warn
13542 fi
13543else
13544 need_locks=no
13545fi
13546
13547
13548
13549
13550
13551
cristy8b350f62009-11-15 23:12:43 +000013552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013553$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13554
13555 runpath_var=
13556 allow_undefined_flag=
13557 always_export_symbols=no
13558 archive_cmds=
13559 archive_expsym_cmds=
13560 compiler_needs_object=no
13561 enable_shared_with_static_runtimes=no
13562 export_dynamic_flag_spec=
13563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13564 hardcode_automatic=no
13565 hardcode_direct=no
13566 hardcode_direct_absolute=no
13567 hardcode_libdir_flag_spec=
13568 hardcode_libdir_flag_spec_ld=
13569 hardcode_libdir_separator=
13570 hardcode_minus_L=no
13571 hardcode_shlibpath_var=unsupported
13572 inherit_rpath=no
13573 link_all_deplibs=unknown
13574 module_cmds=
13575 module_expsym_cmds=
13576 old_archive_from_new_cmds=
13577 old_archive_from_expsyms_cmds=
13578 thread_safe_flag_spec=
13579 whole_archive_flag_spec=
13580 # include_expsyms should be a list of space-separated symbols to be *always*
13581 # included in the symbol list
13582 include_expsyms=
13583 # exclude_expsyms can be an extended regexp of symbols to exclude
13584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13586 # as well as any symbol that contains `d'.
13587 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13589 # platforms (ab)use it in PIC code, but their linkers get confused if
13590 # the symbol is explicitly referenced. Since portable code cannot
13591 # rely on this symbol name, it's probably fine to never include it in
13592 # preloaded symbol tables.
13593 # Exclude shared library initialization/finalization symbols.
13594 extract_expsyms_cmds=
13595
13596 case $host_os in
13597 cygwin* | mingw* | pw32* | cegcc*)
13598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13599 # When not using gcc, we currently assume that we are using
13600 # Microsoft Visual C++.
13601 if test "$GCC" != yes; then
13602 with_gnu_ld=no
13603 fi
13604 ;;
13605 interix*)
13606 # we just hope/assume this is gcc and not c89 (= MSVC++)
13607 with_gnu_ld=yes
13608 ;;
13609 openbsd*)
13610 with_gnu_ld=no
13611 ;;
13612 esac
13613
13614 ld_shlibs=yes
13615 if test "$with_gnu_ld" = yes; then
13616 # If archive_cmds runs LD, not CC, wlarc should be empty
13617 wlarc='${wl}'
13618
13619 # Set some defaults for GNU ld with shared library support. These
13620 # are reset later if shared libraries are not supported. Putting them
13621 # here allows them to be overridden if necessary.
13622 runpath_var=LD_RUN_PATH
13623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13624 export_dynamic_flag_spec='${wl}--export-dynamic'
13625 # ancient GNU ld didn't support --whole-archive et. al.
13626 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13627 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13628 else
13629 whole_archive_flag_spec=
13630 fi
13631 supports_anon_versioning=no
13632 case `$LD -v 2>&1` in
13633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13636 *\ 2.11.*) ;; # other 2.11 versions
13637 *) supports_anon_versioning=yes ;;
13638 esac
13639
13640 # See if GNU ld supports shared libraries.
13641 case $host_os in
13642 aix[3-9]*)
13643 # On AIX/PPC, the GNU linker is very broken
13644 if test "$host_cpu" != ia64; then
13645 ld_shlibs=no
13646 cat <<_LT_EOF 1>&2
13647
cristy5c40fb42010-08-05 16:12:44 +000013648*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013649*** to be unable to reliably create shared libraries on AIX.
13650*** Therefore, libtool is disabling shared libraries support. If you
cristy5c40fb42010-08-05 16:12:44 +000013651*** really care for shared libraries, you may want to modify your PATH
13652*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013653
13654_LT_EOF
13655 fi
13656 ;;
13657
13658 amigaos*)
13659 case $host_cpu in
13660 powerpc)
13661 # see comment about AmigaOS4 .so support
13662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 archive_expsym_cmds=''
13664 ;;
13665 m68k)
13666 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)'
13667 hardcode_libdir_flag_spec='-L$libdir'
13668 hardcode_minus_L=yes
13669 ;;
13670 esac
13671 ;;
13672
13673 beos*)
13674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13675 allow_undefined_flag=unsupported
13676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13677 # support --undefined. This deserves some investigation. FIXME
13678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13679 else
13680 ld_shlibs=no
13681 fi
13682 ;;
13683
13684 cygwin* | mingw* | pw32* | cegcc*)
13685 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13686 # as there is no search path for DLLs.
13687 hardcode_libdir_flag_spec='-L$libdir'
13688 allow_undefined_flag=unsupported
13689 always_export_symbols=no
13690 enable_shared_with_static_runtimes=yes
13691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13692
13693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13695 # If the export-symbols file already is a .def file (1st line
13696 # is EXPORTS), use it as is; otherwise, prepend...
13697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13698 cp $export_symbols $output_objdir/$soname.def;
13699 else
13700 echo EXPORTS > $output_objdir/$soname.def;
13701 cat $export_symbols >> $output_objdir/$soname.def;
13702 fi~
13703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13704 else
13705 ld_shlibs=no
13706 fi
13707 ;;
13708
13709 interix[3-9]*)
13710 hardcode_direct=no
13711 hardcode_shlibpath_var=no
13712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13713 export_dynamic_flag_spec='${wl}-E'
13714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13715 # Instead, shared libraries are loaded at an image base (0x10000000 by
13716 # default) and relocated if they conflict, which is a slow very memory
13717 # consuming and fragmenting process. To avoid this, we pick a random,
13718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13721 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'
13722 ;;
13723
cristy5c40fb42010-08-05 16:12:44 +000013724 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013725 tmp_diet=no
13726 if test "$host_os" = linux-dietlibc; then
13727 case $cc_basename in
13728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13729 esac
13730 fi
13731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13732 && test "$tmp_diet" = no
13733 then
13734 tmp_addflag=
13735 tmp_sharedflag='-shared'
13736 case $cc_basename,$host_cpu in
13737 pgcc*) # Portland Group C compiler
cristy5c40fb42010-08-05 16:12:44 +000013738 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 +000013739 tmp_addflag=' $pic_flag'
13740 ;;
cristy5c40fb42010-08-05 16:12:44 +000013741 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13742 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
cristy3ed852e2009-09-05 21:47:34 +000013743 tmp_addflag=' $pic_flag -Mnomain' ;;
13744 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13745 tmp_addflag=' -i_dynamic' ;;
13746 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13747 tmp_addflag=' -i_dynamic -nofor_main' ;;
13748 ifc* | ifort*) # Intel Fortran compiler
13749 tmp_addflag=' -nofor_main' ;;
13750 lf95*) # Lahey Fortran 8.1
13751 whole_archive_flag_spec=
13752 tmp_sharedflag='--shared' ;;
cristy5c40fb42010-08-05 16:12:44 +000013753 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013754 tmp_sharedflag='-qmkshrobj'
13755 tmp_addflag= ;;
13756 esac
13757 case `$CC -V 2>&1 | sed 5q` in
13758 *Sun\ C*) # Sun C 5.9
cristy5c40fb42010-08-05 16:12:44 +000013759 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 +000013760 compiler_needs_object=yes
13761 tmp_sharedflag='-G' ;;
13762 *Sun\ F*) # Sun Fortran 8.3
13763 tmp_sharedflag='-G' ;;
13764 esac
13765 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766
13767 if test "x$supports_anon_versioning" = xyes; then
13768 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13770 echo "local: *; };" >> $output_objdir/$libname.ver~
13771 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13772 fi
13773
13774 case $cc_basename in
cristy5c40fb42010-08-05 16:12:44 +000013775 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013776 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13777 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13778 hardcode_libdir_flag_spec=
13779 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy5c40fb42010-08-05 16:12:44 +000013780 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013781 if test "x$supports_anon_versioning" = xyes; then
13782 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13784 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy5c40fb42010-08-05 16:12:44 +000013785 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000013786 fi
13787 ;;
13788 esac
13789 else
13790 ld_shlibs=no
13791 fi
13792 ;;
13793
13794 netbsd*)
13795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13796 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13797 wlarc=
13798 else
13799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13801 fi
13802 ;;
13803
13804 solaris*)
13805 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13806 ld_shlibs=no
13807 cat <<_LT_EOF 1>&2
13808
13809*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13810*** create shared libraries on Solaris systems. Therefore, libtool
13811*** is disabling shared libraries support. We urge you to upgrade GNU
13812*** binutils to release 2.9.1 or newer. Another option is to modify
13813*** your PATH or compiler configuration so that the native linker is
13814*** used, and then restart.
13815
13816_LT_EOF
13817 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13820 else
13821 ld_shlibs=no
13822 fi
13823 ;;
13824
13825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13826 case `$LD -v 2>&1` in
13827 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13828 ld_shlibs=no
13829 cat <<_LT_EOF 1>&2
13830
13831*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13832*** reliably create shared libraries on SCO systems. Therefore, libtool
13833*** is disabling shared libraries support. We urge you to upgrade GNU
13834*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13835*** your PATH or compiler configuration so that the native linker is
13836*** used, and then restart.
13837
13838_LT_EOF
13839 ;;
13840 *)
13841 # For security reasons, it is highly recommended that you always
13842 # use absolute paths for naming shared libraries, and exclude the
13843 # DT_RUNPATH tag from executables and libraries. But doing so
13844 # requires that you compile everything twice, which is a pain.
13845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13849 else
13850 ld_shlibs=no
13851 fi
13852 ;;
13853 esac
13854 ;;
13855
13856 sunos4*)
13857 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13858 wlarc=
13859 hardcode_direct=yes
13860 hardcode_shlibpath_var=no
13861 ;;
13862
13863 *)
13864 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13867 else
13868 ld_shlibs=no
13869 fi
13870 ;;
13871 esac
13872
13873 if test "$ld_shlibs" = no; then
13874 runpath_var=
13875 hardcode_libdir_flag_spec=
13876 export_dynamic_flag_spec=
13877 whole_archive_flag_spec=
13878 fi
13879 else
13880 # PORTME fill in a description of your system's linker (not GNU ld)
13881 case $host_os in
13882 aix3*)
13883 allow_undefined_flag=unsupported
13884 always_export_symbols=yes
13885 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'
13886 # Note: this linker hardcodes the directories in LIBPATH if there
13887 # are no directories specified by -L.
13888 hardcode_minus_L=yes
13889 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13890 # Neither direct hardcoding nor static linking is supported with a
13891 # broken collect2.
13892 hardcode_direct=unsupported
13893 fi
13894 ;;
13895
13896 aix[4-9]*)
13897 if test "$host_cpu" = ia64; then
13898 # On IA64, the linker does run time linking by default, so we don't
13899 # have to do anything special.
13900 aix_use_runtimelinking=no
13901 exp_sym_flag='-Bexport'
13902 no_entry_flag=""
13903 else
13904 # If we're using GNU nm, then we don't want the "-C" option.
13905 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13906 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy5c40fb42010-08-05 16:12:44 +000013907 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 +000013908 else
13909 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'
13910 fi
13911 aix_use_runtimelinking=no
13912
13913 # Test if we are trying to use run time linking or normal
13914 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13915 # need to do runtime linking.
13916 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13917 for ld_flag in $LDFLAGS; do
13918 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13919 aix_use_runtimelinking=yes
13920 break
13921 fi
13922 done
13923 ;;
13924 esac
13925
13926 exp_sym_flag='-bexport'
13927 no_entry_flag='-bnoentry'
13928 fi
13929
13930 # When large executables or shared objects are built, AIX ld can
13931 # have problems creating the table of contents. If linking a library
13932 # or program results in "error TOC overflow" add -mminimal-toc to
13933 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13934 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13935
13936 archive_cmds=''
13937 hardcode_direct=yes
13938 hardcode_direct_absolute=yes
13939 hardcode_libdir_separator=':'
13940 link_all_deplibs=yes
13941 file_list_spec='${wl}-f,'
13942
13943 if test "$GCC" = yes; then
13944 case $host_os in aix4.[012]|aix4.[012].*)
13945 # We only want to do this on AIX 4.2 and lower, the check
13946 # below for broken collect2 doesn't work under 4.3+
13947 collect2name=`${CC} -print-prog-name=collect2`
13948 if test -f "$collect2name" &&
13949 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13950 then
13951 # We have reworked collect2
13952 :
13953 else
13954 # We have old collect2
13955 hardcode_direct=unsupported
13956 # It fails to find uninstalled libraries when the uninstalled
13957 # path is not listed in the libpath. Setting hardcode_minus_L
13958 # to unsupported forces relinking
13959 hardcode_minus_L=yes
13960 hardcode_libdir_flag_spec='-L$libdir'
13961 hardcode_libdir_separator=
13962 fi
13963 ;;
13964 esac
13965 shared_flag='-shared'
13966 if test "$aix_use_runtimelinking" = yes; then
13967 shared_flag="$shared_flag "'${wl}-G'
13968 fi
13969 else
13970 # not using gcc
13971 if test "$host_cpu" = ia64; then
13972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13973 # chokes on -Wl,-G. The following line is correct:
13974 shared_flag='-G'
13975 else
13976 if test "$aix_use_runtimelinking" = yes; then
13977 shared_flag='${wl}-G'
13978 else
13979 shared_flag='${wl}-bM:SRE'
13980 fi
13981 fi
13982 fi
13983
13984 export_dynamic_flag_spec='${wl}-bexpall'
13985 # It seems that -bexpall does not export symbols beginning with
13986 # underscore (_), so it is better to generate a list of symbols to export.
13987 always_export_symbols=yes
13988 if test "$aix_use_runtimelinking" = yes; then
13989 # Warning - without using the other runtime loading flags (-brtl),
13990 # -berok will link without error, but may produce a broken library.
13991 allow_undefined_flag='-berok'
13992 # Determine the default libpath from the value encoded in an
13993 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013995/* end confdefs.h. */
13996
13997int
13998main ()
13999{
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014006
14007lt_aix_libpath_sed='
14008 /Import File Strings/,/^$/ {
14009 /^0/ {
14010 s/^0 *\(.*\)$/\1/
14011 p
14012 }
14013 }'
14014aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14015# Check for a 64-bit object if we didn't find anything.
14016if test -z "$aix_libpath"; then
14017 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14018fi
cristy3ed852e2009-09-05 21:47:34 +000014019fi
cristy8b350f62009-11-15 23:12:43 +000014020rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14023
14024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy5c40fb42010-08-05 16:12:44 +000014025 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 +000014026 else
14027 if test "$host_cpu" = ia64; then
14028 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14029 allow_undefined_flag="-z nodefs"
14030 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"
14031 else
14032 # Determine the default libpath from the value encoded in an
14033 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014035/* end confdefs.h. */
14036
14037int
14038main ()
14039{
14040
14041 ;
14042 return 0;
14043}
14044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014045if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014046
14047lt_aix_libpath_sed='
14048 /Import File Strings/,/^$/ {
14049 /^0/ {
14050 s/^0 *\(.*\)$/\1/
14051 p
14052 }
14053 }'
14054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055# Check for a 64-bit object if we didn't find anything.
14056if test -z "$aix_libpath"; then
14057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14058fi
cristy3ed852e2009-09-05 21:47:34 +000014059fi
cristy8b350f62009-11-15 23:12:43 +000014060rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14063
14064 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14065 # Warning - without using the other run time loading flags,
14066 # -berok will link without error, but may produce a broken library.
14067 no_undefined_flag=' ${wl}-bernotok'
14068 allow_undefined_flag=' ${wl}-berok'
cristy5c40fb42010-08-05 16:12:44 +000014069 # Exported symbols can be pulled into shared objects from archives
14070 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014071 archive_cmds_need_lc=yes
14072 # This is similar to how AIX traditionally builds its shared libraries.
14073 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'
14074 fi
14075 fi
14076 ;;
14077
14078 amigaos*)
14079 case $host_cpu in
14080 powerpc)
14081 # see comment about AmigaOS4 .so support
14082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 archive_expsym_cmds=''
14084 ;;
14085 m68k)
14086 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)'
14087 hardcode_libdir_flag_spec='-L$libdir'
14088 hardcode_minus_L=yes
14089 ;;
14090 esac
14091 ;;
14092
14093 bsdi[45]*)
14094 export_dynamic_flag_spec=-rdynamic
14095 ;;
14096
14097 cygwin* | mingw* | pw32* | cegcc*)
14098 # When not using gcc, we currently assume that we are using
14099 # Microsoft Visual C++.
14100 # hardcode_libdir_flag_spec is actually meaningless, as there is
14101 # no search path for DLLs.
14102 hardcode_libdir_flag_spec=' '
14103 allow_undefined_flag=unsupported
14104 # Tell ltmain to make .lib files, not .a files.
14105 libext=lib
14106 # Tell ltmain to make .dll files, not .so files.
14107 shrext_cmds=".dll"
14108 # FIXME: Setting linknames here is a bad hack.
cristy5c40fb42010-08-05 16:12:44 +000014109 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014110 # The linker will automatically build a .lib file if we build a DLL.
14111 old_archive_from_new_cmds='true'
14112 # FIXME: Should let the user specify the lib program.
14113 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14114 fix_srcfile_path='`cygpath -w "$srcfile"`'
14115 enable_shared_with_static_runtimes=yes
14116 ;;
14117
14118 darwin* | rhapsody*)
14119
14120
14121 archive_cmds_need_lc=no
14122 hardcode_direct=no
14123 hardcode_automatic=yes
14124 hardcode_shlibpath_var=unsupported
cristy5c40fb42010-08-05 16:12:44 +000014125 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014126 link_all_deplibs=yes
14127 allow_undefined_flag="$_lt_dar_allow_undefined"
14128 case $cc_basename in
14129 ifort*) _lt_dar_can_shared=yes ;;
14130 *) _lt_dar_can_shared=$GCC ;;
14131 esac
14132 if test "$_lt_dar_can_shared" = "yes"; then
cristy5c40fb42010-08-05 16:12:44 +000014133 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014134 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14135 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14136 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}"
14137 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}"
14138
14139 else
14140 ld_shlibs=no
14141 fi
14142
14143 ;;
14144
14145 dgux*)
14146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_libdir_flag_spec='-L$libdir'
14148 hardcode_shlibpath_var=no
14149 ;;
14150
14151 freebsd1*)
14152 ld_shlibs=no
14153 ;;
14154
14155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14156 # support. Future versions do this automatically, but an explicit c++rt0.o
14157 # does not break anything, and helps significantly (at the cost of a little
14158 # extra space).
14159 freebsd2.2*)
14160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14161 hardcode_libdir_flag_spec='-R$libdir'
14162 hardcode_direct=yes
14163 hardcode_shlibpath_var=no
14164 ;;
14165
14166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14167 freebsd2*)
14168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14169 hardcode_direct=yes
14170 hardcode_minus_L=yes
14171 hardcode_shlibpath_var=no
14172 ;;
14173
14174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14175 freebsd* | dragonfly*)
14176 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14177 hardcode_libdir_flag_spec='-R$libdir'
14178 hardcode_direct=yes
14179 hardcode_shlibpath_var=no
14180 ;;
14181
14182 hpux9*)
14183 if test "$GCC" = yes; then
14184 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'
14185 else
14186 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'
14187 fi
14188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14189 hardcode_libdir_separator=:
14190 hardcode_direct=yes
14191
14192 # hardcode_minus_L: Not really in the search PATH,
14193 # but as the default location of the library.
14194 hardcode_minus_L=yes
14195 export_dynamic_flag_spec='${wl}-E'
14196 ;;
14197
14198 hpux10*)
cristy5c40fb42010-08-05 16:12:44 +000014199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201 else
14202 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14203 fi
14204 if test "$with_gnu_ld" = no; then
14205 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14206 hardcode_libdir_flag_spec_ld='+b $libdir'
14207 hardcode_libdir_separator=:
14208 hardcode_direct=yes
14209 hardcode_direct_absolute=yes
14210 export_dynamic_flag_spec='${wl}-E'
14211 # hardcode_minus_L: Not really in the search PATH,
14212 # but as the default location of the library.
14213 hardcode_minus_L=yes
14214 fi
14215 ;;
14216
14217 hpux11*)
cristy5c40fb42010-08-05 16:12:44 +000014218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014219 case $host_cpu in
14220 hppa*64*)
14221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14222 ;;
14223 ia64*)
14224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14225 ;;
14226 *)
14227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14228 ;;
14229 esac
14230 else
14231 case $host_cpu in
14232 hppa*64*)
14233 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14234 ;;
14235 ia64*)
14236 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14237 ;;
14238 *)
cristy5c40fb42010-08-05 16:12:44 +000014239 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 +000014240 ;;
14241 esac
14242 fi
14243 if test "$with_gnu_ld" = no; then
14244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14245 hardcode_libdir_separator=:
14246
14247 case $host_cpu in
14248 hppa*64*|ia64*)
14249 hardcode_direct=no
14250 hardcode_shlibpath_var=no
14251 ;;
14252 *)
14253 hardcode_direct=yes
14254 hardcode_direct_absolute=yes
14255 export_dynamic_flag_spec='${wl}-E'
14256
14257 # hardcode_minus_L: Not really in the search PATH,
14258 # but as the default location of the library.
14259 hardcode_minus_L=yes
14260 ;;
14261 esac
14262 fi
14263 ;;
14264
14265 irix5* | irix6* | nonstopux*)
14266 if test "$GCC" = yes; then
cristy5c40fb42010-08-05 16:12:44 +000014267 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 +000014268 # Try to use the -exported_symbol ld option, if it does not
14269 # work, assume that -exports_file does not work either and
14270 # implicitly export all symbols.
14271 save_LDFLAGS="$LDFLAGS"
14272 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014275int foo(void) {}
14276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014277if ac_fn_c_try_link "$LINENO"; then :
cristy5c40fb42010-08-05 16:12:44 +000014278 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 +000014279
cristy3ed852e2009-09-05 21:47:34 +000014280fi
cristy8b350f62009-11-15 23:12:43 +000014281rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014283 LDFLAGS="$save_LDFLAGS"
14284 else
cristy5c40fb42010-08-05 16:12:44 +000014285 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'
14286 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 +000014287 fi
14288 archive_cmds_need_lc='no'
14289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14290 hardcode_libdir_separator=:
14291 inherit_rpath=yes
14292 link_all_deplibs=yes
14293 ;;
14294
14295 netbsd*)
14296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14298 else
14299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14300 fi
14301 hardcode_libdir_flag_spec='-R$libdir'
14302 hardcode_direct=yes
14303 hardcode_shlibpath_var=no
14304 ;;
14305
14306 newsos6)
14307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308 hardcode_direct=yes
14309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14310 hardcode_libdir_separator=:
14311 hardcode_shlibpath_var=no
14312 ;;
14313
14314 *nto* | *qnx*)
14315 ;;
14316
14317 openbsd*)
14318 if test -f /usr/libexec/ld.so; then
14319 hardcode_direct=yes
14320 hardcode_shlibpath_var=no
14321 hardcode_direct_absolute=yes
14322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14326 export_dynamic_flag_spec='${wl}-E'
14327 else
14328 case $host_os in
14329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14331 hardcode_libdir_flag_spec='-R$libdir'
14332 ;;
14333 *)
14334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14336 ;;
14337 esac
14338 fi
14339 else
14340 ld_shlibs=no
14341 fi
14342 ;;
14343
14344 os2*)
14345 hardcode_libdir_flag_spec='-L$libdir'
14346 hardcode_minus_L=yes
14347 allow_undefined_flag=unsupported
cristy5c40fb42010-08-05 16:12:44 +000014348 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 +000014349 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14350 ;;
14351
14352 osf3*)
14353 if test "$GCC" = yes; then
14354 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy5c40fb42010-08-05 16:12:44 +000014355 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 +000014356 else
14357 allow_undefined_flag=' -expect_unresolved \*'
cristy5c40fb42010-08-05 16:12:44 +000014358 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 +000014359 fi
14360 archive_cmds_need_lc='no'
14361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14362 hardcode_libdir_separator=:
14363 ;;
14364
14365 osf4* | osf5*) # as osf3* with the addition of -msym flag
14366 if test "$GCC" = yes; then
14367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy5c40fb42010-08-05 16:12:44 +000014368 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 +000014369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14370 else
14371 allow_undefined_flag=' -expect_unresolved \*'
cristy5c40fb42010-08-05 16:12:44 +000014372 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 +000014373 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~
cristy5c40fb42010-08-05 16:12:44 +000014374 $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 +000014375
14376 # Both c and cxx compiler support -rpath directly
14377 hardcode_libdir_flag_spec='-rpath $libdir'
14378 fi
14379 archive_cmds_need_lc='no'
14380 hardcode_libdir_separator=:
14381 ;;
14382
14383 solaris*)
14384 no_undefined_flag=' -z defs'
14385 if test "$GCC" = yes; then
14386 wlarc='${wl}'
14387 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14389 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14390 else
14391 case `$CC -V 2>&1` in
14392 *"Compilers 5.0"*)
14393 wlarc=''
14394 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14395 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14397 ;;
14398 *)
14399 wlarc='${wl}'
14400 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14402 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14403 ;;
14404 esac
14405 fi
14406 hardcode_libdir_flag_spec='-R$libdir'
14407 hardcode_shlibpath_var=no
14408 case $host_os in
14409 solaris2.[0-5] | solaris2.[0-5].*) ;;
14410 *)
14411 # The compiler driver will combine and reorder linker options,
14412 # but understands `-z linker_flag'. GCC discards it without `$wl',
14413 # but is careful enough not to reorder.
14414 # Supported since Solaris 2.6 (maybe 2.5.1?)
14415 if test "$GCC" = yes; then
14416 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14417 else
14418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14419 fi
14420 ;;
14421 esac
14422 link_all_deplibs=yes
14423 ;;
14424
14425 sunos4*)
14426 if test "x$host_vendor" = xsequent; then
14427 # Use $CC to link under sequent, because it throws in some extra .o
14428 # files that make .init and .fini sections work.
14429 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14430 else
14431 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14432 fi
14433 hardcode_libdir_flag_spec='-L$libdir'
14434 hardcode_direct=yes
14435 hardcode_minus_L=yes
14436 hardcode_shlibpath_var=no
14437 ;;
14438
14439 sysv4)
14440 case $host_vendor in
14441 sni)
14442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14443 hardcode_direct=yes # is this really true???
14444 ;;
14445 siemens)
14446 ## LD is ld it makes a PLAMLIB
14447 ## CC just makes a GrossModule.
14448 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14449 reload_cmds='$CC -r -o $output$reload_objs'
14450 hardcode_direct=no
14451 ;;
14452 motorola)
14453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14454 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14455 ;;
14456 esac
14457 runpath_var='LD_RUN_PATH'
14458 hardcode_shlibpath_var=no
14459 ;;
14460
14461 sysv4.3*)
14462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463 hardcode_shlibpath_var=no
14464 export_dynamic_flag_spec='-Bexport'
14465 ;;
14466
14467 sysv4*MP*)
14468 if test -d /usr/nec; then
14469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14470 hardcode_shlibpath_var=no
14471 runpath_var=LD_RUN_PATH
14472 hardcode_runpath_var=yes
14473 ld_shlibs=yes
14474 fi
14475 ;;
14476
14477 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14478 no_undefined_flag='${wl}-z,text'
14479 archive_cmds_need_lc=no
14480 hardcode_shlibpath_var=no
14481 runpath_var='LD_RUN_PATH'
14482
14483 if test "$GCC" = yes; then
14484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 else
14487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 fi
14490 ;;
14491
14492 sysv5* | sco3.2v5* | sco5v6*)
14493 # Note: We can NOT use -z defs as we might desire, because we do not
14494 # link with -lc, and that would cause any symbols used from libc to
14495 # always be unresolved, which means just about no library would
14496 # ever link correctly. If we're not using GNU ld we use -z text
14497 # though, which does catch some bad symbols but isn't as heavy-handed
14498 # as -z defs.
14499 no_undefined_flag='${wl}-z,text'
14500 allow_undefined_flag='${wl}-z,nodefs'
14501 archive_cmds_need_lc=no
14502 hardcode_shlibpath_var=no
14503 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14504 hardcode_libdir_separator=':'
14505 link_all_deplibs=yes
14506 export_dynamic_flag_spec='${wl}-Bexport'
14507 runpath_var='LD_RUN_PATH'
14508
14509 if test "$GCC" = yes; then
14510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 else
14513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 fi
14516 ;;
14517
14518 uts4*)
14519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520 hardcode_libdir_flag_spec='-L$libdir'
14521 hardcode_shlibpath_var=no
14522 ;;
14523
14524 *)
14525 ld_shlibs=no
14526 ;;
14527 esac
14528
14529 if test x$host_vendor = xsni; then
14530 case $host in
14531 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14532 export_dynamic_flag_spec='${wl}-Blargedynsym'
14533 ;;
14534 esac
14535 fi
14536 fi
14537
cristy8b350f62009-11-15 23:12:43 +000014538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014539$as_echo "$ld_shlibs" >&6; }
14540test "$ld_shlibs" = no && can_build_shared=no
14541
14542with_gnu_ld=$with_gnu_ld
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558#
14559# Do we need to explicitly link libc?
14560#
14561case "x$archive_cmds_need_lc" in
14562x|xyes)
14563 # Assume -lc should be added
14564 archive_cmds_need_lc=yes
14565
14566 if test "$enable_shared" = yes && test "$GCC" = yes; then
14567 case $archive_cmds in
14568 *'~'*)
14569 # FIXME: we may have to deal with multi-command sequences.
14570 ;;
14571 '$CC '*)
14572 # Test whether the compiler implicitly links with -lc since on some
14573 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14574 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014576$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +000014577 $RM conftest*
14578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014579
cristy5c40fb42010-08-05 16:12:44 +000014580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014581 (eval $ac_compile) 2>&5
14582 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14584 test $ac_status = 0; } 2>conftest.err; then
cristy5c40fb42010-08-05 16:12:44 +000014585 soname=conftest
14586 lib=conftest
14587 libobjs=conftest.$ac_objext
14588 deplibs=
14589 wl=$lt_prog_compiler_wl
14590 pic_flag=$lt_prog_compiler_pic
14591 compiler_flags=-v
14592 linker_flags=-v
14593 verstring=
14594 output_objdir=.
14595 libname=conftest
14596 lt_save_allow_undefined_flag=$allow_undefined_flag
14597 allow_undefined_flag=
14598 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 +000014599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14600 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602 test $ac_status = 0; }
cristy5c40fb42010-08-05 16:12:44 +000014603 then
14604 archive_cmds_need_lc=no
14605 else
14606 archive_cmds_need_lc=yes
14607 fi
14608 allow_undefined_flag=$lt_save_allow_undefined_flag
14609 else
14610 cat conftest.err 1>&5
14611 fi
14612 $RM conftest*
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14614$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014615 ;;
14616 esac
14617 fi
14618 ;;
14619esac
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
cristy8b350f62009-11-15 23:12:43 +000014777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014778$as_echo_n "checking dynamic linker characteristics... " >&6; }
14779
14780if test "$GCC" = yes; then
14781 case $host_os in
14782 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14783 *) lt_awk_arg="/^libraries:/" ;;
14784 esac
cristy5c40fb42010-08-05 16:12:44 +000014785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14786 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014787 # if the path contains ";" then we assume it to be the separator
14788 # otherwise default to the standard path separator (i.e. ":") - it is
14789 # assumed that no part of a normal pathname contains ";" but that should
14790 # okay in the real world where ";" in dirpaths is itself problematic.
cristy5c40fb42010-08-05 16:12:44 +000014791 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14792 else
14793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14794 fi
cristy3ed852e2009-09-05 21:47:34 +000014795 # Ok, now we have the path, separated by spaces, we can step through it
14796 # and add multilib dir if necessary.
14797 lt_tmp_lt_search_path_spec=
14798 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14799 for lt_sys_path in $lt_search_path_spec; do
14800 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14802 else
14803 test -d "$lt_sys_path" && \
14804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14805 fi
14806 done
cristy5c40fb42010-08-05 16:12:44 +000014807 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014808BEGIN {RS=" "; FS="/|\n";} {
14809 lt_foo="";
14810 lt_count=0;
14811 for (lt_i = NF; lt_i > 0; lt_i--) {
14812 if ($lt_i != "" && $lt_i != ".") {
14813 if ($lt_i == "..") {
14814 lt_count++;
14815 } else {
14816 if (lt_count == 0) {
14817 lt_foo="/" $lt_i lt_foo;
14818 } else {
14819 lt_count--;
14820 }
14821 }
14822 }
14823 }
14824 if (lt_foo != "") { lt_freq[lt_foo]++; }
14825 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14826}'`
cristy5c40fb42010-08-05 16:12:44 +000014827 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014828else
14829 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14830fi
14831library_names_spec=
14832libname_spec='lib$name'
14833soname_spec=
14834shrext_cmds=".so"
14835postinstall_cmds=
14836postuninstall_cmds=
14837finish_cmds=
14838finish_eval=
14839shlibpath_var=
14840shlibpath_overrides_runpath=unknown
14841version_type=none
14842dynamic_linker="$host_os ld.so"
14843sys_lib_dlsearch_path_spec="/lib /usr/lib"
14844need_lib_prefix=unknown
14845hardcode_into_libs=no
14846
14847# when you set need_version to no, make sure it does not cause -set_version
14848# flags to be left without arguments
14849need_version=unknown
14850
14851case $host_os in
14852aix3*)
14853 version_type=linux
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14855 shlibpath_var=LIBPATH
14856
14857 # AIX 3 has no versioning support, so we append a major version to the name.
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 ;;
14860
14861aix[4-9]*)
14862 version_type=linux
14863 need_lib_prefix=no
14864 need_version=no
14865 hardcode_into_libs=yes
14866 if test "$host_cpu" = ia64; then
14867 # AIX 5 supports IA64
14868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 else
14871 # With GCC up to 2.95.x, collect2 would create an import file
14872 # for dependence libraries. The import file would start with
14873 # the line `#! .'. This would cause the generated library to
14874 # depend on `.', always an invalid library. This was fixed in
14875 # development snapshots of GCC prior to 3.0.
14876 case $host_os in
14877 aix4 | aix4.[01] | aix4.[01].*)
14878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14879 echo ' yes '
14880 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14881 :
14882 else
14883 can_build_shared=no
14884 fi
14885 ;;
14886 esac
14887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14888 # soname into executable. Probably we can add versioning support to
14889 # collect2, so additional links can be useful in future.
14890 if test "$aix_use_runtimelinking" = yes; then
14891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14892 # instead of lib<name>.a to let people know that these are not
14893 # typical AIX shared libraries.
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 else
14896 # We preserve .a as extension for shared libraries through AIX4.2
14897 # and later when we are not doing run time linking.
14898 library_names_spec='${libname}${release}.a $libname.a'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 fi
14901 shlibpath_var=LIBPATH
14902 fi
14903 ;;
14904
14905amigaos*)
14906 case $host_cpu in
14907 powerpc)
14908 # Since July 2007 AmigaOS4 officially supports .so libraries.
14909 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 ;;
14912 m68k)
14913 library_names_spec='$libname.ixlibrary $libname.a'
14914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy5c40fb42010-08-05 16:12:44 +000014915 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 +000014916 ;;
14917 esac
14918 ;;
14919
14920beos*)
14921 library_names_spec='${libname}${shared_ext}'
14922 dynamic_linker="$host_os ld.so"
14923 shlibpath_var=LIBRARY_PATH
14924 ;;
14925
14926bsdi[45]*)
14927 version_type=linux
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14934 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14935 # the default ld.so.conf also contains /usr/contrib/lib and
14936 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14937 # libtool to hard-code these into programs
14938 ;;
14939
14940cygwin* | mingw* | pw32* | cegcc*)
14941 version_type=windows
14942 shrext_cmds=".dll"
14943 need_version=no
14944 need_lib_prefix=no
14945
14946 case $GCC,$host_os in
14947 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14948 library_names_spec='$libname.dll.a'
14949 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14950 postinstall_cmds='base_file=`basename \${file}`~
14951 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14952 dldir=$destdir/`dirname \$dlpath`~
14953 test -d \$dldir || mkdir -p \$dldir~
14954 $install_prog $dir/$dlname \$dldir/$dlname~
14955 chmod a+x \$dldir/$dlname~
14956 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14957 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14958 fi'
14959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14960 dlpath=$dir/\$dldll~
14961 $RM \$dlpath'
14962 shlibpath_overrides_runpath=yes
14963
14964 case $host_os in
14965 cygwin*)
14966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy5c40fb42010-08-05 16:12:44 +000014968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014969 ;;
14970 mingw* | cegcc*)
14971 # MinGW DLLs use traditional 'lib' prefix
14972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy5c40fb42010-08-05 16:12:44 +000014973 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14975 # It is most probably a Windows format PATH printed by
14976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14977 # path with ; separators, and with drive letters. We can handle the
14978 # drive letters (cygwin fileutils understands them), so leave them,
14979 # especially as we might pass files found there to a mingw objdump,
14980 # which wouldn't understand a cygwinified path. Ahh.
14981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14982 else
14983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14984 fi
cristy3ed852e2009-09-05 21:47:34 +000014985 ;;
14986 pw32*)
14987 # pw32 DLLs use 'pw' prefix rather than 'lib'
14988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14989 ;;
14990 esac
14991 ;;
14992
14993 *)
14994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14995 ;;
14996 esac
14997 dynamic_linker='Win32 ld.exe'
14998 # FIXME: first we should search . and the directory the executable is in
14999 shlibpath_var=PATH
15000 ;;
15001
15002darwin* | rhapsody*)
15003 dynamic_linker="$host_os dyld"
15004 version_type=darwin
15005 need_lib_prefix=no
15006 need_version=no
15007 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15008 soname_spec='${libname}${release}${major}$shared_ext'
15009 shlibpath_overrides_runpath=yes
15010 shlibpath_var=DYLD_LIBRARY_PATH
15011 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15012
15013 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15015 ;;
15016
15017dgux*)
15018 version_type=linux
15019 need_lib_prefix=no
15020 need_version=no
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 ;;
15025
15026freebsd1*)
15027 dynamic_linker=no
15028 ;;
15029
15030freebsd* | dragonfly*)
15031 # DragonFly does not have aout. When/if they implement a new
15032 # versioning mechanism, adjust this.
15033 if test -x /usr/bin/objformat; then
15034 objformat=`/usr/bin/objformat`
15035 else
15036 case $host_os in
15037 freebsd[123]*) objformat=aout ;;
15038 *) objformat=elf ;;
15039 esac
15040 fi
15041 version_type=freebsd-$objformat
15042 case $version_type in
15043 freebsd-elf*)
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15045 need_version=no
15046 need_lib_prefix=no
15047 ;;
15048 freebsd-*)
15049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15050 need_version=yes
15051 ;;
15052 esac
15053 shlibpath_var=LD_LIBRARY_PATH
15054 case $host_os in
15055 freebsd2*)
15056 shlibpath_overrides_runpath=yes
15057 ;;
15058 freebsd3.[01]* | freebsdelf3.[01]*)
15059 shlibpath_overrides_runpath=yes
15060 hardcode_into_libs=yes
15061 ;;
15062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15064 shlibpath_overrides_runpath=no
15065 hardcode_into_libs=yes
15066 ;;
15067 *) # from 4.6 on, and DragonFly
15068 shlibpath_overrides_runpath=yes
15069 hardcode_into_libs=yes
15070 ;;
15071 esac
15072 ;;
15073
15074gnu*)
15075 version_type=linux
15076 need_lib_prefix=no
15077 need_version=no
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15079 soname_spec='${libname}${release}${shared_ext}$major'
15080 shlibpath_var=LD_LIBRARY_PATH
15081 hardcode_into_libs=yes
15082 ;;
15083
15084hpux9* | hpux10* | hpux11*)
15085 # Give a soname corresponding to the major version so that dld.sl refuses to
15086 # link against other versions.
15087 version_type=sunos
15088 need_lib_prefix=no
15089 need_version=no
15090 case $host_cpu in
15091 ia64*)
15092 shrext_cmds='.so'
15093 hardcode_into_libs=yes
15094 dynamic_linker="$host_os dld.so"
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 if test "X$HPUX_IA64_MODE" = X32; then
15100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15101 else
15102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15103 fi
15104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15105 ;;
15106 hppa*64*)
15107 shrext_cmds='.sl'
15108 hardcode_into_libs=yes
15109 dynamic_linker="$host_os dld.sl"
15110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15116 ;;
15117 *)
15118 shrext_cmds='.sl'
15119 dynamic_linker="$host_os dld.sl"
15120 shlibpath_var=SHLIB_PATH
15121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123 soname_spec='${libname}${release}${shared_ext}$major'
15124 ;;
15125 esac
cristy5c40fb42010-08-05 16:12:44 +000015126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015127 postinstall_cmds='chmod 555 $lib'
15128 ;;
15129
15130interix[3-9]*)
15131 version_type=linux
15132 need_lib_prefix=no
15133 need_version=no
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 shlibpath_overrides_runpath=no
15139 hardcode_into_libs=yes
15140 ;;
15141
15142irix5* | irix6* | nonstopux*)
15143 case $host_os in
15144 nonstopux*) version_type=nonstopux ;;
15145 *)
15146 if test "$lt_cv_prog_gnu_ld" = yes; then
15147 version_type=linux
15148 else
15149 version_type=irix
15150 fi ;;
15151 esac
15152 need_lib_prefix=no
15153 need_version=no
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15156 case $host_os in
15157 irix5* | nonstopux*)
15158 libsuff= shlibsuff=
15159 ;;
15160 *)
15161 case $LD in # libtool.m4 will add one of these switches to LD
15162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15163 libsuff= shlibsuff= libmagic=32-bit;;
15164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15165 libsuff=32 shlibsuff=N32 libmagic=N32;;
15166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15168 *) libsuff= shlibsuff= libmagic=never-match;;
15169 esac
15170 ;;
15171 esac
15172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15173 shlibpath_overrides_runpath=no
15174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15176 hardcode_into_libs=yes
15177 ;;
15178
15179# No shared lib support for Linux oldld, aout, or coff.
15180linux*oldld* | linux*aout* | linux*coff*)
15181 dynamic_linker=no
15182 ;;
15183
15184# This must be Linux ELF.
cristy5c40fb42010-08-05 16:12:44 +000015185linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015186 version_type=linux
15187 need_lib_prefix=no
15188 need_version=no
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15192 shlibpath_var=LD_LIBRARY_PATH
15193 shlibpath_overrides_runpath=no
15194 # Some binutils ld are patched to set DT_RUNPATH
cristy5c40fb42010-08-05 16:12:44 +000015195 save_LDFLAGS=$LDFLAGS
15196 save_libdir=$libdir
15197 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15198 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015200/* end confdefs.h. */
15201
15202int
15203main ()
15204{
15205
15206 ;
15207 return 0;
15208}
15209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015210if ac_fn_c_try_link "$LINENO"; then :
15211 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy5c40fb42010-08-05 16:12:44 +000015212 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015213fi
cristy3ed852e2009-09-05 21:47:34 +000015214fi
cristy8b350f62009-11-15 23:12:43 +000015215rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
cristy5c40fb42010-08-05 16:12:44 +000015217 LDFLAGS=$save_LDFLAGS
15218 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015219
15220 # This implies no fast_install, which is unacceptable.
15221 # Some rework will be needed to allow for fast_install
15222 # before this can be enabled.
15223 hardcode_into_libs=yes
15224
cristy679ed8e2009-12-05 02:37:41 +000015225 # Add ABI-specific directories to the system library path.
15226 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15227
cristy3ed852e2009-09-05 21:47:34 +000015228 # Append ld.so.conf contents to the search path
15229 if test -f /etc/ld.so.conf; then
cristy5c40fb42010-08-05 16:12:44 +000015230 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 +000015231 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015232 fi
15233
15234 # We used to test for /lib/ld.so.1 and disable shared libraries on
15235 # powerpc, because MkLinux only supported shared libraries with the
15236 # GNU dynamic linker. Since this was broken with cross compilers,
15237 # most powerpc-linux boxes support dynamic linking these days and
15238 # people can always --disable-shared, the test was removed, and we
15239 # assume the GNU/Linux dynamic linker is in use.
15240 dynamic_linker='GNU/Linux ld.so'
15241 ;;
15242
15243netbsd*)
15244 version_type=sunos
15245 need_lib_prefix=no
15246 need_version=no
15247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15250 dynamic_linker='NetBSD (a.out) ld.so'
15251 else
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 dynamic_linker='NetBSD ld.elf_so'
15255 fi
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes
15258 hardcode_into_libs=yes
15259 ;;
15260
15261newsos6)
15262 version_type=linux
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 shlibpath_var=LD_LIBRARY_PATH
15265 shlibpath_overrides_runpath=yes
15266 ;;
15267
15268*nto* | *qnx*)
15269 version_type=qnx
15270 need_lib_prefix=no
15271 need_version=no
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 shlibpath_overrides_runpath=no
15276 hardcode_into_libs=yes
15277 dynamic_linker='ldqnx.so'
15278 ;;
15279
15280openbsd*)
15281 version_type=sunos
15282 sys_lib_dlsearch_path_spec="/usr/lib"
15283 need_lib_prefix=no
15284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15285 case $host_os in
15286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15287 *) need_version=no ;;
15288 esac
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15293 case $host_os in
15294 openbsd2.[89] | openbsd2.[89].*)
15295 shlibpath_overrides_runpath=no
15296 ;;
15297 *)
15298 shlibpath_overrides_runpath=yes
15299 ;;
15300 esac
15301 else
15302 shlibpath_overrides_runpath=yes
15303 fi
15304 ;;
15305
15306os2*)
15307 libname_spec='$name'
15308 shrext_cmds=".dll"
15309 need_lib_prefix=no
15310 library_names_spec='$libname${shared_ext} $libname.a'
15311 dynamic_linker='OS/2 ld.exe'
15312 shlibpath_var=LIBPATH
15313 ;;
15314
15315osf3* | osf4* | osf5*)
15316 version_type=osf
15317 need_lib_prefix=no
15318 need_version=no
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 shlibpath_var=LD_LIBRARY_PATH
15322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15324 ;;
15325
15326rdos*)
15327 dynamic_linker=no
15328 ;;
15329
15330solaris*)
15331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15338 hardcode_into_libs=yes
15339 # ldd complains unless libraries are executable
15340 postinstall_cmds='chmod +x $lib'
15341 ;;
15342
15343sunos4*)
15344 version_type=sunos
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15349 if test "$with_gnu_ld" = yes; then
15350 need_lib_prefix=no
15351 fi
15352 need_version=yes
15353 ;;
15354
15355sysv4 | sysv4.3*)
15356 version_type=linux
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 case $host_vendor in
15361 sni)
15362 shlibpath_overrides_runpath=no
15363 need_lib_prefix=no
15364 runpath_var=LD_RUN_PATH
15365 ;;
15366 siemens)
15367 need_lib_prefix=no
15368 ;;
15369 motorola)
15370 need_lib_prefix=no
15371 need_version=no
15372 shlibpath_overrides_runpath=no
15373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15374 ;;
15375 esac
15376 ;;
15377
15378sysv4*MP*)
15379 if test -d /usr/nec ;then
15380 version_type=linux
15381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15382 soname_spec='$libname${shared_ext}.$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 fi
15385 ;;
15386
15387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15388 version_type=freebsd-elf
15389 need_lib_prefix=no
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15396 if test "$with_gnu_ld" = yes; then
15397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15398 else
15399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15400 case $host_os in
15401 sco3.2v5*)
15402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15403 ;;
15404 esac
15405 fi
15406 sys_lib_dlsearch_path_spec='/usr/lib'
15407 ;;
15408
15409tpf*)
15410 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 shlibpath_overrides_runpath=no
15417 hardcode_into_libs=yes
15418 ;;
15419
15420uts4*)
15421 version_type=linux
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 ;;
15426
15427*)
15428 dynamic_linker=no
15429 ;;
15430esac
cristy8b350f62009-11-15 23:12:43 +000015431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015432$as_echo "$dynamic_linker" >&6; }
15433test "$dynamic_linker" = no && can_build_shared=no
15434
15435variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15436if test "$GCC" = yes; then
15437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15438fi
15439
15440if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15441 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15442fi
15443if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15444 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15445fi
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
cristy8b350f62009-11-15 23:12:43 +000015533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015534$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15535hardcode_action=
15536if test -n "$hardcode_libdir_flag_spec" ||
15537 test -n "$runpath_var" ||
15538 test "X$hardcode_automatic" = "Xyes" ; then
15539
15540 # We can hardcode non-existent directories.
15541 if test "$hardcode_direct" != no &&
15542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15543 # have to relink, otherwise we might link with an installed library
15544 # when we should be linking with a yet-to-be-installed one
15545 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15546 test "$hardcode_minus_L" != no; then
15547 # Linking always hardcodes the temporary library directory.
15548 hardcode_action=relink
15549 else
15550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15551 hardcode_action=immediate
15552 fi
15553else
15554 # We cannot hardcode anything, or else we can only hardcode existing
15555 # directories.
15556 hardcode_action=unsupported
15557fi
cristy8b350f62009-11-15 23:12:43 +000015558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015559$as_echo "$hardcode_action" >&6; }
15560
15561if test "$hardcode_action" = relink ||
15562 test "$inherit_rpath" = yes; then
15563 # Fast installation is not supported
15564 enable_fast_install=no
15565elif test "$shlibpath_overrides_runpath" = yes ||
15566 test "$enable_shared" = no; then
15567 # Fast installation is not necessary
15568 enable_fast_install=needless
15569fi
15570
15571
15572
15573
15574
15575
15576 if test "x$enable_dlopen" != xyes; then
15577 enable_dlopen=unknown
15578 enable_dlopen_self=unknown
15579 enable_dlopen_self_static=unknown
15580else
15581 lt_cv_dlopen=no
15582 lt_cv_dlopen_libs=
15583
15584 case $host_os in
15585 beos*)
15586 lt_cv_dlopen="load_add_on"
15587 lt_cv_dlopen_libs=
15588 lt_cv_dlopen_self=yes
15589 ;;
15590
15591 mingw* | pw32* | cegcc*)
15592 lt_cv_dlopen="LoadLibrary"
15593 lt_cv_dlopen_libs=
15594 ;;
15595
15596 cygwin*)
15597 lt_cv_dlopen="dlopen"
15598 lt_cv_dlopen_libs=
15599 ;;
15600
15601 darwin*)
15602 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015604$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015605if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015606 $as_echo_n "(cached) " >&6
15607else
15608 ac_check_lib_save_LIBS=$LIBS
15609LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015611/* end confdefs.h. */
15612
15613/* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15616#ifdef __cplusplus
15617extern "C"
15618#endif
15619char dlopen ();
15620int
15621main ()
15622{
15623return dlopen ();
15624 ;
15625 return 0;
15626}
15627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015628if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015629 ac_cv_lib_dl_dlopen=yes
15630else
cristy8b350f62009-11-15 23:12:43 +000015631 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015632fi
cristy8b350f62009-11-15 23:12:43 +000015633rm -f core conftest.err conftest.$ac_objext \
15634 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015635LIBS=$ac_check_lib_save_LIBS
15636fi
cristy8b350f62009-11-15 23:12:43 +000015637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015638$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015639if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15641else
15642
15643 lt_cv_dlopen="dyld"
15644 lt_cv_dlopen_libs=
15645 lt_cv_dlopen_self=yes
15646
15647fi
15648
15649 ;;
15650
15651 *)
cristy8b350f62009-11-15 23:12:43 +000015652 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15653if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015654 lt_cv_dlopen="shl_load"
15655else
cristy8b350f62009-11-15 23:12:43 +000015656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015657$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015658if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015659 $as_echo_n "(cached) " >&6
15660else
15661 ac_check_lib_save_LIBS=$LIBS
15662LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015664/* end confdefs.h. */
15665
15666/* Override any GCC internal prototype to avoid an error.
15667 Use char because int might match the return type of a GCC
15668 builtin and then its argument prototype would still apply. */
15669#ifdef __cplusplus
15670extern "C"
15671#endif
15672char shl_load ();
15673int
15674main ()
15675{
15676return shl_load ();
15677 ;
15678 return 0;
15679}
15680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015681if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015682 ac_cv_lib_dld_shl_load=yes
15683else
cristy8b350f62009-11-15 23:12:43 +000015684 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015685fi
cristy8b350f62009-11-15 23:12:43 +000015686rm -f core conftest.err conftest.$ac_objext \
15687 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015688LIBS=$ac_check_lib_save_LIBS
15689fi
cristy8b350f62009-11-15 23:12:43 +000015690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015691$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015692if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015693 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15694else
cristy8b350f62009-11-15 23:12:43 +000015695 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15696if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015697 lt_cv_dlopen="dlopen"
15698else
cristy8b350f62009-11-15 23:12:43 +000015699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015700$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015701if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015702 $as_echo_n "(cached) " >&6
15703else
15704 ac_check_lib_save_LIBS=$LIBS
15705LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015707/* end confdefs.h. */
15708
15709/* Override any GCC internal prototype to avoid an error.
15710 Use char because int might match the return type of a GCC
15711 builtin and then its argument prototype would still apply. */
15712#ifdef __cplusplus
15713extern "C"
15714#endif
15715char dlopen ();
15716int
15717main ()
15718{
15719return dlopen ();
15720 ;
15721 return 0;
15722}
15723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015725 ac_cv_lib_dl_dlopen=yes
15726else
cristy8b350f62009-11-15 23:12:43 +000015727 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015728fi
cristy8b350f62009-11-15 23:12:43 +000015729rm -f core conftest.err conftest.$ac_objext \
15730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015731LIBS=$ac_check_lib_save_LIBS
15732fi
cristy8b350f62009-11-15 23:12:43 +000015733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015734$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015735if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015736 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15737else
cristy8b350f62009-11-15 23:12:43 +000015738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015739$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015740if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015741 $as_echo_n "(cached) " >&6
15742else
15743 ac_check_lib_save_LIBS=$LIBS
15744LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015746/* end confdefs.h. */
15747
15748/* Override any GCC internal prototype to avoid an error.
15749 Use char because int might match the return type of a GCC
15750 builtin and then its argument prototype would still apply. */
15751#ifdef __cplusplus
15752extern "C"
15753#endif
15754char dlopen ();
15755int
15756main ()
15757{
15758return dlopen ();
15759 ;
15760 return 0;
15761}
15762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015764 ac_cv_lib_svld_dlopen=yes
15765else
cristy8b350f62009-11-15 23:12:43 +000015766 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015767fi
cristy8b350f62009-11-15 23:12:43 +000015768rm -f core conftest.err conftest.$ac_objext \
15769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015770LIBS=$ac_check_lib_save_LIBS
15771fi
cristy8b350f62009-11-15 23:12:43 +000015772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015773$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015774if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15776else
cristy8b350f62009-11-15 23:12:43 +000015777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015778$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015779if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015780 $as_echo_n "(cached) " >&6
15781else
15782 ac_check_lib_save_LIBS=$LIBS
15783LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015785/* end confdefs.h. */
15786
15787/* Override any GCC internal prototype to avoid an error.
15788 Use char because int might match the return type of a GCC
15789 builtin and then its argument prototype would still apply. */
15790#ifdef __cplusplus
15791extern "C"
15792#endif
15793char dld_link ();
15794int
15795main ()
15796{
15797return dld_link ();
15798 ;
15799 return 0;
15800}
15801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015802if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015803 ac_cv_lib_dld_dld_link=yes
15804else
cristy8b350f62009-11-15 23:12:43 +000015805 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015806fi
cristy8b350f62009-11-15 23:12:43 +000015807rm -f core conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015809LIBS=$ac_check_lib_save_LIBS
15810fi
cristy8b350f62009-11-15 23:12:43 +000015811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015812$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015813if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015814 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15815fi
15816
15817
15818fi
15819
15820
15821fi
15822
15823
15824fi
15825
15826
15827fi
15828
15829
15830fi
15831
15832 ;;
15833 esac
15834
15835 if test "x$lt_cv_dlopen" != xno; then
15836 enable_dlopen=yes
15837 else
15838 enable_dlopen=no
15839 fi
15840
15841 case $lt_cv_dlopen in
15842 dlopen)
15843 save_CPPFLAGS="$CPPFLAGS"
15844 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15845
15846 save_LDFLAGS="$LDFLAGS"
15847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15848
15849 save_LIBS="$LIBS"
15850 LIBS="$lt_cv_dlopen_libs $LIBS"
15851
cristy8b350f62009-11-15 23:12:43 +000015852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015853$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015854if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015855 $as_echo_n "(cached) " >&6
15856else
15857 if test "$cross_compiling" = yes; then :
15858 lt_cv_dlopen_self=cross
15859else
15860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15861 lt_status=$lt_dlunknown
15862 cat > conftest.$ac_ext <<_LT_EOF
cristy5c40fb42010-08-05 16:12:44 +000015863#line 15863 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015864#include "confdefs.h"
15865
15866#if HAVE_DLFCN_H
15867#include <dlfcn.h>
15868#endif
15869
15870#include <stdio.h>
15871
15872#ifdef RTLD_GLOBAL
15873# define LT_DLGLOBAL RTLD_GLOBAL
15874#else
15875# ifdef DL_GLOBAL
15876# define LT_DLGLOBAL DL_GLOBAL
15877# else
15878# define LT_DLGLOBAL 0
15879# endif
15880#endif
15881
15882/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15883 find out it does not work in some platform. */
15884#ifndef LT_DLLAZY_OR_NOW
15885# ifdef RTLD_LAZY
15886# define LT_DLLAZY_OR_NOW RTLD_LAZY
15887# else
15888# ifdef DL_LAZY
15889# define LT_DLLAZY_OR_NOW DL_LAZY
15890# else
15891# ifdef RTLD_NOW
15892# define LT_DLLAZY_OR_NOW RTLD_NOW
15893# else
15894# ifdef DL_NOW
15895# define LT_DLLAZY_OR_NOW DL_NOW
15896# else
15897# define LT_DLLAZY_OR_NOW 0
15898# endif
15899# endif
15900# endif
15901# endif
15902#endif
15903
cristy5c40fb42010-08-05 16:12:44 +000015904void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015905int main ()
15906{
15907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15908 int status = $lt_dlunknown;
15909
15910 if (self)
15911 {
15912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy5c40fb42010-08-05 16:12:44 +000015913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015914 /* dlclose (self); */
15915 }
15916 else
15917 puts (dlerror ());
15918
15919 return status;
15920}
15921_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015923 (eval $ac_link) 2>&5
15924 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15926 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015927 (./conftest; exit; ) >&5 2>/dev/null
15928 lt_status=$?
15929 case x$lt_status in
15930 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15931 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15932 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15933 esac
15934 else :
15935 # compilation failed
15936 lt_cv_dlopen_self=no
15937 fi
15938fi
15939rm -fr conftest*
15940
15941
15942fi
cristy8b350f62009-11-15 23:12:43 +000015943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015944$as_echo "$lt_cv_dlopen_self" >&6; }
15945
15946 if test "x$lt_cv_dlopen_self" = xyes; then
15947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015949$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015950if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015951 $as_echo_n "(cached) " >&6
15952else
15953 if test "$cross_compiling" = yes; then :
15954 lt_cv_dlopen_self_static=cross
15955else
15956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15957 lt_status=$lt_dlunknown
15958 cat > conftest.$ac_ext <<_LT_EOF
cristy5c40fb42010-08-05 16:12:44 +000015959#line 15959 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015960#include "confdefs.h"
15961
15962#if HAVE_DLFCN_H
15963#include <dlfcn.h>
15964#endif
15965
15966#include <stdio.h>
15967
15968#ifdef RTLD_GLOBAL
15969# define LT_DLGLOBAL RTLD_GLOBAL
15970#else
15971# ifdef DL_GLOBAL
15972# define LT_DLGLOBAL DL_GLOBAL
15973# else
15974# define LT_DLGLOBAL 0
15975# endif
15976#endif
15977
15978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15979 find out it does not work in some platform. */
15980#ifndef LT_DLLAZY_OR_NOW
15981# ifdef RTLD_LAZY
15982# define LT_DLLAZY_OR_NOW RTLD_LAZY
15983# else
15984# ifdef DL_LAZY
15985# define LT_DLLAZY_OR_NOW DL_LAZY
15986# else
15987# ifdef RTLD_NOW
15988# define LT_DLLAZY_OR_NOW RTLD_NOW
15989# else
15990# ifdef DL_NOW
15991# define LT_DLLAZY_OR_NOW DL_NOW
15992# else
15993# define LT_DLLAZY_OR_NOW 0
15994# endif
15995# endif
15996# endif
15997# endif
15998#endif
15999
cristy5c40fb42010-08-05 16:12:44 +000016000void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000016001int main ()
16002{
16003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16004 int status = $lt_dlunknown;
16005
16006 if (self)
16007 {
16008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy5c40fb42010-08-05 16:12:44 +000016009 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016010 /* dlclose (self); */
16011 }
16012 else
16013 puts (dlerror ());
16014
16015 return status;
16016}
16017_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016019 (eval $ac_link) 2>&5
16020 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16022 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016023 (./conftest; exit; ) >&5 2>/dev/null
16024 lt_status=$?
16025 case x$lt_status in
16026 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16027 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16028 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16029 esac
16030 else :
16031 # compilation failed
16032 lt_cv_dlopen_self_static=no
16033 fi
16034fi
16035rm -fr conftest*
16036
16037
16038fi
cristy8b350f62009-11-15 23:12:43 +000016039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016040$as_echo "$lt_cv_dlopen_self_static" >&6; }
16041 fi
16042
16043 CPPFLAGS="$save_CPPFLAGS"
16044 LDFLAGS="$save_LDFLAGS"
16045 LIBS="$save_LIBS"
16046 ;;
16047 esac
16048
16049 case $lt_cv_dlopen_self in
16050 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16051 *) enable_dlopen_self=unknown ;;
16052 esac
16053
16054 case $lt_cv_dlopen_self_static in
16055 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16056 *) enable_dlopen_self_static=unknown ;;
16057 esac
16058fi
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076striplib=
16077old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016079$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16080if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16081 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16082 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016084$as_echo "yes" >&6; }
16085else
16086# FIXME - insert some real tests, host_os isn't really good enough
16087 case $host_os in
16088 darwin*)
16089 if test -n "$STRIP" ; then
16090 striplib="$STRIP -x"
16091 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016093$as_echo "yes" >&6; }
16094 else
cristy8b350f62009-11-15 23:12:43 +000016095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016096$as_echo "no" >&6; }
16097 fi
16098 ;;
16099 *)
cristy8b350f62009-11-15 23:12:43 +000016100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016101$as_echo "no" >&6; }
16102 ;;
16103 esac
16104fi
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016119$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016121$as_echo "$can_build_shared" >&6; }
16122
cristy8b350f62009-11-15 23:12:43 +000016123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016124$as_echo_n "checking whether to build shared libraries... " >&6; }
16125 test "$can_build_shared" = "no" && enable_shared=no
16126
16127 # On AIX, shared libraries and static libraries use the same namespace, and
16128 # are all built from PIC.
16129 case $host_os in
16130 aix3*)
16131 test "$enable_shared" = yes && enable_static=no
16132 if test -n "$RANLIB"; then
16133 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16134 postinstall_cmds='$RANLIB $lib'
16135 fi
16136 ;;
16137
16138 aix[4-9]*)
16139 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16140 test "$enable_shared" = yes && enable_static=no
16141 fi
16142 ;;
16143 esac
cristy8b350f62009-11-15 23:12:43 +000016144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016145$as_echo "$enable_shared" >&6; }
16146
cristy8b350f62009-11-15 23:12:43 +000016147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016148$as_echo_n "checking whether to build static libraries... " >&6; }
16149 # Make sure either enable_shared or enable_static is yes.
16150 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016152$as_echo "$enable_static" >&6; }
16153
16154
16155
16156
16157fi
16158ac_ext=c
16159ac_cpp='$CPP $CPPFLAGS'
16160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16162ac_compiler_gnu=$ac_cv_c_compiler_gnu
16163
16164CC="$lt_save_CC"
16165
16166
16167ac_ext=cpp
16168ac_cpp='$CXXCPP $CPPFLAGS'
16169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16172
16173archive_cmds_need_lc_CXX=no
16174allow_undefined_flag_CXX=
16175always_export_symbols_CXX=no
16176archive_expsym_cmds_CXX=
16177compiler_needs_object_CXX=no
16178export_dynamic_flag_spec_CXX=
16179hardcode_direct_CXX=no
16180hardcode_direct_absolute_CXX=no
16181hardcode_libdir_flag_spec_CXX=
16182hardcode_libdir_flag_spec_ld_CXX=
16183hardcode_libdir_separator_CXX=
16184hardcode_minus_L_CXX=no
16185hardcode_shlibpath_var_CXX=unsupported
16186hardcode_automatic_CXX=no
16187inherit_rpath_CXX=no
16188module_cmds_CXX=
16189module_expsym_cmds_CXX=
16190link_all_deplibs_CXX=unknown
16191old_archive_cmds_CXX=$old_archive_cmds
16192no_undefined_flag_CXX=
16193whole_archive_flag_spec_CXX=
16194enable_shared_with_static_runtimes_CXX=no
16195
16196# Source file extension for C++ test sources.
16197ac_ext=cpp
16198
16199# Object file extension for compiled C++ test sources.
16200objext=o
16201objext_CXX=$objext
16202
16203# No sense in running all these tests if we already determined that
16204# the CXX compiler isn't working. Some variables (like enable_shared)
16205# are currently assumed to apply to all compilers on this platform,
16206# and will be corrupted by setting them based on a non-working compiler.
16207if test "$_lt_caught_CXX_error" != yes; then
16208 # Code to be used in simple compile tests
16209 lt_simple_compile_test_code="int some_variable = 0;"
16210
16211 # Code to be used in simple link tests
16212 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16213
16214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16215
16216
16217
16218
16219
16220
16221# If no C compiler was specified, use CC.
16222LTCC=${LTCC-"$CC"}
16223
16224# If no C compiler flags were specified, use CFLAGS.
16225LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16226
16227# Allow CC to be a program name with arguments.
16228compiler=$CC
16229
16230
16231 # save warnings/boilerplate of simple test code
16232 ac_outfile=conftest.$ac_objext
16233echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16234eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16235_lt_compiler_boilerplate=`cat conftest.err`
16236$RM conftest*
16237
16238 ac_outfile=conftest.$ac_objext
16239echo "$lt_simple_link_test_code" >conftest.$ac_ext
16240eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16241_lt_linker_boilerplate=`cat conftest.err`
16242$RM -r conftest*
16243
16244
16245 # Allow CC to be a program name with arguments.
16246 lt_save_CC=$CC
16247 lt_save_LD=$LD
16248 lt_save_GCC=$GCC
16249 GCC=$GXX
16250 lt_save_with_gnu_ld=$with_gnu_ld
16251 lt_save_path_LD=$lt_cv_path_LD
16252 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16253 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16254 else
16255 $as_unset lt_cv_prog_gnu_ld
16256 fi
16257 if test -n "${lt_cv_path_LDCXX+set}"; then
16258 lt_cv_path_LD=$lt_cv_path_LDCXX
16259 else
16260 $as_unset lt_cv_path_LD
16261 fi
16262 test -z "${LDCXX+set}" || LD=$LDCXX
16263 CC=${CXX-"c++"}
16264 compiler=$CC
16265 compiler_CXX=$CC
16266 for cc_temp in $compiler""; do
16267 case $cc_temp in
16268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16270 \-*) ;;
16271 *) break;;
16272 esac
16273done
cristy5c40fb42010-08-05 16:12:44 +000016274cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016275
16276
16277 if test -n "$compiler"; then
16278 # We don't want -fno-exception when compiling C++ code, so set the
16279 # no_builtin_flag separately
16280 if test "$GXX" = yes; then
16281 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16282 else
16283 lt_prog_compiler_no_builtin_flag_CXX=
16284 fi
16285
16286 if test "$GXX" = yes; then
16287 # Set up default GNU C++ configuration
16288
16289
16290
16291# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016292if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16294else
16295 with_gnu_ld=no
16296fi
16297
16298ac_prog=ld
16299if test "$GCC" = yes; then
16300 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016302$as_echo_n "checking for ld used by $CC... " >&6; }
16303 case $host in
16304 *-*-mingw*)
16305 # gcc leaves a trailing carriage return which upsets mingw
16306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16307 *)
16308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16309 esac
16310 case $ac_prog in
16311 # Accept absolute paths.
16312 [\\/]* | ?:[\\/]*)
16313 re_direlt='/[^/][^/]*/\.\./'
16314 # Canonicalize the pathname of ld
16315 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16316 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16317 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16318 done
16319 test -z "$LD" && LD="$ac_prog"
16320 ;;
16321 "")
16322 # If it fails, then pretend we aren't using GCC.
16323 ac_prog=ld
16324 ;;
16325 *)
16326 # If it is relative, then search for the first ld in PATH.
16327 with_gnu_ld=unknown
16328 ;;
16329 esac
16330elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016332$as_echo_n "checking for GNU ld... " >&6; }
16333else
cristy8b350f62009-11-15 23:12:43 +000016334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016335$as_echo_n "checking for non-GNU ld... " >&6; }
16336fi
cristy8b350f62009-11-15 23:12:43 +000016337if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016338 $as_echo_n "(cached) " >&6
16339else
16340 if test -z "$LD"; then
16341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16342 for ac_dir in $PATH; do
16343 IFS="$lt_save_ifs"
16344 test -z "$ac_dir" && ac_dir=.
16345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16346 lt_cv_path_LD="$ac_dir/$ac_prog"
16347 # Check to see if the program is GNU ld. I'd rather use --version,
16348 # but apparently some variants of GNU ld only accept -v.
16349 # Break only if it was the GNU/non-GNU ld that we prefer.
16350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16351 *GNU* | *'with BFD'*)
16352 test "$with_gnu_ld" != no && break
16353 ;;
16354 *)
16355 test "$with_gnu_ld" != yes && break
16356 ;;
16357 esac
16358 fi
16359 done
16360 IFS="$lt_save_ifs"
16361else
16362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16363fi
16364fi
16365
16366LD="$lt_cv_path_LD"
16367if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016369$as_echo "$LD" >&6; }
16370else
cristy8b350f62009-11-15 23:12:43 +000016371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016372$as_echo "no" >&6; }
16373fi
cristy5c40fb42010-08-05 16:12:44 +000016374test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
cristy8b350f62009-11-15 23:12:43 +000016375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016376$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016377if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016378 $as_echo_n "(cached) " >&6
16379else
16380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16381case `$LD -v 2>&1 </dev/null` in
16382*GNU* | *'with BFD'*)
16383 lt_cv_prog_gnu_ld=yes
16384 ;;
16385*)
16386 lt_cv_prog_gnu_ld=no
16387 ;;
16388esac
16389fi
cristy8b350f62009-11-15 23:12:43 +000016390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016391$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16392with_gnu_ld=$lt_cv_prog_gnu_ld
16393
16394
16395
16396
16397
16398
16399
16400 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16401 # archiving commands below assume that GNU ld is being used.
16402 if test "$with_gnu_ld" = yes; then
16403 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16404 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'
16405
16406 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16407 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16408
16409 # If archive_cmds runs LD, not CC, wlarc should be empty
16410 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16411 # investigate it a little bit more. (MM)
16412 wlarc='${wl}'
16413
16414 # ancient GNU ld didn't support --whole-archive et. al.
16415 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16416 $GREP 'no-whole-archive' > /dev/null; then
16417 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16418 else
16419 whole_archive_flag_spec_CXX=
16420 fi
16421 else
16422 with_gnu_ld=no
16423 wlarc=
16424
16425 # A generic and very simple default shared library creation
16426 # command for GNU C++ for the case where it uses the native
16427 # linker, instead of GNU ld. If possible, this setting should
16428 # overridden to take advantage of the native linker features on
16429 # the platform it is being used on.
16430 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16431 fi
16432
16433 # Commands to make compiler produce verbose output that lists
16434 # what "hidden" libraries, object files and flags are used when
16435 # linking a shared library.
cristy5c40fb42010-08-05 16:12:44 +000016436 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016437
16438 else
16439 GXX=no
16440 with_gnu_ld=no
16441 wlarc=
16442 fi
16443
16444 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016446$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16447 ld_shlibs_CXX=yes
16448 case $host_os in
16449 aix3*)
16450 # FIXME: insert proper C++ library support
16451 ld_shlibs_CXX=no
16452 ;;
16453 aix[4-9]*)
16454 if test "$host_cpu" = ia64; then
16455 # On IA64, the linker does run time linking by default, so we don't
16456 # have to do anything special.
16457 aix_use_runtimelinking=no
16458 exp_sym_flag='-Bexport'
16459 no_entry_flag=""
16460 else
16461 aix_use_runtimelinking=no
16462
16463 # Test if we are trying to use run time linking or normal
16464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16465 # need to do runtime linking.
16466 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16467 for ld_flag in $LDFLAGS; do
16468 case $ld_flag in
16469 *-brtl*)
16470 aix_use_runtimelinking=yes
16471 break
16472 ;;
16473 esac
16474 done
16475 ;;
16476 esac
16477
16478 exp_sym_flag='-bexport'
16479 no_entry_flag='-bnoentry'
16480 fi
16481
16482 # When large executables or shared objects are built, AIX ld can
16483 # have problems creating the table of contents. If linking a library
16484 # or program results in "error TOC overflow" add -mminimal-toc to
16485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16487
16488 archive_cmds_CXX=''
16489 hardcode_direct_CXX=yes
16490 hardcode_direct_absolute_CXX=yes
16491 hardcode_libdir_separator_CXX=':'
16492 link_all_deplibs_CXX=yes
16493 file_list_spec_CXX='${wl}-f,'
16494
16495 if test "$GXX" = yes; then
16496 case $host_os in aix4.[012]|aix4.[012].*)
16497 # We only want to do this on AIX 4.2 and lower, the check
16498 # below for broken collect2 doesn't work under 4.3+
16499 collect2name=`${CC} -print-prog-name=collect2`
16500 if test -f "$collect2name" &&
16501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16502 then
16503 # We have reworked collect2
16504 :
16505 else
16506 # We have old collect2
16507 hardcode_direct_CXX=unsupported
16508 # It fails to find uninstalled libraries when the uninstalled
16509 # path is not listed in the libpath. Setting hardcode_minus_L
16510 # to unsupported forces relinking
16511 hardcode_minus_L_CXX=yes
16512 hardcode_libdir_flag_spec_CXX='-L$libdir'
16513 hardcode_libdir_separator_CXX=
16514 fi
16515 esac
16516 shared_flag='-shared'
16517 if test "$aix_use_runtimelinking" = yes; then
16518 shared_flag="$shared_flag "'${wl}-G'
16519 fi
16520 else
16521 # not using gcc
16522 if test "$host_cpu" = ia64; then
16523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16524 # chokes on -Wl,-G. The following line is correct:
16525 shared_flag='-G'
16526 else
16527 if test "$aix_use_runtimelinking" = yes; then
16528 shared_flag='${wl}-G'
16529 else
16530 shared_flag='${wl}-bM:SRE'
16531 fi
16532 fi
16533 fi
16534
16535 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16536 # It seems that -bexpall does not export symbols beginning with
16537 # underscore (_), so it is better to generate a list of symbols to
16538 # export.
16539 always_export_symbols_CXX=yes
16540 if test "$aix_use_runtimelinking" = yes; then
16541 # Warning - without using the other runtime loading flags (-brtl),
16542 # -berok will link without error, but may produce a broken library.
16543 allow_undefined_flag_CXX='-berok'
16544 # Determine the default libpath from the value encoded in an empty
16545 # executable.
cristy8b350f62009-11-15 23:12:43 +000016546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016547/* end confdefs.h. */
16548
16549int
16550main ()
16551{
16552
16553 ;
16554 return 0;
16555}
16556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016557if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016558
16559lt_aix_libpath_sed='
16560 /Import File Strings/,/^$/ {
16561 /^0/ {
16562 s/^0 *\(.*\)$/\1/
16563 p
16564 }
16565 }'
16566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16567# Check for a 64-bit object if we didn't find anything.
16568if test -z "$aix_libpath"; then
16569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16570fi
cristy3ed852e2009-09-05 21:47:34 +000016571fi
cristy8b350f62009-11-15 23:12:43 +000016572rm -f core conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16575
16576 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16577
cristy5c40fb42010-08-05 16:12:44 +000016578 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 +000016579 else
16580 if test "$host_cpu" = ia64; then
16581 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16582 allow_undefined_flag_CXX="-z nodefs"
16583 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"
16584 else
16585 # Determine the default libpath from the value encoded in an
16586 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016588/* end confdefs.h. */
16589
16590int
16591main ()
16592{
16593
16594 ;
16595 return 0;
16596}
16597_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016598if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016599
16600lt_aix_libpath_sed='
16601 /Import File Strings/,/^$/ {
16602 /^0/ {
16603 s/^0 *\(.*\)$/\1/
16604 p
16605 }
16606 }'
16607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16608# Check for a 64-bit object if we didn't find anything.
16609if test -z "$aix_libpath"; then
16610 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16611fi
cristy3ed852e2009-09-05 21:47:34 +000016612fi
cristy8b350f62009-11-15 23:12:43 +000016613rm -f core conftest.err conftest.$ac_objext \
16614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016615if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16616
16617 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16618 # Warning - without using the other run time loading flags,
16619 # -berok will link without error, but may produce a broken library.
16620 no_undefined_flag_CXX=' ${wl}-bernotok'
16621 allow_undefined_flag_CXX=' ${wl}-berok'
cristy5c40fb42010-08-05 16:12:44 +000016622 # Exported symbols can be pulled into shared objects from archives
16623 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016624 archive_cmds_need_lc_CXX=yes
16625 # This is similar to how AIX traditionally builds its shared
16626 # libraries.
16627 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'
16628 fi
16629 fi
16630 ;;
16631
16632 beos*)
16633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16634 allow_undefined_flag_CXX=unsupported
16635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16636 # support --undefined. This deserves some investigation. FIXME
16637 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16638 else
16639 ld_shlibs_CXX=no
16640 fi
16641 ;;
16642
16643 chorus*)
16644 case $cc_basename in
16645 *)
16646 # FIXME: insert proper C++ library support
16647 ld_shlibs_CXX=no
16648 ;;
16649 esac
16650 ;;
16651
16652 cygwin* | mingw* | pw32* | cegcc*)
16653 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16654 # as there is no search path for DLLs.
16655 hardcode_libdir_flag_spec_CXX='-L$libdir'
16656 allow_undefined_flag_CXX=unsupported
16657 always_export_symbols_CXX=no
16658 enable_shared_with_static_runtimes_CXX=yes
16659
16660 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16661 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'
16662 # If the export-symbols file already is a .def file (1st line
16663 # is EXPORTS), use it as is; otherwise, prepend...
16664 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16665 cp $export_symbols $output_objdir/$soname.def;
16666 else
16667 echo EXPORTS > $output_objdir/$soname.def;
16668 cat $export_symbols >> $output_objdir/$soname.def;
16669 fi~
16670 $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'
16671 else
16672 ld_shlibs_CXX=no
16673 fi
16674 ;;
16675 darwin* | rhapsody*)
16676
16677
16678 archive_cmds_need_lc_CXX=no
16679 hardcode_direct_CXX=no
16680 hardcode_automatic_CXX=yes
16681 hardcode_shlibpath_var_CXX=unsupported
cristy5c40fb42010-08-05 16:12:44 +000016682 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016683 link_all_deplibs_CXX=yes
16684 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16685 case $cc_basename in
16686 ifort*) _lt_dar_can_shared=yes ;;
16687 *) _lt_dar_can_shared=$GCC ;;
16688 esac
16689 if test "$_lt_dar_can_shared" = "yes"; then
cristy5c40fb42010-08-05 16:12:44 +000016690 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016691 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}"
16692 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16693 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}"
16694 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}"
16695 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16696 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}"
16697 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}"
16698 fi
16699
16700 else
16701 ld_shlibs_CXX=no
16702 fi
16703
16704 ;;
16705
16706 dgux*)
16707 case $cc_basename in
16708 ec++*)
16709 # FIXME: insert proper C++ library support
16710 ld_shlibs_CXX=no
16711 ;;
16712 ghcx*)
16713 # Green Hills C++ Compiler
16714 # FIXME: insert proper C++ library support
16715 ld_shlibs_CXX=no
16716 ;;
16717 *)
16718 # FIXME: insert proper C++ library support
16719 ld_shlibs_CXX=no
16720 ;;
16721 esac
16722 ;;
16723
16724 freebsd[12]*)
16725 # C++ shared libraries reported to be fairly broken before
16726 # switch to ELF
16727 ld_shlibs_CXX=no
16728 ;;
16729
16730 freebsd-elf*)
16731 archive_cmds_need_lc_CXX=no
16732 ;;
16733
16734 freebsd* | dragonfly*)
16735 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16736 # conventions
16737 ld_shlibs_CXX=yes
16738 ;;
16739
16740 gnu*)
16741 ;;
16742
16743 hpux9*)
16744 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16745 hardcode_libdir_separator_CXX=:
16746 export_dynamic_flag_spec_CXX='${wl}-E'
16747 hardcode_direct_CXX=yes
16748 hardcode_minus_L_CXX=yes # Not in the search PATH,
16749 # but as the default
16750 # location of the library.
16751
16752 case $cc_basename in
16753 CC*)
16754 # FIXME: insert proper C++ library support
16755 ld_shlibs_CXX=no
16756 ;;
16757 aCC*)
16758 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'
16759 # Commands to make compiler produce verbose output that lists
16760 # what "hidden" libraries, object files and flags are used when
16761 # linking a shared library.
16762 #
16763 # There doesn't appear to be a way to prevent this compiler from
16764 # explicitly linking system object files so we need to strip them
16765 # from the output so that they don't get included in the library
16766 # dependencies.
cristy5c40fb42010-08-05 16:12:44 +000016767 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 +000016768 ;;
16769 *)
16770 if test "$GXX" = yes; then
16771 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'
16772 else
16773 # FIXME: insert proper C++ library support
16774 ld_shlibs_CXX=no
16775 fi
16776 ;;
16777 esac
16778 ;;
16779
16780 hpux10*|hpux11*)
16781 if test $with_gnu_ld = no; then
16782 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16783 hardcode_libdir_separator_CXX=:
16784
16785 case $host_cpu in
16786 hppa*64*|ia64*)
16787 ;;
16788 *)
16789 export_dynamic_flag_spec_CXX='${wl}-E'
16790 ;;
16791 esac
16792 fi
16793 case $host_cpu in
16794 hppa*64*|ia64*)
16795 hardcode_direct_CXX=no
16796 hardcode_shlibpath_var_CXX=no
16797 ;;
16798 *)
16799 hardcode_direct_CXX=yes
16800 hardcode_direct_absolute_CXX=yes
16801 hardcode_minus_L_CXX=yes # Not in the search PATH,
16802 # but as the default
16803 # location of the library.
16804 ;;
16805 esac
16806
16807 case $cc_basename in
16808 CC*)
16809 # FIXME: insert proper C++ library support
16810 ld_shlibs_CXX=no
16811 ;;
16812 aCC*)
16813 case $host_cpu in
16814 hppa*64*)
16815 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16816 ;;
16817 ia64*)
16818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16819 ;;
16820 *)
16821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16822 ;;
16823 esac
16824 # Commands to make compiler produce verbose output that lists
16825 # what "hidden" libraries, object files and flags are used when
16826 # linking a shared library.
16827 #
16828 # There doesn't appear to be a way to prevent this compiler from
16829 # explicitly linking system object files so we need to strip them
16830 # from the output so that they don't get included in the library
16831 # dependencies.
cristy5c40fb42010-08-05 16:12:44 +000016832 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 +000016833 ;;
16834 *)
16835 if test "$GXX" = yes; then
16836 if test $with_gnu_ld = no; then
16837 case $host_cpu in
16838 hppa*64*)
16839 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16840 ;;
16841 ia64*)
16842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16843 ;;
16844 *)
16845 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'
16846 ;;
16847 esac
16848 fi
16849 else
16850 # FIXME: insert proper C++ library support
16851 ld_shlibs_CXX=no
16852 fi
16853 ;;
16854 esac
16855 ;;
16856
16857 interix[3-9]*)
16858 hardcode_direct_CXX=no
16859 hardcode_shlibpath_var_CXX=no
16860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16861 export_dynamic_flag_spec_CXX='${wl}-E'
16862 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16863 # Instead, shared libraries are loaded at an image base (0x10000000 by
16864 # default) and relocated if they conflict, which is a slow very memory
16865 # consuming and fragmenting process. To avoid this, we pick a random,
16866 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16867 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16868 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'
16869 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'
16870 ;;
16871 irix5* | irix6*)
16872 case $cc_basename in
16873 CC*)
16874 # SGI C++
cristy5c40fb42010-08-05 16:12:44 +000016875 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 +000016876
16877 # Archives containing C++ object files must be created using
16878 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16879 # necessary to make sure instantiated templates are included
16880 # in the archive.
16881 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16882 ;;
16883 *)
16884 if test "$GXX" = yes; then
16885 if test "$with_gnu_ld" = no; then
cristy5c40fb42010-08-05 16:12:44 +000016886 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 +000016887 else
cristy5c40fb42010-08-05 16:12:44 +000016888 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 +000016889 fi
16890 fi
16891 link_all_deplibs_CXX=yes
16892 ;;
16893 esac
16894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16895 hardcode_libdir_separator_CXX=:
16896 inherit_rpath_CXX=yes
16897 ;;
16898
cristy5c40fb42010-08-05 16:12:44 +000016899 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016900 case $cc_basename in
16901 KCC*)
16902 # Kuck and Associates, Inc. (KAI) C++ Compiler
16903
16904 # KCC will only create a shared library if the output file
16905 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16906 # to its proper name (with version) after linking.
16907 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'
16908 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'
16909 # Commands to make compiler produce verbose output that lists
16910 # what "hidden" libraries, object files and flags are used when
16911 # linking a shared library.
16912 #
16913 # There doesn't appear to be a way to prevent this compiler from
16914 # explicitly linking system object files so we need to strip them
16915 # from the output so that they don't get included in the library
16916 # dependencies.
cristy5c40fb42010-08-05 16:12:44 +000016917 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 +000016918
16919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16921
16922 # Archives containing C++ object files must be created using
16923 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16924 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16925 ;;
16926 icpc* | ecpc* )
16927 # Intel C++
16928 with_gnu_ld=yes
16929 # version 8.0 and above of icpc choke on multiply defined symbols
16930 # if we add $predep_objects and $postdep_objects, however 7.1 and
16931 # earlier do not add the objects themselves.
16932 case `$CC -V 2>&1` in
16933 *"Version 7."*)
16934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16935 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'
16936 ;;
16937 *) # Version 8.0 or newer
16938 tmp_idyn=
16939 case $host_cpu in
16940 ia64*) tmp_idyn=' -i_dynamic';;
16941 esac
16942 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16943 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'
16944 ;;
16945 esac
16946 archive_cmds_need_lc_CXX=no
16947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16950 ;;
16951 pgCC* | pgcpp*)
16952 # Portland Group C++ compiler
16953 case `$CC -V` in
cristy5c40fb42010-08-05 16:12:44 +000016954 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
cristy3ed852e2009-09-05 21:47:34 +000016955 prelink_cmds_CXX='tpldir=Template.dir~
16956 rm -rf $tpldir~
16957 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy5c40fb42010-08-05 16:12:44 +000016958 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
cristy3ed852e2009-09-05 21:47:34 +000016959 old_archive_cmds_CXX='tpldir=Template.dir~
16960 rm -rf $tpldir~
16961 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy5c40fb42010-08-05 16:12:44 +000016962 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
cristy3ed852e2009-09-05 21:47:34 +000016963 $RANLIB $oldlib'
16964 archive_cmds_CXX='tpldir=Template.dir~
16965 rm -rf $tpldir~
16966 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy5c40fb42010-08-05 16:12:44 +000016967 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy3ed852e2009-09-05 21:47:34 +000016968 archive_expsym_cmds_CXX='tpldir=Template.dir~
16969 rm -rf $tpldir~
16970 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy5c40fb42010-08-05 16:12:44 +000016971 $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'
cristy3ed852e2009-09-05 21:47:34 +000016972 ;;
cristy5c40fb42010-08-05 16:12:44 +000016973 *) # Version 6 will use weak symbols
cristy3ed852e2009-09-05 21:47:34 +000016974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16975 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'
16976 ;;
16977 esac
16978
16979 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy5c40fb42010-08-05 16:12:44 +000016981 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 +000016982 ;;
16983 cxx*)
16984 # Compaq C++
16985 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16986 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'
16987
16988 runpath_var=LD_RUN_PATH
16989 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16990 hardcode_libdir_separator_CXX=:
16991
16992 # Commands to make compiler produce verbose output that lists
16993 # what "hidden" libraries, object files and flags are used when
16994 # linking a shared library.
16995 #
16996 # There doesn't appear to be a way to prevent this compiler from
16997 # explicitly linking system object files so we need to strip them
16998 # from the output so that they don't get included in the library
16999 # dependencies.
cristy5c40fb42010-08-05 16:12:44 +000017000 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 +000017001 ;;
cristy5c40fb42010-08-05 16:12:44 +000017002 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017003 # IBM XL 8.0 on PPC, with GNU ld
17004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17005 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17006 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17007 if test "x$supports_anon_versioning" = xyes; then
17008 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17010 echo "local: *; };" >> $output_objdir/$libname.ver~
17011 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17012 fi
17013 ;;
17014 *)
17015 case `$CC -V 2>&1 | sed 5q` in
17016 *Sun\ C*)
17017 # Sun C++ 5.9
17018 no_undefined_flag_CXX=' -zdefs'
17019 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17020 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'
17021 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy5c40fb42010-08-05 16:12:44 +000017022 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 +000017023 compiler_needs_object_CXX=yes
17024
17025 # Not sure whether something based on
17026 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17027 # would be better.
cristy5c40fb42010-08-05 16:12:44 +000017028 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017029
17030 # Archives containing C++ object files must be created using
17031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17032 # necessary to make sure instantiated templates are included
17033 # in the archive.
17034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17035 ;;
17036 esac
17037 ;;
17038 esac
17039 ;;
17040
17041 lynxos*)
17042 # FIXME: insert proper C++ library support
17043 ld_shlibs_CXX=no
17044 ;;
17045
17046 m88k*)
17047 # FIXME: insert proper C++ library support
17048 ld_shlibs_CXX=no
17049 ;;
17050
17051 mvs*)
17052 case $cc_basename in
17053 cxx*)
17054 # FIXME: insert proper C++ library support
17055 ld_shlibs_CXX=no
17056 ;;
17057 *)
17058 # FIXME: insert proper C++ library support
17059 ld_shlibs_CXX=no
17060 ;;
17061 esac
17062 ;;
17063
17064 netbsd*)
17065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17066 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17067 wlarc=
17068 hardcode_libdir_flag_spec_CXX='-R$libdir'
17069 hardcode_direct_CXX=yes
17070 hardcode_shlibpath_var_CXX=no
17071 fi
17072 # Workaround some broken pre-1.5 toolchains
17073 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17074 ;;
17075
17076 *nto* | *qnx*)
17077 ld_shlibs_CXX=yes
17078 ;;
17079
17080 openbsd2*)
17081 # C++ shared libraries are fairly broken
17082 ld_shlibs_CXX=no
17083 ;;
17084
17085 openbsd*)
17086 if test -f /usr/libexec/ld.so; then
17087 hardcode_direct_CXX=yes
17088 hardcode_shlibpath_var_CXX=no
17089 hardcode_direct_absolute_CXX=yes
17090 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17091 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17093 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17094 export_dynamic_flag_spec_CXX='${wl}-E'
17095 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17096 fi
cristy5c40fb42010-08-05 16:12:44 +000017097 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017098 else
17099 ld_shlibs_CXX=no
17100 fi
17101 ;;
17102
17103 osf3* | osf4* | osf5*)
17104 case $cc_basename in
17105 KCC*)
17106 # Kuck and Associates, Inc. (KAI) C++ Compiler
17107
17108 # KCC will only create a shared library if the output file
17109 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17110 # to its proper name (with version) after linking.
17111 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'
17112
17113 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17114 hardcode_libdir_separator_CXX=:
17115
17116 # Archives containing C++ object files must be created using
17117 # the KAI C++ compiler.
17118 case $host in
17119 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17120 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17121 esac
17122 ;;
17123 RCC*)
17124 # Rational C++ 2.4.1
17125 # FIXME: insert proper C++ library support
17126 ld_shlibs_CXX=no
17127 ;;
17128 cxx*)
17129 case $host in
17130 osf3*)
17131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy5c40fb42010-08-05 16:12:44 +000017132 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 +000017133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17134 ;;
17135 *)
17136 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy5c40fb42010-08-05 16:12:44 +000017137 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 +000017138 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17139 echo "-hidden">> $lib.exp~
cristy5c40fb42010-08-05 16:12:44 +000017140 $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 +000017141 $RM $lib.exp'
17142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17143 ;;
17144 esac
17145
17146 hardcode_libdir_separator_CXX=:
17147
17148 # Commands to make compiler produce verbose output that lists
17149 # what "hidden" libraries, object files and flags are used when
17150 # linking a shared library.
17151 #
17152 # There doesn't appear to be a way to prevent this compiler from
17153 # explicitly linking system object files so we need to strip them
17154 # from the output so that they don't get included in the library
17155 # dependencies.
cristy5c40fb42010-08-05 16:12:44 +000017156 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 +000017157 ;;
17158 *)
17159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17161 case $host in
17162 osf3*)
cristy5c40fb42010-08-05 16:12:44 +000017163 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 +000017164 ;;
17165 *)
cristy5c40fb42010-08-05 16:12:44 +000017166 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 +000017167 ;;
17168 esac
17169
17170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17171 hardcode_libdir_separator_CXX=:
17172
17173 # Commands to make compiler produce verbose output that lists
17174 # what "hidden" libraries, object files and flags are used when
17175 # linking a shared library.
cristy5c40fb42010-08-05 16:12:44 +000017176 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017177
17178 else
17179 # FIXME: insert proper C++ library support
17180 ld_shlibs_CXX=no
17181 fi
17182 ;;
17183 esac
17184 ;;
17185
17186 psos*)
17187 # FIXME: insert proper C++ library support
17188 ld_shlibs_CXX=no
17189 ;;
17190
17191 sunos4*)
17192 case $cc_basename in
17193 CC*)
17194 # Sun C++ 4.x
17195 # FIXME: insert proper C++ library support
17196 ld_shlibs_CXX=no
17197 ;;
17198 lcc*)
17199 # Lucid
17200 # FIXME: insert proper C++ library support
17201 ld_shlibs_CXX=no
17202 ;;
17203 *)
17204 # FIXME: insert proper C++ library support
17205 ld_shlibs_CXX=no
17206 ;;
17207 esac
17208 ;;
17209
17210 solaris*)
17211 case $cc_basename in
cristy5c40fb42010-08-05 16:12:44 +000017212 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017213 # Sun C++ 4.2, 5.x and Centerline C++
17214 archive_cmds_need_lc_CXX=yes
17215 no_undefined_flag_CXX=' -zdefs'
17216 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17218 $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'
17219
17220 hardcode_libdir_flag_spec_CXX='-R$libdir'
17221 hardcode_shlibpath_var_CXX=no
17222 case $host_os in
17223 solaris2.[0-5] | solaris2.[0-5].*) ;;
17224 *)
17225 # The compiler driver will combine and reorder linker options,
17226 # but understands `-z linker_flag'.
17227 # Supported since Solaris 2.6 (maybe 2.5.1?)
17228 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17229 ;;
17230 esac
17231 link_all_deplibs_CXX=yes
17232
cristy5c40fb42010-08-05 16:12:44 +000017233 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017234
17235 # Archives containing C++ object files must be created using
17236 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17237 # necessary to make sure instantiated templates are included
17238 # in the archive.
17239 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17240 ;;
17241 gcx*)
17242 # Green Hills C++ Compiler
17243 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17244
17245 # The C++ compiler must be used to create the archive.
17246 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17247 ;;
17248 *)
17249 # GNU C++ compiler with Solaris linker
17250 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17251 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17252 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17253 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17254 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17255 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17256
17257 # Commands to make compiler produce verbose output that lists
17258 # what "hidden" libraries, object files and flags are used when
17259 # linking a shared library.
cristy5c40fb42010-08-05 16:12:44 +000017260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017261 else
17262 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17263 # platform.
17264 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17265 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17266 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17267
17268 # Commands to make compiler produce verbose output that lists
17269 # what "hidden" libraries, object files and flags are used when
17270 # linking a shared library.
cristy5c40fb42010-08-05 16:12:44 +000017271 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017272 fi
17273
17274 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17275 case $host_os in
17276 solaris2.[0-5] | solaris2.[0-5].*) ;;
17277 *)
17278 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17279 ;;
17280 esac
17281 fi
17282 ;;
17283 esac
17284 ;;
17285
17286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17287 no_undefined_flag_CXX='${wl}-z,text'
17288 archive_cmds_need_lc_CXX=no
17289 hardcode_shlibpath_var_CXX=no
17290 runpath_var='LD_RUN_PATH'
17291
17292 case $cc_basename in
17293 CC*)
17294 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17295 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17296 ;;
17297 *)
17298 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17299 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17300 ;;
17301 esac
17302 ;;
17303
17304 sysv5* | sco3.2v5* | sco5v6*)
17305 # Note: We can NOT use -z defs as we might desire, because we do not
17306 # link with -lc, and that would cause any symbols used from libc to
17307 # always be unresolved, which means just about no library would
17308 # ever link correctly. If we're not using GNU ld we use -z text
17309 # though, which does catch some bad symbols but isn't as heavy-handed
17310 # as -z defs.
17311 no_undefined_flag_CXX='${wl}-z,text'
17312 allow_undefined_flag_CXX='${wl}-z,nodefs'
17313 archive_cmds_need_lc_CXX=no
17314 hardcode_shlibpath_var_CXX=no
17315 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17316 hardcode_libdir_separator_CXX=':'
17317 link_all_deplibs_CXX=yes
17318 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17319 runpath_var='LD_RUN_PATH'
17320
17321 case $cc_basename in
17322 CC*)
17323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17325 ;;
17326 *)
17327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17329 ;;
17330 esac
17331 ;;
17332
17333 tandem*)
17334 case $cc_basename in
17335 NCC*)
17336 # NonStop-UX NCC 3.20
17337 # FIXME: insert proper C++ library support
17338 ld_shlibs_CXX=no
17339 ;;
17340 *)
17341 # FIXME: insert proper C++ library support
17342 ld_shlibs_CXX=no
17343 ;;
17344 esac
17345 ;;
17346
17347 vxworks*)
17348 # FIXME: insert proper C++ library support
17349 ld_shlibs_CXX=no
17350 ;;
17351
17352 *)
17353 # FIXME: insert proper C++ library support
17354 ld_shlibs_CXX=no
17355 ;;
17356 esac
17357
cristy8b350f62009-11-15 23:12:43 +000017358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017359$as_echo "$ld_shlibs_CXX" >&6; }
17360 test "$ld_shlibs_CXX" = no && can_build_shared=no
17361
17362 GCC_CXX="$GXX"
17363 LD_CXX="$LD"
17364
17365 ## CAVEAT EMPTOR:
17366 ## There is no encapsulation within the following macros, do not change
17367 ## the running order or otherwise move them around unless you know exactly
17368 ## what you are doing...
17369 # Dependencies to place before and after the object being linked:
17370predep_objects_CXX=
17371postdep_objects_CXX=
17372predeps_CXX=
17373postdeps_CXX=
17374compiler_lib_search_path_CXX=
17375
17376cat > conftest.$ac_ext <<_LT_EOF
17377class Foo
17378{
17379public:
17380 Foo (void) { a = 0; }
17381private:
17382 int a;
17383};
17384_LT_EOF
17385
cristy8b350f62009-11-15 23:12:43 +000017386if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017387 (eval $ac_compile) 2>&5
17388 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17390 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017391 # Parse the compiler output and extract the necessary
17392 # objects, libraries and library flags.
17393
17394 # Sentinel used to keep track of whether or not we are before
17395 # the conftest object file.
17396 pre_test_object_deps_done=no
17397
17398 for p in `eval "$output_verbose_link_cmd"`; do
17399 case $p in
17400
17401 -L* | -R* | -l*)
17402 # Some compilers place space between "-{L,R}" and the path.
17403 # Remove the space.
17404 if test $p = "-L" ||
17405 test $p = "-R"; then
17406 prev=$p
17407 continue
17408 else
17409 prev=
17410 fi
17411
17412 if test "$pre_test_object_deps_done" = no; then
17413 case $p in
17414 -L* | -R*)
17415 # Internal compiler library paths should come after those
17416 # provided the user. The postdeps already come after the
17417 # user supplied libs so there is no need to process them.
17418 if test -z "$compiler_lib_search_path_CXX"; then
17419 compiler_lib_search_path_CXX="${prev}${p}"
17420 else
17421 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17422 fi
17423 ;;
17424 # The "-l" case would never come before the object being
17425 # linked, so don't bother handling this case.
17426 esac
17427 else
17428 if test -z "$postdeps_CXX"; then
17429 postdeps_CXX="${prev}${p}"
17430 else
17431 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17432 fi
17433 fi
17434 ;;
17435
17436 *.$objext)
17437 # This assumes that the test object file only shows up
17438 # once in the compiler output.
17439 if test "$p" = "conftest.$objext"; then
17440 pre_test_object_deps_done=yes
17441 continue
17442 fi
17443
17444 if test "$pre_test_object_deps_done" = no; then
17445 if test -z "$predep_objects_CXX"; then
17446 predep_objects_CXX="$p"
17447 else
17448 predep_objects_CXX="$predep_objects_CXX $p"
17449 fi
17450 else
17451 if test -z "$postdep_objects_CXX"; then
17452 postdep_objects_CXX="$p"
17453 else
17454 postdep_objects_CXX="$postdep_objects_CXX $p"
17455 fi
17456 fi
17457 ;;
17458
17459 *) ;; # Ignore the rest.
17460
17461 esac
17462 done
17463
17464 # Clean up.
17465 rm -f a.out a.exe
17466else
17467 echo "libtool.m4: error: problem compiling CXX test program"
17468fi
17469
17470$RM -f confest.$objext
17471
17472# PORTME: override above test on systems where it is broken
17473case $host_os in
17474interix[3-9]*)
17475 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17476 # hack all around it, let's just trust "g++" to DTRT.
17477 predep_objects_CXX=
17478 postdep_objects_CXX=
17479 postdeps_CXX=
17480 ;;
17481
17482linux*)
17483 case `$CC -V 2>&1 | sed 5q` in
17484 *Sun\ C*)
17485 # Sun C++ 5.9
17486
17487 # The more standards-conforming stlport4 library is
17488 # incompatible with the Cstd library. Avoid specifying
17489 # it if it's in CXXFLAGS. Ignore libCrun as
17490 # -library=stlport4 depends on it.
17491 case " $CXX $CXXFLAGS " in
17492 *" -library=stlport4 "*)
17493 solaris_use_stlport4=yes
17494 ;;
17495 esac
17496
17497 if test "$solaris_use_stlport4" != yes; then
17498 postdeps_CXX='-library=Cstd -library=Crun'
17499 fi
17500 ;;
17501 esac
17502 ;;
17503
17504solaris*)
17505 case $cc_basename in
cristy5c40fb42010-08-05 16:12:44 +000017506 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017507 # The more standards-conforming stlport4 library is
17508 # incompatible with the Cstd library. Avoid specifying
17509 # it if it's in CXXFLAGS. Ignore libCrun as
17510 # -library=stlport4 depends on it.
17511 case " $CXX $CXXFLAGS " in
17512 *" -library=stlport4 "*)
17513 solaris_use_stlport4=yes
17514 ;;
17515 esac
17516
17517 # Adding this requires a known-good setup of shared libraries for
17518 # Sun compiler versions before 5.6, else PIC objects from an old
17519 # archive will be linked into the output, leading to subtle bugs.
17520 if test "$solaris_use_stlport4" != yes; then
17521 postdeps_CXX='-library=Cstd -library=Crun'
17522 fi
17523 ;;
17524 esac
17525 ;;
17526esac
17527
17528
17529case " $postdeps_CXX " in
17530*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17531esac
17532 compiler_lib_search_dirs_CXX=
17533if test -n "${compiler_lib_search_path_CXX}"; then
17534 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17535fi
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567 lt_prog_compiler_wl_CXX=
17568lt_prog_compiler_pic_CXX=
17569lt_prog_compiler_static_CXX=
17570
cristy8b350f62009-11-15 23:12:43 +000017571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017572$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17573
17574 # C++ specific cases for pic, static, wl, etc.
17575 if test "$GXX" = yes; then
17576 lt_prog_compiler_wl_CXX='-Wl,'
17577 lt_prog_compiler_static_CXX='-static'
17578
17579 case $host_os in
17580 aix*)
17581 # All AIX code is PIC.
17582 if test "$host_cpu" = ia64; then
17583 # AIX 5 now supports IA64 processor
17584 lt_prog_compiler_static_CXX='-Bstatic'
17585 fi
17586 ;;
17587
17588 amigaos*)
17589 case $host_cpu in
17590 powerpc)
17591 # see comment about AmigaOS4 .so support
17592 lt_prog_compiler_pic_CXX='-fPIC'
17593 ;;
17594 m68k)
17595 # FIXME: we need at least 68020 code to build shared libraries, but
17596 # adding the `-m68020' flag to GCC prevents building anything better,
17597 # like `-m68040'.
17598 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17599 ;;
17600 esac
17601 ;;
17602
17603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17604 # PIC is the default for these OSes.
17605 ;;
17606 mingw* | cygwin* | os2* | pw32* | cegcc*)
17607 # This hack is so that the source file can tell whether it is being
17608 # built for inclusion in a dll (and should export symbols for example).
17609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17610 # (--disable-auto-import) libraries
17611 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17612 ;;
17613 darwin* | rhapsody*)
17614 # PIC is the default on this platform
17615 # Common symbols not allowed in MH_DYLIB files
17616 lt_prog_compiler_pic_CXX='-fno-common'
17617 ;;
17618 *djgpp*)
17619 # DJGPP does not support shared libraries at all
17620 lt_prog_compiler_pic_CXX=
17621 ;;
17622 interix[3-9]*)
17623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17624 # Instead, we relocate shared libraries at runtime.
17625 ;;
17626 sysv4*MP*)
17627 if test -d /usr/nec; then
17628 lt_prog_compiler_pic_CXX=-Kconform_pic
17629 fi
17630 ;;
17631 hpux*)
17632 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17633 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17634 # sets the default TLS model and affects inlining.
17635 case $host_cpu in
17636 hppa*64*)
17637 ;;
17638 *)
17639 lt_prog_compiler_pic_CXX='-fPIC'
17640 ;;
17641 esac
17642 ;;
17643 *qnx* | *nto*)
17644 # QNX uses GNU C++, but need to define -shared option too, otherwise
17645 # it will coredump.
17646 lt_prog_compiler_pic_CXX='-fPIC -shared'
17647 ;;
17648 *)
17649 lt_prog_compiler_pic_CXX='-fPIC'
17650 ;;
17651 esac
17652 else
17653 case $host_os in
17654 aix[4-9]*)
17655 # All AIX code is PIC.
17656 if test "$host_cpu" = ia64; then
17657 # AIX 5 now supports IA64 processor
17658 lt_prog_compiler_static_CXX='-Bstatic'
17659 else
17660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17661 fi
17662 ;;
17663 chorus*)
17664 case $cc_basename in
17665 cxch68*)
17666 # Green Hills C++ Compiler
17667 # _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"
17668 ;;
17669 esac
17670 ;;
17671 dgux*)
17672 case $cc_basename in
17673 ec++*)
17674 lt_prog_compiler_pic_CXX='-KPIC'
17675 ;;
17676 ghcx*)
17677 # Green Hills C++ Compiler
17678 lt_prog_compiler_pic_CXX='-pic'
17679 ;;
17680 *)
17681 ;;
17682 esac
17683 ;;
17684 freebsd* | dragonfly*)
17685 # FreeBSD uses GNU C++
17686 ;;
17687 hpux9* | hpux10* | hpux11*)
17688 case $cc_basename in
17689 CC*)
17690 lt_prog_compiler_wl_CXX='-Wl,'
17691 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17692 if test "$host_cpu" != ia64; then
17693 lt_prog_compiler_pic_CXX='+Z'
17694 fi
17695 ;;
17696 aCC*)
17697 lt_prog_compiler_wl_CXX='-Wl,'
17698 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17699 case $host_cpu in
17700 hppa*64*|ia64*)
17701 # +Z the default
17702 ;;
17703 *)
17704 lt_prog_compiler_pic_CXX='+Z'
17705 ;;
17706 esac
17707 ;;
17708 *)
17709 ;;
17710 esac
17711 ;;
17712 interix*)
17713 # This is c89, which is MS Visual C++ (no shared libs)
17714 # Anyone wants to do a port?
17715 ;;
17716 irix5* | irix6* | nonstopux*)
17717 case $cc_basename in
17718 CC*)
17719 lt_prog_compiler_wl_CXX='-Wl,'
17720 lt_prog_compiler_static_CXX='-non_shared'
17721 # CC pic flag -KPIC is the default.
17722 ;;
17723 *)
17724 ;;
17725 esac
17726 ;;
cristy5c40fb42010-08-05 16:12:44 +000017727 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017728 case $cc_basename in
17729 KCC*)
17730 # KAI C++ Compiler
17731 lt_prog_compiler_wl_CXX='--backend -Wl,'
17732 lt_prog_compiler_pic_CXX='-fPIC'
17733 ;;
17734 ecpc* )
17735 # old Intel C++ for x86_64 which still supported -KPIC.
17736 lt_prog_compiler_wl_CXX='-Wl,'
17737 lt_prog_compiler_pic_CXX='-KPIC'
17738 lt_prog_compiler_static_CXX='-static'
17739 ;;
17740 icpc* )
17741 # Intel C++, used to be incompatible with GCC.
17742 # ICC 10 doesn't accept -KPIC any more.
17743 lt_prog_compiler_wl_CXX='-Wl,'
17744 lt_prog_compiler_pic_CXX='-fPIC'
17745 lt_prog_compiler_static_CXX='-static'
17746 ;;
17747 pgCC* | pgcpp*)
17748 # Portland Group C++ compiler
17749 lt_prog_compiler_wl_CXX='-Wl,'
17750 lt_prog_compiler_pic_CXX='-fpic'
17751 lt_prog_compiler_static_CXX='-Bstatic'
17752 ;;
17753 cxx*)
17754 # Compaq C++
17755 # Make sure the PIC flag is empty. It appears that all Alpha
17756 # Linux and Compaq Tru64 Unix objects are PIC.
17757 lt_prog_compiler_pic_CXX=
17758 lt_prog_compiler_static_CXX='-non_shared'
17759 ;;
cristy5c40fb42010-08-05 16:12:44 +000017760 xlc* | xlC*)
17761 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017762 lt_prog_compiler_wl_CXX='-Wl,'
17763 lt_prog_compiler_pic_CXX='-qpic'
17764 lt_prog_compiler_static_CXX='-qstaticlink'
17765 ;;
17766 *)
17767 case `$CC -V 2>&1 | sed 5q` in
17768 *Sun\ C*)
17769 # Sun C++ 5.9
17770 lt_prog_compiler_pic_CXX='-KPIC'
17771 lt_prog_compiler_static_CXX='-Bstatic'
17772 lt_prog_compiler_wl_CXX='-Qoption ld '
17773 ;;
17774 esac
17775 ;;
17776 esac
17777 ;;
17778 lynxos*)
17779 ;;
17780 m88k*)
17781 ;;
17782 mvs*)
17783 case $cc_basename in
17784 cxx*)
17785 lt_prog_compiler_pic_CXX='-W c,exportall'
17786 ;;
17787 *)
17788 ;;
17789 esac
17790 ;;
17791 netbsd*)
17792 ;;
17793 *qnx* | *nto*)
17794 # QNX uses GNU C++, but need to define -shared option too, otherwise
17795 # it will coredump.
17796 lt_prog_compiler_pic_CXX='-fPIC -shared'
17797 ;;
17798 osf3* | osf4* | osf5*)
17799 case $cc_basename in
17800 KCC*)
17801 lt_prog_compiler_wl_CXX='--backend -Wl,'
17802 ;;
17803 RCC*)
17804 # Rational C++ 2.4.1
17805 lt_prog_compiler_pic_CXX='-pic'
17806 ;;
17807 cxx*)
17808 # Digital/Compaq C++
17809 lt_prog_compiler_wl_CXX='-Wl,'
17810 # Make sure the PIC flag is empty. It appears that all Alpha
17811 # Linux and Compaq Tru64 Unix objects are PIC.
17812 lt_prog_compiler_pic_CXX=
17813 lt_prog_compiler_static_CXX='-non_shared'
17814 ;;
17815 *)
17816 ;;
17817 esac
17818 ;;
17819 psos*)
17820 ;;
17821 solaris*)
17822 case $cc_basename in
cristy5c40fb42010-08-05 16:12:44 +000017823 CC*)
cristy3ed852e2009-09-05 21:47:34 +000017824 # Sun C++ 4.2, 5.x and Centerline C++
17825 lt_prog_compiler_pic_CXX='-KPIC'
17826 lt_prog_compiler_static_CXX='-Bstatic'
17827 lt_prog_compiler_wl_CXX='-Qoption ld '
17828 ;;
17829 gcx*)
17830 # Green Hills C++ Compiler
17831 lt_prog_compiler_pic_CXX='-PIC'
17832 ;;
17833 *)
17834 ;;
17835 esac
17836 ;;
17837 sunos4*)
17838 case $cc_basename in
17839 CC*)
17840 # Sun C++ 4.x
17841 lt_prog_compiler_pic_CXX='-pic'
17842 lt_prog_compiler_static_CXX='-Bstatic'
17843 ;;
17844 lcc*)
17845 # Lucid
17846 lt_prog_compiler_pic_CXX='-pic'
17847 ;;
17848 *)
17849 ;;
17850 esac
17851 ;;
17852 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17853 case $cc_basename in
17854 CC*)
17855 lt_prog_compiler_wl_CXX='-Wl,'
17856 lt_prog_compiler_pic_CXX='-KPIC'
17857 lt_prog_compiler_static_CXX='-Bstatic'
17858 ;;
17859 esac
17860 ;;
17861 tandem*)
17862 case $cc_basename in
17863 NCC*)
17864 # NonStop-UX NCC 3.20
17865 lt_prog_compiler_pic_CXX='-KPIC'
17866 ;;
17867 *)
17868 ;;
17869 esac
17870 ;;
17871 vxworks*)
17872 ;;
17873 *)
17874 lt_prog_compiler_can_build_shared_CXX=no
17875 ;;
17876 esac
17877 fi
17878
17879case $host_os in
17880 # For platforms which do not support PIC, -DPIC is meaningless:
17881 *djgpp*)
17882 lt_prog_compiler_pic_CXX=
17883 ;;
17884 *)
17885 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17886 ;;
17887esac
cristy8b350f62009-11-15 23:12:43 +000017888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017889$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17890
17891
17892
17893#
17894# Check to make sure the PIC flag actually works.
17895#
17896if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017897 { $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 +000017898$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017899if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017900 $as_echo_n "(cached) " >&6
17901else
17902 lt_cv_prog_compiler_pic_works_CXX=no
17903 ac_outfile=conftest.$ac_objext
17904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17905 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17906 # Insert the option either (1) after the last *FLAGS variable, or
17907 # (2) before a word containing "conftest.", or (3) at the end.
17908 # Note that $ac_compile itself does not contain backslashes and begins
17909 # with a dollar sign (not a hyphen), so the echo should work correctly.
17910 # The option is referenced via a variable to avoid confusing sed.
17911 lt_compile=`echo "$ac_compile" | $SED \
17912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17914 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000017915 (eval echo "\"\$as_me:17915: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017916 (eval "$lt_compile" 2>conftest.err)
17917 ac_status=$?
17918 cat conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000017919 echo "$as_me:17919: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017920 if (exit $ac_status) && test -s "$ac_outfile"; then
17921 # The compiler can only warn and ignore the option if not recognized
17922 # So say no if there are warnings other than the usual output.
cristy5c40fb42010-08-05 16:12:44 +000017923 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17926 lt_cv_prog_compiler_pic_works_CXX=yes
17927 fi
17928 fi
17929 $RM conftest*
17930
17931fi
cristy8b350f62009-11-15 23:12:43 +000017932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017933$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17934
17935if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17936 case $lt_prog_compiler_pic_CXX in
17937 "" | " "*) ;;
17938 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17939 esac
17940else
17941 lt_prog_compiler_pic_CXX=
17942 lt_prog_compiler_can_build_shared_CXX=no
17943fi
17944
17945fi
17946
17947
17948
17949#
17950# Check to make sure the static flag actually works.
17951#
17952wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017954$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017955if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017956 $as_echo_n "(cached) " >&6
17957else
17958 lt_cv_prog_compiler_static_works_CXX=no
17959 save_LDFLAGS="$LDFLAGS"
17960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17963 # The linker can only warn and ignore the option if not recognized
17964 # So say no if there are warnings
17965 if test -s conftest.err; then
17966 # Append any errors to the config.log.
17967 cat conftest.err 1>&5
cristy5c40fb42010-08-05 16:12:44 +000017968 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17970 if diff conftest.exp conftest.er2 >/dev/null; then
17971 lt_cv_prog_compiler_static_works_CXX=yes
17972 fi
17973 else
17974 lt_cv_prog_compiler_static_works_CXX=yes
17975 fi
17976 fi
17977 $RM -r conftest*
17978 LDFLAGS="$save_LDFLAGS"
17979
17980fi
cristy8b350f62009-11-15 23:12:43 +000017981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017982$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17983
17984if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17985 :
17986else
17987 lt_prog_compiler_static_CXX=
17988fi
17989
17990
17991
17992
cristy8b350f62009-11-15 23:12:43 +000017993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017995if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017996 $as_echo_n "(cached) " >&6
17997else
17998 lt_cv_prog_compiler_c_o_CXX=no
17999 $RM -r conftest 2>/dev/null
18000 mkdir conftest
18001 cd conftest
18002 mkdir out
18003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18004
18005 lt_compiler_flag="-o out/conftest2.$ac_objext"
18006 # Insert the option either (1) after the last *FLAGS variable, or
18007 # (2) before a word containing "conftest.", or (3) at the end.
18008 # Note that $ac_compile itself does not contain backslashes and begins
18009 # with a dollar sign (not a hyphen), so the echo should work correctly.
18010 lt_compile=`echo "$ac_compile" | $SED \
18011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18013 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000018014 (eval echo "\"\$as_me:18014: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018015 (eval "$lt_compile" 2>out/conftest.err)
18016 ac_status=$?
18017 cat out/conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000018018 echo "$as_me:18018: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18020 then
18021 # The compiler can only warn and ignore the option if not recognized
18022 # So say no if there are warnings
cristy5c40fb42010-08-05 16:12:44 +000018023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18026 lt_cv_prog_compiler_c_o_CXX=yes
18027 fi
18028 fi
18029 chmod u+w . 2>&5
18030 $RM conftest*
18031 # SGI C++ compiler will create directory out/ii_files/ for
18032 # template instantiation
18033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18034 $RM out/* && rmdir out
18035 cd ..
18036 $RM -r conftest
18037 $RM conftest*
18038
18039fi
cristy8b350f62009-11-15 23:12:43 +000018040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018041$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18042
18043
18044
cristy8b350f62009-11-15 23:12:43 +000018045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018046$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018047if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018048 $as_echo_n "(cached) " >&6
18049else
18050 lt_cv_prog_compiler_c_o_CXX=no
18051 $RM -r conftest 2>/dev/null
18052 mkdir conftest
18053 cd conftest
18054 mkdir out
18055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18056
18057 lt_compiler_flag="-o out/conftest2.$ac_objext"
18058 # Insert the option either (1) after the last *FLAGS variable, or
18059 # (2) before a word containing "conftest.", or (3) at the end.
18060 # Note that $ac_compile itself does not contain backslashes and begins
18061 # with a dollar sign (not a hyphen), so the echo should work correctly.
18062 lt_compile=`echo "$ac_compile" | $SED \
18063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18065 -e 's:$: $lt_compiler_flag:'`
cristy5c40fb42010-08-05 16:12:44 +000018066 (eval echo "\"\$as_me:18066: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018067 (eval "$lt_compile" 2>out/conftest.err)
18068 ac_status=$?
18069 cat out/conftest.err >&5
cristy5c40fb42010-08-05 16:12:44 +000018070 echo "$as_me:18070: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18072 then
18073 # The compiler can only warn and ignore the option if not recognized
18074 # So say no if there are warnings
cristy5c40fb42010-08-05 16:12:44 +000018075 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18078 lt_cv_prog_compiler_c_o_CXX=yes
18079 fi
18080 fi
18081 chmod u+w . 2>&5
18082 $RM conftest*
18083 # SGI C++ compiler will create directory out/ii_files/ for
18084 # template instantiation
18085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18086 $RM out/* && rmdir out
18087 cd ..
18088 $RM -r conftest
18089 $RM conftest*
18090
18091fi
cristy8b350f62009-11-15 23:12:43 +000018092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018093$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18094
18095
18096
18097
18098hard_links="nottested"
18099if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18100 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018102$as_echo_n "checking if we can lock with hard links... " >&6; }
18103 hard_links=yes
18104 $RM conftest*
18105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18106 touch conftest.a
18107 ln conftest.a conftest.b 2>&5 || hard_links=no
18108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018110$as_echo "$hard_links" >&6; }
18111 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018112 { $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 +000018113$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18114 need_locks=warn
18115 fi
18116else
18117 need_locks=no
18118fi
18119
18120
18121
cristy8b350f62009-11-15 23:12:43 +000018122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018123$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18124
18125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18126 case $host_os in
18127 aix[4-9]*)
18128 # If we're using GNU nm, then we don't want the "-C" option.
18129 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18130 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy5c40fb42010-08-05 16:12:44 +000018131 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 +000018132 else
18133 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'
18134 fi
18135 ;;
18136 pw32*)
18137 export_symbols_cmds_CXX="$ltdll_cmds"
18138 ;;
18139 cygwin* | mingw* | cegcc*)
18140 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'
18141 ;;
18142 *)
18143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18144 ;;
18145 esac
18146 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18147
cristy8b350f62009-11-15 23:12:43 +000018148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018149$as_echo "$ld_shlibs_CXX" >&6; }
18150test "$ld_shlibs_CXX" = no && can_build_shared=no
18151
18152with_gnu_ld_CXX=$with_gnu_ld
18153
18154
18155
18156
18157
18158
18159#
18160# Do we need to explicitly link libc?
18161#
18162case "x$archive_cmds_need_lc_CXX" in
18163x|xyes)
18164 # Assume -lc should be added
18165 archive_cmds_need_lc_CXX=yes
18166
18167 if test "$enable_shared" = yes && test "$GCC" = yes; then
18168 case $archive_cmds_CXX in
18169 *'~'*)
18170 # FIXME: we may have to deal with multi-command sequences.
18171 ;;
18172 '$CC '*)
18173 # Test whether the compiler implicitly links with -lc since on some
18174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18175 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018177$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +000018178 $RM conftest*
18179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018180
cristy5c40fb42010-08-05 16:12:44 +000018181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018182 (eval $ac_compile) 2>&5
18183 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185 test $ac_status = 0; } 2>conftest.err; then
cristy5c40fb42010-08-05 16:12:44 +000018186 soname=conftest
18187 lib=conftest
18188 libobjs=conftest.$ac_objext
18189 deplibs=
18190 wl=$lt_prog_compiler_wl_CXX
18191 pic_flag=$lt_prog_compiler_pic_CXX
18192 compiler_flags=-v
18193 linker_flags=-v
18194 verstring=
18195 output_objdir=.
18196 libname=conftest
18197 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18198 allow_undefined_flag_CXX=
18199 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 +000018200 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18201 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18203 test $ac_status = 0; }
cristy5c40fb42010-08-05 16:12:44 +000018204 then
18205 archive_cmds_need_lc_CXX=no
18206 else
18207 archive_cmds_need_lc_CXX=yes
18208 fi
18209 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18210 else
18211 cat conftest.err 1>&5
18212 fi
18213 $RM conftest*
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18215$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018216 ;;
18217 esac
18218 fi
18219 ;;
18220esac
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
cristy8b350f62009-11-15 23:12:43 +000018285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018286$as_echo_n "checking dynamic linker characteristics... " >&6; }
18287
18288library_names_spec=
18289libname_spec='lib$name'
18290soname_spec=
18291shrext_cmds=".so"
18292postinstall_cmds=
18293postuninstall_cmds=
18294finish_cmds=
18295finish_eval=
18296shlibpath_var=
18297shlibpath_overrides_runpath=unknown
18298version_type=none
18299dynamic_linker="$host_os ld.so"
18300sys_lib_dlsearch_path_spec="/lib /usr/lib"
18301need_lib_prefix=unknown
18302hardcode_into_libs=no
18303
18304# when you set need_version to no, make sure it does not cause -set_version
18305# flags to be left without arguments
18306need_version=unknown
18307
18308case $host_os in
18309aix3*)
18310 version_type=linux
18311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18312 shlibpath_var=LIBPATH
18313
18314 # AIX 3 has no versioning support, so we append a major version to the name.
18315 soname_spec='${libname}${release}${shared_ext}$major'
18316 ;;
18317
18318aix[4-9]*)
18319 version_type=linux
18320 need_lib_prefix=no
18321 need_version=no
18322 hardcode_into_libs=yes
18323 if test "$host_cpu" = ia64; then
18324 # AIX 5 supports IA64
18325 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18326 shlibpath_var=LD_LIBRARY_PATH
18327 else
18328 # With GCC up to 2.95.x, collect2 would create an import file
18329 # for dependence libraries. The import file would start with
18330 # the line `#! .'. This would cause the generated library to
18331 # depend on `.', always an invalid library. This was fixed in
18332 # development snapshots of GCC prior to 3.0.
18333 case $host_os in
18334 aix4 | aix4.[01] | aix4.[01].*)
18335 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18336 echo ' yes '
18337 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18338 :
18339 else
18340 can_build_shared=no
18341 fi
18342 ;;
18343 esac
18344 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18345 # soname into executable. Probably we can add versioning support to
18346 # collect2, so additional links can be useful in future.
18347 if test "$aix_use_runtimelinking" = yes; then
18348 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18349 # instead of lib<name>.a to let people know that these are not
18350 # typical AIX shared libraries.
18351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352 else
18353 # We preserve .a as extension for shared libraries through AIX4.2
18354 # and later when we are not doing run time linking.
18355 library_names_spec='${libname}${release}.a $libname.a'
18356 soname_spec='${libname}${release}${shared_ext}$major'
18357 fi
18358 shlibpath_var=LIBPATH
18359 fi
18360 ;;
18361
18362amigaos*)
18363 case $host_cpu in
18364 powerpc)
18365 # Since July 2007 AmigaOS4 officially supports .so libraries.
18366 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 ;;
18369 m68k)
18370 library_names_spec='$libname.ixlibrary $libname.a'
18371 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy5c40fb42010-08-05 16:12:44 +000018372 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 +000018373 ;;
18374 esac
18375 ;;
18376
18377beos*)
18378 library_names_spec='${libname}${shared_ext}'
18379 dynamic_linker="$host_os ld.so"
18380 shlibpath_var=LIBRARY_PATH
18381 ;;
18382
18383bsdi[45]*)
18384 version_type=linux
18385 need_version=no
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18388 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18389 shlibpath_var=LD_LIBRARY_PATH
18390 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18391 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18392 # the default ld.so.conf also contains /usr/contrib/lib and
18393 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18394 # libtool to hard-code these into programs
18395 ;;
18396
18397cygwin* | mingw* | pw32* | cegcc*)
18398 version_type=windows
18399 shrext_cmds=".dll"
18400 need_version=no
18401 need_lib_prefix=no
18402
18403 case $GCC,$host_os in
18404 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18405 library_names_spec='$libname.dll.a'
18406 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18407 postinstall_cmds='base_file=`basename \${file}`~
18408 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18409 dldir=$destdir/`dirname \$dlpath`~
18410 test -d \$dldir || mkdir -p \$dldir~
18411 $install_prog $dir/$dlname \$dldir/$dlname~
18412 chmod a+x \$dldir/$dlname~
18413 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18414 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18415 fi'
18416 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18417 dlpath=$dir/\$dldll~
18418 $RM \$dlpath'
18419 shlibpath_overrides_runpath=yes
18420
18421 case $host_os in
18422 cygwin*)
18423 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18424 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy5c40fb42010-08-05 16:12:44 +000018425 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018426 ;;
18427 mingw* | cegcc*)
18428 # MinGW DLLs use traditional 'lib' prefix
18429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy5c40fb42010-08-05 16:12:44 +000018430 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18431 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18432 # It is most probably a Windows format PATH printed by
18433 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18434 # path with ; separators, and with drive letters. We can handle the
18435 # drive letters (cygwin fileutils understands them), so leave them,
18436 # especially as we might pass files found there to a mingw objdump,
18437 # which wouldn't understand a cygwinified path. Ahh.
18438 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18439 else
18440 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18441 fi
cristy3ed852e2009-09-05 21:47:34 +000018442 ;;
18443 pw32*)
18444 # pw32 DLLs use 'pw' prefix rather than 'lib'
18445 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18446 ;;
18447 esac
18448 ;;
18449
18450 *)
18451 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18452 ;;
18453 esac
18454 dynamic_linker='Win32 ld.exe'
18455 # FIXME: first we should search . and the directory the executable is in
18456 shlibpath_var=PATH
18457 ;;
18458
18459darwin* | rhapsody*)
18460 dynamic_linker="$host_os dyld"
18461 version_type=darwin
18462 need_lib_prefix=no
18463 need_version=no
18464 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18465 soname_spec='${libname}${release}${major}$shared_ext'
18466 shlibpath_overrides_runpath=yes
18467 shlibpath_var=DYLD_LIBRARY_PATH
18468 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18469
18470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18471 ;;
18472
18473dgux*)
18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 shlibpath_var=LD_LIBRARY_PATH
18480 ;;
18481
18482freebsd1*)
18483 dynamic_linker=no
18484 ;;
18485
18486freebsd* | dragonfly*)
18487 # DragonFly does not have aout. When/if they implement a new
18488 # versioning mechanism, adjust this.
18489 if test -x /usr/bin/objformat; then
18490 objformat=`/usr/bin/objformat`
18491 else
18492 case $host_os in
18493 freebsd[123]*) objformat=aout ;;
18494 *) objformat=elf ;;
18495 esac
18496 fi
18497 version_type=freebsd-$objformat
18498 case $version_type in
18499 freebsd-elf*)
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18501 need_version=no
18502 need_lib_prefix=no
18503 ;;
18504 freebsd-*)
18505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18506 need_version=yes
18507 ;;
18508 esac
18509 shlibpath_var=LD_LIBRARY_PATH
18510 case $host_os in
18511 freebsd2*)
18512 shlibpath_overrides_runpath=yes
18513 ;;
18514 freebsd3.[01]* | freebsdelf3.[01]*)
18515 shlibpath_overrides_runpath=yes
18516 hardcode_into_libs=yes
18517 ;;
18518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18520 shlibpath_overrides_runpath=no
18521 hardcode_into_libs=yes
18522 ;;
18523 *) # from 4.6 on, and DragonFly
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18526 ;;
18527 esac
18528 ;;
18529
18530gnu*)
18531 version_type=linux
18532 need_lib_prefix=no
18533 need_version=no
18534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18535 soname_spec='${libname}${release}${shared_ext}$major'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 hardcode_into_libs=yes
18538 ;;
18539
18540hpux9* | hpux10* | hpux11*)
18541 # Give a soname corresponding to the major version so that dld.sl refuses to
18542 # link against other versions.
18543 version_type=sunos
18544 need_lib_prefix=no
18545 need_version=no
18546 case $host_cpu in
18547 ia64*)
18548 shrext_cmds='.so'
18549 hardcode_into_libs=yes
18550 dynamic_linker="$host_os dld.so"
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18555 if test "X$HPUX_IA64_MODE" = X32; then
18556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18557 else
18558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18559 fi
18560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18561 ;;
18562 hppa*64*)
18563 shrext_cmds='.sl'
18564 hardcode_into_libs=yes
18565 dynamic_linker="$host_os dld.sl"
18566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18572 ;;
18573 *)
18574 shrext_cmds='.sl'
18575 dynamic_linker="$host_os dld.sl"
18576 shlibpath_var=SHLIB_PATH
18577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18579 soname_spec='${libname}${release}${shared_ext}$major'
18580 ;;
18581 esac
cristy5c40fb42010-08-05 16:12:44 +000018582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018583 postinstall_cmds='chmod 555 $lib'
18584 ;;
18585
18586interix[3-9]*)
18587 version_type=linux
18588 need_lib_prefix=no
18589 need_version=no
18590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 shlibpath_overrides_runpath=no
18595 hardcode_into_libs=yes
18596 ;;
18597
18598irix5* | irix6* | nonstopux*)
18599 case $host_os in
18600 nonstopux*) version_type=nonstopux ;;
18601 *)
18602 if test "$lt_cv_prog_gnu_ld" = yes; then
18603 version_type=linux
18604 else
18605 version_type=irix
18606 fi ;;
18607 esac
18608 need_lib_prefix=no
18609 need_version=no
18610 soname_spec='${libname}${release}${shared_ext}$major'
18611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18612 case $host_os in
18613 irix5* | nonstopux*)
18614 libsuff= shlibsuff=
18615 ;;
18616 *)
18617 case $LD in # libtool.m4 will add one of these switches to LD
18618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18619 libsuff= shlibsuff= libmagic=32-bit;;
18620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18621 libsuff=32 shlibsuff=N32 libmagic=N32;;
18622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18624 *) libsuff= shlibsuff= libmagic=never-match;;
18625 esac
18626 ;;
18627 esac
18628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18629 shlibpath_overrides_runpath=no
18630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18632 hardcode_into_libs=yes
18633 ;;
18634
18635# No shared lib support for Linux oldld, aout, or coff.
18636linux*oldld* | linux*aout* | linux*coff*)
18637 dynamic_linker=no
18638 ;;
18639
18640# This must be Linux ELF.
cristy5c40fb42010-08-05 16:12:44 +000018641linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018642 version_type=linux
18643 need_lib_prefix=no
18644 need_version=no
18645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18648 shlibpath_var=LD_LIBRARY_PATH
18649 shlibpath_overrides_runpath=no
18650 # Some binutils ld are patched to set DT_RUNPATH
cristy5c40fb42010-08-05 16:12:44 +000018651 save_LDFLAGS=$LDFLAGS
18652 save_libdir=$libdir
18653 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18654 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018656/* end confdefs.h. */
18657
18658int
18659main ()
18660{
18661
18662 ;
18663 return 0;
18664}
18665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018666if ac_fn_cxx_try_link "$LINENO"; then :
18667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy5c40fb42010-08-05 16:12:44 +000018668 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018669fi
cristy3ed852e2009-09-05 21:47:34 +000018670fi
cristy8b350f62009-11-15 23:12:43 +000018671rm -f core conftest.err conftest.$ac_objext \
18672 conftest$ac_exeext conftest.$ac_ext
cristy5c40fb42010-08-05 16:12:44 +000018673 LDFLAGS=$save_LDFLAGS
18674 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018675
18676 # This implies no fast_install, which is unacceptable.
18677 # Some rework will be needed to allow for fast_install
18678 # before this can be enabled.
18679 hardcode_into_libs=yes
18680
cristy679ed8e2009-12-05 02:37:41 +000018681 # Add ABI-specific directories to the system library path.
18682 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18683
cristy3ed852e2009-09-05 21:47:34 +000018684 # Append ld.so.conf contents to the search path
18685 if test -f /etc/ld.so.conf; then
cristy5c40fb42010-08-05 16:12:44 +000018686 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 +000018687 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018688 fi
18689
18690 # We used to test for /lib/ld.so.1 and disable shared libraries on
18691 # powerpc, because MkLinux only supported shared libraries with the
18692 # GNU dynamic linker. Since this was broken with cross compilers,
18693 # most powerpc-linux boxes support dynamic linking these days and
18694 # people can always --disable-shared, the test was removed, and we
18695 # assume the GNU/Linux dynamic linker is in use.
18696 dynamic_linker='GNU/Linux ld.so'
18697 ;;
18698
18699netbsd*)
18700 version_type=sunos
18701 need_lib_prefix=no
18702 need_version=no
18703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18706 dynamic_linker='NetBSD (a.out) ld.so'
18707 else
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 dynamic_linker='NetBSD ld.elf_so'
18711 fi
18712 shlibpath_var=LD_LIBRARY_PATH
18713 shlibpath_overrides_runpath=yes
18714 hardcode_into_libs=yes
18715 ;;
18716
18717newsos6)
18718 version_type=linux
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720 shlibpath_var=LD_LIBRARY_PATH
18721 shlibpath_overrides_runpath=yes
18722 ;;
18723
18724*nto* | *qnx*)
18725 version_type=qnx
18726 need_lib_prefix=no
18727 need_version=no
18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729 soname_spec='${libname}${release}${shared_ext}$major'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 shlibpath_overrides_runpath=no
18732 hardcode_into_libs=yes
18733 dynamic_linker='ldqnx.so'
18734 ;;
18735
18736openbsd*)
18737 version_type=sunos
18738 sys_lib_dlsearch_path_spec="/usr/lib"
18739 need_lib_prefix=no
18740 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18741 case $host_os in
18742 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18743 *) need_version=no ;;
18744 esac
18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18747 shlibpath_var=LD_LIBRARY_PATH
18748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18749 case $host_os in
18750 openbsd2.[89] | openbsd2.[89].*)
18751 shlibpath_overrides_runpath=no
18752 ;;
18753 *)
18754 shlibpath_overrides_runpath=yes
18755 ;;
18756 esac
18757 else
18758 shlibpath_overrides_runpath=yes
18759 fi
18760 ;;
18761
18762os2*)
18763 libname_spec='$name'
18764 shrext_cmds=".dll"
18765 need_lib_prefix=no
18766 library_names_spec='$libname${shared_ext} $libname.a'
18767 dynamic_linker='OS/2 ld.exe'
18768 shlibpath_var=LIBPATH
18769 ;;
18770
18771osf3* | osf4* | osf5*)
18772 version_type=osf
18773 need_lib_prefix=no
18774 need_version=no
18775 soname_spec='${libname}${release}${shared_ext}$major'
18776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18779 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18780 ;;
18781
18782rdos*)
18783 dynamic_linker=no
18784 ;;
18785
18786solaris*)
18787 version_type=linux
18788 need_lib_prefix=no
18789 need_version=no
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791 soname_spec='${libname}${release}${shared_ext}$major'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 shlibpath_overrides_runpath=yes
18794 hardcode_into_libs=yes
18795 # ldd complains unless libraries are executable
18796 postinstall_cmds='chmod +x $lib'
18797 ;;
18798
18799sunos4*)
18800 version_type=sunos
18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18803 shlibpath_var=LD_LIBRARY_PATH
18804 shlibpath_overrides_runpath=yes
18805 if test "$with_gnu_ld" = yes; then
18806 need_lib_prefix=no
18807 fi
18808 need_version=yes
18809 ;;
18810
18811sysv4 | sysv4.3*)
18812 version_type=linux
18813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18814 soname_spec='${libname}${release}${shared_ext}$major'
18815 shlibpath_var=LD_LIBRARY_PATH
18816 case $host_vendor in
18817 sni)
18818 shlibpath_overrides_runpath=no
18819 need_lib_prefix=no
18820 runpath_var=LD_RUN_PATH
18821 ;;
18822 siemens)
18823 need_lib_prefix=no
18824 ;;
18825 motorola)
18826 need_lib_prefix=no
18827 need_version=no
18828 shlibpath_overrides_runpath=no
18829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18830 ;;
18831 esac
18832 ;;
18833
18834sysv4*MP*)
18835 if test -d /usr/nec ;then
18836 version_type=linux
18837 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18838 soname_spec='$libname${shared_ext}.$major'
18839 shlibpath_var=LD_LIBRARY_PATH
18840 fi
18841 ;;
18842
18843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18844 version_type=freebsd-elf
18845 need_lib_prefix=no
18846 need_version=no
18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18848 soname_spec='${libname}${release}${shared_ext}$major'
18849 shlibpath_var=LD_LIBRARY_PATH
18850 shlibpath_overrides_runpath=yes
18851 hardcode_into_libs=yes
18852 if test "$with_gnu_ld" = yes; then
18853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18854 else
18855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18856 case $host_os in
18857 sco3.2v5*)
18858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18859 ;;
18860 esac
18861 fi
18862 sys_lib_dlsearch_path_spec='/usr/lib'
18863 ;;
18864
18865tpf*)
18866 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18867 version_type=linux
18868 need_lib_prefix=no
18869 need_version=no
18870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=no
18873 hardcode_into_libs=yes
18874 ;;
18875
18876uts4*)
18877 version_type=linux
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 soname_spec='${libname}${release}${shared_ext}$major'
18880 shlibpath_var=LD_LIBRARY_PATH
18881 ;;
18882
18883*)
18884 dynamic_linker=no
18885 ;;
18886esac
cristy8b350f62009-11-15 23:12:43 +000018887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018888$as_echo "$dynamic_linker" >&6; }
18889test "$dynamic_linker" = no && can_build_shared=no
18890
18891variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18892if test "$GCC" = yes; then
18893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18894fi
18895
18896if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18897 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18898fi
18899if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18900 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18901fi
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
cristy8b350f62009-11-15 23:12:43 +000018938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018939$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18940hardcode_action_CXX=
18941if test -n "$hardcode_libdir_flag_spec_CXX" ||
18942 test -n "$runpath_var_CXX" ||
18943 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18944
18945 # We can hardcode non-existent directories.
18946 if test "$hardcode_direct_CXX" != no &&
18947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18948 # have to relink, otherwise we might link with an installed library
18949 # when we should be linking with a yet-to-be-installed one
18950 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18951 test "$hardcode_minus_L_CXX" != no; then
18952 # Linking always hardcodes the temporary library directory.
18953 hardcode_action_CXX=relink
18954 else
18955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18956 hardcode_action_CXX=immediate
18957 fi
18958else
18959 # We cannot hardcode anything, or else we can only hardcode existing
18960 # directories.
18961 hardcode_action_CXX=unsupported
18962fi
cristy8b350f62009-11-15 23:12:43 +000018963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018964$as_echo "$hardcode_action_CXX" >&6; }
18965
18966if test "$hardcode_action_CXX" = relink ||
18967 test "$inherit_rpath_CXX" = yes; then
18968 # Fast installation is not supported
18969 enable_fast_install=no
18970elif test "$shlibpath_overrides_runpath" = yes ||
18971 test "$enable_shared" = no; then
18972 # Fast installation is not necessary
18973 enable_fast_install=needless
18974fi
18975
18976
18977
18978
18979
18980
18981
18982 fi # test -n "$compiler"
18983
18984 CC=$lt_save_CC
18985 LDCXX=$LD
18986 LD=$lt_save_LD
18987 GCC=$lt_save_GCC
18988 with_gnu_ld=$lt_save_with_gnu_ld
18989 lt_cv_path_LDCXX=$lt_cv_path_LD
18990 lt_cv_path_LD=$lt_save_path_LD
18991 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18992 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18993fi # test "$_lt_caught_CXX_error" != yes
18994
18995ac_ext=c
18996ac_cpp='$CPP $CPPFLAGS'
18997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999ac_compiler_gnu=$ac_cv_c_compiler_gnu
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013 ac_config_commands="$ac_config_commands libtool"
19014
19015
19016
19017
19018# Only expand once:
19019
19020
19021
19022
19023
19024# Configure libltdl
19025
19026
19027
19028
19029
19030
19031
cristy5c40fb42010-08-05 16:12:44 +000019032
cristy8b350f62009-11-15 23:12:43 +000019033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019034$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019035if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019036 $as_echo_n "(cached) " >&6
19037else
19038
19039module=yes
19040eval libltdl_cv_shlibext=$shrext_cmds
19041
19042fi
cristy8b350f62009-11-15 23:12:43 +000019043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019044$as_echo "$libltdl_cv_shlibext" >&6; }
19045if test -n "$libltdl_cv_shlibext"; then
19046
19047cat >>confdefs.h <<_ACEOF
19048#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19049_ACEOF
19050
19051fi
19052
cristy8b350f62009-11-15 23:12:43 +000019053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019054$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019055if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019056 $as_echo_n "(cached) " >&6
19057else
19058 lt_cv_module_path_var="$shlibpath_var"
19059fi
cristy8b350f62009-11-15 23:12:43 +000019060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019061$as_echo "$lt_cv_module_path_var" >&6; }
19062if test -n "$lt_cv_module_path_var"; then
19063
19064cat >>confdefs.h <<_ACEOF
19065#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19066_ACEOF
19067
19068fi
19069
cristy8b350f62009-11-15 23:12:43 +000019070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019071$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019072if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019073 $as_echo_n "(cached) " >&6
19074else
19075 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19076fi
cristy8b350f62009-11-15 23:12:43 +000019077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019078$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19079if test -n "$lt_cv_sys_dlsearch_path"; then
19080 sys_dlsearch_path=
19081 for dir in $lt_cv_sys_dlsearch_path; do
19082 if test -z "$sys_dlsearch_path"; then
19083 sys_dlsearch_path="$dir"
19084 else
19085 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19086 fi
19087 done
19088
19089cat >>confdefs.h <<_ACEOF
19090#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19091_ACEOF
19092
19093fi
19094
19095
19096LT_DLLOADERS=
19097
19098
19099ac_ext=c
19100ac_cpp='$CPP $CPPFLAGS'
19101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19103ac_compiler_gnu=$ac_cv_c_compiler_gnu
19104
19105
19106LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019108$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019109if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019110 $as_echo_n "(cached) " >&6
19111else
19112 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019114/* end confdefs.h. */
19115
19116/* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
19119#ifdef __cplusplus
19120extern "C"
19121#endif
19122char dlopen ();
19123int
19124main ()
19125{
19126return dlopen ();
19127 ;
19128 return 0;
19129}
19130_ACEOF
19131for ac_lib in '' dl; do
19132 if test -z "$ac_lib"; then
19133 ac_res="none required"
19134 else
19135 ac_res=-l$ac_lib
19136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19137 fi
cristy8b350f62009-11-15 23:12:43 +000019138 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019139 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019140fi
cristy8b350f62009-11-15 23:12:43 +000019141rm -f core conftest.err conftest.$ac_objext \
19142 conftest$ac_exeext
19143 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019144 break
19145fi
19146done
cristy8b350f62009-11-15 23:12:43 +000019147if test "${ac_cv_search_dlopen+set}" = set; then :
19148
cristy3ed852e2009-09-05 21:47:34 +000019149else
19150 ac_cv_search_dlopen=no
19151fi
19152rm conftest.$ac_ext
19153LIBS=$ac_func_search_save_LIBS
19154fi
cristy8b350f62009-11-15 23:12:43 +000019155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019156$as_echo "$ac_cv_search_dlopen" >&6; }
19157ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019158if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19160
cristy8b350f62009-11-15 23:12:43 +000019161$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019162
19163 if test "$ac_cv_search_dlopen" != "none required" ; then
19164 LIBADD_DLOPEN="-ldl"
19165 fi
19166 libltdl_cv_lib_dl_dlopen="yes"
19167 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19168else
cristy8b350f62009-11-15 23:12:43 +000019169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019170/* end confdefs.h. */
19171#if HAVE_DLFCN_H
19172# include <dlfcn.h>
19173#endif
19174
19175int
19176main ()
19177{
19178dlopen(0, 0);
19179 ;
19180 return 0;
19181}
19182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019184
cristy8b350f62009-11-15 23:12:43 +000019185$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019186
19187 libltdl_cv_func_dlopen="yes"
19188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19189else
cristy8b350f62009-11-15 23:12:43 +000019190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019191$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019192if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019193 $as_echo_n "(cached) " >&6
19194else
19195 ac_check_lib_save_LIBS=$LIBS
19196LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019198/* end confdefs.h. */
19199
19200/* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19203#ifdef __cplusplus
19204extern "C"
19205#endif
19206char dlopen ();
19207int
19208main ()
19209{
19210return dlopen ();
19211 ;
19212 return 0;
19213}
19214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019216 ac_cv_lib_svld_dlopen=yes
19217else
cristy8b350f62009-11-15 23:12:43 +000019218 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019219fi
cristy8b350f62009-11-15 23:12:43 +000019220rm -f core conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019222LIBS=$ac_check_lib_save_LIBS
19223fi
cristy8b350f62009-11-15 23:12:43 +000019224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019225$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019226if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019227
cristy8b350f62009-11-15 23:12:43 +000019228$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019229
19230 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19231 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19232fi
19233
19234fi
cristy8b350f62009-11-15 23:12:43 +000019235rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019237fi
19238
19239if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19240then
19241 lt_save_LIBS="$LIBS"
19242 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019243 for ac_func in dlerror
19244do :
19245 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19246if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019247 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019248#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019249_ACEOF
19250
19251fi
19252done
19253
19254 LIBS="$lt_save_LIBS"
19255fi
19256
19257
19258LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019259ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19260if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019261
cristy8b350f62009-11-15 23:12:43 +000019262$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019263
19264 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19265else
cristy8b350f62009-11-15 23:12:43 +000019266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019267$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019268if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019269 $as_echo_n "(cached) " >&6
19270else
19271 ac_check_lib_save_LIBS=$LIBS
19272LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019274/* end confdefs.h. */
19275
19276/* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279#ifdef __cplusplus
19280extern "C"
19281#endif
19282char shl_load ();
19283int
19284main ()
19285{
19286return shl_load ();
19287 ;
19288 return 0;
19289}
19290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019291if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019292 ac_cv_lib_dld_shl_load=yes
19293else
cristy8b350f62009-11-15 23:12:43 +000019294 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019295fi
cristy8b350f62009-11-15 23:12:43 +000019296rm -f core conftest.err conftest.$ac_objext \
19297 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019298LIBS=$ac_check_lib_save_LIBS
19299fi
cristy8b350f62009-11-15 23:12:43 +000019300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019301$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019302if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019303
cristy8b350f62009-11-15 23:12:43 +000019304$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019305
19306 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19307 LIBADD_SHL_LOAD="-ldld"
19308fi
19309
19310fi
19311
19312
19313
19314case $host_os in
19315darwin[1567].*)
19316# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019317 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19318if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019319
cristy8b350f62009-11-15 23:12:43 +000019320$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019321
19322 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19323fi
19324
19325 ;;
19326beos*)
19327 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19328 ;;
19329cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019330 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19331"
19332if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19333 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019334else
cristy8b350f62009-11-15 23:12:43 +000019335 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019336fi
19337
cristy3ed852e2009-09-05 21:47:34 +000019338cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019339#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019340_ACEOF
19341
cristy3ed852e2009-09-05 21:47:34 +000019342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19343 ;;
19344esac
19345
cristy8b350f62009-11-15 23:12:43 +000019346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019347$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019348if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019349 $as_echo_n "(cached) " >&6
19350else
19351 ac_check_lib_save_LIBS=$LIBS
19352LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019354/* end confdefs.h. */
19355
19356/* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19359#ifdef __cplusplus
19360extern "C"
19361#endif
19362char dld_link ();
19363int
19364main ()
19365{
19366return dld_link ();
19367 ;
19368 return 0;
19369}
19370_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019371if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019372 ac_cv_lib_dld_dld_link=yes
19373else
cristy8b350f62009-11-15 23:12:43 +000019374 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019375fi
cristy8b350f62009-11-15 23:12:43 +000019376rm -f core conftest.err conftest.$ac_objext \
19377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019378LIBS=$ac_check_lib_save_LIBS
19379fi
cristy8b350f62009-11-15 23:12:43 +000019380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019381$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019382if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019383
cristy8b350f62009-11-15 23:12:43 +000019384$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019385
19386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19387fi
19388
19389
19390
19391
19392LT_DLPREOPEN=
19393if test -n "$LT_DLLOADERS"
19394then
19395 for lt_loader in $LT_DLLOADERS; do
19396 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19397 done
19398
cristy8b350f62009-11-15 23:12:43 +000019399$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019400
19401fi
19402
19403
19404LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19405
19406
19407ac_ext=c
19408ac_cpp='$CPP $CPPFLAGS'
19409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19411ac_compiler_gnu=$ac_cv_c_compiler_gnu
19412
19413
cristy8b350f62009-11-15 23:12:43 +000019414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019415$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019416if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019417 $as_echo_n "(cached) " >&6
19418else
19419 lt_cv_sys_symbol_underscore=no
19420 cat > conftest.$ac_ext <<_LT_EOF
19421void nm_test_func(){}
19422int main(){nm_test_func;return 0;}
19423_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019425 (eval $ac_compile) 2>&5
19426 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19428 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019429 # Now try to grab the symbols.
19430 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019431 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 +000019432 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19433 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19435 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019436 # See whether the symbols have a leading underscore.
19437 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19438 lt_cv_sys_symbol_underscore=yes
19439 else
19440 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19441 :
19442 else
19443 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19444 fi
19445 fi
19446 else
19447 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19448 fi
19449 else
19450 echo "configure: failed program was:" >&5
19451 cat conftest.c >&5
19452 fi
19453 rm -rf conftest*
19454
19455fi
cristy8b350f62009-11-15 23:12:43 +000019456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019457$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19458 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19459
19460
19461if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19462 if test x"$libltdl_cv_func_dlopen" = xyes ||
19463 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019465$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019466if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019467 $as_echo_n "(cached) " >&6
19468else
19469 libltdl_cv_need_uscore=unknown
19470 save_LIBS="$LIBS"
19471 LIBS="$LIBS $LIBADD_DLOPEN"
19472 if test "$cross_compiling" = yes; then :
19473 libltdl_cv_need_uscore=cross
19474else
19475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19476 lt_status=$lt_dlunknown
19477 cat > conftest.$ac_ext <<_LT_EOF
cristy5c40fb42010-08-05 16:12:44 +000019478#line 19478 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019479#include "confdefs.h"
19480
19481#if HAVE_DLFCN_H
19482#include <dlfcn.h>
19483#endif
19484
19485#include <stdio.h>
19486
19487#ifdef RTLD_GLOBAL
19488# define LT_DLGLOBAL RTLD_GLOBAL
19489#else
19490# ifdef DL_GLOBAL
19491# define LT_DLGLOBAL DL_GLOBAL
19492# else
19493# define LT_DLGLOBAL 0
19494# endif
19495#endif
19496
19497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19498 find out it does not work in some platform. */
19499#ifndef LT_DLLAZY_OR_NOW
19500# ifdef RTLD_LAZY
19501# define LT_DLLAZY_OR_NOW RTLD_LAZY
19502# else
19503# ifdef DL_LAZY
19504# define LT_DLLAZY_OR_NOW DL_LAZY
19505# else
19506# ifdef RTLD_NOW
19507# define LT_DLLAZY_OR_NOW RTLD_NOW
19508# else
19509# ifdef DL_NOW
19510# define LT_DLLAZY_OR_NOW DL_NOW
19511# else
19512# define LT_DLLAZY_OR_NOW 0
19513# endif
19514# endif
19515# endif
19516# endif
19517#endif
19518
cristy5c40fb42010-08-05 16:12:44 +000019519void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019520int main ()
19521{
19522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19523 int status = $lt_dlunknown;
19524
19525 if (self)
19526 {
19527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy5c40fb42010-08-05 16:12:44 +000019528 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019529 /* dlclose (self); */
19530 }
19531 else
19532 puts (dlerror ());
19533
19534 return status;
19535}
19536_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019538 (eval $ac_link) 2>&5
19539 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019542 (./conftest; exit; ) >&5 2>/dev/null
19543 lt_status=$?
19544 case x$lt_status in
19545 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19546 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19547 x$lt_dlunknown|x*) ;;
19548 esac
19549 else :
19550 # compilation failed
19551
19552 fi
19553fi
19554rm -fr conftest*
19555
19556 LIBS="$save_LIBS"
19557
19558fi
cristy8b350f62009-11-15 23:12:43 +000019559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019560$as_echo "$libltdl_cv_need_uscore" >&6; }
19561 fi
19562fi
19563
19564if test x"$libltdl_cv_need_uscore" = xyes; then
19565
cristy8b350f62009-11-15 23:12:43 +000019566$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019567
19568fi
19569
cristy8b350f62009-11-15 23:12:43 +000019570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019571$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019572if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019573 $as_echo_n "(cached) " >&6
19574else
19575 # PORTME does your system automatically load deplibs for dlopen?
19576 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19577 # For now, we just catch OSes we know something about -- in the
19578 # future, we'll try test this programmatically.
19579 lt_cv_sys_dlopen_deplibs=unknown
19580 case $host_os in
19581 aix3*|aix4.1.*|aix4.2.*)
19582 # Unknown whether this is true for these versions of AIX, but
19583 # we want this `case' here to explicitly catch those versions.
19584 lt_cv_sys_dlopen_deplibs=unknown
19585 ;;
19586 aix[4-9]*)
19587 lt_cv_sys_dlopen_deplibs=yes
19588 ;;
19589 amigaos*)
19590 case $host_cpu in
19591 powerpc)
19592 lt_cv_sys_dlopen_deplibs=no
19593 ;;
19594 esac
19595 ;;
19596 darwin*)
19597 # Assuming the user has installed a libdl from somewhere, this is true
19598 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19599 lt_cv_sys_dlopen_deplibs=yes
19600 ;;
19601 freebsd* | dragonfly*)
19602 lt_cv_sys_dlopen_deplibs=yes
19603 ;;
cristy5c40fb42010-08-05 16:12:44 +000019604 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019605 # GNU and its variants, using gnu ld.so (Glibc)
19606 lt_cv_sys_dlopen_deplibs=yes
19607 ;;
19608 hpux10*|hpux11*)
19609 lt_cv_sys_dlopen_deplibs=yes
19610 ;;
19611 interix*)
19612 lt_cv_sys_dlopen_deplibs=yes
19613 ;;
19614 irix[12345]*|irix6.[01]*)
19615 # Catch all versions of IRIX before 6.2, and indicate that we don't
19616 # know how it worked for any of those versions.
19617 lt_cv_sys_dlopen_deplibs=unknown
19618 ;;
19619 irix*)
19620 # The case above catches anything before 6.2, and it's known that
19621 # at 6.2 and later dlopen does load deplibs.
19622 lt_cv_sys_dlopen_deplibs=yes
19623 ;;
19624 netbsd*)
19625 lt_cv_sys_dlopen_deplibs=yes
19626 ;;
19627 openbsd*)
19628 lt_cv_sys_dlopen_deplibs=yes
19629 ;;
19630 osf[1234]*)
19631 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19632 # it did *not* use an RPATH in a shared library to find objects the
19633 # library depends on, so we explicitly say `no'.
19634 lt_cv_sys_dlopen_deplibs=no
19635 ;;
19636 osf5.0|osf5.0a|osf5.1)
19637 # dlopen *does* load deplibs and with the right loader patch applied
19638 # it even uses RPATH in a shared library to search for shared objects
19639 # that the library depends on, but there's no easy way to know if that
19640 # patch is installed. Since this is the case, all we can really
19641 # say is unknown -- it depends on the patch being installed. If
19642 # it is, this changes to `yes'. Without it, it would be `no'.
19643 lt_cv_sys_dlopen_deplibs=unknown
19644 ;;
19645 osf*)
19646 # the two cases above should catch all versions of osf <= 5.1. Read
19647 # the comments above for what we know about them.
19648 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19649 # is used to find them so we can finally say `yes'.
19650 lt_cv_sys_dlopen_deplibs=yes
19651 ;;
19652 qnx*)
19653 lt_cv_sys_dlopen_deplibs=yes
19654 ;;
19655 solaris*)
19656 lt_cv_sys_dlopen_deplibs=yes
19657 ;;
19658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19659 libltdl_cv_sys_dlopen_deplibs=yes
19660 ;;
19661 esac
19662
19663fi
cristy8b350f62009-11-15 23:12:43 +000019664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019665$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19666if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19667
cristy8b350f62009-11-15 23:12:43 +000019668$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019669
19670fi
19671
19672:
19673
cristy3ed852e2009-09-05 21:47:34 +000019674for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019675do :
19676 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19677"
19678if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019679 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019680#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019681_ACEOF
19682
19683fi
19684
19685done
19686
19687
cristy8b350f62009-11-15 23:12:43 +000019688ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019689# include <argz.h>
19690#endif
cristy8b350f62009-11-15 23:12:43 +000019691"
19692if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019693
19694cat >>confdefs.h <<_ACEOF
19695#define HAVE_ERROR_T 1
19696_ACEOF
19697
19698
19699else
19700
cristy8b350f62009-11-15 23:12:43 +000019701$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019702
19703
cristy8b350f62009-11-15 23:12:43 +000019704$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019705
19706fi
19707
19708
19709ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019710for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19711 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019712do :
19713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19714ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000019715eval as_val=\$$as_ac_var
19716 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019717 cat >>confdefs.h <<_ACEOF
19718#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19719_ACEOF
19720
19721else
19722 ARGZ_H=argz.h;
19723
19724 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19725
19726fi
19727done
19728
19729
cristy8b350f62009-11-15 23:12:43 +000019730if test -z "$ARGZ_H"; then :
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019732$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019733if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019734 $as_echo_n "(cached) " >&6
19735else
19736 case $host_os in #(
19737 *cygwin*)
19738 lt_cv_sys_argz_works=no
19739 if test "$cross_compiling" != no; then
19740 lt_cv_sys_argz_works="guessing no"
19741 else
19742 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19743 save_IFS=$IFS
19744 IFS=-.
19745 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19746 IFS=$save_IFS
19747 lt_os_major=${2-0}
19748 lt_os_minor=${3-0}
19749 lt_os_micro=${4-0}
19750 if test "$lt_os_major" -gt 1 \
19751 || { test "$lt_os_major" -eq 1 \
19752 && { test "$lt_os_minor" -gt 5 \
19753 || { test "$lt_os_minor" -eq 5 \
19754 && test "$lt_os_micro" -gt 24; }; }; }; then
19755 lt_cv_sys_argz_works=yes
19756 fi
19757 fi
19758 ;; #(
19759 *) lt_cv_sys_argz_works=yes ;;
19760 esac
19761fi
cristy8b350f62009-11-15 23:12:43 +000019762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019763$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019764 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019765
cristy8b350f62009-11-15 23:12:43 +000019766$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019767
19768else
19769 ARGZ_H=argz.h
19770
19771
19772 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19773
19774fi
cristy3ed852e2009-09-05 21:47:34 +000019775fi
19776
19777
19778
cristy8b350f62009-11-15 23:12:43 +000019779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019780$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019781if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019782 $as_echo_n "(cached) " >&6
19783else
19784 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19785 libltdl_cv_preloaded_symbols=yes
19786 else
19787 libltdl_cv_preloaded_symbols=no
19788 fi
19789
19790fi
cristy8b350f62009-11-15 23:12:43 +000019791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019792$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19793if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19794
cristy8b350f62009-11-15 23:12:43 +000019795$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019796
19797fi
19798
19799# Set options
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019812if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019813 withval=$with_included_ltdl;
19814fi
19815
19816
19817if test "x$with_included_ltdl" != xyes; then
19818 # We are not being forced to use the included libltdl sources, so
19819 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019820 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019821
cristy8b350f62009-11-15 23:12:43 +000019822"
19823if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19824 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 +000019825 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019826"
19827if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019829$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019830if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019831 $as_echo_n "(cached) " >&6
19832else
19833 ac_check_lib_save_LIBS=$LIBS
19834LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019836/* end confdefs.h. */
19837
19838/* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19841#ifdef __cplusplus
19842extern "C"
19843#endif
19844char lt_dladvise_preload ();
19845int
19846main ()
19847{
19848return lt_dladvise_preload ();
19849 ;
19850 return 0;
19851}
19852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019853if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019854 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19855else
cristy8b350f62009-11-15 23:12:43 +000019856 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019857fi
cristy8b350f62009-11-15 23:12:43 +000019858rm -f core conftest.err conftest.$ac_objext \
19859 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019860LIBS=$ac_check_lib_save_LIBS
19861fi
cristy8b350f62009-11-15 23:12:43 +000019862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019863$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019864if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019865 with_included_ltdl=no
19866else
19867 with_included_ltdl=yes
19868fi
19869
19870else
19871 with_included_ltdl=yes
19872fi
19873
19874else
19875 with_included_ltdl=yes
19876fi
19877
19878
19879fi
19880
19881
19882
19883
19884# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019885if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019886 withval=$with_ltdl_include;
19887fi
19888
19889
19890if test -n "$with_ltdl_include"; then
19891 if test -f "$with_ltdl_include/ltdl.h"; then :
19892 else
cristy5c40fb42010-08-05 16:12:44 +000019893 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019894 fi
19895else
19896 with_ltdl_include=no
19897fi
19898
19899
19900# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019901if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019902 withval=$with_ltdl_lib;
19903fi
19904
19905
19906if test -n "$with_ltdl_lib"; then
19907 if test -f "$with_ltdl_lib/libltdl.la"; then :
19908 else
cristy5c40fb42010-08-05 16:12:44 +000019909 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019910 fi
19911else
19912 with_ltdl_lib=no
19913fi
19914
19915case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19916 ,yes,no,no,)
19917 case $enable_ltdl_convenience in
cristy5c40fb42010-08-05 16:12:44 +000019918 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019919 "") enable_ltdl_convenience=yes
19920 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19921esac
19922LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19923LTDLDEPS=$LIBLTDL
19924LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19925
19926
19927
19928
19929
19930# For backwards non-gettext consistent compatibility...
19931INCLTDL="$LTDLINCL"
19932
19933
19934 ;;
19935 ,no,no,no,)
19936 # If the included ltdl is not to be used, then use the
19937 # preinstalled libltdl we found.
19938
cristy8b350f62009-11-15 23:12:43 +000019939$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019940
19941 LIBLTDL=-lltdl
19942 LTDLDEPS=
19943 LTDLINCL=
19944 ;;
19945 ,no*,no,*)
cristy5c40fb42010-08-05 16:12:44 +000019946 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019947 ;;
19948 *) with_included_ltdl=no
19949 LIBLTDL="-L$with_ltdl_lib -lltdl"
19950 LTDLDEPS=
19951 LTDLINCL="-I$with_ltdl_include"
19952 ;;
19953esac
19954INCLTDL="$LTDLINCL"
19955
19956# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019958$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019960$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019962$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019964$as_echo "$LIBLTDL" >&6; }
19965
19966
19967
19968# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019969if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019970 enableval=$enable_ltdl_install;
19971fi
19972
19973
19974case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19975 *yes*) ;;
19976 *) enable_ltdl_convenience=yes ;;
19977esac
19978
19979 if test x"${enable_ltdl_install-no}" != xno; then
19980 INSTALL_LTDL_TRUE=
19981 INSTALL_LTDL_FALSE='#'
19982else
19983 INSTALL_LTDL_TRUE='#'
19984 INSTALL_LTDL_FALSE=
19985fi
19986
19987 if test x"${enable_ltdl_convenience-no}" != xno; then
19988 CONVENIENCE_LTDL_TRUE=
19989 CONVENIENCE_LTDL_FALSE='#'
19990else
19991 CONVENIENCE_LTDL_TRUE='#'
19992 CONVENIENCE_LTDL_FALSE=
19993fi
19994
19995
19996
19997
19998
19999
cristy5c40fb42010-08-05 16:12:44 +000020000
cristy3ed852e2009-09-05 21:47:34 +000020001# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20002# the user used. This is so that ltdl.h can pick up the parent projects
20003# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20004# definitions required by ltdl.c.
20005# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20006
20007
20008
cristy3ed852e2009-09-05 21:47:34 +000020009for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020010do :
20011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20013"
cristy5c40fb42010-08-05 16:12:44 +000020014eval as_val=\$$as_ac_Header
20015 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020016 cat >>confdefs.h <<_ACEOF
20017#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20018_ACEOF
20019
20020fi
20021
20022done
20023
20024
cristy3ed852e2009-09-05 21:47:34 +000020025for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020026do :
20027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20028ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000020029eval as_val=\$$as_ac_var
20030 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020031 cat >>confdefs.h <<_ACEOF
20032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20033_ACEOF
20034
20035else
20036
20037
20038 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20039
20040fi
20041done
20042
cristy3ed852e2009-09-05 21:47:34 +000020043for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020044do :
20045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20046ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000020047eval as_val=\$$as_ac_var
20048 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020049 cat >>confdefs.h <<_ACEOF
20050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20051_ACEOF
20052
20053else
20054
20055
20056 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20057
20058fi
20059done
20060
20061
20062
20063cat >>confdefs.h <<_ACEOF
20064#define LT_LIBEXT "$libext"
20065_ACEOF
20066
20067
20068name=ltdl
20069LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20070
20071
20072
20073
20074
20075
20076
20077
20078# Only expand once:
20079
20080
20081
20082# Check to see if building shared libraries
20083libtool_build_shared_libs='no'
20084if test "$enable_shared" = 'yes'; then
20085 libtool_build_shared_libs='yes'
20086fi
20087
20088# Check to see if building static libraries
20089libtool_build_static_libs='no'
20090if test "$enable_static" = 'yes'; then
20091 libtool_build_static_libs='yes'
20092fi
20093
cristyfa112112010-01-04 17:48:07 +000020094 if test "${libtool_build_shared_libs}" = 'yes'; then
20095 WITH_SHARED_LIBS_TRUE=
20096 WITH_SHARED_LIBS_FALSE='#'
20097else
20098 WITH_SHARED_LIBS_TRUE='#'
20099 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020100fi
20101
20102#
20103# Enable support for building loadable modules
20104#
20105
20106# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020107if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020108 withval=$with_modules; with_modules=$withval
20109else
cristy5a1cefd2010-01-06 20:42:35 +000020110 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020111fi
20112
20113
20114# Only allow building loadable modules if we are building shared libraries
20115if test "$with_modules" != 'no' ; then
20116 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020117 { $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 +000020118$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20119 with_modules='no'
20120 fi
20121fi
20122if test "$with_modules" != 'no'; then
20123
cristy8b350f62009-11-15 23:12:43 +000020124$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020125
20126fi
20127 if test "$with_modules" != 'no'; then
20128 WITH_MODULES_TRUE=
20129 WITH_MODULES_FALSE='#'
20130else
20131 WITH_MODULES_TRUE='#'
20132 WITH_MODULES_FALSE=
20133fi
20134
20135
20136# Enable building/use of libltdl if we are building shared libraries regardless
20137# of whether modules are built or not.
20138with_ltdl='no'
20139if test "$libtool_build_shared_libs" != 'no'; then
20140 with_ltdl='yes'
20141fi
20142
20143 if test "$with_ltdl" != 'no'; then
20144 WITH_LTDL_TRUE=
20145 WITH_LTDL_FALSE='#'
20146else
20147 WITH_LTDL_TRUE='#'
20148 WITH_LTDL_FALSE=
20149fi
20150
20151if test "$with_ltdl" != 'no'; then
20152
cristy8b350f62009-11-15 23:12:43 +000020153$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020154
20155
20156 # Set DLLDFLAGS
20157 if test X"$enable_shared" = Xyes; then
20158 DLLDFLAGS=-export-dynamic
20159
20160 fi
20161fi
20162
20163# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020164# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020165# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020166if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020167 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20168else
20169 enable_delegate_build='no'
20170fi
20171
20172
20173# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020174if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020175 enableval=$enable_deprecated; enable_deprecated=$enableval
20176else
20177 enable_deprecated='no'
20178fi
20179
20180
20181if test "$enable_deprecated" = 'yes'; then
20182
cristy8b350f62009-11-15 23:12:43 +000020183$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020184
20185else
20186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20187fi
20188
20189# Build a version of ImageMagick which operates uninstalled.
20190# Used to build distributions located via MAGICK_HOME / executable path
20191# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020192if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020193 enableval=$enable_installed; enable_installed=$enableval
20194else
20195 enable_installed='yes'
20196fi
20197
20198
20199if test "$enable_installed" = 'yes'; then
20200
cristy8b350f62009-11-15 23:12:43 +000020201$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020202
20203else
20204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20205fi
20206
20207# Permit enciphering and deciphering image pixels.
20208# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020209if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020210 enableval=$enable_cipher; enable_cipher=$enableval
20211else
20212 enable_cipher='yes'
20213fi
20214
20215
20216if test "$enable_cipher" = 'yes'; then
20217
cristy8b350f62009-11-15 23:12:43 +000020218$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020219
20220fi
20221
20222# Build an embeddable version of ImageMagick.
20223# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020224if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020225 enableval=$enable_embeddable; enable_embeddable=$enableval
20226else
20227 enable_embeddable='no'
20228fi
20229
20230
20231if test "$enable_embeddable" = 'yes'; then
20232
cristy8b350f62009-11-15 23:12:43 +000020233$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020234
20235fi
20236
20237# Build a high dynamic range version of ImageMagick.
20238# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020239if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020240 enableval=$enable_hdri; enable_hdri=$enableval
20241else
20242 enable_hdri='no'
20243fi
20244
20245
20246MAGICK_HDRI=""
20247if test "$enable_hdri" = 'yes'; then
20248 MAGICK_HDRI="HDRI"
20249
cristy8b350f62009-11-15 23:12:43 +000020250$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020251
20252fi
20253
cristy3ed852e2009-09-05 21:47:34 +000020254# Build a version of ImageMagick with assert statements.
20255# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020256if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020257 enableval=$enable_assert; enable_assert=$enableval
20258else
20259 enable_assert='yes'
20260fi
20261
20262
20263if test "$enable_assert" = 'no'; then
20264
cristy8b350f62009-11-15 23:12:43 +000020265$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020266
20267fi
20268
20269# Add configure option --enable-maintainer-mode which enables dependency
20270# checking and generation useful to package maintainers. This is made an
20271# option to avoid confusing end users.
20272
cristy8b350f62009-11-15 23:12:43 +000020273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020274$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20275 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020276if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020277 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20278else
20279 USE_MAINTAINER_MODE=no
20280fi
20281
cristy8b350f62009-11-15 23:12:43 +000020282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020283$as_echo "$USE_MAINTAINER_MODE" >&6; }
20284 if test $USE_MAINTAINER_MODE = yes; then
20285 MAINTAINER_MODE_TRUE=
20286 MAINTAINER_MODE_FALSE='#'
20287else
20288 MAINTAINER_MODE_TRUE='#'
20289 MAINTAINER_MODE_FALSE=
20290fi
20291
20292 MAINT=$MAINTAINER_MODE_TRUE
20293
20294
20295
20296
20297# Enable ccmalloc memory debugging support
20298# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020299if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020300 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20301else
20302 enable_ccmalloc='no'
20303fi
20304
20305
20306# Enable Electric Fence memory debugging support
20307# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020308if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020309 enableval=$enable_efence; enable_efence=$enableval
20310else
20311 enable_efence='no'
20312fi
20313
20314
20315# Enable prof-based profiling support
20316# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020317if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020318 enableval=$enable_prof; enable_prof=$enableval
20319else
20320 enable_prof='no'
20321fi
20322
20323
20324# Enable gprof-based profiling support
20325# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020326if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020327 enableval=$enable_gprof; enable_gprof=$enableval
20328else
20329 enable_gprof='no'
20330fi
20331
20332
20333# Enable gcov-based profiling support
20334# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020335if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020336 enableval=$enable_gcov; enable_gcov=$enableval
20337else
20338 enable_gcov='no'
20339fi
20340
20341
20342enable_profiling='no'
20343if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20344 enable_profiling='yes'
20345 if test "$libtool_build_shared_libs" = 'yes'; then
20346 echo "Warning: Can not profile code using shared libraries"
20347 fi
20348fi
20349
20350# Magick API method prefix
20351
20352# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020353if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020354 withval=$with_method_prefix; with_method_prefix=$enableval
20355else
20356 with_method_prefix=''
20357fi
20358
20359
20360if test "$with_method_prefix" != ''; then
20361
20362cat >>confdefs.h <<_ACEOF
20363#define NAMESPACE_PREFIX $with_method_prefix
20364_ACEOF
20365
20366fi
20367
20368# Number of bits in a Quantum
20369
20370# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020371if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020372 withval=$with_quantum_depth; with_quantum_depth=$withval
20373else
20374 with_quantum_depth=16
20375fi
20376
20377
20378if test "$with_quantum_depth" != '8'; then
20379 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20380fi
20381
20382case "${with_quantum_depth}" in
20383 8 ) ;;
20384 16 ) ;;
20385 32 ) ;;
20386 64 ) ;;
cristy5c40fb42010-08-05 16:12:44 +000020387 * ) { as_fn_set_status 16
20388as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020389esac
20390QUANTUM_DEPTH="$with_quantum_depth"
20391
20392cat >>confdefs.h <<_ACEOF
20393#define QUANTUM_DEPTH $QUANTUM_DEPTH
20394_ACEOF
20395
20396
20397# Set pixel cache threshold
20398
20399# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020400if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020401 withval=$with_cache; with_cache=$withval
20402else
20403 with_cache=''
20404fi
20405
20406
20407if test "$with_cache" != ''; then
20408
20409cat >>confdefs.h <<_ACEOF
20410#define PixelCacheThreshold $with_cache
20411_ACEOF
20412
20413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20414fi
20415
20416# Disable/Enable support for full delegate paths
20417
20418# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020419if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020420 withval=$with_frozenpaths; with_frozenpaths=$withval
20421else
20422 with_frozenpaths='no'
20423fi
20424
20425
20426# Enable build/install of Magick++
20427
20428# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020429if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020430 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20431else
20432 with_magick_plus_plus='yes'
20433fi
20434
20435
20436# Disable build/install of PerlMagick.
20437
20438# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020439if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020440 withval=$with_perl; with_perl=$withval
20441else
cristyb5f4e2f2010-04-25 00:49:11 +000020442 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020443fi
20444
20445
20446# Options to pass when configuring PerlMagick
20447
20448# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020449if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020450 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020451fi
20452
20453
cristy3ed852e2009-09-05 21:47:34 +000020454
20455# Enable umem, object-caching memory allocation library.
20456
20457# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020458if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020459 withval=$with_umem; with_umem=$withval
20460else
20461 with_umem='no'
20462fi
20463
20464if test "$with_umem" != 'yes' ; then
20465 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20466fi
20467
20468#
20469# Specify path to shared libstdc++ if not in normal location
20470#
20471
20472# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020473if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020474 withval=$with_libstdc; with_libstdc=$withval
20475else
20476 with_libstdc=''
20477fi
20478
20479
20480if test "$with_libstdc" != ''; then
20481 if test -d "$with_libstdc"; then
20482 LIBSTDCLDFLAGS="-L$with_libstdc"
20483 fi
20484fi
20485
20486
20487# Does gcc required -traditional?
20488if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020490$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020491if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020492 $as_echo_n "(cached) " >&6
20493else
20494 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020496/* end confdefs.h. */
20497#include <sgtty.h>
20498Autoconf TIOCGETP
20499_ACEOF
20500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020501 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020502 ac_cv_prog_gcc_traditional=yes
20503else
20504 ac_cv_prog_gcc_traditional=no
20505fi
20506rm -f conftest*
20507
20508
20509 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020511/* end confdefs.h. */
20512#include <termio.h>
20513Autoconf TCGETA
20514_ACEOF
20515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020516 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020517 ac_cv_prog_gcc_traditional=yes
20518fi
20519rm -f conftest*
20520
20521 fi
20522fi
cristy8b350f62009-11-15 23:12:43 +000020523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020524$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20525 if test $ac_cv_prog_gcc_traditional = yes; then
20526 CC="$CC -traditional"
20527 fi
20528fi
20529
20530
20531########
20532#
20533# Set defines required to build DLLs and modules using MinGW
20534#
20535########
20536# These options are set for multi-thread DLL module build
20537# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20538# module: _DLL
20539# executable/Magick++: _DLL _MAGICKMOD_
20540MODULE_EXTRA_CPPFLAGS=''
20541LIBRARY_EXTRA_CPPFLAGS=''
20542if test "${native_win32_build}" = 'yes'; then
20543 if test "${libtool_build_shared_libs}" = 'yes'; then
20544 CPPFLAGS="$CPPFLAGS -D_DLL"
20545 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20546 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20547 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20548 if test "$with_modules" = 'yes'; then
20549 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20550 else
20551 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20552 fi
20553 else
20554 CPPFLAGS="$CPPFLAGS -D_LIB"
20555 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20556 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20557 fi
20558 if test "$with_threads" = 'yes'; then
20559 CPPFLAGS="$CPPFLAGS -D_MT"
20560 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20561 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20562 fi
20563fi
20564
20565
20566
20567# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020569$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020570if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020571 $as_echo_n "(cached) " >&6
20572else
cristy8b350f62009-11-15 23:12:43 +000020573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020574/* end confdefs.h. */
20575#include <stdlib.h>
20576#include <stdarg.h>
20577#include <string.h>
20578#include <float.h>
20579
20580int
20581main ()
20582{
20583
20584 ;
20585 return 0;
20586}
20587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020588if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020589 ac_cv_header_stdc=yes
20590else
cristy8b350f62009-11-15 23:12:43 +000020591 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020592fi
cristy3ed852e2009-09-05 21:47:34 +000020593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594
20595if test $ac_cv_header_stdc = yes; then
20596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020598/* end confdefs.h. */
20599#include <string.h>
20600
20601_ACEOF
20602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020603 $EGREP "memchr" >/dev/null 2>&1; then :
20604
cristy3ed852e2009-09-05 21:47:34 +000020605else
20606 ac_cv_header_stdc=no
20607fi
20608rm -f conftest*
20609
20610fi
20611
20612if test $ac_cv_header_stdc = yes; then
20613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020615/* end confdefs.h. */
20616#include <stdlib.h>
20617
20618_ACEOF
20619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020620 $EGREP "free" >/dev/null 2>&1; then :
20621
cristy3ed852e2009-09-05 21:47:34 +000020622else
20623 ac_cv_header_stdc=no
20624fi
20625rm -f conftest*
20626
20627fi
20628
20629if test $ac_cv_header_stdc = yes; then
20630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020631 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020632 :
20633else
cristy8b350f62009-11-15 23:12:43 +000020634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020635/* end confdefs.h. */
20636#include <ctype.h>
20637#include <stdlib.h>
20638#if ((' ' & 0x0FF) == 0x020)
20639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20641#else
20642# define ISLOWER(c) \
20643 (('a' <= (c) && (c) <= 'i') \
20644 || ('j' <= (c) && (c) <= 'r') \
20645 || ('s' <= (c) && (c) <= 'z'))
20646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20647#endif
20648
20649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20650int
20651main ()
20652{
20653 int i;
20654 for (i = 0; i < 256; i++)
20655 if (XOR (islower (i), ISLOWER (i))
20656 || toupper (i) != TOUPPER (i))
20657 return 2;
20658 return 0;
20659}
20660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020661if ac_fn_c_try_run "$LINENO"; then :
20662
cristy3ed852e2009-09-05 21:47:34 +000020663else
cristy8b350f62009-11-15 23:12:43 +000020664 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020665fi
cristy8b350f62009-11-15 23:12:43 +000020666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20667 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020668fi
20669
cristy3ed852e2009-09-05 21:47:34 +000020670fi
20671fi
cristy8b350f62009-11-15 23:12:43 +000020672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020673$as_echo "$ac_cv_header_stdc" >&6; }
20674if test $ac_cv_header_stdc = yes; then
20675
cristy8b350f62009-11-15 23:12:43 +000020676$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020677
20678fi
20679
20680if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020681 { $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 +000020682 header files. Compilation cannot proceed. Please install the ANSI C
20683 headers and rerun this script." >&5
20684$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20685 header files. Compilation cannot proceed. Please install the ANSI C
20686 headers and rerun this script." >&2;};
20687fi
cristya0b81c32010-01-22 02:54:33 +000020688
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20690$as_echo_n "checking whether to enable assertions... " >&6; }
20691 # Check whether --enable-assert was given.
20692if test "${enable_assert+set}" = set; then :
20693 enableval=$enable_assert; ac_enable_assert=$enableval
20694 if test "x$enableval" = xno; then :
20695
20696$as_echo "#define NDEBUG 1" >>confdefs.h
20697
20698elif test "x$enableval" != xyes; then :
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20700$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20701 ac_enable_assert=yes
20702fi
20703else
20704 ac_enable_assert=yes
20705fi
20706
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20708$as_echo "$ac_enable_assert" >&6; }
20709
cristy3ed852e2009-09-05 21:47:34 +000020710ac_header_dirent=no
20711for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20712 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020714$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy5c40fb42010-08-05 16:12:44 +000020715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020716 $as_echo_n "(cached) " >&6
20717else
cristy8b350f62009-11-15 23:12:43 +000020718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020719/* end confdefs.h. */
20720#include <sys/types.h>
20721#include <$ac_hdr>
20722
20723int
20724main ()
20725{
20726if ((DIR *) 0)
20727return 0;
20728 ;
20729 return 0;
20730}
20731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020732if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020733 eval "$as_ac_Header=yes"
20734else
cristy8b350f62009-11-15 23:12:43 +000020735 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020736fi
cristy3ed852e2009-09-05 21:47:34 +000020737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738fi
cristy8b350f62009-11-15 23:12:43 +000020739eval ac_res=\$$as_ac_Header
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020741$as_echo "$ac_res" >&6; }
cristy5c40fb42010-08-05 16:12:44 +000020742eval as_val=\$$as_ac_Header
20743 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020744 cat >>confdefs.h <<_ACEOF
20745#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20746_ACEOF
20747
20748ac_header_dirent=$ac_hdr; break
20749fi
20750
20751done
20752# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20753if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020755$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020756if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020757 $as_echo_n "(cached) " >&6
20758else
20759 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020761/* end confdefs.h. */
20762
20763/* Override any GCC internal prototype to avoid an error.
20764 Use char because int might match the return type of a GCC
20765 builtin and then its argument prototype would still apply. */
20766#ifdef __cplusplus
20767extern "C"
20768#endif
20769char opendir ();
20770int
20771main ()
20772{
20773return opendir ();
20774 ;
20775 return 0;
20776}
20777_ACEOF
20778for ac_lib in '' dir; do
20779 if test -z "$ac_lib"; then
20780 ac_res="none required"
20781 else
20782 ac_res=-l$ac_lib
20783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20784 fi
cristy8b350f62009-11-15 23:12:43 +000020785 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020786 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020787fi
cristy8b350f62009-11-15 23:12:43 +000020788rm -f core conftest.err conftest.$ac_objext \
20789 conftest$ac_exeext
20790 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020791 break
20792fi
20793done
cristy8b350f62009-11-15 23:12:43 +000020794if test "${ac_cv_search_opendir+set}" = set; then :
20795
cristy3ed852e2009-09-05 21:47:34 +000020796else
20797 ac_cv_search_opendir=no
20798fi
20799rm conftest.$ac_ext
20800LIBS=$ac_func_search_save_LIBS
20801fi
cristy8b350f62009-11-15 23:12:43 +000020802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020803$as_echo "$ac_cv_search_opendir" >&6; }
20804ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020805if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20807
20808fi
20809
20810else
cristy8b350f62009-11-15 23:12:43 +000020811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020812$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020813if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020814 $as_echo_n "(cached) " >&6
20815else
20816 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020818/* end confdefs.h. */
20819
20820/* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20823#ifdef __cplusplus
20824extern "C"
20825#endif
20826char opendir ();
20827int
20828main ()
20829{
20830return opendir ();
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835for ac_lib in '' x; do
20836 if test -z "$ac_lib"; then
20837 ac_res="none required"
20838 else
20839 ac_res=-l$ac_lib
20840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20841 fi
cristy8b350f62009-11-15 23:12:43 +000020842 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020843 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020844fi
cristy8b350f62009-11-15 23:12:43 +000020845rm -f core conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext
20847 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020848 break
20849fi
20850done
cristy8b350f62009-11-15 23:12:43 +000020851if test "${ac_cv_search_opendir+set}" = set; then :
20852
cristy3ed852e2009-09-05 21:47:34 +000020853else
20854 ac_cv_search_opendir=no
20855fi
20856rm conftest.$ac_ext
20857LIBS=$ac_func_search_save_LIBS
20858fi
cristy8b350f62009-11-15 23:12:43 +000020859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020860$as_echo "$ac_cv_search_opendir" >&6; }
20861ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020862if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20864
20865fi
20866
20867fi
20868
20869
20870# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020871for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000020872do :
20873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20874ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy5c40fb42010-08-05 16:12:44 +000020875eval as_val=\$$as_ac_Header
20876 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020877 cat >>confdefs.h <<_ACEOF
20878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20879_ACEOF
20880
20881fi
20882
20883done
20884
20885
20886########
20887#
20888# Checks for typedefs, structures, and compiler characteristics.
20889#
20890########
20891
cristy8b350f62009-11-15 23:12:43 +000020892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020893$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020894if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 $as_echo_n "(cached) " >&6
20896else
cristy8b350f62009-11-15 23:12:43 +000020897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020898/* end confdefs.h. */
20899
20900#include <stdbool.h>
20901#ifndef bool
20902 "error: bool is not defined"
20903#endif
20904#ifndef false
20905 "error: false is not defined"
20906#endif
20907#if false
20908 "error: false is not 0"
20909#endif
20910#ifndef true
20911 "error: true is not defined"
20912#endif
20913#if true != 1
20914 "error: true is not 1"
20915#endif
20916#ifndef __bool_true_false_are_defined
20917 "error: __bool_true_false_are_defined is not defined"
20918#endif
20919
20920 struct s { _Bool s: 1; _Bool t; } s;
20921
20922 char a[true == 1 ? 1 : -1];
20923 char b[false == 0 ? 1 : -1];
20924 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20925 char d[(bool) 0.5 == true ? 1 : -1];
20926 bool e = &s;
20927 char f[(_Bool) 0.0 == false ? 1 : -1];
20928 char g[true];
20929 char h[sizeof (_Bool)];
20930 char i[sizeof s.t];
20931 enum { j = false, k = true, l = false * true, m = true * 256 };
20932 /* The following fails for
20933 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20934 _Bool n[m];
20935 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20936 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20937# if defined __xlc__ || defined __GNUC__
20938 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20939 reported by James Lemley on 2005-10-05; see
20940 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20941 This test is not quite right, since xlc is allowed to
20942 reject this program, as the initializer for xlcbug is
20943 not one of the forms that C requires support for.
20944 However, doing the test right would require a runtime
20945 test, and that would make cross-compilation harder.
20946 Let us hope that IBM fixes the xlc bug, and also adds
20947 support for this kind of constant expression. In the
20948 meantime, this test will reject xlc, which is OK, since
20949 our stdbool.h substitute should suffice. We also test
20950 this with GCC, where it should work, to detect more
20951 quickly whether someone messes up the test in the
20952 future. */
20953 char digs[] = "0123456789";
20954 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20955# endif
20956 /* Catch a bug in an HP-UX C compiler. See
20957 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20958 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20959 */
20960 _Bool q = true;
20961 _Bool *pq = &q;
20962
20963int
20964main ()
20965{
20966
20967 *pq |= q;
20968 *pq |= ! q;
20969 /* Refer to every declared value, to avoid compiler optimizations. */
20970 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20971 + !m + !n + !o + !p + !q + !pq);
20972
20973 ;
20974 return 0;
20975}
20976_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020977if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020978 ac_cv_header_stdbool_h=yes
20979else
cristy8b350f62009-11-15 23:12:43 +000020980 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020981fi
cristy3ed852e2009-09-05 21:47:34 +000020982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983fi
cristy8b350f62009-11-15 23:12:43 +000020984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020985$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020986ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20987if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020988
20989cat >>confdefs.h <<_ACEOF
20990#define HAVE__BOOL 1
20991_ACEOF
20992
20993
20994fi
20995
20996if test $ac_cv_header_stdbool_h = yes; then
20997
cristy8b350f62009-11-15 23:12:43 +000020998$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020999
21000fi
21001
cristy8b350f62009-11-15 23:12:43 +000021002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021003$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021004if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021005 $as_echo_n "(cached) " >&6
21006else
cristy8b350f62009-11-15 23:12:43 +000021007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021008/* end confdefs.h. */
21009
21010int
21011main ()
21012{
21013
21014volatile int x;
21015int * volatile y = (int *) 0;
21016return !x && !y;
21017 ;
21018 return 0;
21019}
21020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021021if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021022 ac_cv_c_volatile=yes
21023else
cristy8b350f62009-11-15 23:12:43 +000021024 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021025fi
cristy3ed852e2009-09-05 21:47:34 +000021026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027fi
cristy8b350f62009-11-15 23:12:43 +000021028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021029$as_echo "$ac_cv_c_volatile" >&6; }
21030if test $ac_cv_c_volatile = no; then
21031
cristy8b350f62009-11-15 23:12:43 +000021032$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021033
21034fi
21035
cristy8b350f62009-11-15 23:12:43 +000021036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021037$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021038if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021039 $as_echo_n "(cached) " >&6
21040else
cristy8b350f62009-11-15 23:12:43 +000021041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021042/* end confdefs.h. */
21043#define x(y) #y
21044
21045char *s = x(teststring);
21046_ACEOF
21047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021048 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021049 ac_cv_c_stringize=no
21050else
21051 ac_cv_c_stringize=yes
21052fi
21053rm -f conftest*
21054
21055fi
cristy8b350f62009-11-15 23:12:43 +000021056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021057$as_echo "$ac_cv_c_stringize" >&6; }
21058if test $ac_cv_c_stringize = yes; then
21059
cristy8b350f62009-11-15 23:12:43 +000021060$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021061
21062fi
21063
cristy8b350f62009-11-15 23:12:43 +000021064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021065$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021066if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021067 $as_echo_n "(cached) " >&6
21068else
cristy8b350f62009-11-15 23:12:43 +000021069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021070/* end confdefs.h. */
21071#include <sys/types.h>
21072#include <sys/stat.h>
21073
21074#if defined S_ISBLK && defined S_IFDIR
21075extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21076#endif
21077
21078#if defined S_ISBLK && defined S_IFCHR
21079extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21080#endif
21081
21082#if defined S_ISLNK && defined S_IFREG
21083extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21084#endif
21085
21086#if defined S_ISSOCK && defined S_IFREG
21087extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21088#endif
21089
21090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021091if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021092 ac_cv_header_stat_broken=no
21093else
cristy8b350f62009-11-15 23:12:43 +000021094 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021095fi
cristy3ed852e2009-09-05 21:47:34 +000021096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097fi
cristy8b350f62009-11-15 23:12:43 +000021098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021099$as_echo "$ac_cv_header_stat_broken" >&6; }
21100if test $ac_cv_header_stat_broken = yes; then
21101
cristy8b350f62009-11-15 23:12:43 +000021102$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021103
21104fi
21105
cristy8b350f62009-11-15 23:12:43 +000021106{ $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 +000021107$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021108if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021109 $as_echo_n "(cached) " >&6
21110else
cristy8b350f62009-11-15 23:12:43 +000021111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021112/* end confdefs.h. */
21113#include <sys/types.h>
21114#include <sys/time.h>
21115#include <time.h>
21116
21117int
21118main ()
21119{
21120if ((struct tm *) 0)
21121return 0;
21122 ;
21123 return 0;
21124}
21125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021126if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021127 ac_cv_header_time=yes
21128else
cristy8b350f62009-11-15 23:12:43 +000021129 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021130fi
cristy3ed852e2009-09-05 21:47:34 +000021131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132fi
cristy8b350f62009-11-15 23:12:43 +000021133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021134$as_echo "$ac_cv_header_time" >&6; }
21135if test $ac_cv_header_time = yes; then
21136
cristy8b350f62009-11-15 23:12:43 +000021137$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021138
21139fi
21140
cristy8b350f62009-11-15 23:12:43 +000021141{ $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 +000021142$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021143if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 $as_echo_n "(cached) " >&6
21145else
cristy8b350f62009-11-15 23:12:43 +000021146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021147/* end confdefs.h. */
21148#include <sys/types.h>
21149#include <time.h>
21150
21151int
21152main ()
21153{
21154struct tm tm;
21155 int *p = &tm.tm_sec;
21156 return !p;
21157 ;
21158 return 0;
21159}
21160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021161if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 ac_cv_struct_tm=time.h
21163else
cristy8b350f62009-11-15 23:12:43 +000021164 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021165fi
cristy3ed852e2009-09-05 21:47:34 +000021166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167fi
cristy8b350f62009-11-15 23:12:43 +000021168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021169$as_echo "$ac_cv_struct_tm" >&6; }
21170if test $ac_cv_struct_tm = sys/time.h; then
21171
cristy8b350f62009-11-15 23:12:43 +000021172$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021173
21174fi
21175
cristy92703d82010-04-26 00:18:18 +000021176ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21177#include <$ac_cv_struct_tm>
21178
21179"
21180if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21181
21182cat >>confdefs.h <<_ACEOF
21183#define HAVE_STRUCT_TM_TM_ZONE 1
21184_ACEOF
21185
21186
21187fi
21188
21189if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21190
21191$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21192
21193else
21194 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21195"
21196if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21197 ac_have_decl=1
21198else
21199 ac_have_decl=0
21200fi
21201
21202cat >>confdefs.h <<_ACEOF
21203#define HAVE_DECL_TZNAME $ac_have_decl
21204_ACEOF
21205
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21207$as_echo_n "checking for tzname... " >&6; }
21208if test "${ac_cv_var_tzname+set}" = set; then :
21209 $as_echo_n "(cached) " >&6
21210else
21211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21212/* end confdefs.h. */
21213#include <time.h>
21214#if !HAVE_DECL_TZNAME
21215extern char *tzname[];
21216#endif
21217
21218int
21219main ()
21220{
21221return tzname[0][0];
21222 ;
21223 return 0;
21224}
21225_ACEOF
21226if ac_fn_c_try_link "$LINENO"; then :
21227 ac_cv_var_tzname=yes
21228else
21229 ac_cv_var_tzname=no
21230fi
21231rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21233fi
21234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21235$as_echo "$ac_cv_var_tzname" >&6; }
21236 if test $ac_cv_var_tzname = yes; then
21237
21238$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21239
21240 fi
21241fi
21242
cristy8b350f62009-11-15 23:12:43 +000021243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021244$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021245if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021246 $as_echo_n "(cached) " >&6
21247else
21248 echo '#! /bin/cat
21249exit 69
21250' >conftest
21251chmod u+x conftest
21252(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21253if test $? -ne 69; then
21254 ac_cv_sys_interpreter=yes
21255else
21256 ac_cv_sys_interpreter=no
21257fi
21258rm -f conftest
21259fi
cristy8b350f62009-11-15 23:12:43 +000021260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021261$as_echo "$ac_cv_sys_interpreter" >&6; }
21262interpval=$ac_cv_sys_interpreter
21263
21264
cristy3ed852e2009-09-05 21:47:34 +000021265# If the C compiler supports the keyword inline, do nothing. Otherwise
21266# define inline to __inline__ or __inline if it accepts one of those,
21267# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021269$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021270if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021271 $as_echo_n "(cached) " >&6
21272else
21273 ac_cv_c_inline=no
21274for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021276/* end confdefs.h. */
21277#ifndef __cplusplus
21278typedef int foo_t;
21279static $ac_kw foo_t static_foo () {return 0; }
21280$ac_kw foo_t foo () {return 0; }
21281#endif
21282
21283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021284if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021285 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021286fi
cristy3ed852e2009-09-05 21:47:34 +000021287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288 test "$ac_cv_c_inline" != no && break
21289done
21290
21291fi
cristy8b350f62009-11-15 23:12:43 +000021292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021293$as_echo "$ac_cv_c_inline" >&6; }
21294
cristy3ed852e2009-09-05 21:47:34 +000021295case $ac_cv_c_inline in
21296 inline | yes) ;;
21297 *)
21298 case $ac_cv_c_inline in
21299 no) ac_val=;;
21300 *) ac_val=$ac_cv_c_inline;;
21301 esac
21302 cat >>confdefs.h <<_ACEOF
21303#ifndef __cplusplus
21304#define inline $ac_val
21305#endif
21306_ACEOF
21307 ;;
21308esac
21309
21310
21311# If the C compiler supports the keyword restrict, do nothing. Otherwise
21312# define restrict to __restrict__ or __restrict if it accepts one of those,
21313# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021315$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021316if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021317 $as_echo_n "(cached) " >&6
21318else
21319 ac_cv_c_restrict=no
21320 # The order here caters to the fact that C++ does not require restrict.
21321 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021323/* end confdefs.h. */
21324typedef int * int_ptr;
21325 int foo (int_ptr $ac_kw ip) {
21326 return ip[0];
21327 }
21328int
21329main ()
21330{
21331int s[1];
21332 int * $ac_kw t = s;
21333 t[0] = 0;
21334 return foo(t)
21335 ;
21336 return 0;
21337}
21338_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021339if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021341fi
cristy3ed852e2009-09-05 21:47:34 +000021342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 test "$ac_cv_c_restrict" != no && break
21344 done
21345
21346fi
cristy8b350f62009-11-15 23:12:43 +000021347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021348$as_echo "$ac_cv_c_restrict" >&6; }
21349
cristy3ed852e2009-09-05 21:47:34 +000021350 case $ac_cv_c_restrict in
21351 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021352 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021353 ;;
21354 *) cat >>confdefs.h <<_ACEOF
21355#define restrict $ac_cv_c_restrict
21356_ACEOF
21357 ;;
21358 esac
21359
21360
21361# If words are stored with the most significant byte first (like
21362# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021364$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021365if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021366 $as_echo_n "(cached) " >&6
21367else
21368 ac_cv_c_bigendian=unknown
21369 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021371/* end confdefs.h. */
21372#ifndef __APPLE_CC__
21373 not a universal capable compiler
21374 #endif
21375 typedef int dummy;
21376
21377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021378if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021379
21380 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021381 # there are at least two -arch flags with different values.
21382 ac_arch=
21383 ac_prev=
21384 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21385 if test -n "$ac_prev"; then
21386 case $ac_word in
21387 i?86 | x86_64 | ppc | ppc64)
21388 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21389 ac_arch=$ac_word
21390 else
21391 ac_cv_c_bigendian=universal
21392 break
21393 fi
21394 ;;
21395 esac
21396 ac_prev=
21397 elif test "x$ac_word" = "x-arch"; then
21398 ac_prev=arch
21399 fi
21400 done
cristy3ed852e2009-09-05 21:47:34 +000021401fi
cristy3ed852e2009-09-05 21:47:34 +000021402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 if test $ac_cv_c_bigendian = unknown; then
21404 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021406/* end confdefs.h. */
21407#include <sys/types.h>
21408 #include <sys/param.h>
21409
21410int
21411main ()
21412{
21413#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21414 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21415 && LITTLE_ENDIAN)
21416 bogus endian macros
21417 #endif
21418
21419 ;
21420 return 0;
21421}
21422_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021423if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021424 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021426/* end confdefs.h. */
21427#include <sys/types.h>
21428 #include <sys/param.h>
21429
21430int
21431main ()
21432{
21433#if BYTE_ORDER != BIG_ENDIAN
21434 not big endian
21435 #endif
21436
21437 ;
21438 return 0;
21439}
21440_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021441if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021442 ac_cv_c_bigendian=yes
21443else
cristy8b350f62009-11-15 23:12:43 +000021444 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021445fi
cristy3ed852e2009-09-05 21:47:34 +000021446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021447fi
cristy3ed852e2009-09-05 21:47:34 +000021448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 fi
21450 if test $ac_cv_c_bigendian = unknown; then
21451 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021453/* end confdefs.h. */
21454#include <limits.h>
21455
21456int
21457main ()
21458{
21459#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21460 bogus endian macros
21461 #endif
21462
21463 ;
21464 return 0;
21465}
21466_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021467if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021468 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021470/* end confdefs.h. */
21471#include <limits.h>
21472
21473int
21474main ()
21475{
21476#ifndef _BIG_ENDIAN
21477 not big endian
21478 #endif
21479
21480 ;
21481 return 0;
21482}
21483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021484if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 ac_cv_c_bigendian=yes
21486else
cristy8b350f62009-11-15 23:12:43 +000021487 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021488fi
cristy3ed852e2009-09-05 21:47:34 +000021489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021490fi
cristy3ed852e2009-09-05 21:47:34 +000021491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21492 fi
21493 if test $ac_cv_c_bigendian = unknown; then
21494 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021495 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021496 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021498/* end confdefs.h. */
21499short int ascii_mm[] =
21500 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21501 short int ascii_ii[] =
21502 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21503 int use_ascii (int i) {
21504 return ascii_mm[i] + ascii_ii[i];
21505 }
21506 short int ebcdic_ii[] =
21507 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21508 short int ebcdic_mm[] =
21509 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21510 int use_ebcdic (int i) {
21511 return ebcdic_mm[i] + ebcdic_ii[i];
21512 }
21513 extern int foo;
21514
21515int
21516main ()
21517{
21518return use_ascii (foo) == use_ebcdic (foo);
21519 ;
21520 return 0;
21521}
21522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021523if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021524 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21525 ac_cv_c_bigendian=yes
21526 fi
21527 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21528 if test "$ac_cv_c_bigendian" = unknown; then
21529 ac_cv_c_bigendian=no
21530 else
21531 # finding both strings is unlikely to happen, but who knows?
21532 ac_cv_c_bigendian=unknown
21533 fi
21534 fi
cristy3ed852e2009-09-05 21:47:34 +000021535fi
cristy3ed852e2009-09-05 21:47:34 +000021536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537else
cristy8b350f62009-11-15 23:12:43 +000021538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021539/* end confdefs.h. */
21540$ac_includes_default
21541int
21542main ()
21543{
21544
21545 /* Are we little or big endian? From Harbison&Steele. */
21546 union
21547 {
21548 long int l;
21549 char c[sizeof (long int)];
21550 } u;
21551 u.l = 1;
21552 return u.c[sizeof (long int) - 1] == 1;
21553
21554 ;
21555 return 0;
21556}
21557_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021558if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021559 ac_cv_c_bigendian=no
21560else
cristy8b350f62009-11-15 23:12:43 +000021561 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021562fi
cristy8b350f62009-11-15 23:12:43 +000021563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21564 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021565fi
21566
cristy3ed852e2009-09-05 21:47:34 +000021567 fi
21568fi
cristy8b350f62009-11-15 23:12:43 +000021569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021570$as_echo "$ac_cv_c_bigendian" >&6; }
21571 case $ac_cv_c_bigendian in #(
21572 yes)
cristy8b350f62009-11-15 23:12:43 +000021573 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021574;; #(
21575 no)
21576 ;; #(
21577 universal)
21578
cristy8b350f62009-11-15 23:12:43 +000021579$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021580
21581 ;; #(
21582 *)
cristy5c40fb42010-08-05 16:12:44 +000021583 as_fn_error "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000021584 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021585 esac
21586
21587
21588# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021589ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21590if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021591
cristy3ed852e2009-09-05 21:47:34 +000021592else
21593
21594cat >>confdefs.h <<_ACEOF
21595#define mode_t int
21596_ACEOF
21597
21598fi
21599
21600
21601# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021602ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21603if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021604
cristy3ed852e2009-09-05 21:47:34 +000021605else
21606
21607cat >>confdefs.h <<_ACEOF
21608#define off_t long int
21609_ACEOF
21610
21611fi
21612
21613
21614# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021615ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21616if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021617
cristy3ed852e2009-09-05 21:47:34 +000021618else
21619
21620cat >>confdefs.h <<_ACEOF
21621#define pid_t int
21622_ACEOF
21623
21624fi
21625
21626
21627# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021628ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21629if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021630
cristy3ed852e2009-09-05 21:47:34 +000021631else
21632
21633cat >>confdefs.h <<_ACEOF
21634#define size_t unsigned int
21635_ACEOF
21636
21637fi
21638
21639
21640# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021641ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21642if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021643
cristy3ed852e2009-09-05 21:47:34 +000021644else
21645
21646cat >>confdefs.h <<_ACEOF
21647#define ssize_t int
21648_ACEOF
21649
21650fi
21651
21652
21653# If the C compiler supports a working long double type with more range
21654# or precision than the double type, define HAVE_LONG_DOUBLE.
21655
cristy8b350f62009-11-15 23:12:43 +000021656 { $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 +000021657$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021658if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021659 $as_echo_n "(cached) " >&6
21660else
cristy8b350f62009-11-15 23:12:43 +000021661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021662/* end confdefs.h. */
21663#include <float.h>
21664 long double const a[] =
21665 {
21666 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21667 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21668 };
21669 long double
21670 f (long double x)
21671 {
21672 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21673 + (x ? f (x) : 'c'));
21674 }
21675
21676int
21677main ()
21678{
21679static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21680 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21681 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21682 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21683 && (int) LDBL_EPSILON == 0
21684 )];
21685test_array [0] = 0
21686
21687 ;
21688 return 0;
21689}
21690_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021691if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021692 ac_cv_type_long_double_wider=yes
21693else
cristy8b350f62009-11-15 23:12:43 +000021694 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021695fi
cristy3ed852e2009-09-05 21:47:34 +000021696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697fi
cristy8b350f62009-11-15 23:12:43 +000021698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021699$as_echo "$ac_cv_type_long_double_wider" >&6; }
21700 if test $ac_cv_type_long_double_wider = yes; then
21701
cristy8b350f62009-11-15 23:12:43 +000021702$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021703
21704 fi
21705
21706
21707# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21708# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021710$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021711if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021712 $as_echo_n "(cached) " >&6
21713else
cristy8b350f62009-11-15 23:12:43 +000021714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021715/* end confdefs.h. */
21716$ac_includes_default
21717int
21718main ()
21719{
21720static int test_array [1 - 2 * !(((char) -1) < 0)];
21721test_array [0] = 0
21722
21723 ;
21724 return 0;
21725}
21726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021727if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021728 ac_cv_c_char_unsigned=no
21729else
cristy8b350f62009-11-15 23:12:43 +000021730 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021731fi
cristy3ed852e2009-09-05 21:47:34 +000021732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733fi
cristy8b350f62009-11-15 23:12:43 +000021734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021735$as_echo "$ac_cv_c_char_unsigned" >&6; }
21736if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021737 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021738
21739fi
21740
21741
21742# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21743# The cast to long int works around a bug in the HP C Compiler
21744# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21745# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21746# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021748$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021749if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021750 $as_echo_n "(cached) " >&6
21751else
cristy8b350f62009-11-15 23:12:43 +000021752 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 +000021753
cristy3ed852e2009-09-05 21:47:34 +000021754else
cristy8b350f62009-11-15 23:12:43 +000021755 if test "$ac_cv_type_signed_short" = yes; then
21756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021758{ as_fn_set_status 77
21759as_fn_error "cannot compute sizeof (signed short)
21760See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021761 else
21762 ac_cv_sizeof_signed_short=0
21763 fi
21764fi
cristy8b350f62009-11-15 23:12:43 +000021765
cristy3ed852e2009-09-05 21:47:34 +000021766fi
cristy8b350f62009-11-15 23:12:43 +000021767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021768$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21769
21770
21771
21772cat >>confdefs.h <<_ACEOF
21773#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21774_ACEOF
21775
21776
21777
21778# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21779# The cast to long int works around a bug in the HP C Compiler
21780# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21781# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21782# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021784$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021785if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021786 $as_echo_n "(cached) " >&6
21787else
cristy8b350f62009-11-15 23:12:43 +000021788 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 +000021789
cristy3ed852e2009-09-05 21:47:34 +000021790else
cristy8b350f62009-11-15 23:12:43 +000021791 if test "$ac_cv_type_unsigned_short" = yes; then
21792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021794{ as_fn_set_status 77
21795as_fn_error "cannot compute sizeof (unsigned short)
21796See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021797 else
21798 ac_cv_sizeof_unsigned_short=0
21799 fi
21800fi
cristy8b350f62009-11-15 23:12:43 +000021801
cristy3ed852e2009-09-05 21:47:34 +000021802fi
cristy8b350f62009-11-15 23:12:43 +000021803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021804$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21805
21806
21807
21808cat >>confdefs.h <<_ACEOF
21809#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21810_ACEOF
21811
21812
21813
21814# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21815# The cast to long int works around a bug in the HP C Compiler
21816# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21817# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21818# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021820$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021821if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 $as_echo_n "(cached) " >&6
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 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 +000021825
cristy3ed852e2009-09-05 21:47:34 +000021826else
cristy8b350f62009-11-15 23:12:43 +000021827 if test "$ac_cv_type_signed_int" = yes; then
21828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021830{ as_fn_set_status 77
21831as_fn_error "cannot compute sizeof (signed int)
21832See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021833 else
21834 ac_cv_sizeof_signed_int=0
21835 fi
21836fi
cristy8b350f62009-11-15 23:12:43 +000021837
cristy3ed852e2009-09-05 21:47:34 +000021838fi
cristy8b350f62009-11-15 23:12:43 +000021839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021840$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21841
21842
21843
21844cat >>confdefs.h <<_ACEOF
21845#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21846_ACEOF
21847
21848
21849
21850# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21851# The cast to long int works around a bug in the HP C Compiler
21852# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21853# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21854# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021856$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021857if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021858 $as_echo_n "(cached) " >&6
21859else
cristy8b350f62009-11-15 23:12:43 +000021860 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 +000021861
cristy3ed852e2009-09-05 21:47:34 +000021862else
cristy8b350f62009-11-15 23:12:43 +000021863 if test "$ac_cv_type_unsigned_int" = yes; then
21864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021866{ as_fn_set_status 77
21867as_fn_error "cannot compute sizeof (unsigned int)
21868See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021869 else
21870 ac_cv_sizeof_unsigned_int=0
21871 fi
21872fi
cristy8b350f62009-11-15 23:12:43 +000021873
cristy3ed852e2009-09-05 21:47:34 +000021874fi
cristy8b350f62009-11-15 23:12:43 +000021875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021876$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21877
21878
21879
21880cat >>confdefs.h <<_ACEOF
21881#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21882_ACEOF
21883
21884
21885
21886# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21887# The cast to long int works around a bug in the HP C Compiler
21888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21890# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021892$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021893if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021894 $as_echo_n "(cached) " >&6
21895else
cristy8b350f62009-11-15 23:12:43 +000021896 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 +000021897
cristy3ed852e2009-09-05 21:47:34 +000021898else
cristy8b350f62009-11-15 23:12:43 +000021899 if test "$ac_cv_type_signed_long" = yes; then
21900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021902{ as_fn_set_status 77
21903as_fn_error "cannot compute sizeof (signed long)
21904See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021905 else
21906 ac_cv_sizeof_signed_long=0
21907 fi
21908fi
cristy8b350f62009-11-15 23:12:43 +000021909
cristy3ed852e2009-09-05 21:47:34 +000021910fi
cristy8b350f62009-11-15 23:12:43 +000021911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021912$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21913
21914
21915
21916cat >>confdefs.h <<_ACEOF
21917#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21918_ACEOF
21919
21920
21921
21922# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21923# The cast to long int works around a bug in the HP C Compiler
21924# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21925# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21926# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021928$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021929if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 $as_echo_n "(cached) " >&6
21931else
cristy8b350f62009-11-15 23:12:43 +000021932 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 +000021933
cristy3ed852e2009-09-05 21:47:34 +000021934else
cristy8b350f62009-11-15 23:12:43 +000021935 if test "$ac_cv_type_unsigned_long" = yes; then
21936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021938{ as_fn_set_status 77
21939as_fn_error "cannot compute sizeof (unsigned long)
21940See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021941 else
21942 ac_cv_sizeof_unsigned_long=0
21943 fi
21944fi
cristy8b350f62009-11-15 23:12:43 +000021945
cristy3ed852e2009-09-05 21:47:34 +000021946fi
cristy8b350f62009-11-15 23:12:43 +000021947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021948$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21949
21950
21951
21952cat >>confdefs.h <<_ACEOF
21953#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21954_ACEOF
21955
21956
21957
21958# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21959# 'signed long long' is not supported then the value defined is zero.
21960# The cast to long int works around a bug in the HP C Compiler
21961# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21962# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21963# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021965$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021966if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021967 $as_echo_n "(cached) " >&6
21968else
cristy8b350f62009-11-15 23:12:43 +000021969 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 +000021970
cristy3ed852e2009-09-05 21:47:34 +000021971else
cristy8b350f62009-11-15 23:12:43 +000021972 if test "$ac_cv_type_signed_long_long" = yes; then
21973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000021975{ as_fn_set_status 77
21976as_fn_error "cannot compute sizeof (signed long long)
21977See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021978 else
21979 ac_cv_sizeof_signed_long_long=0
21980 fi
21981fi
cristy8b350f62009-11-15 23:12:43 +000021982
cristy3ed852e2009-09-05 21:47:34 +000021983fi
cristy8b350f62009-11-15 23:12:43 +000021984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021985$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21986
21987
21988
21989cat >>confdefs.h <<_ACEOF
21990#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21991_ACEOF
21992
21993
21994
21995# Obtain size of a 'unsigned long long' and define as
21996# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21997# supported then the value defined is zero.
21998# The cast to long int works around a bug in the HP C Compiler
21999# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22000# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22001# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022003$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022004if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 $as_echo_n "(cached) " >&6
22006else
cristy8b350f62009-11-15 23:12:43 +000022007 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 +000022008
cristy3ed852e2009-09-05 21:47:34 +000022009else
cristy8b350f62009-11-15 23:12:43 +000022010 if test "$ac_cv_type_unsigned_long_long" = yes; then
22011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000022013{ as_fn_set_status 77
22014as_fn_error "cannot compute sizeof (unsigned long long)
22015See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022016 else
22017 ac_cv_sizeof_unsigned_long_long=0
22018 fi
22019fi
cristy8b350f62009-11-15 23:12:43 +000022020
cristy3ed852e2009-09-05 21:47:34 +000022021fi
cristy8b350f62009-11-15 23:12:43 +000022022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022023$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22024
22025
22026
22027cat >>confdefs.h <<_ACEOF
22028#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22029_ACEOF
22030
22031
22032
22033# Obtain size of off_t and define as SIZEOF_OFF_T
22034# The cast to long int works around a bug in the HP C Compiler
22035# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22036# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22037# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022039$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022040if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 $as_echo_n "(cached) " >&6
22042else
cristy8b350f62009-11-15 23:12:43 +000022043 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 +000022044
cristy3ed852e2009-09-05 21:47:34 +000022045else
cristy8b350f62009-11-15 23:12:43 +000022046 if test "$ac_cv_type_off_t" = yes; then
22047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000022049{ as_fn_set_status 77
22050as_fn_error "cannot compute sizeof (off_t)
22051See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022052 else
22053 ac_cv_sizeof_off_t=0
22054 fi
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056
cristy3ed852e2009-09-05 21:47:34 +000022057fi
cristy8b350f62009-11-15 23:12:43 +000022058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022059$as_echo "$ac_cv_sizeof_off_t" >&6; }
22060
22061
22062
22063cat >>confdefs.h <<_ACEOF
22064#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22065_ACEOF
22066
22067
22068
22069# Obtain size of size_t and define as SIZEOF_SIZE_T
22070# The cast to long int works around a bug in the HP C Compiler
22071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22073# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022075$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022076if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022077 $as_echo_n "(cached) " >&6
22078else
cristy8b350f62009-11-15 23:12:43 +000022079 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 +000022080
cristy3ed852e2009-09-05 21:47:34 +000022081else
cristy8b350f62009-11-15 23:12:43 +000022082 if test "$ac_cv_type_size_t" = yes; then
22083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000022085{ as_fn_set_status 77
22086as_fn_error "cannot compute sizeof (size_t)
22087See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022088 else
22089 ac_cv_sizeof_size_t=0
22090 fi
22091fi
cristy8b350f62009-11-15 23:12:43 +000022092
cristy3ed852e2009-09-05 21:47:34 +000022093fi
cristy8b350f62009-11-15 23:12:43 +000022094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022095$as_echo "$ac_cv_sizeof_size_t" >&6; }
22096
22097
22098
22099cat >>confdefs.h <<_ACEOF
22100#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22101_ACEOF
22102
22103
22104
cristy330e9352010-06-01 18:42:49 +000022105# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22106# The cast to long int works around a bug in the HP C Compiler
22107# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22108# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22109# This bug is HP SR number 8606223364.
22110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22111$as_echo_n "checking size of ssize_t... " >&6; }
22112if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22113 $as_echo_n "(cached) " >&6
22114else
22115 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22116
22117else
22118 if test "$ac_cv_type_ssize_t" = yes; then
22119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000022121{ as_fn_set_status 77
22122as_fn_error "cannot compute sizeof (ssize_t)
22123See \`config.log' for more details." "$LINENO" 5; }; }
cristy330e9352010-06-01 18:42:49 +000022124 else
22125 ac_cv_sizeof_ssize_t=0
22126 fi
22127fi
22128
22129fi
22130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22131$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22132
22133
22134
22135cat >>confdefs.h <<_ACEOF
22136#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22137_ACEOF
22138
22139
22140
cristy3ed852e2009-09-05 21:47:34 +000022141# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22142# The cast to long int works around a bug in the HP C Compiler
22143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22145# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022147$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022148if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022149 $as_echo_n "(cached) " >&6
22150else
cristy8b350f62009-11-15 23:12:43 +000022151 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 +000022152
cristy3ed852e2009-09-05 21:47:34 +000022153else
cristy8b350f62009-11-15 23:12:43 +000022154 if test "$ac_cv_type_unsigned_intp" = yes; then
22155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy5c40fb42010-08-05 16:12:44 +000022157{ as_fn_set_status 77
22158as_fn_error "cannot compute sizeof (unsigned int*)
22159See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022160 else
22161 ac_cv_sizeof_unsigned_intp=0
22162 fi
22163fi
cristy8b350f62009-11-15 23:12:43 +000022164
cristy3ed852e2009-09-05 21:47:34 +000022165fi
cristy8b350f62009-11-15 23:12:43 +000022166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022167$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22168
22169
22170
22171cat >>confdefs.h <<_ACEOF
22172#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22173_ACEOF
22174
22175
22176
22177#
22178# Compute sized types for current CPU and compiler options.
22179#
22180
cristy8b350f62009-11-15 23:12:43 +000022181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022182$as_echo_n "checking for signed 8-bit type... " >&6; }
22183INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022185$as_echo "$INT8_T" >&6; }
22186
22187
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22190UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022192$as_echo "$UINT8_T" >&6; }
22193
22194
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo_n "checking for signed 16-bit type... " >&6; }
22197INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022199$as_echo "$INT16_T" >&6; }
22200
22201
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22204UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$UINT16_T" >&6; }
22207
22208
cristy8b350f62009-11-15 23:12:43 +000022209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022210$as_echo_n "checking for signed 32-bit type... " >&6; }
22211INT32_T='none'
22212if test $ac_cv_sizeof_signed_int -eq 4; then
22213 INT32_T='signed int'
22214elif test $ac_cv_sizeof_signed_long -eq 4; then
22215 INT32_T='signed long'
22216fi
cristy8b350f62009-11-15 23:12:43 +000022217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022218$as_echo "$INT32_T" >&6; }
22219
22220
cristy8b350f62009-11-15 23:12:43 +000022221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022222$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22223UINT32_T='none'
22224if test $ac_cv_sizeof_unsigned_int -eq 4; then
22225 UINT32_T='unsigned int'
22226elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22227 UINT32_T='unsigned long'
22228fi
cristy8b350f62009-11-15 23:12:43 +000022229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022230$as_echo "$UINT32_T" >&6; }
22231
22232
cristy8b350f62009-11-15 23:12:43 +000022233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022234$as_echo_n "checking for signed 64-bit type... " >&6; }
22235INT64_T='none'
22236if test $ac_cv_sizeof_signed_long -eq 8; then
22237 INT64_T='signed long'
22238elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22239 INT64_T='signed long long'
22240fi
cristy8b350f62009-11-15 23:12:43 +000022241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022242$as_echo "$INT64_T" >&6; }
22243
22244
cristy8b350f62009-11-15 23:12:43 +000022245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22247UINT64_T='none'
22248if test $ac_cv_sizeof_unsigned_long -eq 8; then
22249 UINT64_T='unsigned long'
22250elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22251 UINT64_T='unsigned long long'
22252fi
cristy8b350f62009-11-15 23:12:43 +000022253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022254$as_echo "$UINT64_T" >&6; }
22255
22256
cristy8b350f62009-11-15 23:12:43 +000022257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022258$as_echo_n "checking for unsigned maximum type... " >&6; }
22259UINTMAX_T='none'
22260if test "$UINT64_T" != 'none'; then
22261 UINTMAX_T=$UINT64_T
22262elif test "$UINT32_T" != 'none'; then
22263 UINTMAX_T=$UINT32_T
22264fi
cristy8b350f62009-11-15 23:12:43 +000022265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022266$as_echo "$UINTMAX_T" >&6; }
22267
22268
cristy8b350f62009-11-15 23:12:43 +000022269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022270$as_echo_n "checking for pointer difference type... " >&6; }
22271UINTPTR_T='none'
22272if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22273 UINTPTR_T='unsigned long'
22274elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22275 UINTPTR_T='unsigned long long'
22276fi
cristy8b350f62009-11-15 23:12:43 +000022277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022278$as_echo "$UINTPTR_T" >&6; }
22279
22280
cristy8b350f62009-11-15 23:12:43 +000022281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022282$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022284/* end confdefs.h. */
22285
22286int
22287main ()
22288{
22289{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22290 ;
22291 return 0;
22292}
22293_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022294if ac_fn_c_try_compile "$LINENO"; then :
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022296$as_echo "yes" >&6; }
22297else
cristy8b350f62009-11-15 23:12:43 +000022298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022299$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022301$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022303/* end confdefs.h. */
22304
22305int
22306main ()
22307{
22308{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22309 ;
22310 return 0;
22311}
22312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022313if ac_fn_c_try_compile "$LINENO"; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022315$as_echo "yes" >&6; }
22316
cristy8b350f62009-11-15 23:12:43 +000022317$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022318
22319else
cristy8b350f62009-11-15 23:12:43 +000022320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022321$as_echo "no" >&6; }
22322
cristy8b350f62009-11-15 23:12:43 +000022323$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022324
22325fi
cristy3ed852e2009-09-05 21:47:34 +000022326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327fi
cristy3ed852e2009-09-05 21:47:34 +000022328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329
22330########
22331#
22332# Check for functions
22333#
22334########
cristy3ed852e2009-09-05 21:47:34 +000022335for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022336do :
22337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy5c40fb42010-08-05 16:12:44 +000022339eval as_val=\$$as_ac_Header
22340 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022341 cat >>confdefs.h <<_ACEOF
22342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22343_ACEOF
22344
22345fi
22346
22347done
22348
cristy3ed852e2009-09-05 21:47:34 +000022349for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022350do :
22351 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22352if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022353 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022354#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022355_ACEOF
22356
22357fi
22358done
22359
cristy8b350f62009-11-15 23:12:43 +000022360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022361$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022362if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 $as_echo_n "(cached) " >&6
22364else
cristy8b350f62009-11-15 23:12:43 +000022365 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022366 magick_cv_func_mmap_fileio=no
22367else
cristy8b350f62009-11-15 23:12:43 +000022368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022369/* end confdefs.h. */
22370$ac_includes_default
22371/* malloc might have been renamed as rpl_malloc. */
22372#undef malloc
22373
22374/*
22375 This test is derived from GNU Autoconf's similar macro.
22376 The purpose of this test is to verify that files may be memory
22377 mapped, and that memory mapping and file I/O are coherent.
22378
22379 The test creates a test file, memory maps the file, updates
22380 the file using the memory map, and then reads the file using
22381 file I/O to verify that the file contains the updates.
22382*/
22383
22384#include <fcntl.h>
22385#include <sys/mman.h>
22386
22387#if !STDC_HEADERS && !HAVE_STDLIB_H
22388char *malloc ();
22389#endif
22390
22391/* This mess was copied from the GNU getpagesize.h. */
22392#if !HAVE_GETPAGESIZE
22393/* Assume that all systems that can run configure have sys/param.h. */
22394# if !HAVE_SYS_PARAM_H
22395# define HAVE_SYS_PARAM_H 1
22396# endif
22397
22398# ifdef _SC_PAGESIZE
22399# define getpagesize() sysconf(_SC_PAGESIZE)
22400# else /* no _SC_PAGESIZE */
22401# if HAVE_SYS_PARAM_H
22402# include <sys/param.h>
22403# ifdef EXEC_PAGESIZE
22404# define getpagesize() EXEC_PAGESIZE
22405# else /* no EXEC_PAGESIZE */
22406# ifdef NBPG
22407# define getpagesize() NBPG * CLSIZE
22408# ifndef CLSIZE
22409# define CLSIZE 1
22410# endif /* no CLSIZE */
22411# else /* no NBPG */
22412# ifdef NBPC
22413# define getpagesize() NBPC
22414# else /* no NBPC */
22415# ifdef PAGESIZE
22416# define getpagesize() PAGESIZE
22417# endif /* PAGESIZE */
22418# endif /* no NBPC */
22419# endif /* no NBPG */
22420# endif /* no EXEC_PAGESIZE */
22421# else /* no HAVE_SYS_PARAM_H */
22422# define getpagesize() 8192 /* punt totally */
22423# endif /* no HAVE_SYS_PARAM_H */
22424# endif /* no _SC_PAGESIZE */
22425
22426#endif /* no HAVE_GETPAGESIZE */
22427
22428int
22429main ()
22430{
22431 char *data, *data2, *data3;
22432 int i, pagesize;
22433 int fd;
22434
22435 pagesize = getpagesize ();
22436
22437 /* First, make a file with some known garbage in it. */
22438 data = (char *) malloc (pagesize);
22439 if (!data)
22440 exit (1);
22441 for (i = 0; i < pagesize; ++i)
22442 *(data + i) = rand ();
22443 umask (0);
22444 fd = creat ("conftest.mmap", 0600);
22445 if (fd < 0)
22446 exit (1);
22447 if (write (fd, data, pagesize) != pagesize)
22448 exit (1);
22449 close (fd);
22450
22451 /* Mmap the file as read/write/shared and verify that we see the
22452 same garbage. */
22453 fd = open ("conftest.mmap", O_RDWR);
22454 if (fd < 0)
22455 exit (1);
22456 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22457 if (data2 == 0)
22458 exit (1);
22459 for (i = 0; i < pagesize; ++i)
22460 if (*(data + i) != *(data2 + i))
22461 exit (1);
22462
22463 /* Finally, make sure that changes to the mapped area
22464 percolate back to the file as seen by read(). */
22465 for (i = 0; i < pagesize; ++i)
22466 *(data2 + i) = *(data2 + i) + 1;
22467 data3 = (char *) malloc (pagesize);
22468 if (!data3)
22469 exit (1);
22470 if (read (fd, data3, pagesize) != pagesize)
22471 exit (1);
22472 for (i = 0; i < pagesize; ++i)
22473 if (*(data2 + i) != *(data3 + i))
22474 exit (1);
22475 close (fd);
22476 exit (0);
22477}
22478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022479if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022480 magick_cv_func_mmap_fileio=yes
22481else
cristy8b350f62009-11-15 23:12:43 +000022482 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022483fi
cristy8b350f62009-11-15 23:12:43 +000022484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22485 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486fi
22487
cristy3ed852e2009-09-05 21:47:34 +000022488fi
cristy8b350f62009-11-15 23:12:43 +000022489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022490$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22491if test $magick_cv_func_mmap_fileio = yes; then
22492
cristy8b350f62009-11-15 23:12:43 +000022493$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022494
22495fi
22496rm -f conftest.mmap
22497
cristy8b350f62009-11-15 23:12:43 +000022498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022499$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022500if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022501 $as_echo_n "(cached) " >&6
22502else
cristy8b350f62009-11-15 23:12:43 +000022503 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022504 ac_cv_func_closedir_void=yes
22505else
cristy8b350f62009-11-15 23:12:43 +000022506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022507/* end confdefs.h. */
22508$ac_includes_default
22509#include <$ac_header_dirent>
22510#ifndef __cplusplus
22511int closedir ();
22512#endif
22513
22514int
22515main ()
22516{
22517return closedir (opendir (".")) != 0;
22518 ;
22519 return 0;
22520}
22521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022522if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022523 ac_cv_func_closedir_void=no
22524else
cristy8b350f62009-11-15 23:12:43 +000022525 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022526fi
cristy8b350f62009-11-15 23:12:43 +000022527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22528 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022529fi
22530
cristy3ed852e2009-09-05 21:47:34 +000022531fi
cristy8b350f62009-11-15 23:12:43 +000022532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022533$as_echo "$ac_cv_func_closedir_void" >&6; }
22534if test $ac_cv_func_closedir_void = yes; then
22535
cristy8b350f62009-11-15 23:12:43 +000022536$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022537
22538fi
22539
cristycd4c5312009-11-22 01:19:08 +000022540
22541
22542
22543 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022544do :
22545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022546ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22547"
cristy5c40fb42010-08-05 16:12:44 +000022548eval as_val=\$$as_ac_Header
22549 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022550 cat >>confdefs.h <<_ACEOF
22551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22552_ACEOF
22553
22554fi
22555
22556done
22557
cristycd4c5312009-11-22 01:19:08 +000022558
22559
22560
22561
22562
22563
22564
cristy3ed852e2009-09-05 21:47:34 +000022565for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022566do :
22567 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22568if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022569 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022570#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022571_ACEOF
22572
22573fi
22574done
22575
cristy8b350f62009-11-15 23:12:43 +000022576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022577$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022578if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022579 $as_echo_n "(cached) " >&6
22580else
cristy8b350f62009-11-15 23:12:43 +000022581 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022582 ac_cv_func_mmap_fixed_mapped=no
22583else
cristy8b350f62009-11-15 23:12:43 +000022584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022585/* end confdefs.h. */
22586$ac_includes_default
22587/* malloc might have been renamed as rpl_malloc. */
22588#undef malloc
22589
22590/* Thanks to Mike Haertel and Jim Avera for this test.
22591 Here is a matrix of mmap possibilities:
22592 mmap private not fixed
22593 mmap private fixed at somewhere currently unmapped
22594 mmap private fixed at somewhere already mapped
22595 mmap shared not fixed
22596 mmap shared fixed at somewhere currently unmapped
22597 mmap shared fixed at somewhere already mapped
22598 For private mappings, we should verify that changes cannot be read()
22599 back from the file, nor mmap's back from the file at a different
22600 address. (There have been systems where private was not correctly
22601 implemented like the infamous i386 svr4.0, and systems where the
22602 VM page cache was not coherent with the file system buffer cache
22603 like early versions of FreeBSD and possibly contemporary NetBSD.)
22604 For shared mappings, we should conversely verify that changes get
22605 propagated back to all the places they're supposed to be.
22606
22607 Grep wants private fixed already mapped.
22608 The main things grep needs to know about mmap are:
22609 * does it exist and is it safe to write into the mmap'd area
22610 * how to use it (BSD variants) */
22611
22612#include <fcntl.h>
22613#include <sys/mman.h>
22614
22615#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22616char *malloc ();
22617#endif
22618
22619/* This mess was copied from the GNU getpagesize.h. */
22620#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022621# ifdef _SC_PAGESIZE
22622# define getpagesize() sysconf(_SC_PAGESIZE)
22623# else /* no _SC_PAGESIZE */
22624# ifdef HAVE_SYS_PARAM_H
22625# include <sys/param.h>
22626# ifdef EXEC_PAGESIZE
22627# define getpagesize() EXEC_PAGESIZE
22628# else /* no EXEC_PAGESIZE */
22629# ifdef NBPG
22630# define getpagesize() NBPG * CLSIZE
22631# ifndef CLSIZE
22632# define CLSIZE 1
22633# endif /* no CLSIZE */
22634# else /* no NBPG */
22635# ifdef NBPC
22636# define getpagesize() NBPC
22637# else /* no NBPC */
22638# ifdef PAGESIZE
22639# define getpagesize() PAGESIZE
22640# endif /* PAGESIZE */
22641# endif /* no NBPC */
22642# endif /* no NBPG */
22643# endif /* no EXEC_PAGESIZE */
22644# else /* no HAVE_SYS_PARAM_H */
22645# define getpagesize() 8192 /* punt totally */
22646# endif /* no HAVE_SYS_PARAM_H */
22647# endif /* no _SC_PAGESIZE */
22648
22649#endif /* no HAVE_GETPAGESIZE */
22650
22651int
22652main ()
22653{
22654 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022655 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022656 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022657 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022658
22659 pagesize = getpagesize ();
22660
22661 /* First, make a file with some known garbage in it. */
22662 data = (char *) malloc (pagesize);
22663 if (!data)
22664 return 1;
22665 for (i = 0; i < pagesize; ++i)
22666 *(data + i) = rand ();
22667 umask (0);
22668 fd = creat ("conftest.mmap", 0600);
22669 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022670 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022671 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022672 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022673 close (fd);
22674
cristycd4c5312009-11-22 01:19:08 +000022675 /* Next, check that the tail of a page is zero-filled. File must have
22676 non-zero length, otherwise we risk SIGBUS for entire page. */
22677 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22678 if (fd2 < 0)
22679 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022680 cdata2 = "";
22681 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022682 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022683 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022684 if (data2 == MAP_FAILED)
22685 return 6;
22686 for (i = 0; i < pagesize; ++i)
22687 if (*(data2 + i))
22688 return 7;
22689 close (fd2);
22690 if (munmap (data2, pagesize))
22691 return 8;
22692
cristy3ed852e2009-09-05 21:47:34 +000022693 /* Next, try to mmap the file at a fixed address which already has
22694 something else allocated at it. If we can, also make sure that
22695 we see the same garbage. */
22696 fd = open ("conftest.mmap", O_RDWR);
22697 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022698 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022699 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22700 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022701 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022702 for (i = 0; i < pagesize; ++i)
22703 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022704 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022705
22706 /* Finally, make sure that changes to the mapped area do not
22707 percolate back to the file as seen by read(). (This is a bug on
22708 some variants of i386 svr4.0.) */
22709 for (i = 0; i < pagesize; ++i)
22710 *(data2 + i) = *(data2 + i) + 1;
22711 data3 = (char *) malloc (pagesize);
22712 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022713 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022714 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022715 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022716 for (i = 0; i < pagesize; ++i)
22717 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022718 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022719 close (fd);
22720 return 0;
22721}
22722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022723if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022724 ac_cv_func_mmap_fixed_mapped=yes
22725else
cristy8b350f62009-11-15 23:12:43 +000022726 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022727fi
cristy8b350f62009-11-15 23:12:43 +000022728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22729 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022730fi
22731
cristy3ed852e2009-09-05 21:47:34 +000022732fi
cristy8b350f62009-11-15 23:12:43 +000022733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022734$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22735if test $ac_cv_func_mmap_fixed_mapped = yes; then
22736
cristy8b350f62009-11-15 23:12:43 +000022737$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022738
22739fi
cristycd4c5312009-11-22 01:19:08 +000022740rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022741
cristy3ed852e2009-09-05 21:47:34 +000022742for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022743do :
22744 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22745if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022746 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022747#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022748_ACEOF
22749
22750fi
22751
22752done
22753
cristy3ed852e2009-09-05 21:47:34 +000022754for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022755do :
22756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000022758eval as_val=\$$as_ac_var
22759 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022760 cat >>confdefs.h <<_ACEOF
22761#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22762_ACEOF
22763
22764fi
22765done
22766
22767if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022770if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 $as_echo_n "(cached) " >&6
22772else
cristy8b350f62009-11-15 23:12:43 +000022773 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022774 ac_cv_func_fork_works=cross
22775else
cristy8b350f62009-11-15 23:12:43 +000022776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022777/* end confdefs.h. */
22778$ac_includes_default
22779int
22780main ()
22781{
22782
22783 /* By Ruediger Kuhlmann. */
22784 return fork () < 0;
22785
22786 ;
22787 return 0;
22788}
22789_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022790if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022791 ac_cv_func_fork_works=yes
22792else
cristy8b350f62009-11-15 23:12:43 +000022793 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022794fi
cristy8b350f62009-11-15 23:12:43 +000022795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22796 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022797fi
22798
cristy3ed852e2009-09-05 21:47:34 +000022799fi
cristy8b350f62009-11-15 23:12:43 +000022800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022801$as_echo "$ac_cv_func_fork_works" >&6; }
22802
22803else
22804 ac_cv_func_fork_works=$ac_cv_func_fork
22805fi
22806if test "x$ac_cv_func_fork_works" = xcross; then
22807 case $host in
22808 *-*-amigaos* | *-*-msdosdjgpp*)
22809 # Override, as these systems have only a dummy fork() stub
22810 ac_cv_func_fork_works=no
22811 ;;
22812 *)
22813 ac_cv_func_fork_works=yes
22814 ;;
22815 esac
cristy8b350f62009-11-15 23:12:43 +000022816 { $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 +000022817$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22818fi
22819ac_cv_func_vfork_works=$ac_cv_func_vfork
22820if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022823if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 $as_echo_n "(cached) " >&6
22825else
cristy8b350f62009-11-15 23:12:43 +000022826 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022827 ac_cv_func_vfork_works=cross
22828else
cristy8b350f62009-11-15 23:12:43 +000022829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022830/* end confdefs.h. */
22831/* Thanks to Paul Eggert for this test. */
22832$ac_includes_default
22833#include <sys/wait.h>
22834#ifdef HAVE_VFORK_H
22835# include <vfork.h>
22836#endif
22837/* On some sparc systems, changes by the child to local and incoming
22838 argument registers are propagated back to the parent. The compiler
22839 is told about this with #include <vfork.h>, but some compilers
22840 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22841 static variable whose address is put into a register that is
22842 clobbered by the vfork. */
22843static void
22844#ifdef __cplusplus
22845sparc_address_test (int arg)
22846# else
22847sparc_address_test (arg) int arg;
22848#endif
22849{
22850 static pid_t child;
22851 if (!child) {
22852 child = vfork ();
22853 if (child < 0) {
22854 perror ("vfork");
22855 _exit(2);
22856 }
22857 if (!child) {
22858 arg = getpid();
22859 write(-1, "", 0);
22860 _exit (arg);
22861 }
22862 }
22863}
22864
22865int
22866main ()
22867{
22868 pid_t parent = getpid ();
22869 pid_t child;
22870
22871 sparc_address_test (0);
22872
22873 child = vfork ();
22874
22875 if (child == 0) {
22876 /* Here is another test for sparc vfork register problems. This
22877 test uses lots of local variables, at least as many local
22878 variables as main has allocated so far including compiler
22879 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22880 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22881 reuse the register of parent for one of the local variables,
22882 since it will think that parent can't possibly be used any more
22883 in this routine. Assigning to the local variable will thus
22884 munge parent in the parent process. */
22885 pid_t
22886 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22887 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22888 /* Convince the compiler that p..p7 are live; otherwise, it might
22889 use the same hardware register for all 8 local variables. */
22890 if (p != p1 || p != p2 || p != p3 || p != p4
22891 || p != p5 || p != p6 || p != p7)
22892 _exit(1);
22893
22894 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22895 from child file descriptors. If the child closes a descriptor
22896 before it execs or exits, this munges the parent's descriptor
22897 as well. Test for this by closing stdout in the child. */
22898 _exit(close(fileno(stdout)) != 0);
22899 } else {
22900 int status;
22901 struct stat st;
22902
22903 while (wait(&status) != child)
22904 ;
22905 return (
22906 /* Was there some problem with vforking? */
22907 child < 0
22908
22909 /* Did the child fail? (This shouldn't happen.) */
22910 || status
22911
22912 /* Did the vfork/compiler bug occur? */
22913 || parent != getpid()
22914
22915 /* Did the file descriptor bug occur? */
22916 || fstat(fileno(stdout), &st) != 0
22917 );
22918 }
22919}
22920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022921if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022922 ac_cv_func_vfork_works=yes
22923else
cristy8b350f62009-11-15 23:12:43 +000022924 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022925fi
cristy8b350f62009-11-15 23:12:43 +000022926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22927 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022928fi
22929
cristy3ed852e2009-09-05 21:47:34 +000022930fi
cristy8b350f62009-11-15 23:12:43 +000022931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022932$as_echo "$ac_cv_func_vfork_works" >&6; }
22933
22934fi;
22935if test "x$ac_cv_func_fork_works" = xcross; then
22936 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022937 { $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 +000022938$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22939fi
22940
22941if test "x$ac_cv_func_vfork_works" = xyes; then
22942
cristy8b350f62009-11-15 23:12:43 +000022943$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022944
22945else
22946
cristy8b350f62009-11-15 23:12:43 +000022947$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022948
22949fi
22950if test "x$ac_cv_func_fork_works" = xyes; then
22951
cristy8b350f62009-11-15 23:12:43 +000022952$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022953
22954fi
22955
cristy8b350f62009-11-15 23:12:43 +000022956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022957$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022958if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 $as_echo_n "(cached) " >&6
22960else
cristy8b350f62009-11-15 23:12:43 +000022961 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022962 ac_cv_func_memcmp_working=no
22963else
cristy8b350f62009-11-15 23:12:43 +000022964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022965/* end confdefs.h. */
22966$ac_includes_default
22967int
22968main ()
22969{
22970
22971 /* Some versions of memcmp are not 8-bit clean. */
22972 char c0 = '\100', c1 = '\200', c2 = '\201';
22973 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22974 return 1;
22975
22976 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22977 or more and with at least one buffer not starting on a 4-byte boundary.
22978 William Lewis provided this test program. */
22979 {
22980 char foo[21];
22981 char bar[21];
22982 int i;
22983 for (i = 0; i < 4; i++)
22984 {
22985 char *a = foo + i;
22986 char *b = bar + i;
22987 strcpy (a, "--------01111111");
22988 strcpy (b, "--------10000000");
22989 if (memcmp (a, b, 16) >= 0)
22990 return 1;
22991 }
22992 return 0;
22993 }
22994
22995 ;
22996 return 0;
22997}
22998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022999if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023000 ac_cv_func_memcmp_working=yes
23001else
cristy8b350f62009-11-15 23:12:43 +000023002 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023003fi
cristy8b350f62009-11-15 23:12:43 +000023004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23005 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023006fi
23007
cristy3ed852e2009-09-05 21:47:34 +000023008fi
cristy8b350f62009-11-15 23:12:43 +000023009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023010$as_echo "$ac_cv_func_memcmp_working" >&6; }
23011test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23012 *" memcmp.$ac_objext "* ) ;;
23013 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23014 ;;
23015esac
23016
23017
cristy3ed852e2009-09-05 21:47:34 +000023018for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023019do :
23020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy5c40fb42010-08-05 16:12:44 +000023022eval as_val=\$$as_ac_Header
23023 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023024 cat >>confdefs.h <<_ACEOF
23025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23026_ACEOF
23027
23028fi
23029
23030done
23031
cristy8b350f62009-11-15 23:12:43 +000023032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023033$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023034if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023035 $as_echo_n "(cached) " >&6
23036else
23037 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23038 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23039 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023041/* end confdefs.h. */
23042$ac_includes_default
23043#ifdef HAVE_SYS_SELECT_H
23044# include <sys/select.h>
23045#endif
23046#ifdef HAVE_SYS_SOCKET_H
23047# include <sys/socket.h>
23048#endif
23049
23050int
23051main ()
23052{
23053extern int select ($ac_arg1,
23054 $ac_arg234, $ac_arg234, $ac_arg234,
23055 $ac_arg5);
23056 ;
23057 return 0;
23058}
23059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023061 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023062fi
cristy3ed852e2009-09-05 21:47:34 +000023063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 done
23065 done
23066done
23067# Provide a safe default value.
23068: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23069
23070fi
cristy8b350f62009-11-15 23:12:43 +000023071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023072$as_echo "$ac_cv_func_select_args" >&6; }
23073ac_save_IFS=$IFS; IFS=','
23074set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23075IFS=$ac_save_IFS
23076shift
23077
23078cat >>confdefs.h <<_ACEOF
23079#define SELECT_TYPE_ARG1 $1
23080_ACEOF
23081
23082
23083cat >>confdefs.h <<_ACEOF
23084#define SELECT_TYPE_ARG234 ($2)
23085_ACEOF
23086
23087
23088cat >>confdefs.h <<_ACEOF
23089#define SELECT_TYPE_ARG5 ($3)
23090_ACEOF
23091
23092rm -f conftest*
23093
cristy8b350f62009-11-15 23:12:43 +000023094if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023095 $as_echo_n "(cached) " >&6
23096else
23097 ac_cv_func_setvbuf_reversed=no
23098fi
23099
23100
cristy8b350f62009-11-15 23:12:43 +000023101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023102$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023103if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023104 $as_echo_n "(cached) " >&6
23105else
cristy8b350f62009-11-15 23:12:43 +000023106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023107/* end confdefs.h. */
23108#include <sys/types.h>
23109#include <signal.h>
23110
23111int
23112main ()
23113{
23114return *(signal (0, 0)) (0) == 1;
23115 ;
23116 return 0;
23117}
23118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023119if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023120 ac_cv_type_signal=int
23121else
cristy8b350f62009-11-15 23:12:43 +000023122 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023123fi
cristy3ed852e2009-09-05 21:47:34 +000023124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125fi
cristy8b350f62009-11-15 23:12:43 +000023126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023127$as_echo "$ac_cv_type_signal" >&6; }
23128
23129cat >>confdefs.h <<_ACEOF
23130#define RETSIGTYPE $ac_cv_type_signal
23131_ACEOF
23132
23133
cristy8b350f62009-11-15 23:12:43 +000023134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023135$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023136if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023137 $as_echo_n "(cached) " >&6
23138else
cristy8b350f62009-11-15 23:12:43 +000023139 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 ac_cv_func_strtod=no
23141else
cristy8b350f62009-11-15 23:12:43 +000023142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023143/* end confdefs.h. */
23144
23145$ac_includes_default
23146#ifndef strtod
23147double strtod ();
23148#endif
23149int
23150main()
23151{
23152 {
23153 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23154 char *string = " +69";
23155 char *term;
23156 double value;
23157 value = strtod (string, &term);
23158 if (value != 69 || term != (string + 4))
23159 return 1;
23160 }
23161
23162 {
23163 /* Under Solaris 2.4, strtod returns the wrong value for the
23164 terminating character under some conditions. */
23165 char *string = "NaN";
23166 char *term;
23167 strtod (string, &term);
23168 if (term != string && *(term - 1) == 0)
23169 return 1;
23170 }
23171 return 0;
23172}
23173
23174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023175if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023176 ac_cv_func_strtod=yes
23177else
cristy8b350f62009-11-15 23:12:43 +000023178 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023179fi
cristy8b350f62009-11-15 23:12:43 +000023180rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23181 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023182fi
23183
cristy3ed852e2009-09-05 21:47:34 +000023184fi
cristy8b350f62009-11-15 23:12:43 +000023185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023186$as_echo "$ac_cv_func_strtod" >&6; }
23187if test $ac_cv_func_strtod = no; then
23188 case " $LIBOBJS " in
23189 *" strtod.$ac_objext "* ) ;;
23190 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23191 ;;
23192esac
23193
cristy8b350f62009-11-15 23:12:43 +000023194ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23195if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023196
cristy3ed852e2009-09-05 21:47:34 +000023197fi
23198
cristy3ed852e2009-09-05 21:47:34 +000023199if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023201$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023202if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023203 $as_echo_n "(cached) " >&6
23204else
23205 ac_check_lib_save_LIBS=$LIBS
23206LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023208/* end confdefs.h. */
23209
23210/* Override any GCC internal prototype to avoid an error.
23211 Use char because int might match the return type of a GCC
23212 builtin and then its argument prototype would still apply. */
23213#ifdef __cplusplus
23214extern "C"
23215#endif
23216char pow ();
23217int
23218main ()
23219{
23220return pow ();
23221 ;
23222 return 0;
23223}
23224_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023225if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023226 ac_cv_lib_m_pow=yes
23227else
cristy8b350f62009-11-15 23:12:43 +000023228 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023229fi
cristy8b350f62009-11-15 23:12:43 +000023230rm -f core conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023232LIBS=$ac_check_lib_save_LIBS
23233fi
cristy8b350f62009-11-15 23:12:43 +000023234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023235$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023236if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023237 POW_LIB=-lm
23238else
cristy8b350f62009-11-15 23:12:43 +000023239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023240$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23241fi
23242
23243fi
23244
23245fi
23246
cristy3ed852e2009-09-05 21:47:34 +000023247for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023248do :
23249 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23250if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023251 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023252#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023253_ACEOF
23254
cristy8b350f62009-11-15 23:12:43 +000023255ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23256if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023257
cristy8b350f62009-11-15 23:12:43 +000023258$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023259
23260fi
23261
23262fi
23263done
23264
23265
23266
cristy161b9262010-03-20 19:34:32 +000023267#
23268# Find math library
23269#
23270MATH_LIBS=''
23271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23272$as_echo_n "checking for sqrt in -lm... " >&6; }
23273if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275else
23276 ac_check_lib_save_LIBS=$LIBS
23277LIBS="-lm $LIBS"
23278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23279/* end confdefs.h. */
23280
23281/* Override any GCC internal prototype to avoid an error.
23282 Use char because int might match the return type of a GCC
23283 builtin and then its argument prototype would still apply. */
23284#ifdef __cplusplus
23285extern "C"
23286#endif
23287char sqrt ();
23288int
23289main ()
23290{
23291return sqrt ();
23292 ;
23293 return 0;
23294}
23295_ACEOF
23296if ac_fn_c_try_link "$LINENO"; then :
23297 ac_cv_lib_m_sqrt=yes
23298else
23299 ac_cv_lib_m_sqrt=no
23300fi
23301rm -f core conftest.err conftest.$ac_objext \
23302 conftest$ac_exeext conftest.$ac_ext
23303LIBS=$ac_check_lib_save_LIBS
23304fi
23305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23306$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23307if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23308 MATH_LIBS="-lm"
23309fi
23310
23311LIBS="$MATH_LIBS $LIBS"
23312
23313
cristyc6c08ab2010-07-24 23:50:09 +000023314for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023315do :
23316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23317ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000023318eval as_val=\$$as_ac_var
23319 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023320 cat >>confdefs.h <<_ACEOF
23321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23322_ACEOF
23323
23324fi
23325done
23326
23327
cristye43a45e2009-09-28 14:49:00 +000023328#
23329# Check for clock_gettime().
23330#
cristy8b350f62009-11-15 23:12:43 +000023331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023332$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023333if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023334 $as_echo_n "(cached) " >&6
23335else
23336 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023338/* end confdefs.h. */
23339
23340/* Override any GCC internal prototype to avoid an error.
23341 Use char because int might match the return type of a GCC
23342 builtin and then its argument prototype would still apply. */
23343#ifdef __cplusplus
23344extern "C"
23345#endif
23346char clock_gettime ();
23347int
23348main ()
23349{
23350return clock_gettime ();
23351 ;
23352 return 0;
23353}
23354_ACEOF
23355for ac_lib in '' rt; do
23356 if test -z "$ac_lib"; then
23357 ac_res="none required"
23358 else
23359 ac_res=-l$ac_lib
23360 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23361 fi
cristy8b350f62009-11-15 23:12:43 +000023362 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023363 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023364fi
cristy8b350f62009-11-15 23:12:43 +000023365rm -f core conftest.err conftest.$ac_objext \
23366 conftest$ac_exeext
23367 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023368 break
23369fi
23370done
cristy8b350f62009-11-15 23:12:43 +000023371if test "${ac_cv_search_clock_gettime+set}" = set; then :
23372
cristye43a45e2009-09-28 14:49:00 +000023373else
23374 ac_cv_search_clock_gettime=no
23375fi
23376rm conftest.$ac_ext
23377LIBS=$ac_func_search_save_LIBS
23378fi
cristy8b350f62009-11-15 23:12:43 +000023379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023380$as_echo "$ac_cv_search_clock_gettime" >&6; }
23381ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023382if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23384
23385
cristy8b350f62009-11-15 23:12:43 +000023386$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023387
cristy8b350f62009-11-15 23:12:43 +000023388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023389$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023391/* end confdefs.h. */
23392#include <time.h>
23393int
23394main ()
23395{
23396clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023397 ;
23398 return 0;
23399}
23400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023401if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023402
cristy8b350f62009-11-15 23:12:43 +000023403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023404$as_echo "yes" >&6; }
23405
cristy8b350f62009-11-15 23:12:43 +000023406$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023407
23408
23409else
cristy8b350f62009-11-15 23:12:43 +000023410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023411$as_echo "no" >&6; }
23412
23413fi
cristye43a45e2009-09-28 14:49:00 +000023414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23415
23416else
23417
cristy8b350f62009-11-15 23:12:43 +000023418 for ac_func in gettimeofday ftime
23419do :
23420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23421ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000023422eval as_val=\$$as_ac_var
23423 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023424 cat >>confdefs.h <<_ACEOF
23425#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23426_ACEOF
23427 break
23428fi
23429done
23430
23431
23432
23433fi
23434
23435
cristy3ed852e2009-09-05 21:47:34 +000023436########
23437#
23438# Check for function prototypes
23439#
23440########
23441
cristy8b350f62009-11-15 23:12:43 +000023442ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023443#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023444"
23445if test "x$ac_cv_have_decl_pread" = x""yes; then :
23446 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023447else
cristy8b350f62009-11-15 23:12:43 +000023448 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023449fi
23450
cristy3ed852e2009-09-05 21:47:34 +000023451cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023452#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023454ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023455#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023456"
23457if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23458 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023459else
cristy8b350f62009-11-15 23:12:43 +000023460 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023461fi
23462
cristy3ed852e2009-09-05 21:47:34 +000023463cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023464#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023465_ACEOF
23466
23467
cristy8b350f62009-11-15 23:12:43 +000023468ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023469#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023470"
23471if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23472 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023473else
cristy8b350f62009-11-15 23:12:43 +000023474 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023475fi
23476
cristy3ed852e2009-09-05 21:47:34 +000023477cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023478#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023479_ACEOF
23480
23481
cristy8b350f62009-11-15 23:12:43 +000023482ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023483#include <stdio.h>
23484#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023485"
23486if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23487 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023488else
cristy8b350f62009-11-15 23:12:43 +000023489 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023490fi
23491
cristy3ed852e2009-09-05 21:47:34 +000023492cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023493#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023494_ACEOF
23495
23496
cristy3ed852e2009-09-05 21:47:34 +000023497########
23498#
23499# C++ Support Tests (For Magick++)
23500#
23501########
23502have_magick_plus_plus='no'
23503if test "$with_magick_plus_plus" = 'yes'; then
23504 OLIBS="$LIBS"
23505 LIBS=''
23506 ac_ext=cpp
23507ac_cpp='$CXXCPP $CPPFLAGS'
23508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23511
23512
23513 # Full set of headers used...
23514 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23515 # functional iomanip iosfwd iostream iterator list string strstream utility
23516 ac_ext=cpp
23517ac_cpp='$CXXCPP $CPPFLAGS'
23518ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23519ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23520ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23521
23522 ac_ext=cpp
23523ac_cpp='$CXXCPP $CPPFLAGS'
23524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23527if test -z "$CXX"; then
23528 if test -n "$CCC"; then
23529 CXX=$CCC
23530 else
23531 if test -n "$ac_tool_prefix"; then
23532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23533 do
23534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023537$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023538if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023539 $as_echo_n "(cached) " >&6
23540else
23541 if test -n "$CXX"; then
23542 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23543else
23544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23545for as_dir in $PATH
23546do
23547 IFS=$as_save_IFS
23548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023553 break 2
23554 fi
23555done
cristy8b350f62009-11-15 23:12:43 +000023556 done
cristy3ed852e2009-09-05 21:47:34 +000023557IFS=$as_save_IFS
23558
23559fi
23560fi
23561CXX=$ac_cv_prog_CXX
23562if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo "$CXX" >&6; }
23565else
cristy8b350f62009-11-15 23:12:43 +000023566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo "no" >&6; }
23568fi
23569
23570
23571 test -n "$CXX" && break
23572 done
23573fi
23574if test -z "$CXX"; then
23575 ac_ct_CXX=$CXX
23576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23577do
23578 # Extract the first word of "$ac_prog", so it can be a program name with args.
23579set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023582if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023583 $as_echo_n "(cached) " >&6
23584else
23585 if test -n "$ac_ct_CXX"; then
23586 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23587else
23588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23589for as_dir in $PATH
23590do
23591 IFS=$as_save_IFS
23592 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023593 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23595 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023597 break 2
23598 fi
23599done
cristy8b350f62009-11-15 23:12:43 +000023600 done
cristy3ed852e2009-09-05 21:47:34 +000023601IFS=$as_save_IFS
23602
23603fi
23604fi
23605ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23606if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "$ac_ct_CXX" >&6; }
23609else
cristy8b350f62009-11-15 23:12:43 +000023610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023611$as_echo "no" >&6; }
23612fi
23613
23614
23615 test -n "$ac_ct_CXX" && break
23616done
23617
23618 if test "x$ac_ct_CXX" = x; then
23619 CXX="g++"
23620 else
23621 case $cross_compiling:$ac_tool_warned in
23622yes:)
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23625ac_tool_warned=yes ;;
23626esac
23627 CXX=$ac_ct_CXX
23628 fi
23629fi
23630
23631 fi
23632fi
23633# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023634$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023635set X $ac_compile
23636ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023637for ac_option in --version -v -V -qversion; do
23638 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023639case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642esac
cristy8b350f62009-11-15 23:12:43 +000023643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23644$as_echo "$ac_try_echo"; } >&5
23645 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023646 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023647 if test -s conftest.err; then
23648 sed '10a\
23649... rest of stderr output deleted ...
23650 10q' conftest.err >conftest.er1
23651 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023652 fi
cristycd4c5312009-11-22 01:19:08 +000023653 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23655 test $ac_status = 0; }
23656done
cristy3ed852e2009-09-05 21:47:34 +000023657
cristy8b350f62009-11-15 23:12:43 +000023658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023659$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023660if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023661 $as_echo_n "(cached) " >&6
23662else
cristy8b350f62009-11-15 23:12:43 +000023663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023664/* end confdefs.h. */
23665
23666int
23667main ()
23668{
23669#ifndef __GNUC__
23670 choke me
23671#endif
23672
23673 ;
23674 return 0;
23675}
23676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023677if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023678 ac_compiler_gnu=yes
23679else
cristy8b350f62009-11-15 23:12:43 +000023680 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023681fi
cristy3ed852e2009-09-05 21:47:34 +000023682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23683ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23684
23685fi
cristy8b350f62009-11-15 23:12:43 +000023686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023687$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23688if test $ac_compiler_gnu = yes; then
23689 GXX=yes
23690else
23691 GXX=
23692fi
23693ac_test_CXXFLAGS=${CXXFLAGS+set}
23694ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023696$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023697if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023698 $as_echo_n "(cached) " >&6
23699else
23700 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23701 ac_cxx_werror_flag=yes
23702 ac_cv_prog_cxx_g=no
23703 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023705/* end confdefs.h. */
23706
23707int
23708main ()
23709{
23710
23711 ;
23712 return 0;
23713}
23714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023715if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023716 ac_cv_prog_cxx_g=yes
23717else
cristy8b350f62009-11-15 23:12:43 +000023718 CXXFLAGS=""
23719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023720/* end confdefs.h. */
23721
23722int
23723main ()
23724{
23725
23726 ;
23727 return 0;
23728}
23729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023730if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023731
cristy8b350f62009-11-15 23:12:43 +000023732else
23733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023734 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023736/* end confdefs.h. */
23737
23738int
23739main ()
23740{
23741
23742 ;
23743 return 0;
23744}
23745_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023746if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023747 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023748fi
cristy3ed852e2009-09-05 21:47:34 +000023749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750fi
cristy3ed852e2009-09-05 21:47:34 +000023751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752fi
cristy3ed852e2009-09-05 21:47:34 +000023753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23755fi
cristy8b350f62009-11-15 23:12:43 +000023756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023757$as_echo "$ac_cv_prog_cxx_g" >&6; }
23758if test "$ac_test_CXXFLAGS" = set; then
23759 CXXFLAGS=$ac_save_CXXFLAGS
23760elif test $ac_cv_prog_cxx_g = yes; then
23761 if test "$GXX" = yes; then
23762 CXXFLAGS="-g -O2"
23763 else
23764 CXXFLAGS="-g"
23765 fi
23766else
23767 if test "$GXX" = yes; then
23768 CXXFLAGS="-O2"
23769 else
23770 CXXFLAGS=
23771 fi
23772fi
23773ac_ext=cpp
23774ac_cpp='$CXXCPP $CPPFLAGS'
23775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23778
23779depcc="$CXX" am_compiler_list=
23780
cristy8b350f62009-11-15 23:12:43 +000023781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023782$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023783if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023784 $as_echo_n "(cached) " >&6
23785else
23786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23787 # We make a subdir and do the tests there. Otherwise we can end up
23788 # making bogus files that we don't know about and never remove. For
23789 # instance it was reported that on HP-UX the gcc test will end up
23790 # making a dummy file named `D' -- because `-MD' means `put the output
23791 # in D'.
23792 mkdir conftest.dir
23793 # Copy depcomp to subdir because otherwise we won't find it if we're
23794 # using a relative directory.
23795 cp "$am_depcomp" conftest.dir
23796 cd conftest.dir
23797 # We will build objects and dependencies in a subdirectory because
23798 # it helps to detect inapplicable dependency modes. For instance
23799 # both Tru64's cc and ICC support -MD to output dependencies as a
23800 # side effect of compilation, but ICC will put the dependencies in
23801 # the current directory while Tru64 will put them in the object
23802 # directory.
23803 mkdir sub
23804
23805 am_cv_CXX_dependencies_compiler_type=none
23806 if test "$am_compiler_list" = ""; then
23807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23808 fi
23809 am__universal=false
23810 case " $depcc " in #(
23811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23812 esac
23813
23814 for depmode in $am_compiler_list; do
23815 # Setup a source with many dependencies, because some compilers
23816 # like to wrap large dependency lists on column 80 (with \), and
23817 # we should not choose a depcomp mode which is confused by this.
23818 #
23819 # We need to recreate these files for each test, as the compiler may
23820 # overwrite some of them when testing with obscure command lines.
23821 # This happens at least with the AIX C compiler.
23822 : > sub/conftest.c
23823 for i in 1 2 3 4 5 6; do
23824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23826 # Solaris 8's {/usr,}/bin/sh.
23827 touch sub/conftst$i.h
23828 done
23829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23830
23831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23832 # mode. It turns out that the SunPro C++ compiler does not properly
23833 # handle `-M -o', and we need to detect this. Also, some Intel
23834 # versions had trouble with output in subdirs
23835 am__obj=sub/conftest.${OBJEXT-o}
23836 am__minus_obj="-o $am__obj"
23837 case $depmode in
23838 gcc)
23839 # This depmode causes a compiler race in universal mode.
23840 test "$am__universal" = false || continue
23841 ;;
23842 nosideeffect)
23843 # after this tag, mechanisms are not by side-effect, so they'll
23844 # only be used when explicitly requested
23845 if test "x$enable_dependency_tracking" = xyes; then
23846 continue
23847 else
23848 break
23849 fi
23850 ;;
23851 msvisualcpp | msvcmsys)
23852 # This compiler won't grok `-c -o', but also, the minuso test has
23853 # not run yet. These depmodes are late enough in the game, and
23854 # so weak that their functioning should not be impacted.
23855 am__obj=conftest.${OBJEXT-o}
23856 am__minus_obj=
23857 ;;
23858 none) break ;;
23859 esac
23860 if depmode=$depmode \
23861 source=sub/conftest.c object=$am__obj \
23862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23864 >/dev/null 2>conftest.err &&
23865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23869 # icc doesn't choke on unknown options, it will just issue warnings
23870 # or remarks (even with -Werror). So we grep stderr for any message
23871 # that says an option was ignored or not supported.
23872 # When given -MP, icc 7.0 and 7.1 complain thusly:
23873 # icc: Command line warning: ignoring option '-M'; no argument required
23874 # The diagnosis changed in icc 8.0:
23875 # icc: Command line remark: option '-MP' not supported
23876 if (grep 'ignoring option' conftest.err ||
23877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23878 am_cv_CXX_dependencies_compiler_type=$depmode
23879 break
23880 fi
23881 fi
23882 done
23883
23884 cd ..
23885 rm -rf conftest.dir
23886else
23887 am_cv_CXX_dependencies_compiler_type=none
23888fi
23889
23890fi
cristy8b350f62009-11-15 23:12:43 +000023891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023892$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23894
23895 if
23896 test "x$enable_dependency_tracking" != xno \
23897 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23898 am__fastdepCXX_TRUE=
23899 am__fastdepCXX_FALSE='#'
23900else
23901 am__fastdepCXX_TRUE='#'
23902 am__fastdepCXX_FALSE=
23903fi
23904
23905
cristy8b350f62009-11-15 23:12:43 +000023906 { $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 +000023907$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023908if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023909 $as_echo_n "(cached) " >&6
23910else
23911
23912 ac_ext=cpp
23913ac_cpp='$CXXCPP $CPPFLAGS'
23914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23917
cristy8b350f62009-11-15 23:12:43 +000023918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023919/* end confdefs.h. */
23920
23921int f(int x){return 1;}
23922int f(char x){return 1;}
23923int f(bool x){return 1;}
23924
23925int
23926main ()
23927{
23928bool b = true; return f(b);
23929 ;
23930 return 0;
23931}
23932_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023933if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023934 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023935else
cristy964cb7f2010-04-25 23:18:00 +000023936 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023937fi
cristy3ed852e2009-09-05 21:47:34 +000023938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 ac_ext=cpp
23940ac_cpp='$CXXCPP $CPPFLAGS'
23941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23944
23945
23946fi
cristy964cb7f2010-04-25 23:18:00 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23948$as_echo "$ax_cv_cxx_bool" >&6; }
23949if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023950
cristy8b350f62009-11-15 23:12:43 +000023951$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023952
23953fi
23954
cristy8b350f62009-11-15 23:12:43 +000023955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023956$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023957if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023958 $as_echo_n "(cached) " >&6
23959else
23960
23961 ac_ext=cpp
23962ac_cpp='$CXXCPP $CPPFLAGS'
23963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23966
cristy8b350f62009-11-15 23:12:43 +000023967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023968/* end confdefs.h. */
23969namespace Outer { namespace Inner { int i = 0; }}
23970int
23971main ()
23972{
23973using namespace Outer::Inner; return i;
23974 ;
23975 return 0;
23976}
23977_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023978if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023979 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023980else
cristy964cb7f2010-04-25 23:18:00 +000023981 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023982fi
cristy3ed852e2009-09-05 21:47:34 +000023983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984 ac_ext=cpp
23985ac_cpp='$CXXCPP $CPPFLAGS'
23986ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23987ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23988ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23989
23990
23991fi
cristy964cb7f2010-04-25 23:18:00 +000023992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23993$as_echo "$ax_cv_cxx_namespaces" >&6; }
23994if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023995
cristy8b350f62009-11-15 23:12:43 +000023996$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023997
23998fi
23999
cristy964cb7f2010-04-25 23:18:00 +000024000
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24002$as_echo_n "checking if g++ supports namespace std... " >&6; }
24003if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024004 $as_echo_n "(cached) " >&6
24005else
24006
cristy964cb7f2010-04-25 23:18:00 +000024007 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024008ac_cpp='$CXXCPP $CPPFLAGS'
24009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24012
cristy964cb7f2010-04-25 23:18:00 +000024013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024014/* end confdefs.h. */
24015#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024016 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024017int
24018main ()
24019{
cristy964cb7f2010-04-25 23:18:00 +000024020
cristy3ed852e2009-09-05 21:47:34 +000024021 ;
24022 return 0;
24023}
24024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024025if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024026 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024027else
cristy964cb7f2010-04-25 23:18:00 +000024028 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024029fi
cristy3ed852e2009-09-05 21:47:34 +000024030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000024031 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024032ac_cpp='$CXXCPP $CPPFLAGS'
24033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24036
24037
24038fi
cristy964cb7f2010-04-25 23:18:00 +000024039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24040$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24041 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024042
cristy964cb7f2010-04-25 23:18:00 +000024043$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024044
cristy964cb7f2010-04-25 23:18:00 +000024045 fi
cristy3ed852e2009-09-05 21:47:34 +000024046
cristy8b350f62009-11-15 23:12:43 +000024047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024048$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024049if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024050 $as_echo_n "(cached) " >&6
24051else
24052
24053
24054 ac_ext=cpp
24055ac_cpp='$CXXCPP $CPPFLAGS'
24056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24059
cristy8b350f62009-11-15 23:12:43 +000024060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024061/* end confdefs.h. */
24062#include <iostream>
24063#include <map>
24064#include <iomanip>
24065#include <cmath>
24066#ifdef HAVE_NAMESPACES
24067using namespace std;
24068#endif
24069int
24070main ()
24071{
24072return 0;
24073 ;
24074 return 0;
24075}
24076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024077if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024078 ac_cv_cxx_have_std_libs=yes
24079else
cristy8b350f62009-11-15 23:12:43 +000024080 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024081fi
cristy3ed852e2009-09-05 21:47:34 +000024082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 ac_ext=cpp
24084ac_cpp='$CXXCPP $CPPFLAGS'
24085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24088
24089
24090fi
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24093if test "$ac_cv_cxx_have_std_libs" = yes; then
24094
cristy8b350f62009-11-15 23:12:43 +000024095$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024096
24097fi
24098
cristy8b350f62009-11-15 23:12:43 +000024099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024100$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024101if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024102 $as_echo_n "(cached) " >&6
24103else
24104
24105 ac_ext=cpp
24106ac_cpp='$CXXCPP $CPPFLAGS'
24107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24110
cristy8b350f62009-11-15 23:12:43 +000024111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024112/* end confdefs.h. */
24113const wchar_t* s=L"wide string";
24114_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024115if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024116 ac_cv_cxx_have_lstring=yes
24117else
cristy8b350f62009-11-15 23:12:43 +000024118 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024119fi
cristy3ed852e2009-09-05 21:47:34 +000024120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 ac_ext=cpp
24122ac_cpp='$CXXCPP $CPPFLAGS'
24123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24126
24127
24128fi
cristy8b350f62009-11-15 23:12:43 +000024129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024130$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24131if test "$ac_cv_cxx_have_lstring" = yes; then
24132
cristy8b350f62009-11-15 23:12:43 +000024133$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024134
24135fi
24136
24137
24138 OPENMP_CXXFLAGS=
24139 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024140if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 enableval=$enable_openmp;
24142fi
24143
24144 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24146$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024147if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024148 $as_echo_n "(cached) " >&6
24149else
cristy8b350f62009-11-15 23:12:43 +000024150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24151/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024152
24153#ifndef _OPENMP
24154 choke me
24155#endif
24156#include <omp.h>
24157int main () { return omp_get_num_threads (); }
24158
24159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024160if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 ac_cv_prog_cxx_openmp='none needed'
24162else
cristy8b350f62009-11-15 23:12:43 +000024163 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024164 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24165 ac_save_CXXFLAGS=$CXXFLAGS
24166 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24168/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024169
24170#ifndef _OPENMP
24171 choke me
24172#endif
24173#include <omp.h>
24174int main () { return omp_get_num_threads (); }
24175
24176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024177if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024178 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy8b350f62009-11-15 23:12:43 +000024180rm -f core conftest.err conftest.$ac_objext \
24181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024182 CXXFLAGS=$ac_save_CXXFLAGS
24183 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24184 break
24185 fi
24186 done
24187fi
cristy8b350f62009-11-15 23:12:43 +000024188rm -f core conftest.err conftest.$ac_objext \
24189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024190fi
cristy8b350f62009-11-15 23:12:43 +000024191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024192$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24193 case $ac_cv_prog_cxx_openmp in #(
24194 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024195 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024196 *)
cristy8b350f62009-11-15 23:12:43 +000024197 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024198 esac
24199 fi
24200
24201
24202 ac_ext=c
24203ac_cpp='$CPP $CPPFLAGS'
24204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24206ac_compiler_gnu=$ac_cv_c_compiler_gnu
24207
24208
cristy8b350f62009-11-15 23:12:43 +000024209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24211 if \
cristy964cb7f2010-04-25 23:18:00 +000024212 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024213 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024214 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024215 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024216 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024217 have_magick_plus_plus='yes'
24218 else
24219 have_magick_plus_plus='no (failed tests)'
24220 fi
cristy8b350f62009-11-15 23:12:43 +000024221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "$have_magick_plus_plus" >&6; }
24223 LIBS="$OLIBS"
24224fi
24225 if test "$have_magick_plus_plus" = 'yes'; then
24226 WITH_MAGICK_PLUS_PLUS_TRUE=
24227 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24228else
24229 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24230 WITH_MAGICK_PLUS_PLUS_FALSE=
24231fi
24232
24233
24234# Only check for delegate libraries in subdirectories if requested.
24235if test "$enable_delegate_build" != 'no'; then
24236 # Check for delegate sub-directories and add -I & -L options as required.
24237 # This presumes that delegates are installed as detailed in the ImageMagick
24238 # README. If delegates are installed in a standard location where the
24239 # compiler will automatically find them then these options should not be
24240 # required.
24241
24242 #
24243 # Most delegates have includes in the same directory as the library, but not all...
24244 #
24245 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024246 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 +000024247 if test -d "$builddir/$dir"; then
24248 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24249 else
24250 if test -d "$srcdirfull/$dir"; then
24251 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24252 fi
24253 fi
24254 done
24255
24256 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024257 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 +000024258 if test -d "$builddir/$dir/.libs"; then
24259 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24260 else
24261 if test -d "$srcdirfull/$dir/.libs"; then
24262 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24263 fi
24264 fi
24265 if test -d "$builddir/$dir"; then
24266 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24267 else
24268 if test -d "$srcdirfull/$dir"; then
24269 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24270 fi
24271 fi
24272 done
24273fi
24274
24275# Assume that delegate headers reside under same directory as ImageMagick
24276# installation prefix.
24277MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24278
24279#
24280# Find the X11 RGB database
24281#
cristy8b350f62009-11-15 23:12:43 +000024282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024283$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024284if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024285 $as_echo_n "(cached) " >&6
24286else
24287 # Look for the header file in a standard set of common directories.
24288# Check X11 before X11Rn because it is often a symlink to the current release.
24289 for ac_dir in \
24290 /lib/usr/lib/X11 \
24291 /usr/X11/lib \
24292 /usr/X11R4/lib \
24293 /usr/X11R5/lib \
24294 /usr/X11R6/lib \
24295 /usr/X11R7/lib \
24296 /usr/X386/lib \
24297 /usr/XFree86/lib/X11 \
24298 /usr/athena/lib \
24299 /usr/lib \
24300 /usr/lib/X11 \
24301 /usr/lib/X11R4 \
24302 /usr/lib/X11R5 \
24303 /usr/lib/X11R6 \
24304 /usr/lib/X11R7 \
24305 /usr/local/X11/lib \
24306 /usr/local/X11R4/lib \
24307 /usr/local/X11R5/lib \
24308 /usr/local/X11R6/lib \
24309 /usr/local/lib \
24310 /usr/local/lib/X11 \
24311 /usr/local/lib/X11R4 \
24312 /usr/local/lib/X11R5 \
24313 /usr/local/lib/X11R6 \
24314 /usr/local/lib/X11R7 \
24315 /usr/local/x11r5/lib \
24316 /usr/lpp/Xamples/lib \
24317 /usr/openwin/lib \
24318 /usr/openwin/share/lib \
24319 /usr/unsupported/lib \
24320 /usr/x386/lib \
24321 ; do
24322 if test -f "$ac_dir/X11/rgb.txt"; then
24323 im_cv_x_configure="$ac_dir/X11/"
24324 break
24325 elif test -f "$ac_dir/rgb.txt"; then
24326 im_cv_x_configure="$ac_dir/"
24327 break
24328 fi
24329
24330 done
24331fi
cristy8b350f62009-11-15 23:12:43 +000024332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024333$as_echo "$im_cv_x_configure" >&6; }
24334X11_CONFIGURE_PATH="$im_cv_x_configure"
24335case "${build_os}" in
24336 mingw* )
24337 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24338 ;;
24339esac
24340
24341cat >>confdefs.h <<_ACEOF
24342#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24343_ACEOF
24344
24345
24346#
24347# Find OpenMP library
24348#
24349GOMP_LIBS=''
24350if test "$enable_openmp" != 'no'; then
24351 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024353$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024354if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024355 $as_echo_n "(cached) " >&6
24356else
24357 ac_check_lib_save_LIBS=$LIBS
24358LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024360/* end confdefs.h. */
24361
24362/* Override any GCC internal prototype to avoid an error.
24363 Use char because int might match the return type of a GCC
24364 builtin and then its argument prototype would still apply. */
24365#ifdef __cplusplus
24366extern "C"
24367#endif
24368char GOMP_parallel_start ();
24369int
24370main ()
24371{
24372return GOMP_parallel_start ();
24373 ;
24374 return 0;
24375}
24376_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024377if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024378 ac_cv_lib_gomp_GOMP_parallel_start=yes
24379else
cristy8b350f62009-11-15 23:12:43 +000024380 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024381fi
cristy8b350f62009-11-15 23:12:43 +000024382rm -f core conftest.err conftest.$ac_objext \
24383 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024384LIBS=$ac_check_lib_save_LIBS
24385fi
cristy8b350f62009-11-15 23:12:43 +000024386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024387$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024388if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024389 GOMP_LIBS="-lgomp"
24390fi
24391 # gcc
24392 else
cristy8b350f62009-11-15 23:12:43 +000024393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024395if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024396 $as_echo_n "(cached) " >&6
24397else
24398 ac_check_lib_save_LIBS=$LIBS
24399LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024401/* end confdefs.h. */
24402
24403/* Override any GCC internal prototype to avoid an error.
24404 Use char because int might match the return type of a GCC
24405 builtin and then its argument prototype would still apply. */
24406#ifdef __cplusplus
24407extern "C"
24408#endif
24409char sunw_mp_register_warn ();
24410int
24411main ()
24412{
24413return sunw_mp_register_warn ();
24414 ;
24415 return 0;
24416}
24417_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024418if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024419 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24420else
cristy8b350f62009-11-15 23:12:43 +000024421 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024422fi
cristy8b350f62009-11-15 23:12:43 +000024423rm -f core conftest.err conftest.$ac_objext \
24424 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024425LIBS=$ac_check_lib_save_LIBS
24426fi
cristy8b350f62009-11-15 23:12:43 +000024427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024428$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024429if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024430 GOMP_LIBS="-lmtsk"
24431fi
24432 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024435if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
24438 ac_check_lib_save_LIBS=$LIBS
24439LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024441/* end confdefs.h. */
24442
24443/* Override any GCC internal prototype to avoid an error.
24444 Use char because int might match the return type of a GCC
24445 builtin and then its argument prototype would still apply. */
24446#ifdef __cplusplus
24447extern "C"
24448#endif
24449char _xlsmpFlush ();
24450int
24451main ()
24452{
24453return _xlsmpFlush ();
24454 ;
24455 return 0;
24456}
24457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024459 ac_cv_lib_xlsmp__xlsmpFlush=yes
24460else
cristy8b350f62009-11-15 23:12:43 +000024461 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024462fi
cristy8b350f62009-11-15 23:12:43 +000024463rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024465LIBS=$ac_check_lib_save_LIBS
24466fi
cristy8b350f62009-11-15 23:12:43 +000024467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024468$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024469if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024470 GOMP_LIBS="-lxlsmp"
24471fi
24472 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024474$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024475if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024476 $as_echo_n "(cached) " >&6
24477else
24478 ac_check_lib_save_LIBS=$LIBS
24479LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024481/* end confdefs.h. */
24482
24483/* Override any GCC internal prototype to avoid an error.
24484 Use char because int might match the return type of a GCC
24485 builtin and then its argument prototype would still apply. */
24486#ifdef __cplusplus
24487extern "C"
24488#endif
24489char mp_destroy ();
24490int
24491main ()
24492{
24493return mp_destroy ();
24494 ;
24495 return 0;
24496}
24497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024499 ac_cv_lib_mp_mp_destroy=yes
24500else
cristy8b350f62009-11-15 23:12:43 +000024501 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024502fi
cristy8b350f62009-11-15 23:12:43 +000024503rm -f core conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024505LIBS=$ac_check_lib_save_LIBS
24506fi
cristy8b350f62009-11-15 23:12:43 +000024507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024508$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024509if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 GOMP_LIBS="-lmp"
24511fi
24512 # SGI IRIX 6.5 MIPSpro C/C++
24513 fi
24514 LIBS="$GOMP_LIBS $LIBS"
24515fi
24516
24517
24518#
24519# Find Posix threads library
24520#
24521THREAD_LIBS=''
24522if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24523
24524 if test "x$PTHREAD_LIBS" = "x"; then
24525 case "${host_cpu}-${host_os}" in
24526 *-freebsd*)
24527
24528
24529
24530ac_ext=c
24531ac_cpp='$CPP $CPPFLAGS'
24532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24534ac_compiler_gnu=$ac_cv_c_compiler_gnu
24535
24536magick_pthread_lib_ok=no
24537
24538LIB=-lc_r
24539save_LIBS="$LIBS"
24540LIBS="$LIBS $LIB"
24541
cristy8b350f62009-11-15 23:12:43 +000024542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024543$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024545/* end confdefs.h. */
24546#include <pthread.h>
24547int
24548main ()
24549{
24550 pthread_t th;
24551 pthread_join(th, 0);
24552 pthread_attr_init(0);
24553 pthread_cleanup_push(0, 0);
24554 pthread_create(0,0,0,0);
24555 pthread_cleanup_pop(0);
24556 ;
24557 return 0;
24558}
24559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024561 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024562fi
cristy8b350f62009-11-15 23:12:43 +000024563rm -f core conftest.err conftest.$ac_objext \
24564 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024565
cristy8b350f62009-11-15 23:12:43 +000024566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024567$as_echo "${magick_pthread_lib_ok}" >&6; }
24568if test "$magick_pthread_lib_ok" = yes
24569then
24570 PTHREAD_LIBS=-lc_r
24571 :
24572else
24573
24574 :
24575fi
24576
24577LIBS="$save_LIBS"
24578
24579ac_ext=c
24580ac_cpp='$CPP $CPPFLAGS'
24581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24583ac_compiler_gnu=$ac_cv_c_compiler_gnu
24584
24585 ;;
24586 esac
24587 fi
24588
24589 for lib in pthread pthreads; do
24590 if test "x$PTHREAD_LIBS" = "x"; then
24591
24592
24593
24594ac_ext=c
24595ac_cpp='$CPP $CPPFLAGS'
24596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24598ac_compiler_gnu=$ac_cv_c_compiler_gnu
24599
24600magick_pthread_lib_ok=no
24601
24602LIB=-l$lib
24603save_LIBS="$LIBS"
24604LIBS="$LIBS $LIB"
24605
cristy8b350f62009-11-15 23:12:43 +000024606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024607$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024609/* end confdefs.h. */
24610#include <pthread.h>
24611int
24612main ()
24613{
24614 pthread_t th;
24615 pthread_join(th, 0);
24616 pthread_attr_init(0);
24617 pthread_cleanup_push(0, 0);
24618 pthread_create(0,0,0,0);
24619 pthread_cleanup_pop(0);
24620 ;
24621 return 0;
24622}
24623_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024624if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024625 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024626fi
cristy8b350f62009-11-15 23:12:43 +000024627rm -f core conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024629
cristy8b350f62009-11-15 23:12:43 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "${magick_pthread_lib_ok}" >&6; }
24632if test "$magick_pthread_lib_ok" = yes
24633then
24634 PTHREAD_LIBS=-l$lib
24635 :
24636else
24637
24638 :
24639fi
24640
24641LIBS="$save_LIBS"
24642
24643ac_ext=c
24644ac_cpp='$CPP $CPPFLAGS'
24645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24647ac_compiler_gnu=$ac_cv_c_compiler_gnu
24648
24649
24650 fi
24651 done
24652
24653 THREAD_LIBS="$PTHREAD_LIBS"
24654 LIBS="$LIBS $THREAD_LIBS"
24655fi
24656
24657
24658#
24659# Check for umem.
24660#
24661have_umem='no'
24662UMEM_LIBS=''
24663if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024665$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024667$as_echo "" >&6; }
24668 failed=0
24669 passed=0
cristy8b350f62009-11-15 23:12:43 +000024670 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24671if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024672 passed=`expr $passed + 1`
24673else
24674 failed=`expr $failed + 1`
24675fi
24676
24677
cristy8b350f62009-11-15 23:12:43 +000024678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024679$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024680if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024681 $as_echo_n "(cached) " >&6
24682else
24683 ac_check_lib_save_LIBS=$LIBS
24684LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024686/* end confdefs.h. */
24687
24688/* Override any GCC internal prototype to avoid an error.
24689 Use char because int might match the return type of a GCC
24690 builtin and then its argument prototype would still apply. */
24691#ifdef __cplusplus
24692extern "C"
24693#endif
24694char umem_alloc ();
24695int
24696main ()
24697{
24698return umem_alloc ();
24699 ;
24700 return 0;
24701}
24702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024704 ac_cv_lib_umem_umem_alloc=yes
24705else
cristy8b350f62009-11-15 23:12:43 +000024706 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024707fi
cristy8b350f62009-11-15 23:12:43 +000024708rm -f core conftest.err conftest.$ac_objext \
24709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024710LIBS=$ac_check_lib_save_LIBS
24711fi
cristy8b350f62009-11-15 23:12:43 +000024712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024713$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024714if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024715 passed=`expr $passed + 1`
24716else
24717 failed=`expr $failed + 1`
24718fi
24719
cristy8b350f62009-11-15 23:12:43 +000024720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024721$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024722if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024723 $as_echo_n "(cached) " >&6
24724else
24725 ac_check_lib_save_LIBS=$LIBS
24726LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024728/* end confdefs.h. */
24729
24730/* Override any GCC internal prototype to avoid an error.
24731 Use char because int might match the return type of a GCC
24732 builtin and then its argument prototype would still apply. */
24733#ifdef __cplusplus
24734extern "C"
24735#endif
24736char umem_free ();
24737int
24738main ()
24739{
24740return umem_free ();
24741 ;
24742 return 0;
24743}
24744_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024745if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 ac_cv_lib_umem_umem_free=yes
24747else
cristy8b350f62009-11-15 23:12:43 +000024748 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024749fi
cristy8b350f62009-11-15 23:12:43 +000024750rm -f core conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024752LIBS=$ac_check_lib_save_LIBS
24753fi
cristy8b350f62009-11-15 23:12:43 +000024754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024755$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024756if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024757 passed=`expr $passed + 1`
24758else
24759 failed=`expr $failed + 1`
24760fi
24761
cristy8b350f62009-11-15 23:12:43 +000024762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024763$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24764 if test $passed -gt 0; then
24765 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo "no -- some components failed test" >&6; }
24768 have_umem='no (failed tests)'
24769 else
24770 UMEM_LIBS='-lumem'
24771 LIBS="$UMEM_LIBS $LIBS"
24772
cristy8b350f62009-11-15 23:12:43 +000024773$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024774
cristy8b350f62009-11-15 23:12:43 +000024775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024776$as_echo "yes" >&6; }
24777 have_umem='yes'
24778 fi
24779 else
cristy8b350f62009-11-15 23:12:43 +000024780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024781$as_echo "no" >&6; }
24782 fi
24783fi
24784 if test "$have_umem" = 'yes'; then
24785 HasUMEM_TRUE=
24786 HasUMEM_FALSE='#'
24787else
24788 HasUMEM_TRUE='#'
24789 HasUMEM_FALSE=
24790fi
24791
24792
24793
24794#
24795# Add support for ccmalloc memory debugging library if requested
24796#
24797have_ccmalloc='no'
24798CCMALLOC_LIBS=''
24799if test "$enable_ccmalloc" = 'yes'; then
24800 # Extract the first word of "ccmalloc", so it can be a program name with args.
24801set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024803$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024804if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 $as_echo_n "(cached) " >&6
24806else
24807 case $CCMALLOCDelegate in
24808 [\\/]* | ?:[\\/]*)
24809 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24810 ;;
24811 *)
24812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24813for as_dir in $PATH
24814do
24815 IFS=$as_save_IFS
24816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24819 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821 break 2
24822 fi
24823done
cristy8b350f62009-11-15 23:12:43 +000024824 done
cristy3ed852e2009-09-05 21:47:34 +000024825IFS=$as_save_IFS
24826
24827 ;;
24828esac
24829fi
24830CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24831if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024833$as_echo "$CCMALLOCDelegate" >&6; }
24834else
cristy8b350f62009-11-15 23:12:43 +000024835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024836$as_echo "no" >&6; }
24837fi
24838
24839
24840 if test -n "$CCMALLOCDelegate"; then
24841 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24842 OLIBS="$LIBS"
24843 # Assume that gcc is used with ccmalloc.
24844 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024846$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024847if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024848 $as_echo_n "(cached) " >&6
24849else
24850 ac_check_lib_save_LIBS=$LIBS
24851LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024853/* end confdefs.h. */
24854
24855/* Override any GCC internal prototype to avoid an error.
24856 Use char because int might match the return type of a GCC
24857 builtin and then its argument prototype would still apply. */
24858#ifdef __cplusplus
24859extern "C"
24860#endif
24861char ccmalloc_malloc ();
24862int
24863main ()
24864{
24865return ccmalloc_malloc ();
24866 ;
24867 return 0;
24868}
24869_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024870if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024871 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24872else
cristy8b350f62009-11-15 23:12:43 +000024873 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024874fi
cristy8b350f62009-11-15 23:12:43 +000024875rm -f core conftest.err conftest.$ac_objext \
24876 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024877LIBS=$ac_check_lib_save_LIBS
24878fi
cristy8b350f62009-11-15 23:12:43 +000024879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024880$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024881if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024882 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24883fi
24884
24885 if test -n "$CCMALLOC_LIBS"; then
24886 LIBS="$OLIBS"
24887 LIBS="$LIBS $CCMALLOC_LIBS"
24888 have_ccmalloc='yes'
24889 else
24890 LIBS="$OLIBS"
24891 fi
24892 fi
24893fi
24894
24895#
24896# Add support for efence memory debugging library if requested
24897#
24898if test "$enable_efence" = 'yes'; then
24899 EFENCE_LIBS='-lefence'
24900 LIBS="$EFENCE_LIBS $LIBS"
24901fi
24902
cristy3ed852e2009-09-05 21:47:34 +000024903
24904#
24905# Check for BZLIB
24906#
24907
24908
24909# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024910if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024911 withval=$with_bzlib; with_bzlib=$withval
24912else
24913 with_bzlib='yes'
24914fi
24915
24916
24917if test "$with_bzlib" != 'yes'; then
24918 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24919fi
24920
24921have_bzlib='no'
24922if test "$with_bzlib" != 'no'; then
24923 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024925$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024927$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024929$as_echo "" >&6; }
24930 failed=0
24931 passed=0
24932 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024933 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24934if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024935 passed=`expr $passed + 1`
24936else
24937 failed=`expr $failed + 1`
24938fi
24939
24940
cristy8b350f62009-11-15 23:12:43 +000024941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024942$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024943if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024944 $as_echo_n "(cached) " >&6
24945else
24946 ac_check_lib_save_LIBS=$LIBS
24947LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024949/* end confdefs.h. */
24950
24951/* Override any GCC internal prototype to avoid an error.
24952 Use char because int might match the return type of a GCC
24953 builtin and then its argument prototype would still apply. */
24954#ifdef __cplusplus
24955extern "C"
24956#endif
24957char BZ2_bzDecompress ();
24958int
24959main ()
24960{
24961return BZ2_bzDecompress ();
24962 ;
24963 return 0;
24964}
24965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024967 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24968else
cristy8b350f62009-11-15 23:12:43 +000024969 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024970fi
cristy8b350f62009-11-15 23:12:43 +000024971rm -f core conftest.err conftest.$ac_objext \
24972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024973LIBS=$ac_check_lib_save_LIBS
24974fi
cristy8b350f62009-11-15 23:12:43 +000024975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024976$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024977if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024978 found_libbz=`expr $found_libbz + 1`
24979fi
24980
24981 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024983$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024984if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024985 $as_echo_n "(cached) " >&6
24986else
24987 ac_check_lib_save_LIBS=$LIBS
24988LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024990/* end confdefs.h. */
24991
24992/* Override any GCC internal prototype to avoid an error.
24993 Use char because int might match the return type of a GCC
24994 builtin and then its argument prototype would still apply. */
24995#ifdef __cplusplus
24996extern "C"
24997#endif
24998char _imp__BZ2_decompress ();
24999int
25000main ()
25001{
25002return _imp__BZ2_decompress ();
25003 ;
25004 return 0;
25005}
25006_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025007if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025008 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25009else
cristy8b350f62009-11-15 23:12:43 +000025010 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025011fi
cristy8b350f62009-11-15 23:12:43 +000025012rm -f core conftest.err conftest.$ac_objext \
25013 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025014LIBS=$ac_check_lib_save_LIBS
25015fi
cristy8b350f62009-11-15 23:12:43 +000025016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025017$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025018if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025019 found_libbz=`expr $found_libbz + 1`
25020fi
25021
25022 fi
25023 if test $found_libbz -gt 0; 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 if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025029$as_echo_n "checking if BZLIB package is complete... " >&6; }
25030 if test $passed -gt 0; then
25031 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025033$as_echo "no -- some components failed test" >&6; }
25034 have_bzlib='no (failed tests)'
25035 else
25036 BZLIB_LIBS='-lbz2'
25037 LIBS="$BZLIB_LIBS $LIBS"
25038
cristy8b350f62009-11-15 23:12:43 +000025039$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025040
cristy8b350f62009-11-15 23:12:43 +000025041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "yes" >&6; }
25043 have_bzlib='yes'
25044 fi
25045 else
cristy8b350f62009-11-15 23:12:43 +000025046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025047$as_echo "no" >&6; }
25048 fi
25049fi
25050 if test "$have_bzlib" = 'yes'; then
25051 BZLIB_DELEGATE_TRUE=
25052 BZLIB_DELEGATE_FALSE='#'
25053else
25054 BZLIB_DELEGATE_TRUE='#'
25055 BZLIB_DELEGATE_FALSE=
25056fi
25057
25058
25059
25060#
25061# Find the X11 include and library directories.
25062#
25063IPC_LIBS=''
25064X11_LIBS=''
25065XEXT_LIBS=''
25066XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025068$as_echo_n "checking for X... " >&6; }
25069
25070
25071# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025072if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025073 withval=$with_x;
25074fi
25075
25076# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25077if test "x$with_x" = xno; then
25078 # The user explicitly disabled X.
25079 have_x=disabled
25080else
25081 case $x_includes,$x_libraries in #(
cristy5c40fb42010-08-05 16:12:44 +000025082 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
cristy8b350f62009-11-15 23:12:43 +000025083 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025084 $as_echo_n "(cached) " >&6
25085else
25086 # One or both of the vars are not set, and there is no cached value.
25087ac_x_includes=no ac_x_libraries=no
25088rm -f -r conftest.dir
25089if mkdir conftest.dir; then
25090 cd conftest.dir
25091 cat >Imakefile <<'_ACEOF'
25092incroot:
25093 @echo incroot='${INCROOT}'
25094usrlibdir:
25095 @echo usrlibdir='${USRLIBDIR}'
25096libdir:
25097 @echo libdir='${LIBDIR}'
25098_ACEOF
25099 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy5c40fb42010-08-05 16:12:44 +000025100 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025101 for ac_var in incroot usrlibdir libdir; do
25102 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25103 done
25104 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25105 for ac_extension in a so sl dylib la dll; do
25106 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25107 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25108 ac_im_usrlibdir=$ac_im_libdir; break
25109 fi
25110 done
25111 # Screen out bogus values from the imake configuration. They are
25112 # bogus both because they are the default anyway, and because
25113 # using them would break gcc on systems where it needs fixed includes.
25114 case $ac_im_incroot in
25115 /usr/include) ac_x_includes= ;;
25116 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25117 esac
25118 case $ac_im_usrlibdir in
25119 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25120 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25121 esac
25122 fi
25123 cd ..
25124 rm -f -r conftest.dir
25125fi
25126
25127# Standard set of common directories for X headers.
25128# Check X11 before X11Rn because it is often a symlink to the current release.
25129ac_x_header_dirs='
25130/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025131/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025132/usr/X11R6/include
25133/usr/X11R5/include
25134/usr/X11R4/include
25135
25136/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025137/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025138/usr/include/X11R6
25139/usr/include/X11R5
25140/usr/include/X11R4
25141
25142/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025143/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025144/usr/local/X11R6/include
25145/usr/local/X11R5/include
25146/usr/local/X11R4/include
25147
25148/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025149/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025150/usr/local/include/X11R6
25151/usr/local/include/X11R5
25152/usr/local/include/X11R4
25153
25154/usr/X386/include
25155/usr/x386/include
25156/usr/XFree86/include/X11
25157
25158/usr/include
25159/usr/local/include
25160/usr/unsupported/include
25161/usr/athena/include
25162/usr/local/x11r5/include
25163/usr/lpp/Xamples/include
25164
25165/usr/openwin/include
25166/usr/openwin/share/include'
25167
25168if test "$ac_x_includes" = no; then
25169 # Guess where to find include files, by looking for Xlib.h.
25170 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025172/* end confdefs.h. */
25173#include <X11/Xlib.h>
25174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025175if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025176 # We can compile using X headers with no special include directory.
25177ac_x_includes=
25178else
cristyc7083c12009-10-14 03:16:55 +000025179 for ac_dir in $ac_x_header_dirs; do
25180 if test -r "$ac_dir/X11/Xlib.h"; then
25181 ac_x_includes=$ac_dir
25182 break
25183 fi
25184done
25185fi
cristyc7083c12009-10-14 03:16:55 +000025186rm -f conftest.err conftest.$ac_ext
25187fi # $ac_x_includes = no
25188
25189if test "$ac_x_libraries" = no; then
25190 # Check for the libraries.
25191 # See if we find them without any special options.
25192 # Don't add to $LIBS permanently.
25193 ac_save_LIBS=$LIBS
25194 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025196/* end confdefs.h. */
25197#include <X11/Xlib.h>
25198int
25199main ()
25200{
25201XrmInitialize ()
25202 ;
25203 return 0;
25204}
25205_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025206if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025207 LIBS=$ac_save_LIBS
25208# We can link X programs with no special library path.
25209ac_x_libraries=
25210else
cristy8b350f62009-11-15 23:12:43 +000025211 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025212for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25213do
25214 # Don't even attempt the hair of trying to link an X program!
25215 for ac_extension in a so sl dylib la dll; do
25216 if test -r "$ac_dir/libX11.$ac_extension"; then
25217 ac_x_libraries=$ac_dir
25218 break 2
25219 fi
25220 done
25221done
25222fi
cristy8b350f62009-11-15 23:12:43 +000025223rm -f core conftest.err conftest.$ac_objext \
25224 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025225fi # $ac_x_libraries = no
25226
25227case $ac_x_includes,$ac_x_libraries in #(
25228 no,* | *,no | *\'*)
25229 # Didn't find X, or a directory has "'" in its name.
25230 ac_cv_have_x="have_x=no";; #(
25231 *)
25232 # Record where we found X for the cache.
25233 ac_cv_have_x="have_x=yes\
25234 ac_x_includes='$ac_x_includes'\
25235 ac_x_libraries='$ac_x_libraries'"
25236esac
25237fi
25238;; #(
25239 *) have_x=yes;;
25240 esac
25241 eval "$ac_cv_have_x"
25242fi # $with_x != no
25243
25244if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025246$as_echo "$have_x" >&6; }
25247 no_x=yes
25248else
25249 # If each of the values was on the command line, it overrides each guess.
25250 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25251 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25252 # Update the cache value to reflect the command line values.
25253 ac_cv_have_x="have_x=yes\
25254 ac_x_includes='$x_includes'\
25255 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025257$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25258fi
25259
cristy3ed852e2009-09-05 21:47:34 +000025260if test "$no_x" = yes; then
25261 # Not all programs may use this symbol, but it does not hurt to define it.
25262
cristy8b350f62009-11-15 23:12:43 +000025263$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025264
25265 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25266else
25267 if test -n "$x_includes"; then
25268 X_CFLAGS="$X_CFLAGS -I$x_includes"
25269 fi
25270
25271 # It would also be nice to do this for all -L options, not just this one.
25272 if test -n "$x_libraries"; then
25273 X_LIBS="$X_LIBS -L$x_libraries"
25274 # For Solaris; some versions of Sun CC require a space after -R and
25275 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25278 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25279 ac_xsave_c_werror_flag=$ac_c_werror_flag
25280 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025282/* end confdefs.h. */
25283
25284int
25285main ()
25286{
25287
25288 ;
25289 return 0;
25290}
25291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025292if ac_fn_c_try_link "$LINENO"; then :
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025294$as_echo "no" >&6; }
25295 X_LIBS="$X_LIBS -R$x_libraries"
25296else
cristy8b350f62009-11-15 23:12:43 +000025297 LIBS="$ac_xsave_LIBS -R $x_libraries"
25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025299/* end confdefs.h. */
25300
25301int
25302main ()
25303{
25304
25305 ;
25306 return 0;
25307}
25308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025309if ac_fn_c_try_link "$LINENO"; then :
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025311$as_echo "yes" >&6; }
25312 X_LIBS="$X_LIBS -R $x_libraries"
25313else
cristy8b350f62009-11-15 23:12:43 +000025314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025315$as_echo "neither works" >&6; }
25316fi
cristy8b350f62009-11-15 23:12:43 +000025317rm -f core conftest.err conftest.$ac_objext \
25318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025319fi
cristy8b350f62009-11-15 23:12:43 +000025320rm -f core conftest.err conftest.$ac_objext \
25321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025322 ac_c_werror_flag=$ac_xsave_c_werror_flag
25323 LIBS=$ac_xsave_LIBS
25324 fi
25325
25326 # Check for system-dependent libraries X programs must link with.
25327 # Do this before checking for the system-independent R6 libraries
25328 # (-lICE), since we may need -lsocket or whatever for X linking.
25329
25330 if test "$ISC" = yes; then
25331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25332 else
25333 # Martyn Johnson says this is needed for Ultrix, if the X
25334 # libraries were built with DECnet support. And Karl Berry says
25335 # the Alpha needs dnet_stub (dnet does not exist).
25336 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025338/* end confdefs.h. */
25339
25340/* Override any GCC internal prototype to avoid an error.
25341 Use char because int might match the return type of a GCC
25342 builtin and then its argument prototype would still apply. */
25343#ifdef __cplusplus
25344extern "C"
25345#endif
25346char XOpenDisplay ();
25347int
25348main ()
25349{
25350return XOpenDisplay ();
25351 ;
25352 return 0;
25353}
25354_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025355if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025356
cristy8b350f62009-11-15 23:12:43 +000025357else
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025359$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025360if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 $as_echo_n "(cached) " >&6
25362else
25363 ac_check_lib_save_LIBS=$LIBS
25364LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025366/* end confdefs.h. */
25367
25368/* Override any GCC internal prototype to avoid an error.
25369 Use char because int might match the return type of a GCC
25370 builtin and then its argument prototype would still apply. */
25371#ifdef __cplusplus
25372extern "C"
25373#endif
25374char dnet_ntoa ();
25375int
25376main ()
25377{
25378return dnet_ntoa ();
25379 ;
25380 return 0;
25381}
25382_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025383if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025384 ac_cv_lib_dnet_dnet_ntoa=yes
25385else
cristy8b350f62009-11-15 23:12:43 +000025386 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025387fi
cristy8b350f62009-11-15 23:12:43 +000025388rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025390LIBS=$ac_check_lib_save_LIBS
25391fi
cristy8b350f62009-11-15 23:12:43 +000025392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025393$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025394if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025395 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25396fi
25397
25398 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025400$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025401if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 $as_echo_n "(cached) " >&6
25403else
25404 ac_check_lib_save_LIBS=$LIBS
25405LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025407/* end confdefs.h. */
25408
25409/* Override any GCC internal prototype to avoid an error.
25410 Use char because int might match the return type of a GCC
25411 builtin and then its argument prototype would still apply. */
25412#ifdef __cplusplus
25413extern "C"
25414#endif
25415char dnet_ntoa ();
25416int
25417main ()
25418{
25419return dnet_ntoa ();
25420 ;
25421 return 0;
25422}
25423_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025424if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025425 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25426else
cristy8b350f62009-11-15 23:12:43 +000025427 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025428fi
cristy8b350f62009-11-15 23:12:43 +000025429rm -f core conftest.err conftest.$ac_objext \
25430 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025431LIBS=$ac_check_lib_save_LIBS
25432fi
cristy8b350f62009-11-15 23:12:43 +000025433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025434$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025435if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25437fi
25438
25439 fi
25440fi
cristy8b350f62009-11-15 23:12:43 +000025441rm -f core conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025443 LIBS="$ac_xsave_LIBS"
25444
25445 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25446 # to get the SysV transport functions.
25447 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25448 # needs -lnsl.
25449 # The nsl library prevents programs from opening the X display
25450 # on Irix 5.2, according to T.E. Dickey.
25451 # The functions gethostbyname, getservbyname, and inet_addr are
25452 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025453 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25454if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025455
cristy3ed852e2009-09-05 21:47:34 +000025456fi
25457
cristy3ed852e2009-09-05 21:47:34 +000025458 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025461if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025462 $as_echo_n "(cached) " >&6
25463else
25464 ac_check_lib_save_LIBS=$LIBS
25465LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025467/* end confdefs.h. */
25468
25469/* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25472#ifdef __cplusplus
25473extern "C"
25474#endif
25475char gethostbyname ();
25476int
25477main ()
25478{
25479return gethostbyname ();
25480 ;
25481 return 0;
25482}
25483_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025485 ac_cv_lib_nsl_gethostbyname=yes
25486else
cristy8b350f62009-11-15 23:12:43 +000025487 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025488fi
cristy8b350f62009-11-15 23:12:43 +000025489rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025491LIBS=$ac_check_lib_save_LIBS
25492fi
cristy8b350f62009-11-15 23:12:43 +000025493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025494$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025495if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25497fi
25498
25499 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025501$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025502if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025503 $as_echo_n "(cached) " >&6
25504else
25505 ac_check_lib_save_LIBS=$LIBS
25506LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025508/* end confdefs.h. */
25509
25510/* Override any GCC internal prototype to avoid an error.
25511 Use char because int might match the return type of a GCC
25512 builtin and then its argument prototype would still apply. */
25513#ifdef __cplusplus
25514extern "C"
25515#endif
25516char gethostbyname ();
25517int
25518main ()
25519{
25520return gethostbyname ();
25521 ;
25522 return 0;
25523}
25524_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025525if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025526 ac_cv_lib_bsd_gethostbyname=yes
25527else
cristy8b350f62009-11-15 23:12:43 +000025528 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025529fi
cristy8b350f62009-11-15 23:12:43 +000025530rm -f core conftest.err conftest.$ac_objext \
25531 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025532LIBS=$ac_check_lib_save_LIBS
25533fi
cristy8b350f62009-11-15 23:12:43 +000025534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025536if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25538fi
25539
25540 fi
25541 fi
25542
25543 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25544 # socket/setsockopt and other routines are undefined under SCO ODT
25545 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25546 # on later versions), says Simon Leinen: it contains gethostby*
25547 # variants that don't use the name server (or something). -lsocket
25548 # must be given before -lnsl if both are needed. We assume that
25549 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025550 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25551if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025552
cristy3ed852e2009-09-05 21:47:34 +000025553fi
25554
cristy3ed852e2009-09-05 21:47:34 +000025555 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025557$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025558if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025559 $as_echo_n "(cached) " >&6
25560else
25561 ac_check_lib_save_LIBS=$LIBS
25562LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025564/* end confdefs.h. */
25565
25566/* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25569#ifdef __cplusplus
25570extern "C"
25571#endif
25572char connect ();
25573int
25574main ()
25575{
25576return connect ();
25577 ;
25578 return 0;
25579}
25580_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025581if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025582 ac_cv_lib_socket_connect=yes
25583else
cristy8b350f62009-11-15 23:12:43 +000025584 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025585fi
cristy8b350f62009-11-15 23:12:43 +000025586rm -f core conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025588LIBS=$ac_check_lib_save_LIBS
25589fi
cristy8b350f62009-11-15 23:12:43 +000025590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025591$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025592if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025593 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25594fi
25595
25596 fi
25597
25598 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025599 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25600if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025601
cristy3ed852e2009-09-05 21:47:34 +000025602fi
25603
cristy3ed852e2009-09-05 21:47:34 +000025604 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025606$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025607if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025608 $as_echo_n "(cached) " >&6
25609else
25610 ac_check_lib_save_LIBS=$LIBS
25611LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025613/* end confdefs.h. */
25614
25615/* Override any GCC internal prototype to avoid an error.
25616 Use char because int might match the return type of a GCC
25617 builtin and then its argument prototype would still apply. */
25618#ifdef __cplusplus
25619extern "C"
25620#endif
25621char remove ();
25622int
25623main ()
25624{
25625return remove ();
25626 ;
25627 return 0;
25628}
25629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025631 ac_cv_lib_posix_remove=yes
25632else
cristy8b350f62009-11-15 23:12:43 +000025633 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025634fi
cristy8b350f62009-11-15 23:12:43 +000025635rm -f core conftest.err conftest.$ac_objext \
25636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025637LIBS=$ac_check_lib_save_LIBS
25638fi
cristy8b350f62009-11-15 23:12:43 +000025639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025640$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025641if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25643fi
25644
25645 fi
25646
25647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025648 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25649if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025650
cristy3ed852e2009-09-05 21:47:34 +000025651fi
25652
cristy3ed852e2009-09-05 21:47:34 +000025653 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025655$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025656if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025657 $as_echo_n "(cached) " >&6
25658else
25659 ac_check_lib_save_LIBS=$LIBS
25660LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025662/* end confdefs.h. */
25663
25664/* Override any GCC internal prototype to avoid an error.
25665 Use char because int might match the return type of a GCC
25666 builtin and then its argument prototype would still apply. */
25667#ifdef __cplusplus
25668extern "C"
25669#endif
25670char shmat ();
25671int
25672main ()
25673{
25674return shmat ();
25675 ;
25676 return 0;
25677}
25678_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025679if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025680 ac_cv_lib_ipc_shmat=yes
25681else
cristy8b350f62009-11-15 23:12:43 +000025682 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025683fi
cristy8b350f62009-11-15 23:12:43 +000025684rm -f core conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025686LIBS=$ac_check_lib_save_LIBS
25687fi
cristy8b350f62009-11-15 23:12:43 +000025688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025689$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025690if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025691 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25692fi
25693
25694 fi
25695 fi
25696
25697 # Check for libraries that X11R6 Xt/Xaw programs need.
25698 ac_save_LDFLAGS=$LDFLAGS
25699 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25700 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25701 # check for ICE first), but we must link in the order -lSM -lICE or
25702 # we get undefined symbols. So assume we have SM if we have ICE.
25703 # These have to be linked with before -lX11, unlike the other
25704 # libraries we check for below, so use a different variable.
25705 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025707$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025708if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025709 $as_echo_n "(cached) " >&6
25710else
25711 ac_check_lib_save_LIBS=$LIBS
25712LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025714/* end confdefs.h. */
25715
25716/* Override any GCC internal prototype to avoid an error.
25717 Use char because int might match the return type of a GCC
25718 builtin and then its argument prototype would still apply. */
25719#ifdef __cplusplus
25720extern "C"
25721#endif
25722char IceConnectionNumber ();
25723int
25724main ()
25725{
25726return IceConnectionNumber ();
25727 ;
25728 return 0;
25729}
25730_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025731if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025732 ac_cv_lib_ICE_IceConnectionNumber=yes
25733else
cristy8b350f62009-11-15 23:12:43 +000025734 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025735fi
cristy8b350f62009-11-15 23:12:43 +000025736rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025738LIBS=$ac_check_lib_save_LIBS
25739fi
cristy8b350f62009-11-15 23:12:43 +000025740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025741$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025742if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025743 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25744fi
25745
25746 LDFLAGS=$ac_save_LDFLAGS
25747
25748fi
25749
25750if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025752$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025754$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025756$as_echo "" >&6; }
25757 LDFLAGS="$LDFLAGS $X_LIBS"
25758 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25759 LIBS="$X11_LIBS $LIBS"
25760 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25761
25762
cristy8b350f62009-11-15 23:12:43 +000025763$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025764
25765 #
25766 # Check for X11 shared memory extension
25767 #
25768 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025769 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25770if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025771 have_shmctl='yes'
25772fi
25773
25774 if test "$have_shmctl" != 'yes'; then
25775 PERSIST_LIBS=$LIBS
25776 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025778/* end confdefs.h. */
25779
25780/* Override any GCC internal prototype to avoid an error.
25781 Use char because int might match the return type of a GCC
25782 builtin and then its argument prototype would still apply. */
25783#ifdef __cplusplus
25784extern "C"
25785#endif
25786char shmctl ();
25787int
25788main ()
25789{
25790return shmctl ();
25791 ;
25792 return 0;
25793}
25794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025795if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025796 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025797fi
cristy8b350f62009-11-15 23:12:43 +000025798rm -f core conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025800 LIBS=$PERSIST_LIBS
25801 fi
25802
25803 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025805$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025806if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025807 $as_echo_n "(cached) " >&6
25808else
25809 ac_check_lib_save_LIBS=$LIBS
25810LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025812/* end confdefs.h. */
25813
25814/* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25817#ifdef __cplusplus
25818extern "C"
25819#endif
25820char XShmAttach ();
25821int
25822main ()
25823{
25824return XShmAttach ();
25825 ;
25826 return 0;
25827}
25828_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025829if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025830 ac_cv_lib_Xext_XShmAttach=yes
25831else
cristy8b350f62009-11-15 23:12:43 +000025832 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025833fi
cristy8b350f62009-11-15 23:12:43 +000025834rm -f core conftest.err conftest.$ac_objext \
25835 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025836LIBS=$ac_check_lib_save_LIBS
25837fi
cristy8b350f62009-11-15 23:12:43 +000025838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025839$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025840if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025842$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025843
25844fi
25845
25846 fi
25847
25848 #
25849 # Check for X11 shape extension
25850 #
cristy8b350f62009-11-15 23:12:43 +000025851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025852$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025853if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025854 $as_echo_n "(cached) " >&6
25855else
25856 ac_check_lib_save_LIBS=$LIBS
25857LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025859/* end confdefs.h. */
25860
25861/* Override any GCC internal prototype to avoid an error.
25862 Use char because int might match the return type of a GCC
25863 builtin and then its argument prototype would still apply. */
25864#ifdef __cplusplus
25865extern "C"
25866#endif
25867char XShapeCombineMask ();
25868int
25869main ()
25870{
25871return XShapeCombineMask ();
25872 ;
25873 return 0;
25874}
25875_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025876if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025877 ac_cv_lib_Xext_XShapeCombineMask=yes
25878else
cristy8b350f62009-11-15 23:12:43 +000025879 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025880fi
cristy8b350f62009-11-15 23:12:43 +000025881rm -f core conftest.err conftest.$ac_objext \
25882 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025883LIBS=$ac_check_lib_save_LIBS
25884fi
cristy8b350f62009-11-15 23:12:43 +000025885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025886$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025887if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025888 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025889$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025890
25891fi
25892
cristy8b350f62009-11-15 23:12:43 +000025893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025894$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025895if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 $as_echo_n "(cached) " >&6
25897else
25898 ac_check_lib_save_LIBS=$LIBS
25899LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025901/* end confdefs.h. */
25902
25903/* Override any GCC internal prototype to avoid an error.
25904 Use char because int might match the return type of a GCC
25905 builtin and then its argument prototype would still apply. */
25906#ifdef __cplusplus
25907extern "C"
25908#endif
25909char XtSetEventDispatcher ();
25910int
25911main ()
25912{
25913return XtSetEventDispatcher ();
25914 ;
25915 return 0;
25916}
25917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025918if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25920else
cristy8b350f62009-11-15 23:12:43 +000025921 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025922fi
cristy8b350f62009-11-15 23:12:43 +000025923rm -f core conftest.err conftest.$ac_objext \
25924 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025925LIBS=$ac_check_lib_save_LIBS
25926fi
cristy8b350f62009-11-15 23:12:43 +000025927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025928$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025929if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025930 XT_LIBS='-lXt'
25931fi
25932
25933 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25934fi
25935if test "$no_x" != 'yes'; then
25936 have_x='yes'
25937else
25938 have_x='no'
25939fi
25940 if test "$have_x" = 'yes'; then
25941 X11_DELEGATE_TRUE=
25942 X11_DELEGATE_FALSE='#'
25943else
25944 X11_DELEGATE_TRUE='#'
25945 X11_DELEGATE_FALSE=
25946fi
25947
25948
25949
25950
25951
25952#
25953# Check for ZLIB
25954#
25955
25956# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025957if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025958 withval=$with_zlib; with_zlib=$withval
25959else
25960 with_zlib='yes'
25961fi
25962
25963
25964if test "$with_zlib" != 'yes'; then
25965 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25966fi
25967
25968have_zlib='no'
25969ZLIB_LIBS=''
25970if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025972$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025974$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "" >&6; }
25977 ZLIB_LIBS=''
25978 failed=0
25979 passed=0
cristy8b350f62009-11-15 23:12:43 +000025980 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25981if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025982 passed=`expr $passed + 1`
25983else
25984 failed=`expr $failed + 1`
25985fi
25986
25987
cristy8b350f62009-11-15 23:12:43 +000025988 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25989if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025990 passed=`expr $passed + 1`
25991else
25992 failed=`expr $failed + 1`
25993fi
25994
25995
cristy8b350f62009-11-15 23:12:43 +000025996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025998if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 $as_echo_n "(cached) " >&6
26000else
26001 ac_check_lib_save_LIBS=$LIBS
26002LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026004/* end confdefs.h. */
26005
26006/* Override any GCC internal prototype to avoid an error.
26007 Use char because int might match the return type of a GCC
26008 builtin and then its argument prototype would still apply. */
26009#ifdef __cplusplus
26010extern "C"
26011#endif
26012char compress ();
26013int
26014main ()
26015{
26016return compress ();
26017 ;
26018 return 0;
26019}
26020_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026021if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026022 ac_cv_lib_z_compress=yes
26023else
cristy8b350f62009-11-15 23:12:43 +000026024 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026025fi
cristy8b350f62009-11-15 23:12:43 +000026026rm -f core conftest.err conftest.$ac_objext \
26027 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026028LIBS=$ac_check_lib_save_LIBS
26029fi
cristy8b350f62009-11-15 23:12:43 +000026030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026031$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026032if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026033 passed=`expr $passed + 1`
26034else
26035 failed=`expr $failed + 1`
26036fi
26037
cristy8b350f62009-11-15 23:12:43 +000026038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026039$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026040if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026041 $as_echo_n "(cached) " >&6
26042else
26043 ac_check_lib_save_LIBS=$LIBS
26044LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026046/* end confdefs.h. */
26047
26048/* Override any GCC internal prototype to avoid an error.
26049 Use char because int might match the return type of a GCC
26050 builtin and then its argument prototype would still apply. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054char uncompress ();
26055int
26056main ()
26057{
26058return uncompress ();
26059 ;
26060 return 0;
26061}
26062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026063if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026064 ac_cv_lib_z_uncompress=yes
26065else
cristy8b350f62009-11-15 23:12:43 +000026066 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026067fi
cristy8b350f62009-11-15 23:12:43 +000026068rm -f core conftest.err conftest.$ac_objext \
26069 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026070LIBS=$ac_check_lib_save_LIBS
26071fi
cristy8b350f62009-11-15 23:12:43 +000026072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026073$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026074if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026075 passed=`expr $passed + 1`
26076else
26077 failed=`expr $failed + 1`
26078fi
26079
cristy8b350f62009-11-15 23:12:43 +000026080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026081$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026082if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026083 $as_echo_n "(cached) " >&6
26084else
26085 ac_check_lib_save_LIBS=$LIBS
26086LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026088/* end confdefs.h. */
26089
26090/* Override any GCC internal prototype to avoid an error.
26091 Use char because int might match the return type of a GCC
26092 builtin and then its argument prototype would still apply. */
26093#ifdef __cplusplus
26094extern "C"
26095#endif
26096char deflate ();
26097int
26098main ()
26099{
26100return deflate ();
26101 ;
26102 return 0;
26103}
26104_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026105if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026106 ac_cv_lib_z_deflate=yes
26107else
cristy8b350f62009-11-15 23:12:43 +000026108 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026109fi
cristy8b350f62009-11-15 23:12:43 +000026110rm -f core conftest.err conftest.$ac_objext \
26111 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026112LIBS=$ac_check_lib_save_LIBS
26113fi
cristy8b350f62009-11-15 23:12:43 +000026114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026115$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026116if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026117 passed=`expr $passed + 1`
26118else
26119 failed=`expr $failed + 1`
26120fi
26121
cristy8b350f62009-11-15 23:12:43 +000026122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026123$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026124if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026125 $as_echo_n "(cached) " >&6
26126else
26127 ac_check_lib_save_LIBS=$LIBS
26128LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026130/* end confdefs.h. */
26131
26132/* Override any GCC internal prototype to avoid an error.
26133 Use char because int might match the return type of a GCC
26134 builtin and then its argument prototype would still apply. */
26135#ifdef __cplusplus
26136extern "C"
26137#endif
26138char inflate ();
26139int
26140main ()
26141{
26142return inflate ();
26143 ;
26144 return 0;
26145}
26146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026147if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026148 ac_cv_lib_z_inflate=yes
26149else
cristy8b350f62009-11-15 23:12:43 +000026150 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026151fi
cristy8b350f62009-11-15 23:12:43 +000026152rm -f core conftest.err conftest.$ac_objext \
26153 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154LIBS=$ac_check_lib_save_LIBS
26155fi
cristy8b350f62009-11-15 23:12:43 +000026156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026157$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026158if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 passed=`expr $passed + 1`
26160else
26161 failed=`expr $failed + 1`
26162fi
26163
cristy8b350f62009-11-15 23:12:43 +000026164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026165$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026166if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026167 $as_echo_n "(cached) " >&6
26168else
26169 ac_check_lib_save_LIBS=$LIBS
26170LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026172/* end confdefs.h. */
26173
26174/* Override any GCC internal prototype to avoid an error.
26175 Use char because int might match the return type of a GCC
26176 builtin and then its argument prototype would still apply. */
26177#ifdef __cplusplus
26178extern "C"
26179#endif
26180char gzseek ();
26181int
26182main ()
26183{
26184return gzseek ();
26185 ;
26186 return 0;
26187}
26188_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026189if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026190 ac_cv_lib_z_gzseek=yes
26191else
cristy8b350f62009-11-15 23:12:43 +000026192 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026193fi
cristy8b350f62009-11-15 23:12:43 +000026194rm -f core conftest.err conftest.$ac_objext \
26195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026196LIBS=$ac_check_lib_save_LIBS
26197fi
cristy8b350f62009-11-15 23:12:43 +000026198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026199$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026200if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026201 passed=`expr $passed + 1`
26202else
26203 failed=`expr $failed + 1`
26204fi
26205
cristy8b350f62009-11-15 23:12:43 +000026206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026207$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026208if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026209 $as_echo_n "(cached) " >&6
26210else
26211 ac_check_lib_save_LIBS=$LIBS
26212LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026214/* end confdefs.h. */
26215
26216/* Override any GCC internal prototype to avoid an error.
26217 Use char because int might match the return type of a GCC
26218 builtin and then its argument prototype would still apply. */
26219#ifdef __cplusplus
26220extern "C"
26221#endif
26222char gztell ();
26223int
26224main ()
26225{
26226return gztell ();
26227 ;
26228 return 0;
26229}
26230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026231if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026232 ac_cv_lib_z_gztell=yes
26233else
cristy8b350f62009-11-15 23:12:43 +000026234 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026235fi
cristy8b350f62009-11-15 23:12:43 +000026236rm -f core conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026238LIBS=$ac_check_lib_save_LIBS
26239fi
cristy8b350f62009-11-15 23:12:43 +000026240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026241$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026242if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026243 passed=`expr $passed + 1`
26244else
26245 failed=`expr $failed + 1`
26246fi
26247
cristy8b350f62009-11-15 23:12:43 +000026248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026249$as_echo_n "checking if ZLIB package is complete... " >&6; }
26250 if test $passed -gt 0; then
26251 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026253$as_echo "no -- some components failed test" >&6; }
26254 have_zlib='no (failed tests)'
26255 else
26256 ZLIB_LIBS='-lz'
26257 LIBS="$ZLIB_LIBS $LIBS"
26258
cristy8b350f62009-11-15 23:12:43 +000026259$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026260
cristy8b350f62009-11-15 23:12:43 +000026261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026262$as_echo "yes" >&6; }
26263 have_zlib='yes'
26264 fi
26265 else
cristy8b350f62009-11-15 23:12:43 +000026266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026267$as_echo "no" >&6; }
26268 fi
26269fi
26270 if test "$have_zlib" = 'yes'; then
26271 ZLIB_DELEGATE_TRUE=
26272 ZLIB_DELEGATE_FALSE='#'
26273else
26274 ZLIB_DELEGATE_TRUE='#'
26275 ZLIB_DELEGATE_FALSE=
26276fi
26277
26278
26279
26280#
26281# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26282#
26283LIB_DL=''
26284if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026286$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026287if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026288 $as_echo_n "(cached) " >&6
26289else
26290 ac_check_lib_save_LIBS=$LIBS
26291LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026293/* end confdefs.h. */
26294
26295/* Override any GCC internal prototype to avoid an error.
26296 Use char because int might match the return type of a GCC
26297 builtin and then its argument prototype would still apply. */
26298#ifdef __cplusplus
26299extern "C"
26300#endif
26301char dlopen ();
26302int
26303main ()
26304{
26305return dlopen ();
26306 ;
26307 return 0;
26308}
26309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026311 ac_cv_lib_dl_dlopen=yes
26312else
cristy8b350f62009-11-15 23:12:43 +000026313 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026314fi
cristy8b350f62009-11-15 23:12:43 +000026315rm -f core conftest.err conftest.$ac_objext \
26316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026317LIBS=$ac_check_lib_save_LIBS
26318fi
cristy8b350f62009-11-15 23:12:43 +000026319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026320$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026321if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026322 LIB_DL='-ldl'
26323fi
26324
26325 LIBS="$LIB_DL $LIBS"
26326fi
26327
26328
26329
26330#
26331# Check for Autotrace delegate library.
26332#
26333
26334# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026335if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 withval=$with_autotrace; with_autotrace=$withval
26337else
26338 with_autotrace='no'
26339fi
26340
26341
26342if test "$with_autotrace" != 'yes'; then
26343 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26344fi
26345
26346have_autotrace='no'
26347AUTOTRACE_CFLAGS=""
26348AUTOTRACE_LIBS=""
26349AUTOTRACE_PKG=""
26350if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026352$as_echo "-------------------------------------------------------------" >&6; }
26353
26354pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo_n "checking for AUTOTRACE... " >&6; }
26357
26358if test -n "$AUTOTRACE_CFLAGS"; then
26359 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26360 elif test -n "$PKG_CONFIG"; then
26361 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026363 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26364 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26366 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026367 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26368else
26369 pkg_failed=yes
26370fi
26371 else
26372 pkg_failed=untried
26373fi
26374if test -n "$AUTOTRACE_LIBS"; then
26375 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26376 elif test -n "$PKG_CONFIG"; then
26377 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026379 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26380 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26382 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026383 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26384else
26385 pkg_failed=yes
26386fi
26387 else
26388 pkg_failed=untried
26389fi
26390
26391
26392
26393if test $pkg_failed = yes; then
26394
26395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26396 _pkg_short_errors_supported=yes
26397else
26398 _pkg_short_errors_supported=no
26399fi
26400 if test $_pkg_short_errors_supported = yes; then
26401 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26402 else
26403 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26404 fi
26405 # Put the nasty error message in config.log where it belongs
26406 echo "$AUTOTRACE_PKG_ERRORS" >&5
26407
cristy8b350f62009-11-15 23:12:43 +000026408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026409$as_echo "no" >&6; }
26410 have_autotrace=no
26411elif test $pkg_failed = untried; then
26412 have_autotrace=no
26413else
26414 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26415 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026417$as_echo "yes" >&6; }
26418 have_autotrace=yes
26419fi
cristy8b350f62009-11-15 23:12:43 +000026420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo "" >&6; }
26422fi
26423
26424if test "$have_autotrace" = 'yes'; then
26425 failed=0
26426
cristy8b350f62009-11-15 23:12:43 +000026427$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026428
26429 if test "$with_modules" = 'no'; then
26430 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26431 fi
26432fi
26433
26434 if test "$have_autotrace" = 'yes'; then
26435 AUTOTRACE_DELEGATE_TRUE=
26436 AUTOTRACE_DELEGATE_FALSE='#'
26437else
26438 AUTOTRACE_DELEGATE_TRUE='#'
26439 AUTOTRACE_DELEGATE_FALSE=
26440fi
26441
26442
26443
26444
26445
26446#
26447# Check for Display Postscript delegate library.
26448#
26449
26450# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026451if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026452 withval=$with_dps; with_dps=$withval
26453else
26454 with_dps='yes'
26455fi
26456
26457
26458if test "$with_dps" != 'yes'; then
26459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26460fi
26461
26462have_dps='no'
26463DPS_LIBS=''
26464if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026466$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026468$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026470$as_echo "" >&6; }
26471 failed=0
26472 passed=0
26473 PERSIST_CPPFLAGS="$CPPFLAGS"
26474 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026475 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26476if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 passed=`expr $passed + 1`
26478else
26479 failed=`expr $failed + 1`
26480fi
26481
26482
26483 # DPS issues:
26484 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26485 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26486 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26487 # ImageMagick itself doesn't use -lXt.
26488 have_libdps='no'
26489 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026491$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026492if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026493 $as_echo_n "(cached) " >&6
26494else
26495 ac_check_lib_save_LIBS=$LIBS
26496LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026498/* end confdefs.h. */
26499
26500/* Override any GCC internal prototype to avoid an error.
26501 Use char because int might match the return type of a GCC
26502 builtin and then its argument prototype would still apply. */
26503#ifdef __cplusplus
26504extern "C"
26505#endif
26506char DPSInitialize ();
26507int
26508main ()
26509{
26510return DPSInitialize ();
26511 ;
26512 return 0;
26513}
26514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026516 ac_cv_lib_dps_DPSInitialize=yes
26517else
cristy8b350f62009-11-15 23:12:43 +000026518 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026519fi
cristy8b350f62009-11-15 23:12:43 +000026520rm -f core conftest.err conftest.$ac_objext \
26521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026522LIBS=$ac_check_lib_save_LIBS
26523fi
cristy8b350f62009-11-15 23:12:43 +000026524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026525$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026526if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026527 have_libdps='yes'
26528else
26529 have_libdps='no'
26530fi
26531
26532 if test "$have_libdps" != 'yes'; then
26533 # Unset cache variable so we can try again.
26534 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026537if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 $as_echo_n "(cached) " >&6
26539else
26540 ac_check_lib_save_LIBS=$LIBS
26541LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026543/* end confdefs.h. */
26544
26545/* Override any GCC internal prototype to avoid an error.
26546 Use char because int might match the return type of a GCC
26547 builtin and then its argument prototype would still apply. */
26548#ifdef __cplusplus
26549extern "C"
26550#endif
26551char DPSInitialize ();
26552int
26553main ()
26554{
26555return DPSInitialize ();
26556 ;
26557 return 0;
26558}
26559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026561 ac_cv_lib_dps_DPSInitialize=yes
26562else
cristy8b350f62009-11-15 23:12:43 +000026563 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026564fi
cristy8b350f62009-11-15 23:12:43 +000026565rm -f core conftest.err conftest.$ac_objext \
26566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026567LIBS=$ac_check_lib_save_LIBS
26568fi
cristy8b350f62009-11-15 23:12:43 +000026569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026570$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026571if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026572 have_libdps='yes'
26573else
26574 have_libdps='no'
26575fi
26576
26577 if test "$have_libdps" = 'yes'; then
26578 LIBDPS_XT='-lXt'
26579 fi
26580 fi
26581 if test "$have_libdps" = 'yes'; then
26582 passed=`expr $passed + 1`
26583 else
26584 failed=`expr $failed + 1`
26585 fi
cristy8b350f62009-11-15 23:12:43 +000026586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026588if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026589 $as_echo_n "(cached) " >&6
26590else
26591 ac_check_lib_save_LIBS=$LIBS
26592LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026594/* end confdefs.h. */
26595
26596/* Override any GCC internal prototype to avoid an error.
26597 Use char because int might match the return type of a GCC
26598 builtin and then its argument prototype would still apply. */
26599#ifdef __cplusplus
26600extern "C"
26601#endif
26602char XDPSPixelsPerPoint ();
26603int
26604main ()
26605{
26606return XDPSPixelsPerPoint ();
26607 ;
26608 return 0;
26609}
26610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026612 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26613else
cristy8b350f62009-11-15 23:12:43 +000026614 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026615fi
cristy8b350f62009-11-15 23:12:43 +000026616rm -f core conftest.err conftest.$ac_objext \
26617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026618LIBS=$ac_check_lib_save_LIBS
26619fi
cristy8b350f62009-11-15 23:12:43 +000026620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026621$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026622if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026623 passed=`expr $passed + 1`
26624else
26625 failed=`expr $failed + 1`
26626fi
26627
cristy8b350f62009-11-15 23:12:43 +000026628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026629$as_echo_n "checking if DPS package is complete... " >&6; }
26630 if test $passed -gt 0; then
26631 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026633$as_echo "no -- some components failed test" >&6; }
26634 have_dps='no (failed tests)'
26635 CPPFLAGS="$PERSIST_CPPFLAGS"
26636 else
26637 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26638 LIBS="$DPS_LIBS $LIBS"
26639
cristy8b350f62009-11-15 23:12:43 +000026640$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026641
cristy8b350f62009-11-15 23:12:43 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo "yes" >&6; }
26644 have_dps='yes'
26645 fi
26646 else
cristy8b350f62009-11-15 23:12:43 +000026647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026648$as_echo "no" >&6; }
26649 CPPFLAGS=$PERSIST_CPPFLAGS
26650 fi
26651fi
26652 if test "$have_dps" = 'yes'; then
26653 DPS_DELEGATE_TRUE=
26654 DPS_DELEGATE_FALSE='#'
26655else
26656 DPS_DELEGATE_TRUE='#'
26657 DPS_DELEGATE_FALSE=
26658fi
26659
26660
26661
26662
26663#
26664# Check for DJVU delegate library.
26665#
26666
26667# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026668if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026669 withval=$with_djvu; with_djvu=$withval
26670else
26671 with_djvu='yes'
26672fi
26673
26674
26675if test "$with_djvu" != 'yes'; then
26676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26677fi
26678
26679have_djvu='no'
26680DJVU_LIBS=''
26681if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026683$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026687$as_echo "" >&6; }
26688 failed=0
26689 passed=0
cristy8b350f62009-11-15 23:12:43 +000026690 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26691if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026692 passed=`expr $passed + 1`
26693else
26694 failed=`expr $failed + 1`
26695fi
26696
26697
cristy8b350f62009-11-15 23:12:43 +000026698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026699$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026700if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026701 $as_echo_n "(cached) " >&6
26702else
26703 ac_check_lib_save_LIBS=$LIBS
26704LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026706/* end confdefs.h. */
26707
26708/* Override any GCC internal prototype to avoid an error.
26709 Use char because int might match the return type of a GCC
26710 builtin and then its argument prototype would still apply. */
26711#ifdef __cplusplus
26712extern "C"
26713#endif
26714char ddjvu_context_create ();
26715int
26716main ()
26717{
26718return ddjvu_context_create ();
26719 ;
26720 return 0;
26721}
26722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026724 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26725else
cristy8b350f62009-11-15 23:12:43 +000026726 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026727fi
cristy8b350f62009-11-15 23:12:43 +000026728rm -f core conftest.err conftest.$ac_objext \
26729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026730LIBS=$ac_check_lib_save_LIBS
26731fi
cristy8b350f62009-11-15 23:12:43 +000026732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026733$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026734if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026735 passed=`expr $passed + 1`
26736else
26737 failed=`expr $failed + 1`
26738fi
26739
cristy8b350f62009-11-15 23:12:43 +000026740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026741$as_echo_n "checking if DJVU package is complete... " >&6; }
26742 if test $passed -gt 0; then
26743 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo "no -- some components failed test" >&6; }
26746 have_djvu='no (failed tests)'
26747 else
26748 DJVU_LIBS='-ldjvulibre'
26749 LIBS="$DJVU_LIBS $LIBS"
26750
cristy8b350f62009-11-15 23:12:43 +000026751$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026752
cristy8b350f62009-11-15 23:12:43 +000026753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026754$as_echo "yes" >&6; }
26755 have_djvu='yes'
26756 fi
26757 else
cristy8b350f62009-11-15 23:12:43 +000026758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026759$as_echo "no" >&6; }
26760 fi
26761fi
26762 if test "$have_djvu" = 'yes'; then
26763 DJVU_DELEGATE_TRUE=
26764 DJVU_DELEGATE_FALSE='#'
26765else
26766 DJVU_DELEGATE_TRUE='#'
26767 DJVU_DELEGATE_FALSE=
26768fi
26769
26770
26771
26772
26773#
cristy430a7312010-01-21 20:44:04 +000026774# Set DejaVu font directory.
26775#
26776
26777# Check whether --with-dejavu-font-dir was given.
26778if test "${with_dejavu_font_dir+set}" = set; then :
26779 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26780else
26781 with_dejavu_font_dir='default'
26782fi
26783
26784
26785if test "$with_dejavu_font_dir" != 'default'; then
26786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26787fi
26788
26789
26790#
cristy3ed852e2009-09-05 21:47:34 +000026791# Check for FFTW delegate library.
26792#
26793
26794# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026795if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026796 withval=$with_fftw; with_fftw=$withval
26797else
26798 with_fftw='yes'
26799fi
26800
26801
26802if test "$with_fftw" != 'yes'; then
26803 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26804fi
26805
26806have_fftw='no'
26807FFTW_LIBS=''
26808if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026810$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026812$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026814$as_echo "" >&6; }
26815 failed=0
26816 passed=0
cristy8b350f62009-11-15 23:12:43 +000026817 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26818if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026819 passed=`expr $passed + 1`
26820else
26821 failed=`expr $failed + 1`
26822fi
26823
26824
cristy8b350f62009-11-15 23:12:43 +000026825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026826$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026827if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026828 $as_echo_n "(cached) " >&6
26829else
26830 ac_check_lib_save_LIBS=$LIBS
26831LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026833/* end confdefs.h. */
26834
26835/* Override any GCC internal prototype to avoid an error.
26836 Use char because int might match the return type of a GCC
26837 builtin and then its argument prototype would still apply. */
26838#ifdef __cplusplus
26839extern "C"
26840#endif
26841char fftw_execute ();
26842int
26843main ()
26844{
26845return fftw_execute ();
26846 ;
26847 return 0;
26848}
26849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026851 ac_cv_lib_fftw3_fftw_execute=yes
26852else
cristy8b350f62009-11-15 23:12:43 +000026853 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026854fi
cristy8b350f62009-11-15 23:12:43 +000026855rm -f core conftest.err conftest.$ac_objext \
26856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026857LIBS=$ac_check_lib_save_LIBS
26858fi
cristy8b350f62009-11-15 23:12:43 +000026859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026860$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026861if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026862 passed=`expr $passed + 1`
26863else
26864 failed=`expr $failed + 1`
26865fi
26866
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo_n "checking if FFTW package is complete... " >&6; }
26869 if test $passed -gt 0; then
26870 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026872$as_echo "no -- some components failed test" >&6; }
26873 have_fftw='no (failed tests)'
26874 else
26875 FFTW_LIBS='-lfftw3'
26876 LIBS="$FFTW_LIBS $LIBS"
26877
cristy8b350f62009-11-15 23:12:43 +000026878$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026879
cristy8b350f62009-11-15 23:12:43 +000026880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026881$as_echo "yes" >&6; }
26882 have_fftw='yes'
26883 fi
26884 else
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo "no" >&6; }
26887 fi
26888fi
26889 if test "$have_fftw" = 'yes'; then
26890 FFTW_DELEGATE_TRUE=
26891 FFTW_DELEGATE_FALSE='#'
26892else
26893 FFTW_DELEGATE_TRUE='#'
26894 FFTW_DELEGATE_FALSE=
26895fi
26896
26897
26898
26899
26900#
26901# Check for FlashPIX delegate library.
26902#
26903
26904# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026905if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026906 withval=$with_fpx; with_fpx=$withval
26907else
26908 with_fpx='yes'
26909fi
26910
26911
26912if test "$with_fpx" != 'yes'; then
26913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26914fi
26915
26916have_fpx='no'
26917FPX_LIBS=''
26918if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026922$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "" >&6; }
26925 failed=0
26926 passed=0
26927 ac_ext=cpp
26928ac_cpp='$CXXCPP $CPPFLAGS'
26929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26932
26933
cristy8b350f62009-11-15 23:12:43 +000026934ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26935if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026936 passed=`expr $passed + 1`
26937else
26938 failed=`expr $failed + 1`
26939fi
26940
26941
cristy8b350f62009-11-15 23:12:43 +000026942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026943$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026944if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026945 $as_echo_n "(cached) " >&6
26946else
26947 ac_check_lib_save_LIBS=$LIBS
26948LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026950/* end confdefs.h. */
26951
26952/* Override any GCC internal prototype to avoid an error.
26953 Use char because int might match the return type of a GCC
26954 builtin and then its argument prototype would still apply. */
26955#ifdef __cplusplus
26956extern "C"
26957#endif
26958char FPX_OpenImageByFilename ();
26959int
26960main ()
26961{
26962return FPX_OpenImageByFilename ();
26963 ;
26964 return 0;
26965}
26966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026967if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026968 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26969else
cristy8b350f62009-11-15 23:12:43 +000026970 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026971fi
cristy8b350f62009-11-15 23:12:43 +000026972rm -f core conftest.err conftest.$ac_objext \
26973 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026974LIBS=$ac_check_lib_save_LIBS
26975fi
cristy8b350f62009-11-15 23:12:43 +000026976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026977$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026978if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026979 passed=`expr $passed + 1`
26980else
26981 failed=`expr $failed + 1`
26982fi
26983
26984 ac_ext=c
26985ac_cpp='$CPP $CPPFLAGS'
26986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26988ac_compiler_gnu=$ac_cv_c_compiler_gnu
26989
cristy8b350f62009-11-15 23:12:43 +000026990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026991$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26992 if test $passed -gt 0; then
26993 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026995$as_echo "no -- some components failed test" >&6; }
26996 have_fpx='no (failed tests)'
26997 else
26998 FPX_LIBS='-lfpx'
26999
cristy8b350f62009-11-15 23:12:43 +000027000$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027001
cristy8b350f62009-11-15 23:12:43 +000027002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027003$as_echo "yes" >&6; }
27004 have_fpx='yes'
27005 PERLMAINCC="$CXX"
27006 fi
27007 else
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo "no" >&6; }
27010 fi
27011fi
27012 if test "$have_fpx" = 'yes'; then
27013 FPX_DELEGATE_TRUE=
27014 FPX_DELEGATE_FALSE='#'
27015else
27016 FPX_DELEGATE_TRUE='#'
27017 FPX_DELEGATE_FALSE=
27018fi
27019
27020
27021
27022
27023#
27024# Check for fontconfig delegate library.
27025#
27026
27027# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027028if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027029 withval=$with_fontconfig; with_fontconfig=$withval
27030else
27031 with_fontconfig=$have_x
27032fi
27033
27034
27035if test "$with_fontconfig" != 'yes'; then
27036 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27037fi
27038
27039have_fontconfig='no'
27040FONTCONFIG_CFLAGS=""
27041FONTCONFIG_LIBS=""
27042FONTCONFIG_PKG=""
27043if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027045$as_echo "-------------------------------------------------------------" >&6; }
27046
27047pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027049$as_echo_n "checking for FONTCONFIG... " >&6; }
27050
27051if test -n "$FONTCONFIG_CFLAGS"; then
27052 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27053 elif test -n "$PKG_CONFIG"; then
27054 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027056 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27057 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27059 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027060 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27061else
27062 pkg_failed=yes
27063fi
27064 else
27065 pkg_failed=untried
27066fi
27067if test -n "$FONTCONFIG_LIBS"; then
27068 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27069 elif test -n "$PKG_CONFIG"; then
27070 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027072 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27073 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27075 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027076 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27077else
27078 pkg_failed=yes
27079fi
27080 else
27081 pkg_failed=untried
27082fi
27083
27084
27085
27086if test $pkg_failed = yes; then
27087
27088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27089 _pkg_short_errors_supported=yes
27090else
27091 _pkg_short_errors_supported=no
27092fi
27093 if test $_pkg_short_errors_supported = yes; then
27094 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27095 else
27096 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27097 fi
27098 # Put the nasty error message in config.log where it belongs
27099 echo "$FONTCONFIG_PKG_ERRORS" >&5
27100
cristy8b350f62009-11-15 23:12:43 +000027101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027102$as_echo "no" >&6; }
27103 have_fontconfig=no
27104elif test $pkg_failed = untried; then
27105 have_fontconfig=no
27106else
27107 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27108 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo "yes" >&6; }
27111 have_fontconfig=yes
27112fi
cristy8b350f62009-11-15 23:12:43 +000027113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027114$as_echo "" >&6; }
27115fi
27116
27117if test "$have_fontconfig" = 'yes'; then
27118
cristy8b350f62009-11-15 23:12:43 +000027119$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027120
cristyd09bcf92010-03-25 03:04:45 +000027121 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027122 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027123 fi
cristy3ed852e2009-09-05 21:47:34 +000027124fi
27125
27126 if test "$have_fontconfig" = 'yes'; then
27127 FONTCONFIG_DELEGATE_TRUE=
27128 FONTCONFIG_DELEGATE_FALSE='#'
27129else
27130 FONTCONFIG_DELEGATE_TRUE='#'
27131 FONTCONFIG_DELEGATE_FALSE=
27132fi
27133
27134
27135
27136
27137
27138#
27139# Check for freetype delegate library.
27140#
27141
27142# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027143if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027144 withval=$with_freetype; with_freetype=$withval
27145else
27146 with_freetype='yes'
27147fi
27148
27149
27150
27151if test "$with_freetype" != 'yes'; then
27152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27153fi
27154
27155have_freetype='no'
27156FREETYPE_LIBS=''
27157if test "$with_freetype" != 'no'; then
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; }
cristy8b350f62009-11-15 23:12:43 +000027160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027161$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027163$as_echo "" >&6; }
27164 failed=0
27165 passed=0
cristy66291112009-10-03 22:44:36 +000027166 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027167 PERSIST_CPPFLAGS="$CPPFLAGS"
27168 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27169 :
27170 else
27171 freetype_config=''
27172 for ac_prog in freetype-config
27173do
27174 # Extract the first word of "$ac_prog", so it can be a program name with args.
27175set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027178if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027179 $as_echo_n "(cached) " >&6
27180else
27181 if test -n "$freetype_config"; then
27182 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27183else
27184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27185for as_dir in $PATH
27186do
27187 IFS=$as_save_IFS
27188 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027189 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27191 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193 break 2
27194 fi
27195done
cristy8b350f62009-11-15 23:12:43 +000027196 done
cristy3ed852e2009-09-05 21:47:34 +000027197IFS=$as_save_IFS
27198
27199fi
27200fi
27201freetype_config=$ac_cv_prog_freetype_config
27202if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027204$as_echo "$freetype_config" >&6; }
27205else
cristy8b350f62009-11-15 23:12:43 +000027206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027207$as_echo "no" >&6; }
27208fi
27209
27210
27211 test -n "$freetype_config" && break
27212done
27213 if test -n "$freetype_config"; then
27214 freetype_cflags=`$freetype_config --cflags`
27215 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027216 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027217 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27218 fi
27219 fi
27220
27221 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027223$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027224if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027225 $as_echo_n "(cached) " >&6
27226else
27227 ac_check_lib_save_LIBS=$LIBS
27228LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230/* end confdefs.h. */
27231
27232/* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27235#ifdef __cplusplus
27236extern "C"
27237#endif
27238char FT_Init_FreeType ();
27239int
27240main ()
27241{
27242return FT_Init_FreeType ();
27243 ;
27244 return 0;
27245}
27246_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027247if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027248 ac_cv_lib_freetype_FT_Init_FreeType=yes
27249else
cristy8b350f62009-11-15 23:12:43 +000027250 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027251fi
cristy8b350f62009-11-15 23:12:43 +000027252rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027254LIBS=$ac_check_lib_save_LIBS
27255fi
cristy8b350f62009-11-15 23:12:43 +000027256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027257$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027258if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259 FREETYPE_LIBS='-lfreetype'
27260fi
27261
27262 if test "$FREETYPE_LIBS" != ''; then
27263 passed=`expr $passed + 1`
27264 else
27265 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027266 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027267 fi
27268 fi
27269
cristy8b350f62009-11-15 23:12:43 +000027270 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27271if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027272 FT2BUILD_H='#include <ft2build.h>'
27273else
27274 ft2build=''
27275fi
27276
27277
cristy8b350f62009-11-15 23:12:43 +000027278 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27279"
27280if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027281 have_freetype_h='yes'
27282else
27283 have_freetype_h='no'
27284fi
27285
27286
27287 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27288 passed=`expr $passed + 1`
27289 else
27290 failed=`expr $failed + 1`
27291 CPPFLAGS="$PERSIST_CPPFLAGS"
27292 fi
27293
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo_n "checking if FreeType package is complete... " >&6; }
27296 if test $passed -gt 0; then
27297 if test $failed -gt 0; then
27298 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027300$as_echo "no -- some components failed test" >&6; }
27301 have_freetype='no (failed tests)'
27302 else
27303 LIBS="$FREETYPE_LIBS $LIBS"
27304
cristy8b350f62009-11-15 23:12:43 +000027305$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027306
27307 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27308
cristy8b350f62009-11-15 23:12:43 +000027309$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027310
27311 fi
cristy8b350f62009-11-15 23:12:43 +000027312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027313$as_echo "yes" >&6; }
27314 have_freetype='yes'
27315 fi
27316 else
cristy8b350f62009-11-15 23:12:43 +000027317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027318$as_echo "no" >&6; }
27319 fi
27320fi
27321 if test "$have_freetype" = 'yes'; then
27322 FREETYPE_DELEGATE_TRUE=
27323 FREETYPE_DELEGATE_FALSE='#'
27324else
27325 FREETYPE_DELEGATE_TRUE='#'
27326 FREETYPE_DELEGATE_FALSE=
27327fi
27328
27329
27330
27331
27332
27333#
27334# Check for Ghostscript library or framework.
27335#
27336# Test for iapi.h & test for gsapi_new_instance in -lgs
27337# or -framework Ghostscript
27338
27339
27340# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027341if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 withval=$with_gslib; with_gslib=$withval
27343else
27344 with_gslib='no'
27345fi
27346
27347
cristyb7931f12009-09-25 10:22:21 +000027348gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027349if test "$with_gslib" != 'yes'; then
27350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27351fi
27352
27353have_gslib='no'
27354GS_LIBS=''
27355if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027359$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027361$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027362 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027363 failed=0
27364 passed=0
cristy8b350f62009-11-15 23:12:43 +000027365 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27366if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027367 passed=`expr $passed + 1`
27368else
27369 failed=`expr $failed + 1`
27370fi
27371
27372
cristy8b350f62009-11-15 23:12:43 +000027373 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27374if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027375 passed=`expr $passed + 1`
27376else
27377 failed=`expr $failed + 1`
27378fi
27379
27380
cristy8b350f62009-11-15 23:12:43 +000027381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027382$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027383if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027384 $as_echo_n "(cached) " >&6
27385else
27386 ac_check_framework_save_LIBS=$LIBS
27387LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027389/* end confdefs.h. */
27390
27391/* Override any GCC internal prototype to avoid an error.
27392 Use char because int might match the return type of a GCC
27393 builtin and then its argument prototype would still apply. */
27394#ifdef __cplusplus
27395extern "C"
27396#endif
27397char gsapi_new_instance ();
27398int
27399main ()
27400{
27401return gsapi_new_instance ();
27402 ;
27403 return 0;
27404}
27405_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027406if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27408else
cristy8b350f62009-11-15 23:12:43 +000027409 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027410fi
cristy8b350f62009-11-15 23:12:43 +000027411rm -f core conftest.err conftest.$ac_objext \
27412 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027413LIBS=$ac_check_framework_save_LIBS
27414fi
cristy8b350f62009-11-15 23:12:43 +000027415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027417if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027418 framework=`expr $framework + 1`
27419else
cristy8b350f62009-11-15 23:12:43 +000027420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027421$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027422if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 $as_echo_n "(cached) " >&6
27424else
27425 ac_check_lib_save_LIBS=$LIBS
27426LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428/* end confdefs.h. */
27429
27430/* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
27433#ifdef __cplusplus
27434extern "C"
27435#endif
27436char gsapi_new_instance ();
27437int
27438main ()
27439{
27440return gsapi_new_instance ();
27441 ;
27442 return 0;
27443}
27444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 ac_cv_lib_gs_gsapi_new_instance=yes
27447else
cristy8b350f62009-11-15 23:12:43 +000027448 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027449fi
cristy8b350f62009-11-15 23:12:43 +000027450rm -f core conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027452LIBS=$ac_check_lib_save_LIBS
27453fi
cristy8b350f62009-11-15 23:12:43 +000027454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027456if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 passed=`expr $passed + 1`
27458else
27459 failed=`expr $failed + 1`
27460fi
27461
27462fi
cristy8b350f62009-11-15 23:12:43 +000027463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27465 if test $passed -gt 0; then
27466 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027468$as_echo "no -- some components failed test" >&6; }
27469 have_gslib='no (failed tests)'
27470 else
27471 if test $framework -gt 0; then
27472 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027473 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "yes, using framework." >&6; }
27476 else
cristy8b350f62009-11-15 23:12:43 +000027477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027478$as_echo "yes, using library." >&6; }
27479 GS_LIBS='-lgs'
27480 fi
27481 LIBS="$GS_LIBS $LIBS"
27482
cristy8b350f62009-11-15 23:12:43 +000027483$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027484
27485 have_gslib='yes'
27486 fi
27487 else
cristy8b350f62009-11-15 23:12:43 +000027488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027489$as_echo "no" >&6; }
27490 fi
27491fi
27492 if test "$have_gslib" = 'yes'; then
27493 GS_DELEGATE_TRUE=
27494 GS_DELEGATE_FALSE='#'
27495else
27496 GS_DELEGATE_TRUE='#'
27497 GS_DELEGATE_FALSE=
27498fi
27499
27500
27501
27502# Set default font search path
27503
27504# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027505if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027506 withval=$with_fontpath; with_fontpath=$withval
27507else
27508 with_fontpath=''
27509fi
27510
27511
27512if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27513 with_fontpath=''
27514else
27515
27516cat >>confdefs.h <<_ACEOF
27517#define MAGICK_FONT_PATH "$with_fontpath"
27518_ACEOF
27519
27520fi
27521if test "$with_fontpath=" != ''; then
27522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27523fi
27524
27525# Set Ghostscript font directory
27526
27527# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027528if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027529 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27530else
27531 with_gs_font_dir='default'
27532fi
27533
27534
27535if test "$with_gs_font_dir" != 'default'; then
27536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27537fi
27538
27539
27540#
27541# Check for GVC delegate library.
27542#
27543
27544# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027545if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 withval=$with_gvc; with_gvc=$withval
27547else
27548 with_gvc='yes'
27549fi
27550
27551
27552if test "$with_gvc" != 'yes'; then
27553 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27554fi
27555
27556GVC_PKG=""
27557if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027559$as_echo "-------------------------------------------------------------" >&6; }
27560
27561pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027563$as_echo_n "checking for GVC... " >&6; }
27564
27565if test -n "$GVC_CFLAGS"; then
27566 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27567 elif test -n "$PKG_CONFIG"; then
27568 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027570 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27571 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27573 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027574 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27575else
27576 pkg_failed=yes
27577fi
27578 else
27579 pkg_failed=untried
27580fi
27581if test -n "$GVC_LIBS"; then
27582 pkg_cv_GVC_LIBS="$GVC_LIBS"
27583 elif test -n "$PKG_CONFIG"; then
27584 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027586 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27587 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27589 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027590 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27591else
27592 pkg_failed=yes
27593fi
27594 else
27595 pkg_failed=untried
27596fi
27597
27598
27599
27600if test $pkg_failed = yes; then
27601
27602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27603 _pkg_short_errors_supported=yes
27604else
27605 _pkg_short_errors_supported=no
27606fi
27607 if test $_pkg_short_errors_supported = yes; then
27608 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27609 else
27610 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27611 fi
27612 # Put the nasty error message in config.log where it belongs
27613 echo "$GVC_PKG_ERRORS" >&5
27614
cristy8b350f62009-11-15 23:12:43 +000027615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027616$as_echo "no" >&6; }
27617 have_gvc=no
27618elif test $pkg_failed = untried; then
27619 have_gvc=no
27620else
27621 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27622 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027624$as_echo "yes" >&6; }
27625 have_gvc=yes
27626fi
cristy8b350f62009-11-15 23:12:43 +000027627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027628$as_echo "" >&6; }
27629fi
27630
27631if test "$have_gvc" = 'yes'; then
27632
cristy8b350f62009-11-15 23:12:43 +000027633$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027634
27635 if test "$with_modules" = 'no'; then
27636 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27637 fi
27638fi
27639
27640 if test "$have_gvc" = 'yes'; then
27641 GVC_DELEGATE_TRUE=
27642 GVC_DELEGATE_FALSE='#'
27643else
27644 GVC_DELEGATE_TRUE='#'
27645 GVC_DELEGATE_FALSE=
27646fi
27647
27648
27649
27650
27651
27652#
27653# Check for JBIG delegate library.
27654#
27655
27656
27657# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027658if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027659 withval=$with_jbig; with_jbig=$withval
27660else
27661 with_jbig='yes'
27662fi
27663
27664
27665have_jbig='no'
27666JBIG_LIBS=''
27667if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027671$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027673$as_echo "" >&6; }
27674 failed=0
27675 passed=0
cristy8b350f62009-11-15 23:12:43 +000027676 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27677if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 passed=`expr $passed + 1`
27679else
27680 failed=`expr $failed + 1`
27681fi
27682
27683
cristy8b350f62009-11-15 23:12:43 +000027684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027686if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 $as_echo_n "(cached) " >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027692/* end confdefs.h. */
27693
27694/* Override any GCC internal prototype to avoid an error.
27695 Use char because int might match the return type of a GCC
27696 builtin and then its argument prototype would still apply. */
27697#ifdef __cplusplus
27698extern "C"
27699#endif
27700char jbg_dec_init ();
27701int
27702main ()
27703{
27704return jbg_dec_init ();
27705 ;
27706 return 0;
27707}
27708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027710 ac_cv_lib_jbig_jbg_dec_init=yes
27711else
cristy8b350f62009-11-15 23:12:43 +000027712 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027713fi
cristy8b350f62009-11-15 23:12:43 +000027714rm -f core conftest.err conftest.$ac_objext \
27715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027716LIBS=$ac_check_lib_save_LIBS
27717fi
cristy8b350f62009-11-15 23:12:43 +000027718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027720if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 passed=`expr $passed + 1`
27722else
27723 failed=`expr $failed + 1`
27724fi
27725
cristy8b350f62009-11-15 23:12:43 +000027726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking if JBIG package is complete... " >&6; }
27728 if test $passed -gt 0; then
27729 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027731$as_echo "no -- some components failed test" >&6; }
27732 have_jbig='no (failed tests)'
27733 else
27734 JBIG_LIBS='-ljbig'
27735 LIBS="$JBIG_LIBS $LIBS"
27736
cristy8b350f62009-11-15 23:12:43 +000027737$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027738
cristy8b350f62009-11-15 23:12:43 +000027739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo "yes" >&6; }
27741 have_jbig='yes'
27742 fi
27743 else
cristy8b350f62009-11-15 23:12:43 +000027744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo "no" >&6; }
27746 fi
27747fi
27748 if test "$have_jbig" = 'yes'; then
27749 JBIG_DELEGATE_TRUE=
27750 JBIG_DELEGATE_FALSE='#'
27751else
27752 JBIG_DELEGATE_TRUE='#'
27753 JBIG_DELEGATE_FALSE=
27754fi
27755
27756
27757
27758
27759#
27760# Check for JPEG delegate library.
27761#
27762
27763# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027764if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027765 withval=$with_jpeg; with_jpeg=$withval
27766else
27767 with_jpeg='yes'
27768fi
27769
27770
27771if test "$with_jpeg" != 'yes'; then
27772 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27773fi
27774
27775have_jpeg='no'
27776JPEG_LIBS=''
27777if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027781$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027783$as_echo "" >&6; }
27784 failed=0
27785 passed=0
cristy8b350f62009-11-15 23:12:43 +000027786 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27787if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027788 passed=`expr $passed + 1`
27789else
27790 failed=`expr $failed + 1`
27791fi
27792
27793
cristy8b350f62009-11-15 23:12:43 +000027794 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27795if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027796 passed=`expr $passed + 1`
27797else
27798 failed=`expr $failed + 1`
27799fi
27800
27801
cristy8b350f62009-11-15 23:12:43 +000027802 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27803if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027804 passed=`expr $passed + 1`
27805else
27806 failed=`expr $failed + 1`
27807fi
27808
27809
cristy8b350f62009-11-15 23:12:43 +000027810 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27811if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027812 passed=`expr $passed + 1`
27813else
27814 failed=`expr $failed + 1`
27815fi
27816
27817
cristy8b350f62009-11-15 23:12:43 +000027818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027820if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027821 $as_echo_n "(cached) " >&6
27822else
27823 ac_check_lib_save_LIBS=$LIBS
27824LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027826/* end confdefs.h. */
27827
27828/* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27831#ifdef __cplusplus
27832extern "C"
27833#endif
27834char jpeg_read_header ();
27835int
27836main ()
27837{
27838return jpeg_read_header ();
27839 ;
27840 return 0;
27841}
27842_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027843if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027844 ac_cv_lib_jpeg_jpeg_read_header=yes
27845else
cristy8b350f62009-11-15 23:12:43 +000027846 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027847fi
cristy8b350f62009-11-15 23:12:43 +000027848rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027850LIBS=$ac_check_lib_save_LIBS
27851fi
cristy8b350f62009-11-15 23:12:43 +000027852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027854if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 passed=`expr $passed + 1`
27856else
27857 failed=`expr $failed + 1`
27858fi
27859
27860
27861# Test for compatible JPEG library
27862if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027864$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027865if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027866 $as_echo_n "(cached) " >&6
27867else
cristy8b350f62009-11-15 23:12:43 +000027868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869/* end confdefs.h. */
27870#include <stdio.h>
27871#include <stdlib.h>
27872#include <jpeglib.h>
27873
27874int
27875main ()
27876{
27877
27878#if JPEG_LIB_VERSION < 62
27879#error IJG JPEG library must be version 6b or newer!
27880#endif
27881return 0;
27882
27883 ;
27884 return 0;
27885}
27886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027887if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27889else
cristy8b350f62009-11-15 23:12:43 +000027890 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027891fi
cristy3ed852e2009-09-05 21:47:34 +000027892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893fi
cristy8b350f62009-11-15 23:12:43 +000027894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27896fi
cristy8b350f62009-11-15 23:12:43 +000027897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo_n "checking if JPEG package is complete... " >&6; }
27899 if test $passed -gt 0; then
27900 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo "no -- some components failed test" >&6; }
27903 have_jpeg='no (failed tests)'
27904 else
27905 JPEG_LIBS='-ljpeg'
27906 LIBS="$JPEG_LIBS $LIBS"
27907
cristy8b350f62009-11-15 23:12:43 +000027908$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027909
cristy8b350f62009-11-15 23:12:43 +000027910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027911$as_echo "yes" >&6; }
27912 have_jpeg='yes'
27913 fi
27914 else
cristy8b350f62009-11-15 23:12:43 +000027915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027916$as_echo "no" >&6; }
27917 fi
27918fi
27919 if test "$have_jpeg" = 'yes'; then
27920 JPEG_DELEGATE_TRUE=
27921 JPEG_DELEGATE_FALSE='#'
27922else
27923 JPEG_DELEGATE_TRUE='#'
27924 JPEG_DELEGATE_FALSE=
27925fi
27926
27927
27928
27929
27930#
27931# Check for JPEG Version 2 delegate library.
27932#
27933
27934# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027935if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027936 withval=$with_jp2; with_jp2=$withval
27937else
27938 with_jp2='yes'
27939fi
27940
27941
27942if test "$with_jp2" != 'yes'; then
27943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27944fi
27945
27946have_jp2='no'
27947JP2_LIBS=''
27948if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027950$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027952$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027954$as_echo "" >&6; }
27955 failed=0
27956 passed=0
cristy8b350f62009-11-15 23:12:43 +000027957 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27958if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 passed=`expr $passed + 1`
27960else
27961 failed=`expr $failed + 1`
27962fi
27963
27964
cristy8b350f62009-11-15 23:12:43 +000027965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027966$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027967if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027968 $as_echo_n "(cached) " >&6
27969else
27970 ac_check_lib_save_LIBS=$LIBS
27971LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027973/* end confdefs.h. */
27974
27975/* Override any GCC internal prototype to avoid an error.
27976 Use char because int might match the return type of a GCC
27977 builtin and then its argument prototype would still apply. */
27978#ifdef __cplusplus
27979extern "C"
27980#endif
27981char jas_stream_fopen ();
27982int
27983main ()
27984{
27985return jas_stream_fopen ();
27986 ;
27987 return 0;
27988}
27989_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027990if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027991 ac_cv_lib_jasper_jas_stream_fopen=yes
27992else
cristy8b350f62009-11-15 23:12:43 +000027993 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027994fi
cristy8b350f62009-11-15 23:12:43 +000027995rm -f core conftest.err conftest.$ac_objext \
27996 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027997LIBS=$ac_check_lib_save_LIBS
27998fi
cristy8b350f62009-11-15 23:12:43 +000027999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028000$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028001if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028002 passed=`expr $passed + 1`
28003else
28004 failed=`expr $failed + 1`
28005fi
28006
cristy8b350f62009-11-15 23:12:43 +000028007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028008$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28009 if test $passed -gt 0; then
28010 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo "no -- some components failed test" >&6; }
28013 have_jp2='no (failed tests)'
28014 else
28015 JP2_LIBS='-ljasper'
28016 LIBS="$JP2_LIBS $LIBS"
28017
cristy8b350f62009-11-15 23:12:43 +000028018$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028019
cristy8b350f62009-11-15 23:12:43 +000028020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028021$as_echo "yes" >&6; }
28022 have_jp2='yes'
28023 fi
28024 else
cristy8b350f62009-11-15 23:12:43 +000028025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028026$as_echo "no" >&6; }
28027 fi
28028fi
28029 if test "$have_jp2" = 'yes'; then
28030 JP2_DELEGATE_TRUE=
28031 JP2_DELEGATE_FALSE='#'
28032else
28033 JP2_DELEGATE_TRUE='#'
28034 JP2_DELEGATE_FALSE=
28035fi
28036
28037
28038
28039
28040#
28041# Check for LCMS delegate library.
28042#
cristy71203402010-06-18 13:12:03 +000028043# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028044
28045# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028046if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028047 withval=$with_lcms; with_lcms=$withval
28048else
28049 with_lcms='yes'
28050fi
28051
cristy71203402010-06-18 13:12:03 +000028052if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28054fi
28055
cristy71203402010-06-18 13:12:03 +000028056# Disable LCMS2.
28057
28058# Check whether --with-lcms2 was given.
28059if test "${with_lcms2+set}" = set; then :
28060 withval=$with_lcms2; with_lcms2=$withval
28061else
28062 with_lcms2='yes'
28063fi
28064
28065if test "$with_lcms2" != 'yes' ; then
28066 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28067fi
28068
28069have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028070LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028071if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028073$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28075$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028077$as_echo "" >&6; }
28078 failed=0
28079 passed=0
28080 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028081
28082 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028083 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28084if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28085 have_lcms_header='yes'
28086fi
28087
28088
28089 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028090
28091$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28092
cristy71203402010-06-18 13:12:03 +000028093 passed=`expr $passed + 1`
28094 fi
28095
28096 # Check for <lcms2/lcms2.h)
28097 if test "$have_lcms_header" != 'yes'; then
28098 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28099if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028100 have_lcms_header='yes'
28101fi
28102
28103
cristy71203402010-06-18 13:12:03 +000028104 if test "$have_lcms_header" = 'yes'; then
28105 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028106
cristy71203402010-06-18 13:12:03 +000028107$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028108
cristy71203402010-06-18 13:12:03 +000028109 fi
cristyd09bcf92010-03-25 03:04:45 +000028110 fi
cristy71203402010-06-18 13:12:03 +000028111
28112 # Failed to find lcms header?
28113 if test "$have_lcms_header" != 'yes'; then
28114 failed=`expr $failed + 1`
28115 fi
28116
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28118$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28119if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
cristyd09bcf92010-03-25 03:04:45 +000028120 $as_echo_n "(cached) " >&6
28121else
28122 ac_check_lib_save_LIBS=$LIBS
28123LIBS="-llcms2 $LIBS"
28124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28125/* end confdefs.h. */
28126
28127/* Override any GCC internal prototype to avoid an error.
28128 Use char because int might match the return type of a GCC
28129 builtin and then its argument prototype would still apply. */
28130#ifdef __cplusplus
28131extern "C"
28132#endif
cristy71203402010-06-18 13:12:03 +000028133char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028134int
28135main ()
28136{
cristy71203402010-06-18 13:12:03 +000028137return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028138 ;
28139 return 0;
28140}
28141_ACEOF
28142if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028143 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028144else
cristy71203402010-06-18 13:12:03 +000028145 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028146fi
28147rm -f core conftest.err conftest.$ac_objext \
28148 conftest$ac_exeext conftest.$ac_ext
28149LIBS=$ac_check_lib_save_LIBS
28150fi
cristy71203402010-06-18 13:12:03 +000028151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28152$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28153if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
cristyd09bcf92010-03-25 03:04:45 +000028154 passed=`expr $passed + 1`
28155else
28156 failed=`expr $failed + 1`
28157fi
28158
cristy71203402010-06-18 13:12:03 +000028159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28160$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028161 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028162 if test $failed -gt 0; then
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028164$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028165 have_lcms2='no (failed tests)'
28166 else
28167 LCMS_LIBS='-llcms2'
28168 LIBS="$LCMS_LIBS $LIBS"
28169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028170$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028171 have_lcms2='yes'
28172 fi
cristyd09bcf92010-03-25 03:04:45 +000028173 else
cristy71203402010-06-18 13:12:03 +000028174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028175$as_echo "no" >&6; }
28176 fi
28177fi
28178
cristy71203402010-06-18 13:12:03 +000028179#
28180# Check for LCMS v1 (1.11 or later)
28181#
28182if test $have_lcms2 = 'yes'; then
28183 with_lcms='no'
28184fi
28185
28186have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028187if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28189$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28191$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28193$as_echo "" >&6; }
28194 failed=0
28195 passed=0
28196 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028197
28198 # Check for <lcms.h>
28199 if test "$have_lcms_header" != 'yes'; then
28200 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028201if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028202 have_lcms_header='yes'
28203fi
28204
28205
cristy71203402010-06-18 13:12:03 +000028206 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028207 passed=`expr $passed + 1`
28208
cristy8b350f62009-11-15 23:12:43 +000028209$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028210
cristy71203402010-06-18 13:12:03 +000028211 fi
28212 fi
28213
28214 # Check for <lcms/lcms.h>
28215 if test "$have_lcms_header" != 'yes'; then
28216 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristy8b350f62009-11-15 23:12:43 +000028217if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028218 have_lcms_header='yes'
28219fi
28220
28221
cristy71203402010-06-18 13:12:03 +000028222 if test "$have_lcms_header" = 'yes'; then
28223 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028224
cristy8b350f62009-11-15 23:12:43 +000028225$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028226
cristy71203402010-06-18 13:12:03 +000028227 fi
cristy3ed852e2009-09-05 21:47:34 +000028228 fi
cristy71203402010-06-18 13:12:03 +000028229
28230 # Failed to find lcms header?
28231 if test "$have_lcms_header" != 'yes'; then
28232 failed=`expr $failed + 1`
28233 fi
28234
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28236$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28237if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 $as_echo_n "(cached) " >&6
28239else
28240 ac_check_lib_save_LIBS=$LIBS
28241LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028243/* end confdefs.h. */
28244
28245/* Override any GCC internal prototype to avoid an error.
28246 Use char because int might match the return type of a GCC
28247 builtin and then its argument prototype would still apply. */
28248#ifdef __cplusplus
28249extern "C"
28250#endif
cristy71203402010-06-18 13:12:03 +000028251char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028252int
28253main ()
28254{
cristy71203402010-06-18 13:12:03 +000028255return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028256 ;
28257 return 0;
28258}
28259_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028260if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028261 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028262else
cristy71203402010-06-18 13:12:03 +000028263 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028264fi
cristy8b350f62009-11-15 23:12:43 +000028265rm -f core conftest.err conftest.$ac_objext \
28266 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028267LIBS=$ac_check_lib_save_LIBS
28268fi
cristy71203402010-06-18 13:12:03 +000028269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28270$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28271if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028272 passed=`expr $passed + 1`
28273else
28274 failed=`expr $failed + 1`
28275fi
28276
cristy8b350f62009-11-15 23:12:43 +000028277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo_n "checking if LCMS package is complete... " >&6; }
28279 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028280 if test $failed -gt 0; then
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028282$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028283 have_lcms='no (failed tests)'
28284 else
28285 LCMS_LIBS='-llcms'
28286 LIBS="$LCMS_LIBS $LIBS"
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028288$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028289 have_lcms='yes'
28290 fi
cristy3ed852e2009-09-05 21:47:34 +000028291 else
cristy71203402010-06-18 13:12:03 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "no" >&6; }
28294 fi
28295fi
cristy71203402010-06-18 13:12:03 +000028296
28297 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028298 LCMS_DELEGATE_TRUE=
28299 LCMS_DELEGATE_FALSE='#'
28300else
28301 LCMS_DELEGATE_TRUE='#'
28302 LCMS_DELEGATE_FALSE=
28303fi
28304
cristy71203402010-06-18 13:12:03 +000028305if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28306
28307$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28308
28309fi
28310
cristy3ed852e2009-09-05 21:47:34 +000028311
28312
28313
28314#
28315# Check for the LQR (Liquid Rescale) delegate library.
28316#
28317
28318# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028319if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028320 withval=$with_lqr; with_lqr=$withval
28321else
28322 with_lqr='yes'
28323fi
28324
28325
28326if test "$with_lqr" != 'yes'; then
28327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28328fi
28329
28330have_lqr='no'
28331LQR_CFLAGS=""
28332LQR_LIBS=""
28333LQR_PKG=""
28334if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028336$as_echo "-------------------------------------------------------------" >&6; }
28337
28338pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028340$as_echo_n "checking for LQR... " >&6; }
28341
28342if test -n "$LQR_CFLAGS"; then
28343 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28344 elif test -n "$PKG_CONFIG"; then
28345 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028346 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028347 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28348 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28350 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028351 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28352else
28353 pkg_failed=yes
28354fi
28355 else
28356 pkg_failed=untried
28357fi
28358if test -n "$LQR_LIBS"; then
28359 pkg_cv_LQR_LIBS="$LQR_LIBS"
28360 elif test -n "$PKG_CONFIG"; then
28361 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028363 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28364 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28366 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028367 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28368else
28369 pkg_failed=yes
28370fi
28371 else
28372 pkg_failed=untried
28373fi
28374
28375
28376
28377if test $pkg_failed = yes; then
28378
28379if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28380 _pkg_short_errors_supported=yes
28381else
28382 _pkg_short_errors_supported=no
28383fi
28384 if test $_pkg_short_errors_supported = yes; then
28385 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28386 else
28387 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28388 fi
28389 # Put the nasty error message in config.log where it belongs
28390 echo "$LQR_PKG_ERRORS" >&5
28391
cristy8b350f62009-11-15 23:12:43 +000028392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028393$as_echo "no" >&6; }
28394 have_lqr=no
28395elif test $pkg_failed = untried; then
28396 have_lqr=no
28397else
28398 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28399 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028401$as_echo "yes" >&6; }
28402 have_lqr=yes
28403fi
cristy8b350f62009-11-15 23:12:43 +000028404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028405$as_echo "" >&6; }
28406fi
28407
28408if test "$have_lqr" = 'yes'; then
28409
cristy8b350f62009-11-15 23:12:43 +000028410$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028411
28412 CFLAGS="$LQR_CFLAGS $CFLAGS"
28413fi
28414
28415 if test "$have_lqr" = 'yes'; then
28416 LQR_DELEGATE_TRUE=
28417 LQR_DELEGATE_FALSE='#'
28418else
28419 LQR_DELEGATE_TRUE='#'
28420 LQR_DELEGATE_FALSE=
28421fi
28422
28423
28424
28425
28426
28427#
28428# Check for the OpenEXR delegate library.
28429#
28430
28431# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028432if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028433 withval=$with_openexr; with_openexr=$withval
28434else
28435 with_openexr='yes'
28436fi
28437
28438
28439if test "$with_openexr" != 'yes'; then
28440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28441fi
28442
28443have_openexr='no'
28444OPENEXR_CFLAGS=""
28445OPENEXR_LIBS=""
28446OPENEXR_PKG=""
28447if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo "-------------------------------------------------------------" >&6; }
28450
28451pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028453$as_echo_n "checking for OPENEXR... " >&6; }
28454
28455if test -n "$OPENEXR_CFLAGS"; then
28456 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28457 elif test -n "$PKG_CONFIG"; then
28458 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028459 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028460 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28461 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28463 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028464 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28465else
28466 pkg_failed=yes
28467fi
28468 else
28469 pkg_failed=untried
28470fi
28471if test -n "$OPENEXR_LIBS"; then
28472 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28473 elif test -n "$PKG_CONFIG"; then
28474 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028476 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28477 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28479 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028480 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28481else
28482 pkg_failed=yes
28483fi
28484 else
28485 pkg_failed=untried
28486fi
28487
28488
28489
28490if test $pkg_failed = yes; then
28491
28492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28493 _pkg_short_errors_supported=yes
28494else
28495 _pkg_short_errors_supported=no
28496fi
28497 if test $_pkg_short_errors_supported = yes; then
28498 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28499 else
28500 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28501 fi
28502 # Put the nasty error message in config.log where it belongs
28503 echo "$OPENEXR_PKG_ERRORS" >&5
28504
cristy8b350f62009-11-15 23:12:43 +000028505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo "no" >&6; }
28507 have_openexr=no
28508elif test $pkg_failed = untried; then
28509 have_openexr=no
28510else
28511 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28512 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028514$as_echo "yes" >&6; }
28515 have_openexr=yes
28516fi
cristy8b350f62009-11-15 23:12:43 +000028517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028518$as_echo "" >&6; }
28519fi
28520
28521if test "$have_openexr" = 'yes'; then
28522
cristy8b350f62009-11-15 23:12:43 +000028523$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028524
28525 if test "$with_modules" = 'no'; then
28526 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28527 fi
28528fi
28529
28530 if test "$have_openexr" = 'yes'; then
28531 OPENEXR_DELEGATE_TRUE=
28532 OPENEXR_DELEGATE_FALSE='#'
28533else
28534 OPENEXR_DELEGATE_TRUE='#'
28535 OPENEXR_DELEGATE_FALSE=
28536fi
28537
28538
28539
28540
28541
28542#
28543# Check for PNG delegate library.
28544#
28545
28546# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028547if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 withval=$with_png; with_png=$withval
28549else
28550 with_png='yes'
28551fi
28552
28553
28554if test "$with_png" != 'yes'; then
28555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28556fi
28557
28558have_png='no'
28559PNG_LIBS=''
28560if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028564$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028566$as_echo "" >&6; }
28567 failed=0
28568 passed=0
cristy8b350f62009-11-15 23:12:43 +000028569 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28570if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 passed=`expr $passed + 1`
28572else
28573 failed=`expr $failed + 1`
28574fi
28575
28576
cristy8b350f62009-11-15 23:12:43 +000028577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028578$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028579if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 $as_echo_n "(cached) " >&6
28581else
28582 ac_check_lib_save_LIBS=$LIBS
28583LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028585/* end confdefs.h. */
28586
28587/* Override any GCC internal prototype to avoid an error.
28588 Use char because int might match the return type of a GCC
28589 builtin and then its argument prototype would still apply. */
28590#ifdef __cplusplus
28591extern "C"
28592#endif
28593char png_get_io_ptr ();
28594int
28595main ()
28596{
28597return png_get_io_ptr ();
28598 ;
28599 return 0;
28600}
28601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028603 ac_cv_lib_png_png_get_io_ptr=yes
28604else
cristy8b350f62009-11-15 23:12:43 +000028605 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028606fi
cristy8b350f62009-11-15 23:12:43 +000028607rm -f core conftest.err conftest.$ac_objext \
28608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028609LIBS=$ac_check_lib_save_LIBS
28610fi
cristy8b350f62009-11-15 23:12:43 +000028611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028612$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028613if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028614 passed=`expr $passed + 1`
28615else
28616 failed=`expr $failed + 1`
28617fi
28618
cristy8b350f62009-11-15 23:12:43 +000028619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028620$as_echo_n "checking if PNG package is complete... " >&6; }
28621 if test $passed -gt 0; then
28622 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028624$as_echo "no -- some components failed test" >&6; }
28625 have_png='no (failed tests)'
28626 else
28627 PNG_LIBS='-lpng'
28628 LIBS="$PNG_LIBS $LIBS"
28629
cristy8b350f62009-11-15 23:12:43 +000028630$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028631
cristy8b350f62009-11-15 23:12:43 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo "yes" >&6; }
28634 have_png='yes'
28635 fi
28636 else
cristy8b350f62009-11-15 23:12:43 +000028637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028638$as_echo "no" >&6; }
28639 fi
28640fi
28641 if test "$have_png" = 'yes'; then
28642 PNG_DELEGATE_TRUE=
28643 PNG_DELEGATE_FALSE='#'
28644else
28645 PNG_DELEGATE_TRUE='#'
28646 PNG_DELEGATE_FALSE=
28647fi
28648
28649
28650
28651
28652#
28653# Check for RSVG delegate library.
28654#
28655
28656# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028657if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028658 withval=$with_rsvg; with_rsvg=$withval
28659else
28660 with_rsvg=$have_x
28661fi
28662
28663
28664if test "$with_rsvg" != 'yes'; then
28665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28666fi
28667
28668have_rsvg='no'
28669have_cairo='no'
28670RSVG_CFLAGS=""
28671RSVG_LIBS=""
28672RSVG_PKG=""
28673if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028675$as_echo "-------------------------------------------------------------" >&6; }
28676
28677pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo_n "checking for RSVG... " >&6; }
28680
28681if test -n "$RSVG_CFLAGS"; then
28682 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28683 elif test -n "$PKG_CONFIG"; then
28684 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028685 { { $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 +000028686 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28687 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28689 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028690 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28691else
28692 pkg_failed=yes
28693fi
28694 else
28695 pkg_failed=untried
28696fi
28697if test -n "$RSVG_LIBS"; then
28698 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28699 elif test -n "$PKG_CONFIG"; then
28700 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028701 { { $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 +000028702 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28703 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28705 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028706 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28707else
28708 pkg_failed=yes
28709fi
28710 else
28711 pkg_failed=untried
28712fi
28713
28714
28715
28716if test $pkg_failed = yes; then
28717
28718if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28719 _pkg_short_errors_supported=yes
28720else
28721 _pkg_short_errors_supported=no
28722fi
28723 if test $_pkg_short_errors_supported = yes; then
28724 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28725 else
28726 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28727 fi
28728 # Put the nasty error message in config.log where it belongs
28729 echo "$RSVG_PKG_ERRORS" >&5
28730
cristy8b350f62009-11-15 23:12:43 +000028731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028732$as_echo "no" >&6; }
28733 have_rsvg=no
28734elif test $pkg_failed = untried; then
28735 have_rsvg=no
28736else
28737 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28738 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028740$as_echo "yes" >&6; }
28741 have_rsvg=yes
28742fi
cristy8b350f62009-11-15 23:12:43 +000028743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028744$as_echo "" >&6; }
28745
28746pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028748$as_echo_n "checking for CAIRO_SVG... " >&6; }
28749
28750if test -n "$CAIRO_SVG_CFLAGS"; then
28751 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28752 elif test -n "$PKG_CONFIG"; then
28753 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028755 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28756 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28758 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028759 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28760else
28761 pkg_failed=yes
28762fi
28763 else
28764 pkg_failed=untried
28765fi
28766if test -n "$CAIRO_SVG_LIBS"; then
28767 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28768 elif test -n "$PKG_CONFIG"; then
28769 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028771 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28772 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28774 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028775 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28776else
28777 pkg_failed=yes
28778fi
28779 else
28780 pkg_failed=untried
28781fi
28782
28783
28784
28785if test $pkg_failed = yes; then
28786
28787if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28788 _pkg_short_errors_supported=yes
28789else
28790 _pkg_short_errors_supported=no
28791fi
28792 if test $_pkg_short_errors_supported = yes; then
28793 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28794 else
28795 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28796 fi
28797 # Put the nasty error message in config.log where it belongs
28798 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28799
cristy8b350f62009-11-15 23:12:43 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028801$as_echo "no" >&6; }
28802 have_cairo=no
28803elif test $pkg_failed = untried; then
28804 have_cairo=no
28805else
28806 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28807 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028809$as_echo "yes" >&6; }
28810 have_cairo=yes
28811fi
cristy8b350f62009-11-15 23:12:43 +000028812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028813$as_echo "" >&6; }
28814fi
28815
28816if test "$have_rsvg" = 'yes'; then
28817
cristy8b350f62009-11-15 23:12:43 +000028818$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028819
28820 if test "$with_modules" = 'no'; then
28821 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28822 fi
28823fi
28824
28825if test "$have_cairo" = 'yes'; then
28826
cristy8b350f62009-11-15 23:12:43 +000028827$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028828
28829 if test "$with_modules" = 'no'; then
28830 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28831 fi
28832fi
28833
28834 if test "$have_rsvg" = 'yes'; then
28835 RSVG_DELEGATE_TRUE=
28836 RSVG_DELEGATE_FALSE='#'
28837else
28838 RSVG_DELEGATE_TRUE='#'
28839 RSVG_DELEGATE_FALSE=
28840fi
28841
28842 if test "$have_cairo" = 'yes'; then
28843 CAIRO_DELEGATE_TRUE=
28844 CAIRO_DELEGATE_FALSE='#'
28845else
28846 CAIRO_DELEGATE_TRUE='#'
28847 CAIRO_DELEGATE_FALSE=
28848fi
28849
28850
28851
28852
28853
28854#
28855# Check for TIFF delegate library.
28856#
28857
28858# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028859if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028860 withval=$with_tiff; with_tiff=$withval
28861else
28862 with_tiff='yes'
28863fi
28864
28865
28866if test "$with_tiff" != 'yes'; then
28867 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28868fi
28869
28870have_tiff='no'
28871TIFF_LIBS=''
28872if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028874$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028876$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028878$as_echo "" >&6; }
28879 failed=0
28880 passed=0
cristy8b350f62009-11-15 23:12:43 +000028881 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28882if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028883 passed=`expr $passed + 1`
28884else
28885 failed=`expr $failed + 1`
28886fi
28887
28888
cristy8b350f62009-11-15 23:12:43 +000028889 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28890if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028891 passed=`expr $passed + 1`
28892else
28893 failed=`expr $failed + 1`
28894fi
28895
28896
cristy8b350f62009-11-15 23:12:43 +000028897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028898$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028899if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028900 $as_echo_n "(cached) " >&6
28901else
28902 ac_check_lib_save_LIBS=$LIBS
28903LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028905/* end confdefs.h. */
28906
28907/* Override any GCC internal prototype to avoid an error.
28908 Use char because int might match the return type of a GCC
28909 builtin and then its argument prototype would still apply. */
28910#ifdef __cplusplus
28911extern "C"
28912#endif
28913char TIFFOpen ();
28914int
28915main ()
28916{
28917return TIFFOpen ();
28918 ;
28919 return 0;
28920}
28921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028923 ac_cv_lib_tiff_TIFFOpen=yes
28924else
cristy8b350f62009-11-15 23:12:43 +000028925 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028926fi
cristy8b350f62009-11-15 23:12:43 +000028927rm -f core conftest.err conftest.$ac_objext \
28928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028929LIBS=$ac_check_lib_save_LIBS
28930fi
cristy8b350f62009-11-15 23:12:43 +000028931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028932$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028933if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028934 passed=`expr $passed + 1`
28935else
28936 failed=`expr $failed + 1`
28937fi
28938
cristy8b350f62009-11-15 23:12:43 +000028939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028941if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028942 $as_echo_n "(cached) " >&6
28943else
28944 ac_check_lib_save_LIBS=$LIBS
28945LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028947/* end confdefs.h. */
28948
28949/* Override any GCC internal prototype to avoid an error.
28950 Use char because int might match the return type of a GCC
28951 builtin and then its argument prototype would still apply. */
28952#ifdef __cplusplus
28953extern "C"
28954#endif
28955char TIFFClientOpen ();
28956int
28957main ()
28958{
28959return TIFFClientOpen ();
28960 ;
28961 return 0;
28962}
28963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 ac_cv_lib_tiff_TIFFClientOpen=yes
28966else
cristy8b350f62009-11-15 23:12:43 +000028967 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028968fi
cristy8b350f62009-11-15 23:12:43 +000028969rm -f core conftest.err conftest.$ac_objext \
28970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028971LIBS=$ac_check_lib_save_LIBS
28972fi
cristy8b350f62009-11-15 23:12:43 +000028973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028975if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 passed=`expr $passed + 1`
28977else
28978 failed=`expr $failed + 1`
28979fi
28980
cristyb97f1002010-07-26 14:02:57 +000028981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28982$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28983if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28984 $as_echo_n "(cached) " >&6
28985else
28986 ac_check_lib_save_LIBS=$LIBS
28987LIBS="-ltiff $LIBS"
28988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28989/* end confdefs.h. */
28990
28991/* Override any GCC internal prototype to avoid an error.
28992 Use char because int might match the return type of a GCC
28993 builtin and then its argument prototype would still apply. */
28994#ifdef __cplusplus
28995extern "C"
28996#endif
28997char TIFFIsBigEndian ();
28998int
28999main ()
29000{
29001return TIFFIsBigEndian ();
29002 ;
29003 return 0;
29004}
29005_ACEOF
29006if ac_fn_c_try_link "$LINENO"; then :
29007 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29008else
29009 ac_cv_lib_tiff_TIFFIsBigEndian=no
29010fi
29011rm -f core conftest.err conftest.$ac_objext \
29012 conftest$ac_exeext conftest.$ac_ext
29013LIBS=$ac_check_lib_save_LIBS
29014fi
29015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29016$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29017if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29018 passed=`expr $passed + 1`
29019else
29020 failed=`expr $failed + 1`
29021fi
29022
cristy8b350f62009-11-15 23:12:43 +000029023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029024$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029025if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029026 $as_echo_n "(cached) " >&6
29027else
29028 ac_check_lib_save_LIBS=$LIBS
29029LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029031/* end confdefs.h. */
29032
29033/* Override any GCC internal prototype to avoid an error.
29034 Use char because int might match the return type of a GCC
29035 builtin and then its argument prototype would still apply. */
29036#ifdef __cplusplus
29037extern "C"
29038#endif
29039char TIFFIsByteSwapped ();
29040int
29041main ()
29042{
29043return TIFFIsByteSwapped ();
29044 ;
29045 return 0;
29046}
29047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029048if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029049 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29050else
cristy8b350f62009-11-15 23:12:43 +000029051 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029052fi
cristy8b350f62009-11-15 23:12:43 +000029053rm -f core conftest.err conftest.$ac_objext \
29054 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029055LIBS=$ac_check_lib_save_LIBS
29056fi
cristy8b350f62009-11-15 23:12:43 +000029057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029058$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029059if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 passed=`expr $passed + 1`
29061else
29062 failed=`expr $failed + 1`
29063fi
29064
cristy8b350f62009-11-15 23:12:43 +000029065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029066$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029067if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029068 $as_echo_n "(cached) " >&6
29069else
29070 ac_check_lib_save_LIBS=$LIBS
29071LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029073/* end confdefs.h. */
29074
29075/* Override any GCC internal prototype to avoid an error.
29076 Use char because int might match the return type of a GCC
29077 builtin and then its argument prototype would still apply. */
29078#ifdef __cplusplus
29079extern "C"
29080#endif
29081char TIFFReadRGBATile ();
29082int
29083main ()
29084{
29085return TIFFReadRGBATile ();
29086 ;
29087 return 0;
29088}
29089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029090if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029091 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29092else
cristy8b350f62009-11-15 23:12:43 +000029093 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029094fi
cristy8b350f62009-11-15 23:12:43 +000029095rm -f core conftest.err conftest.$ac_objext \
29096 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029097LIBS=$ac_check_lib_save_LIBS
29098fi
cristy8b350f62009-11-15 23:12:43 +000029099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029100$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029101if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029102 passed=`expr $passed + 1`
29103else
29104 failed=`expr $failed + 1`
29105fi
29106
cristy8b350f62009-11-15 23:12:43 +000029107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029108$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029109if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029110 $as_echo_n "(cached) " >&6
29111else
29112 ac_check_lib_save_LIBS=$LIBS
29113LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029115/* end confdefs.h. */
29116
29117/* Override any GCC internal prototype to avoid an error.
29118 Use char because int might match the return type of a GCC
29119 builtin and then its argument prototype would still apply. */
29120#ifdef __cplusplus
29121extern "C"
29122#endif
29123char TIFFReadRGBAStrip ();
29124int
29125main ()
29126{
29127return TIFFReadRGBAStrip ();
29128 ;
29129 return 0;
29130}
29131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029133 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29134else
cristy8b350f62009-11-15 23:12:43 +000029135 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029136fi
cristy8b350f62009-11-15 23:12:43 +000029137rm -f core conftest.err conftest.$ac_objext \
29138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029139LIBS=$ac_check_lib_save_LIBS
29140fi
cristy8b350f62009-11-15 23:12:43 +000029141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029142$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029143if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029144 passed=`expr $passed + 1`
29145else
29146 failed=`expr $failed + 1`
29147fi
29148
cristy8b350f62009-11-15 23:12:43 +000029149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029150$as_echo_n "checking if TIFF package is complete... " >&6; }
29151 if test $passed -gt 0; then
29152 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo "no -- some components failed test" >&6; }
29155 have_tiff='no (failed tests)'
29156 else
29157 TIFF_LIBS='-ltiff'
29158 LIBS="$TIFF_LIBS $LIBS"
29159
cristy8b350f62009-11-15 23:12:43 +000029160$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029161
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "yes" >&6; }
29164 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029165 for ac_header in tiffconf.h
29166do :
29167 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29168if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029169 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029170#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029171_ACEOF
29172
29173fi
29174
29175done
29176
cristy8b350f62009-11-15 23:12:43 +000029177 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029178 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29179 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029180do :
29181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29182ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy5c40fb42010-08-05 16:12:44 +000029183eval as_val=\$$as_ac_var
29184 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029185 cat >>confdefs.h <<_ACEOF
29186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29187_ACEOF
29188
29189fi
29190done
29191
29192 fi
29193 else
cristy8b350f62009-11-15 23:12:43 +000029194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029195$as_echo "no" >&6; }
29196 fi
29197fi
29198 if test "$have_tiff" = 'yes'; then
29199 TIFF_DELEGATE_TRUE=
29200 TIFF_DELEGATE_FALSE='#'
29201else
29202 TIFF_DELEGATE_TRUE='#'
29203 TIFF_DELEGATE_FALSE=
29204fi
29205
29206
29207
29208
29209#
29210# Set Windows font directory.
29211#
29212
29213# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029214if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29216else
29217 with_windows_font_dir=''
29218fi
29219
29220if test "$with_windows_font_dir" != '' ; then
29221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29222fi
29223
29224
29225#
29226# Check for WMF delegate library.
29227#
29228
29229# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029230if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029231 withval=$with_wmf; with_wmf=$withval
29232else
cristy8d63d1d2010-01-06 20:38:37 +000029233 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029234fi
29235
29236
29237if test "$with_wmf" != 'yes'; then
29238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29239fi
29240
29241have_wmf='no'
29242WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029243if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029245$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029247$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029249$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029250 failed=0
29251 passed=0
29252 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29253if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29254 passed=`expr $passed + 1`
29255else
29256 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029257fi
29258
29259
cristy735e8942010-04-02 20:32:57 +000029260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29261$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29262if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029263 $as_echo_n "(cached) " >&6
29264else
29265 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029266LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029268/* end confdefs.h. */
29269
29270/* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29273#ifdef __cplusplus
29274extern "C"
29275#endif
cristy735e8942010-04-02 20:32:57 +000029276char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029277int
29278main ()
29279{
cristy735e8942010-04-02 20:32:57 +000029280return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029281 ;
29282 return 0;
29283}
29284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029285if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029286 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029287else
cristy735e8942010-04-02 20:32:57 +000029288 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029289fi
cristy8b350f62009-11-15 23:12:43 +000029290rm -f core conftest.err conftest.$ac_objext \
29291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029292LIBS=$ac_check_lib_save_LIBS
29293fi
cristy735e8942010-04-02 20:32:57 +000029294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29295$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29296if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29297 passed=`expr $passed + 1`
29298else
29299 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029300fi
29301
cristy735e8942010-04-02 20:32:57 +000029302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29303$as_echo_n "checking if WMF package is complete... " >&6; }
29304 if test $passed -gt 0; then
29305 if test $failed -gt 0; then
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29307$as_echo "no -- some components failed test" >&6; }
29308 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029309 else
cristy735e8942010-04-02 20:32:57 +000029310 WMF_LIBS='-lwmf -lwmflite'
29311 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029312
cristy8b350f62009-11-15 23:12:43 +000029313$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029314
cristy735e8942010-04-02 20:32:57 +000029315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029316$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029317 have_wmf='yes'
29318 fi
cristy3ed852e2009-09-05 21:47:34 +000029319 else
cristy8b350f62009-11-15 23:12:43 +000029320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029321$as_echo "no" >&6; }
29322 fi
29323fi
29324 if test "$have_wmf" = 'yes'; then
29325 WMF_DELEGATE_TRUE=
29326 WMF_DELEGATE_FALSE='#'
29327else
29328 WMF_DELEGATE_TRUE='#'
29329 WMF_DELEGATE_FALSE=
29330fi
29331
29332
29333
29334
29335
cristy735e8942010-04-02 20:32:57 +000029336
cristy3ed852e2009-09-05 21:47:34 +000029337#
29338# Check for XML delegate library.
29339#
29340
29341# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029342if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 withval=$with_xml; with_xml=$withval
29344else
29345 with_xml=$have_x
29346fi
29347
29348
29349if test "$with_xml" != 'yes' ; then
29350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29351fi
29352
29353have_xml='no'
29354XML_LIBS=''
29355if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029361$as_echo "" >&6; }
29362 PERSIST_LDFLAGS=$LDFLAGS
29363 PERSIST_CPPFLAGS=$CPPFLAGS
29364 xml2_config=''
29365 for ac_prog in xml2-config
29366do
29367 # Extract the first word of "$ac_prog", so it can be a program name with args.
29368set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029370$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029371if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 $as_echo_n "(cached) " >&6
29373else
29374 if test -n "$xml2_config"; then
29375 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29376else
29377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29378for as_dir in $PATH
29379do
29380 IFS=$as_save_IFS
29381 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029382 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29384 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029386 break 2
29387 fi
29388done
cristy8b350f62009-11-15 23:12:43 +000029389 done
cristy3ed852e2009-09-05 21:47:34 +000029390IFS=$as_save_IFS
29391
29392fi
29393fi
29394xml2_config=$ac_cv_prog_xml2_config
29395if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029397$as_echo "$xml2_config" >&6; }
29398else
cristy8b350f62009-11-15 23:12:43 +000029399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029400$as_echo "no" >&6; }
29401fi
29402
29403
29404 test -n "$xml2_config" && break
29405done
29406 if test -n "$xml2_config"; then
29407 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29408 # the shared library installed under /usr/lib, whereas the package
29409 # installs itself under $prefix/libxml and $prefix/lib.
29410 xml2_prefix=`xml2-config --prefix`
29411 if test -d "${xml2_prefix}/include/libxml2"; then
29412 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29413 fi
29414 if test "${xml2_prefix}" != '/usr'; then
29415 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29416 fi
29417 fi
29418 failed=0
29419 passed=0
cristy8b350f62009-11-15 23:12:43 +000029420 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29421if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029422 passed=`expr $passed + 1`
29423else
29424 failed=`expr $failed + 1`
29425fi
29426
29427
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029430if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029431 $as_echo_n "(cached) " >&6
29432else
29433 ac_check_lib_save_LIBS=$LIBS
29434LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029436/* end confdefs.h. */
29437
29438/* Override any GCC internal prototype to avoid an error.
29439 Use char because int might match the return type of a GCC
29440 builtin and then its argument prototype would still apply. */
29441#ifdef __cplusplus
29442extern "C"
29443#endif
29444char xmlParseExternalEntity ();
29445int
29446main ()
29447{
29448return xmlParseExternalEntity ();
29449 ;
29450 return 0;
29451}
29452_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029453if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29455else
cristy8b350f62009-11-15 23:12:43 +000029456 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029457fi
cristy8b350f62009-11-15 23:12:43 +000029458rm -f core conftest.err conftest.$ac_objext \
29459 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029460LIBS=$ac_check_lib_save_LIBS
29461fi
cristy8b350f62009-11-15 23:12:43 +000029462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029463$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029464if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029465 passed=`expr $passed + 1`
29466else
29467 failed=`expr $failed + 1`
29468fi
29469
cristy8b350f62009-11-15 23:12:43 +000029470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029471$as_echo_n "checking if XML package is complete... " >&6; }
29472 if test $passed -gt 0; then
29473 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029475$as_echo "no -- some components failed test" >&6; }
29476 have_xml='no (failed tests)'
29477 LDFLAGS="$PERSIST_LDFLAGS"
29478 CPPFLAGS="$PERSIST_CPPFLAGS"
29479 else
29480 XML_LIBS='-lxml2'
29481 LIBS="$XML_LIBS $LIBS"
29482
cristy8b350f62009-11-15 23:12:43 +000029483$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029484
cristy8b350f62009-11-15 23:12:43 +000029485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029486$as_echo "yes" >&6; }
29487 have_xml='yes'
29488 fi
29489 else
cristy8b350f62009-11-15 23:12:43 +000029490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029491$as_echo "no" >&6; }
29492 fi
29493fi
29494 if test "$have_xml" = 'yes'; then
29495 XML_DELEGATE_TRUE=
29496 XML_DELEGATE_FALSE='#'
29497else
29498 XML_DELEGATE_TRUE='#'
29499 XML_DELEGATE_FALSE=
29500fi
29501
29502
29503
29504
29505# Substitute compiler name to build/link PerlMagick
29506#
29507
29508
29509#
29510# Configure install Paths
29511#
29512
29513# Subdirectory under lib to place ImageMagick lib files
29514LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29515
29516cat >>confdefs.h <<_ACEOF
29517#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29518_ACEOF
29519
29520
29521# Path to ImageMagick bin directory
29522EXECUTABLE_PATH="${BIN_DIR}"
29523DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29524case "${build_os}" in
29525 mingw* )
29526 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29527 ;;
29528esac
29529
29530cat >>confdefs.h <<_ACEOF
29531#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29532_ACEOF
29533
29534
29535
29536# Path to ImageMagick lib
29537LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29538DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29539case "${build_os}" in
29540 mingw* )
29541 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29542 ;;
29543esac
29544
29545cat >>confdefs.h <<_ACEOF
29546#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29547_ACEOF
29548
29549
29550
29551# Subdirectory under lib to place ImageMagick configuration files
29552CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29553
29554cat >>confdefs.h <<_ACEOF
29555#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29556_ACEOF
29557
29558CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29559DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29560case "${build_os}" in
29561 mingw* )
29562 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29563 ;;
29564esac
29565
29566cat >>confdefs.h <<_ACEOF
29567#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29568_ACEOF
29569
29570
29571
29572#
29573# Subdirectory under lib to place ImageMagick coder module files
29574CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29575
29576cat >>confdefs.h <<_ACEOF
29577#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29578_ACEOF
29579
29580CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29581DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29582case "${build_os}" in
29583 mingw* )
29584 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29585 ;;
29586esac
29587
29588cat >>confdefs.h <<_ACEOF
29589#define CODER_PATH "$DEFINE_CODER_PATH"
29590_ACEOF
29591
29592
29593
29594#
29595# Subdirectory under lib to place ImageMagick filter module files
29596FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29597
29598cat >>confdefs.h <<_ACEOF
29599#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29600_ACEOF
29601
29602FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29603DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29604case "${build_os}" in
29605 mingw* )
29606 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29607 ;;
29608esac
29609
29610cat >>confdefs.h <<_ACEOF
29611#define FILTER_PATH "$DEFINE_FILTER_PATH"
29612_ACEOF
29613
29614
29615
29616#
29617# Path to ImageMagick documentation files
29618DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29619DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29620DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29621case "${build_os}" in
29622 mingw* )
29623 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29624 ;;
29625esac
29626
29627cat >>confdefs.h <<_ACEOF
29628#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29629_ACEOF
29630
29631
29632
29633#
29634# Path to ImageMagick share files
29635SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29636SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29637DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29638case "${build_os}" in
29639 mingw* )
29640 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29641 ;;
29642esac
29643
29644cat >>confdefs.h <<_ACEOF
29645#define SHARE_PATH "$DEFINE_SHARE_PATH"
29646_ACEOF
29647
29648
29649
29650# Subdirectory under share to place ImageMagick configuration files
29651SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29652
29653cat >>confdefs.h <<_ACEOF
29654#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29655_ACEOF
29656
29657SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29658DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29659case "${build_os}" in
29660 mingw* )
29661 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29662 ;;
29663esac
29664
29665cat >>confdefs.h <<_ACEOF
29666#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29667_ACEOF
29668
29669
29670
29671#
29672# program_transform_name is formed for use in a Makefile, so create a
29673# modified version for use in a shell script.
29674configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29675
29676# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029678$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029680$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029682$as_echo "" >&6; }
29683AutotraceDecodeDelegateDefault='autotrace'
29684AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029685BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029686BZIPDelegateDefault='bzip2'
29687BrowseDelegateDefault='xdg-open'
29688CGMDecodeDelegateDefault='ralcgm'
29689CatDelegateDefault='cat'
29690DNGDecodeDelegateDefault='ufraw-batch'
29691GVCDecodeDelegateDefault='dot'
29692DVIDecodeDelegateDefault='dvips'
29693EchoDelegateDefault='echo'
29694EditorDelegateDefault='xterm'
29695FIGDecodeDelegateDefault='fig2dev'
29696ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29697DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29698MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29699GnuplotDecodeDelegateDefault='gnuplot'
29700HDRDecodeDelegateDefault='ra_pfm'
29701HPGLDecodeDelegateDefault='hp2xx'
29702HTMLDecodeDelegateDefault='html2ps'
29703ILBMDecodeDelegateDefault='ilbmtoppm'
29704ILBMEncodeDelegateDefault='ppmtoilbm'
29705LPDelegateDefault='lp'
29706LPRDelegateDefault='lpr'
29707LZWDecodeDelegateDefault='uncompress'
29708LZWEncodeDelegateDefault='compress'
29709LaunchDelegateDefault='gimp'
29710MANDelegateDefault='groff'
29711MPEGDecodeDelegateDefault='ffmpeg'
29712MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029713MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029714MVDelegateDefault='mv'
29715PCLDelegateDefault='pcl6'
29716PGPDecodeDelegateDefault='pgpv'
29717POVDelegateDefault='povray'
29718if test "$native_win32_build" = 'yes'; then
29719 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029720elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029721 PSDelegateDefault='gsc'
29722else
29723 PSDelegateDefault='gs'
29724fi
29725RLEEncodeDelegateDefault='rawtorle'
29726RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029727RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029728SCANDecodeDelegateDefault='scanimage'
29729TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000029730UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000029731WMFDecodeDelegateDefault='wmf2eps'
29732WWWDecodeDelegateDefault='curl'
29733XPSDelegateDefault='gxps'
29734ZipDelegateDefault='gzip'
29735
29736# Search for delegates
29737# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29738set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029740$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029741if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029742 $as_echo_n "(cached) " >&6
29743else
29744 case $AutotraceDecodeDelegate in
29745 [\\/]* | ?:[\\/]*)
29746 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29747 ;;
29748 *)
29749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29750for as_dir in $PATH
29751do
29752 IFS=$as_save_IFS
29753 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029754 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29756 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029758 break 2
29759 fi
29760done
cristy8b350f62009-11-15 23:12:43 +000029761 done
cristy3ed852e2009-09-05 21:47:34 +000029762IFS=$as_save_IFS
29763
29764 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29765 ;;
29766esac
29767fi
29768AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29769if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029771$as_echo "$AutotraceDecodeDelegate" >&6; }
29772else
cristy8b350f62009-11-15 23:12:43 +000029773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029774$as_echo "no" >&6; }
29775fi
29776
29777
29778# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29779set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029781$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029782if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 $as_echo_n "(cached) " >&6
29784else
29785 case $AVIDecodeDelegate in
29786 [\\/]* | ?:[\\/]*)
29787 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29788 ;;
29789 *)
29790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29791for as_dir in $PATH
29792do
29793 IFS=$as_save_IFS
29794 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029795 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29797 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799 break 2
29800 fi
29801done
cristy8b350f62009-11-15 23:12:43 +000029802 done
cristy3ed852e2009-09-05 21:47:34 +000029803IFS=$as_save_IFS
29804
29805 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29806 ;;
29807esac
29808fi
29809AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29810if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029812$as_echo "$AVIDecodeDelegate" >&6; }
29813else
cristy8b350f62009-11-15 23:12:43 +000029814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029815$as_echo "no" >&6; }
29816fi
29817
29818
29819# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29820set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029823if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 $as_echo_n "(cached) " >&6
29825else
29826 case $BlenderDecodeDelegate in
29827 [\\/]* | ?:[\\/]*)
29828 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29829 ;;
29830 *)
29831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832for as_dir in $PATH
29833do
29834 IFS=$as_save_IFS
29835 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29838 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029840 break 2
29841 fi
29842done
cristy8b350f62009-11-15 23:12:43 +000029843 done
cristy3ed852e2009-09-05 21:47:34 +000029844IFS=$as_save_IFS
29845
29846 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29847 ;;
29848esac
29849fi
29850BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29851if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029853$as_echo "$BlenderDecodeDelegate" >&6; }
29854else
cristy8b350f62009-11-15 23:12:43 +000029855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "no" >&6; }
29857fi
29858
29859
29860# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29861set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029863$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029864if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029865 $as_echo_n "(cached) " >&6
29866else
29867 case $BZIPDelegate in
29868 [\\/]* | ?:[\\/]*)
29869 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29870 ;;
29871 *)
29872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873for as_dir in $PATH
29874do
29875 IFS=$as_save_IFS
29876 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29879 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881 break 2
29882 fi
29883done
cristy8b350f62009-11-15 23:12:43 +000029884 done
cristy3ed852e2009-09-05 21:47:34 +000029885IFS=$as_save_IFS
29886
29887 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29888 ;;
29889esac
29890fi
29891BZIPDelegate=$ac_cv_path_BZIPDelegate
29892if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029894$as_echo "$BZIPDelegate" >&6; }
29895else
cristy8b350f62009-11-15 23:12:43 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029897$as_echo "no" >&6; }
29898fi
29899
29900
29901# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29902set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029904$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029905if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 $as_echo_n "(cached) " >&6
29907else
29908 case $BrowseDelegate in
29909 [\\/]* | ?:[\\/]*)
29910 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29911 ;;
29912 *)
29913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914for as_dir in $PATH
29915do
29916 IFS=$as_save_IFS
29917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29920 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922 break 2
29923 fi
29924done
cristy8b350f62009-11-15 23:12:43 +000029925 done
cristy3ed852e2009-09-05 21:47:34 +000029926IFS=$as_save_IFS
29927
29928 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29929 ;;
29930esac
29931fi
29932BrowseDelegate=$ac_cv_path_BrowseDelegate
29933if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo "$BrowseDelegate" >&6; }
29936else
cristy8b350f62009-11-15 23:12:43 +000029937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029938$as_echo "no" >&6; }
29939fi
29940
29941
29942# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29943set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029945$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029946if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 $as_echo_n "(cached) " >&6
29948else
29949 case $CGMDecodeDelegate in
29950 [\\/]* | ?:[\\/]*)
29951 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29952 ;;
29953 *)
29954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955for as_dir in $PATH
29956do
29957 IFS=$as_save_IFS
29958 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029959 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29961 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029963 break 2
29964 fi
29965done
cristy8b350f62009-11-15 23:12:43 +000029966 done
cristy3ed852e2009-09-05 21:47:34 +000029967IFS=$as_save_IFS
29968
29969 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29970 ;;
29971esac
29972fi
29973CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29974if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029976$as_echo "$CGMDecodeDelegate" >&6; }
29977else
cristy8b350f62009-11-15 23:12:43 +000029978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029979$as_echo "no" >&6; }
29980fi
29981
29982
29983# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29984set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029986$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029987if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029988 $as_echo_n "(cached) " >&6
29989else
29990 case $CatDelegate in
29991 [\\/]* | ?:[\\/]*)
29992 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29993 ;;
29994 *)
29995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29996for as_dir in $PATH
29997do
29998 IFS=$as_save_IFS
29999 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030000 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30002 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030004 break 2
30005 fi
30006done
cristy8b350f62009-11-15 23:12:43 +000030007 done
cristy3ed852e2009-09-05 21:47:34 +000030008IFS=$as_save_IFS
30009
30010 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30011 ;;
30012esac
30013fi
30014CatDelegate=$ac_cv_path_CatDelegate
30015if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030017$as_echo "$CatDelegate" >&6; }
30018else
cristy8b350f62009-11-15 23:12:43 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030020$as_echo "no" >&6; }
30021fi
30022
30023
30024# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30025set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030028if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 $as_echo_n "(cached) " >&6
30030else
30031 case $DNGDecodeDelegate in
30032 [\\/]* | ?:[\\/]*)
30033 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30034 ;;
30035 *)
30036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037for as_dir in $PATH
30038do
30039 IFS=$as_save_IFS
30040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030045 break 2
30046 fi
30047done
cristy8b350f62009-11-15 23:12:43 +000030048 done
cristy3ed852e2009-09-05 21:47:34 +000030049IFS=$as_save_IFS
30050
30051 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30052 ;;
30053esac
30054fi
30055DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30056if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030058$as_echo "$DNGDecodeDelegate" >&6; }
30059else
cristy8b350f62009-11-15 23:12:43 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "no" >&6; }
30062fi
30063
30064
30065# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30066set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030068$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030069if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030070 $as_echo_n "(cached) " >&6
30071else
30072 case $GVCDecodeDelegate in
30073 [\\/]* | ?:[\\/]*)
30074 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30075 ;;
30076 *)
30077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30078for as_dir in $PATH
30079do
30080 IFS=$as_save_IFS
30081 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030082 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30084 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030086 break 2
30087 fi
30088done
cristy8b350f62009-11-15 23:12:43 +000030089 done
cristy3ed852e2009-09-05 21:47:34 +000030090IFS=$as_save_IFS
30091
30092 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30093 ;;
30094esac
30095fi
30096GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30097if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099$as_echo "$GVCDecodeDelegate" >&6; }
30100else
cristy8b350f62009-11-15 23:12:43 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030102$as_echo "no" >&6; }
30103fi
30104
30105
30106# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30107set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030109$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030110if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030111 $as_echo_n "(cached) " >&6
30112else
30113 case $DVIDecodeDelegate in
30114 [\\/]* | ?:[\\/]*)
30115 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30116 ;;
30117 *)
30118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30119for as_dir in $PATH
30120do
30121 IFS=$as_save_IFS
30122 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030123 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30125 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030127 break 2
30128 fi
30129done
cristy8b350f62009-11-15 23:12:43 +000030130 done
cristy3ed852e2009-09-05 21:47:34 +000030131IFS=$as_save_IFS
30132
30133 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30134 ;;
30135esac
30136fi
30137DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30138if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030140$as_echo "$DVIDecodeDelegate" >&6; }
30141else
cristy8b350f62009-11-15 23:12:43 +000030142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030143$as_echo "no" >&6; }
30144fi
30145
30146
30147# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30148set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030150$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030151if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030152 $as_echo_n "(cached) " >&6
30153else
30154 case $EchoDelegate in
30155 [\\/]* | ?:[\\/]*)
30156 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30157 ;;
30158 *)
30159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160for as_dir in $PATH
30161do
30162 IFS=$as_save_IFS
30163 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030164 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30166 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168 break 2
30169 fi
30170done
cristy8b350f62009-11-15 23:12:43 +000030171 done
cristy3ed852e2009-09-05 21:47:34 +000030172IFS=$as_save_IFS
30173
30174 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30175 ;;
30176esac
30177fi
30178EchoDelegate=$ac_cv_path_EchoDelegate
30179if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030181$as_echo "$EchoDelegate" >&6; }
30182else
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo "no" >&6; }
30185fi
30186
30187
30188# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30189set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030191$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030192if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030193 $as_echo_n "(cached) " >&6
30194else
30195 case $EditorDelegate in
30196 [\\/]* | ?:[\\/]*)
30197 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30198 ;;
30199 *)
30200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30201for as_dir in $PATH
30202do
30203 IFS=$as_save_IFS
30204 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030205 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30207 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030209 break 2
30210 fi
30211done
cristy8b350f62009-11-15 23:12:43 +000030212 done
cristy3ed852e2009-09-05 21:47:34 +000030213IFS=$as_save_IFS
30214
30215 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30216 ;;
30217esac
30218fi
30219EditorDelegate=$ac_cv_path_EditorDelegate
30220if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo "$EditorDelegate" >&6; }
30223else
cristy8b350f62009-11-15 23:12:43 +000030224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030225$as_echo "no" >&6; }
30226fi
30227
30228
30229# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30230set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030232$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030233if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030234 $as_echo_n "(cached) " >&6
30235else
30236 case $FIGDecodeDelegate in
30237 [\\/]* | ?:[\\/]*)
30238 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30239 ;;
30240 *)
30241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242for as_dir in $PATH
30243do
30244 IFS=$as_save_IFS
30245 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030246 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30248 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030250 break 2
30251 fi
30252done
cristy8b350f62009-11-15 23:12:43 +000030253 done
cristy3ed852e2009-09-05 21:47:34 +000030254IFS=$as_save_IFS
30255
30256 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30257 ;;
30258esac
30259fi
30260FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30261if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$FIGDecodeDelegate" >&6; }
30264else
cristy8b350f62009-11-15 23:12:43 +000030265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo "no" >&6; }
30267fi
30268
30269
30270# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30271set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030273$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030274if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030275 $as_echo_n "(cached) " >&6
30276else
30277 case $ConvertDelegate in
30278 [\\/]* | ?:[\\/]*)
30279 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30280 ;;
30281 *)
30282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30283for as_dir in $PATH
30284do
30285 IFS=$as_save_IFS
30286 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030287 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30289 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030291 break 2
30292 fi
30293done
cristy8b350f62009-11-15 23:12:43 +000030294 done
cristy3ed852e2009-09-05 21:47:34 +000030295IFS=$as_save_IFS
30296
30297 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30298 ;;
30299esac
30300fi
30301ConvertDelegate=$ac_cv_path_ConvertDelegate
30302if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030304$as_echo "$ConvertDelegate" >&6; }
30305else
cristy8b350f62009-11-15 23:12:43 +000030306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030307$as_echo "no" >&6; }
30308fi
30309
30310
30311# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30312set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030314$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030315if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030316 $as_echo_n "(cached) " >&6
30317else
30318 case $DisplayDelegate in
30319 [\\/]* | ?:[\\/]*)
30320 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30321 ;;
30322 *)
30323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30324for as_dir in $PATH
30325do
30326 IFS=$as_save_IFS
30327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30330 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030332 break 2
30333 fi
30334done
cristy8b350f62009-11-15 23:12:43 +000030335 done
cristy3ed852e2009-09-05 21:47:34 +000030336IFS=$as_save_IFS
30337
30338 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30339 ;;
30340esac
30341fi
30342DisplayDelegate=$ac_cv_path_DisplayDelegate
30343if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030345$as_echo "$DisplayDelegate" >&6; }
30346else
cristy8b350f62009-11-15 23:12:43 +000030347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030348$as_echo "no" >&6; }
30349fi
30350
30351
30352# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30353set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030355$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030356if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030357 $as_echo_n "(cached) " >&6
30358else
30359 case $MogrifyDelegate in
30360 [\\/]* | ?:[\\/]*)
30361 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30362 ;;
30363 *)
30364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30365for as_dir in $PATH
30366do
30367 IFS=$as_save_IFS
30368 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030369 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30371 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030373 break 2
30374 fi
30375done
cristy8b350f62009-11-15 23:12:43 +000030376 done
cristy3ed852e2009-09-05 21:47:34 +000030377IFS=$as_save_IFS
30378
30379 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30380 ;;
30381esac
30382fi
30383MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30384if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030386$as_echo "$MogrifyDelegate" >&6; }
30387else
cristy8b350f62009-11-15 23:12:43 +000030388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030389$as_echo "no" >&6; }
30390fi
30391
30392
30393# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30394set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030396$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030397if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030398 $as_echo_n "(cached) " >&6
30399else
30400 case $GnuplotDecodeDelegate in
30401 [\\/]* | ?:[\\/]*)
30402 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30403 ;;
30404 *)
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406for as_dir in $PATH
30407do
30408 IFS=$as_save_IFS
30409 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030410 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030414 break 2
30415 fi
30416done
cristy8b350f62009-11-15 23:12:43 +000030417 done
cristy3ed852e2009-09-05 21:47:34 +000030418IFS=$as_save_IFS
30419
30420 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30421 ;;
30422esac
30423fi
30424GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30425if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030427$as_echo "$GnuplotDecodeDelegate" >&6; }
30428else
cristy8b350f62009-11-15 23:12:43 +000030429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030430$as_echo "no" >&6; }
30431fi
30432
30433
30434# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30435set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030437$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030438if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030439 $as_echo_n "(cached) " >&6
30440else
30441 case $HDRDecodeDelegate in
30442 [\\/]* | ?:[\\/]*)
30443 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30444 ;;
30445 *)
30446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30447for as_dir in $PATH
30448do
30449 IFS=$as_save_IFS
30450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30453 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030455 break 2
30456 fi
30457done
cristy8b350f62009-11-15 23:12:43 +000030458 done
cristy3ed852e2009-09-05 21:47:34 +000030459IFS=$as_save_IFS
30460
30461 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30462 ;;
30463esac
30464fi
30465HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30466if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030468$as_echo "$HDRDecodeDelegate" >&6; }
30469else
cristy8b350f62009-11-15 23:12:43 +000030470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030471$as_echo "no" >&6; }
30472fi
30473
30474
30475# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30476set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030478$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030479if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030480 $as_echo_n "(cached) " >&6
30481else
30482 case $HPGLDecodeDelegate in
30483 [\\/]* | ?:[\\/]*)
30484 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30485 ;;
30486 *)
30487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488for as_dir in $PATH
30489do
30490 IFS=$as_save_IFS
30491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30494 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030496 break 2
30497 fi
30498done
cristy8b350f62009-11-15 23:12:43 +000030499 done
cristy3ed852e2009-09-05 21:47:34 +000030500IFS=$as_save_IFS
30501
30502 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30503 ;;
30504esac
30505fi
30506HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30507if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030509$as_echo "$HPGLDecodeDelegate" >&6; }
30510else
cristy8b350f62009-11-15 23:12:43 +000030511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030512$as_echo "no" >&6; }
30513fi
30514
30515
30516# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30517set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030519$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030520if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030521 $as_echo_n "(cached) " >&6
30522else
30523 case $HTMLDecodeDelegate in
30524 [\\/]* | ?:[\\/]*)
30525 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30526 ;;
30527 *)
30528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30529for as_dir in $PATH
30530do
30531 IFS=$as_save_IFS
30532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30535 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030537 break 2
30538 fi
30539done
cristy8b350f62009-11-15 23:12:43 +000030540 done
cristy3ed852e2009-09-05 21:47:34 +000030541IFS=$as_save_IFS
30542
30543 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30544 ;;
30545esac
30546fi
30547HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30548if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030550$as_echo "$HTMLDecodeDelegate" >&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# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30558set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030560$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030561if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030562 $as_echo_n "(cached) " >&6
30563else
30564 case $ILBMDecodeDelegate in
30565 [\\/]* | ?:[\\/]*)
30566 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30567 ;;
30568 *)
30569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570for as_dir in $PATH
30571do
30572 IFS=$as_save_IFS
30573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30576 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030578 break 2
30579 fi
30580done
cristy8b350f62009-11-15 23:12:43 +000030581 done
cristy3ed852e2009-09-05 21:47:34 +000030582IFS=$as_save_IFS
30583
30584 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30585 ;;
30586esac
30587fi
30588ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30589if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030591$as_echo "$ILBMDecodeDelegate" >&6; }
30592else
cristy8b350f62009-11-15 23:12:43 +000030593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030594$as_echo "no" >&6; }
30595fi
30596
30597
30598# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30599set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030602if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030603 $as_echo_n "(cached) " >&6
30604else
30605 case $ILBMEncodeDelegate in
30606 [\\/]* | ?:[\\/]*)
30607 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30608 ;;
30609 *)
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611for as_dir in $PATH
30612do
30613 IFS=$as_save_IFS
30614 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030615 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030619 break 2
30620 fi
30621done
cristy8b350f62009-11-15 23:12:43 +000030622 done
cristy3ed852e2009-09-05 21:47:34 +000030623IFS=$as_save_IFS
30624
30625 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30626 ;;
30627esac
30628fi
30629ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30630if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030632$as_echo "$ILBMEncodeDelegate" >&6; }
30633else
cristy8b350f62009-11-15 23:12:43 +000030634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030635$as_echo "no" >&6; }
30636fi
30637
30638
30639# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30640set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030642$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030643if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030644 $as_echo_n "(cached) " >&6
30645else
30646 case $LPDelegate in
30647 [\\/]* | ?:[\\/]*)
30648 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30649 ;;
30650 *)
30651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30652for as_dir in $PATH
30653do
30654 IFS=$as_save_IFS
30655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30658 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030660 break 2
30661 fi
30662done
cristy8b350f62009-11-15 23:12:43 +000030663 done
cristy3ed852e2009-09-05 21:47:34 +000030664IFS=$as_save_IFS
30665
30666 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30667 ;;
30668esac
30669fi
30670LPDelegate=$ac_cv_path_LPDelegate
30671if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030673$as_echo "$LPDelegate" >&6; }
30674else
cristy8b350f62009-11-15 23:12:43 +000030675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030676$as_echo "no" >&6; }
30677fi
30678
30679
30680# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30681set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030683$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030684if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030685 $as_echo_n "(cached) " >&6
30686else
30687 case $LPRDelegate in
30688 [\\/]* | ?:[\\/]*)
30689 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30690 ;;
30691 *)
30692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30693for as_dir in $PATH
30694do
30695 IFS=$as_save_IFS
30696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30699 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030701 break 2
30702 fi
30703done
cristy8b350f62009-11-15 23:12:43 +000030704 done
cristy3ed852e2009-09-05 21:47:34 +000030705IFS=$as_save_IFS
30706
30707 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30708 ;;
30709esac
30710fi
30711LPRDelegate=$ac_cv_path_LPRDelegate
30712if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030714$as_echo "$LPRDelegate" >&6; }
30715else
cristy8b350f62009-11-15 23:12:43 +000030716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030717$as_echo "no" >&6; }
30718fi
30719
30720
30721# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30722set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030724$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030725if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030726 $as_echo_n "(cached) " >&6
30727else
30728 case $LZWDecodeDelegate in
30729 [\\/]* | ?:[\\/]*)
30730 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30731 ;;
30732 *)
30733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30734for as_dir in $PATH
30735do
30736 IFS=$as_save_IFS
30737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30740 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742 break 2
30743 fi
30744done
cristy8b350f62009-11-15 23:12:43 +000030745 done
cristy3ed852e2009-09-05 21:47:34 +000030746IFS=$as_save_IFS
30747
30748 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30749 ;;
30750esac
30751fi
30752LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30753if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030755$as_echo "$LZWDecodeDelegate" >&6; }
30756else
cristy8b350f62009-11-15 23:12:43 +000030757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030758$as_echo "no" >&6; }
30759fi
30760
30761
30762# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30763set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030765$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030766if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030767 $as_echo_n "(cached) " >&6
30768else
30769 case $LZWEncodeDelegate in
30770 [\\/]* | ?:[\\/]*)
30771 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30772 ;;
30773 *)
30774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30775for as_dir in $PATH
30776do
30777 IFS=$as_save_IFS
30778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30781 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030783 break 2
30784 fi
30785done
cristy8b350f62009-11-15 23:12:43 +000030786 done
cristy3ed852e2009-09-05 21:47:34 +000030787IFS=$as_save_IFS
30788
30789 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30790 ;;
30791esac
30792fi
30793LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30794if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030796$as_echo "$LZWEncodeDelegate" >&6; }
30797else
cristy8b350f62009-11-15 23:12:43 +000030798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030799$as_echo "no" >&6; }
30800fi
30801
30802
30803# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30804set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030806$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030807if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030808 $as_echo_n "(cached) " >&6
30809else
30810 case $LaunchDelegate in
30811 [\\/]* | ?:[\\/]*)
30812 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30813 ;;
30814 *)
30815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816for as_dir in $PATH
30817do
30818 IFS=$as_save_IFS
30819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30822 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030824 break 2
30825 fi
30826done
cristy8b350f62009-11-15 23:12:43 +000030827 done
cristy3ed852e2009-09-05 21:47:34 +000030828IFS=$as_save_IFS
30829
30830 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30831 ;;
30832esac
30833fi
30834LaunchDelegate=$ac_cv_path_LaunchDelegate
30835if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030837$as_echo "$LaunchDelegate" >&6; }
30838else
cristy8b350f62009-11-15 23:12:43 +000030839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030840$as_echo "no" >&6; }
30841fi
30842
30843
30844# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30845set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030847$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030848if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030849 $as_echo_n "(cached) " >&6
30850else
30851 case $MANDelegate in
30852 [\\/]* | ?:[\\/]*)
30853 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30854 ;;
30855 *)
30856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30857for as_dir in $PATH
30858do
30859 IFS=$as_save_IFS
30860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30863 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030865 break 2
30866 fi
30867done
cristy8b350f62009-11-15 23:12:43 +000030868 done
cristy3ed852e2009-09-05 21:47:34 +000030869IFS=$as_save_IFS
30870
30871 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30872 ;;
30873esac
30874fi
30875MANDelegate=$ac_cv_path_MANDelegate
30876if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030878$as_echo "$MANDelegate" >&6; }
30879else
cristy8b350f62009-11-15 23:12:43 +000030880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030881$as_echo "no" >&6; }
30882fi
30883
30884
30885# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30886set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030888$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030889if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030890 $as_echo_n "(cached) " >&6
30891else
30892 case $MPEGDecodeDelegate in
30893 [\\/]* | ?:[\\/]*)
30894 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30895 ;;
30896 *)
30897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898for as_dir in $PATH
30899do
30900 IFS=$as_save_IFS
30901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30904 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030906 break 2
30907 fi
30908done
cristy8b350f62009-11-15 23:12:43 +000030909 done
cristy3ed852e2009-09-05 21:47:34 +000030910IFS=$as_save_IFS
30911
30912 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30913 ;;
30914esac
30915fi
30916MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30917if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030919$as_echo "$MPEGDecodeDelegate" >&6; }
30920else
cristy8b350f62009-11-15 23:12:43 +000030921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030922$as_echo "no" >&6; }
30923fi
30924
30925
30926# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30927set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030930if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030931 $as_echo_n "(cached) " >&6
30932else
30933 case $MPEGEncodeDelegate in
30934 [\\/]* | ?:[\\/]*)
30935 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30936 ;;
30937 *)
30938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30939for as_dir in $PATH
30940do
30941 IFS=$as_save_IFS
30942 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030943 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30945 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030947 break 2
30948 fi
30949done
cristy8b350f62009-11-15 23:12:43 +000030950 done
cristy3ed852e2009-09-05 21:47:34 +000030951IFS=$as_save_IFS
30952
30953 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30954 ;;
30955esac
30956fi
30957MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30958if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030960$as_echo "$MPEGEncodeDelegate" >&6; }
30961else
cristy8b350f62009-11-15 23:12:43 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030963$as_echo "no" >&6; }
30964fi
30965
30966
cristy935c86e2010-06-05 23:50:07 +000030967# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30968set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30970$as_echo_n "checking for $ac_word... " >&6; }
30971if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30972 $as_echo_n "(cached) " >&6
30973else
30974 case $MrSIDDecodeDelegate in
30975 [\\/]* | ?:[\\/]*)
30976 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30977 ;;
30978 *)
30979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30980for as_dir in $PATH
30981do
30982 IFS=$as_save_IFS
30983 test -z "$as_dir" && as_dir=.
30984 for ac_exec_ext in '' $ac_executable_extensions; do
30985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30986 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30988 break 2
30989 fi
30990done
30991 done
30992IFS=$as_save_IFS
30993
30994 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30995 ;;
30996esac
30997fi
30998MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30999if test -n "$MrSIDDecodeDelegate"; then
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31001$as_echo "$MrSIDDecodeDelegate" >&6; }
31002else
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31004$as_echo "no" >&6; }
31005fi
31006
31007
cristy3ed852e2009-09-05 21:47:34 +000031008# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31009set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031011$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031012if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031013 $as_echo_n "(cached) " >&6
31014else
31015 case $MVDelegate in
31016 [\\/]* | ?:[\\/]*)
31017 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31018 ;;
31019 *)
31020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31021for as_dir in $PATH
31022do
31023 IFS=$as_save_IFS
31024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31027 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031029 break 2
31030 fi
31031done
cristy8b350f62009-11-15 23:12:43 +000031032 done
cristy3ed852e2009-09-05 21:47:34 +000031033IFS=$as_save_IFS
31034
31035 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31036 ;;
31037esac
31038fi
31039MVDelegate=$ac_cv_path_MVDelegate
31040if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031042$as_echo "$MVDelegate" >&6; }
31043else
cristy8b350f62009-11-15 23:12:43 +000031044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031045$as_echo "no" >&6; }
31046fi
31047
31048
31049# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31050set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031052$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031053if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031054 $as_echo_n "(cached) " >&6
31055else
31056 case $PCLDelegate in
31057 [\\/]* | ?:[\\/]*)
31058 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31059 ;;
31060 *)
31061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31062for as_dir in $PATH
31063do
31064 IFS=$as_save_IFS
31065 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31068 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031070 break 2
31071 fi
31072done
cristy8b350f62009-11-15 23:12:43 +000031073 done
cristy3ed852e2009-09-05 21:47:34 +000031074IFS=$as_save_IFS
31075
31076 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31077 ;;
31078esac
31079fi
31080PCLDelegate=$ac_cv_path_PCLDelegate
31081if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031083$as_echo "$PCLDelegate" >&6; }
31084else
cristy8b350f62009-11-15 23:12:43 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031086$as_echo "no" >&6; }
31087fi
31088
31089
31090# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31091set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031093$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031094if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031095 $as_echo_n "(cached) " >&6
31096else
31097 case $PGPDecodeDelegate in
31098 [\\/]* | ?:[\\/]*)
31099 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31100 ;;
31101 *)
31102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31103for as_dir in $PATH
31104do
31105 IFS=$as_save_IFS
31106 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031107 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31109 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031111 break 2
31112 fi
31113done
cristy8b350f62009-11-15 23:12:43 +000031114 done
cristy3ed852e2009-09-05 21:47:34 +000031115IFS=$as_save_IFS
31116
31117 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31118 ;;
31119esac
31120fi
31121PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31122if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124$as_echo "$PGPDecodeDelegate" >&6; }
31125else
cristy8b350f62009-11-15 23:12:43 +000031126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031127$as_echo "no" >&6; }
31128fi
31129
31130
31131# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31132set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031134$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031135if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031136 $as_echo_n "(cached) " >&6
31137else
31138 case $POVDelegate in
31139 [\\/]* | ?:[\\/]*)
31140 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31141 ;;
31142 *)
31143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31144for as_dir in $PATH
31145do
31146 IFS=$as_save_IFS
31147 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031148 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31150 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031152 break 2
31153 fi
31154done
cristy8b350f62009-11-15 23:12:43 +000031155 done
cristy3ed852e2009-09-05 21:47:34 +000031156IFS=$as_save_IFS
31157
31158 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31159 ;;
31160esac
31161fi
31162POVDelegate=$ac_cv_path_POVDelegate
31163if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031165$as_echo "$POVDelegate" >&6; }
31166else
cristy8b350f62009-11-15 23:12:43 +000031167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031168$as_echo "no" >&6; }
31169fi
31170
31171
31172for ac_prog in gsx gsc "$PSDelegateDefault"
31173do
31174 # Extract the first word of "$ac_prog", so it can be a program name with args.
31175set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031177$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031178if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031179 $as_echo_n "(cached) " >&6
31180else
31181 case $PSDelegate in
31182 [\\/]* | ?:[\\/]*)
31183 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31184 ;;
31185 *)
31186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31187for as_dir in $PATH
31188do
31189 IFS=$as_save_IFS
31190 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031191 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31193 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031195 break 2
31196 fi
31197done
cristy8b350f62009-11-15 23:12:43 +000031198 done
cristy3ed852e2009-09-05 21:47:34 +000031199IFS=$as_save_IFS
31200
31201 ;;
31202esac
31203fi
31204PSDelegate=$ac_cv_path_PSDelegate
31205if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031207$as_echo "$PSDelegate" >&6; }
31208else
cristy8b350f62009-11-15 23:12:43 +000031209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031210$as_echo "no" >&6; }
31211fi
31212
31213
31214 test -n "$PSDelegate" && break
31215done
31216test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31217
31218# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31219set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031222if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031223 $as_echo_n "(cached) " >&6
31224else
31225 case $RLEEncodeDelegate in
31226 [\\/]* | ?:[\\/]*)
31227 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31228 ;;
31229 *)
31230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231for as_dir in $PATH
31232do
31233 IFS=$as_save_IFS
31234 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031235 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31237 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031239 break 2
31240 fi
31241done
cristy8b350f62009-11-15 23:12:43 +000031242 done
cristy3ed852e2009-09-05 21:47:34 +000031243IFS=$as_save_IFS
31244
31245 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31246 ;;
31247esac
31248fi
31249RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31250if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031252$as_echo "$RLEEncodeDelegate" >&6; }
31253else
cristy8b350f62009-11-15 23:12:43 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031255$as_echo "no" >&6; }
31256fi
31257
31258
31259# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31260set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031263if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031264 $as_echo_n "(cached) " >&6
31265else
31266 case $RMDelegate in
31267 [\\/]* | ?:[\\/]*)
31268 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31269 ;;
31270 *)
31271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31272for as_dir in $PATH
31273do
31274 IFS=$as_save_IFS
31275 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31278 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031280 break 2
31281 fi
31282done
cristy8b350f62009-11-15 23:12:43 +000031283 done
cristy3ed852e2009-09-05 21:47:34 +000031284IFS=$as_save_IFS
31285
31286 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31287 ;;
31288esac
31289fi
31290RMDelegate=$ac_cv_path_RMDelegate
31291if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031293$as_echo "$RMDelegate" >&6; }
31294else
cristy8b350f62009-11-15 23:12:43 +000031295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031296$as_echo "no" >&6; }
31297fi
31298
31299
cristy4689cf02010-02-17 21:15:45 +000031300# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31301set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31303$as_echo_n "checking for $ac_word... " >&6; }
31304if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31305 $as_echo_n "(cached) " >&6
31306else
31307 case $RSVGDecodeDelegate in
31308 [\\/]* | ?:[\\/]*)
31309 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31310 ;;
31311 *)
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313for as_dir in $PATH
31314do
31315 IFS=$as_save_IFS
31316 test -z "$as_dir" && as_dir=.
31317 for ac_exec_ext in '' $ac_executable_extensions; do
31318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31319 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31321 break 2
31322 fi
31323done
31324 done
31325IFS=$as_save_IFS
31326
31327 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31328 ;;
31329esac
31330fi
31331RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31332if test -n "$RSVGDecodeDelegate"; then
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31334$as_echo "$RSVGDecodeDelegate" >&6; }
31335else
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31337$as_echo "no" >&6; }
31338fi
31339
31340
cristy3ed852e2009-09-05 21:47:34 +000031341# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31342set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031345if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031346 $as_echo_n "(cached) " >&6
31347else
31348 case $SCANDecodeDelegate in
31349 [\\/]* | ?:[\\/]*)
31350 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31351 ;;
31352 *)
31353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31354for as_dir in $PATH
31355do
31356 IFS=$as_save_IFS
31357 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031358 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31360 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031362 break 2
31363 fi
31364done
cristy8b350f62009-11-15 23:12:43 +000031365 done
cristy3ed852e2009-09-05 21:47:34 +000031366IFS=$as_save_IFS
31367
31368 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31369 ;;
31370esac
31371fi
31372SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31373if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031375$as_echo "$SCANDecodeDelegate" >&6; }
31376else
cristy8b350f62009-11-15 23:12:43 +000031377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031378$as_echo "no" >&6; }
31379fi
31380
31381
31382# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31383set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031386if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031387 $as_echo_n "(cached) " >&6
31388else
31389 case $TXTDelegate in
31390 [\\/]* | ?:[\\/]*)
31391 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31392 ;;
31393 *)
31394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395for as_dir in $PATH
31396do
31397 IFS=$as_save_IFS
31398 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403 break 2
31404 fi
31405done
cristy8b350f62009-11-15 23:12:43 +000031406 done
cristy3ed852e2009-09-05 21:47:34 +000031407IFS=$as_save_IFS
31408
31409 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31410 ;;
31411esac
31412fi
31413TXTDelegate=$ac_cv_path_TXTDelegate
31414if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031416$as_echo "$TXTDelegate" >&6; }
31417else
cristy8b350f62009-11-15 23:12:43 +000031418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031419$as_echo "no" >&6; }
31420fi
31421
31422
cristy5ac9ac82010-07-29 13:24:24 +000031423# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31424set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31426$as_echo_n "checking for $ac_word... " >&6; }
31427if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31428 $as_echo_n "(cached) " >&6
31429else
31430 case $UniconvertorDelegate in
31431 [\\/]* | ?:[\\/]*)
31432 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31433 ;;
31434 *)
31435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436for as_dir in $PATH
31437do
31438 IFS=$as_save_IFS
31439 test -z "$as_dir" && as_dir=.
31440 for ac_exec_ext in '' $ac_executable_extensions; do
31441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31444 break 2
31445 fi
31446done
31447 done
31448IFS=$as_save_IFS
31449
31450 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31451 ;;
31452esac
31453fi
31454UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31455if test -n "$UniconvertorDelegate"; then
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31457$as_echo "$UniconvertorDelegate" >&6; }
31458else
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31460$as_echo "no" >&6; }
31461fi
31462
31463
cristy3ed852e2009-09-05 21:47:34 +000031464# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31465set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031468if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031469 $as_echo_n "(cached) " >&6
31470else
31471 case $WMFDecodeDelegate in
31472 [\\/]* | ?:[\\/]*)
31473 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31474 ;;
31475 *)
31476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31477for as_dir in $PATH
31478do
31479 IFS=$as_save_IFS
31480 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31483 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031485 break 2
31486 fi
31487done
cristy8b350f62009-11-15 23:12:43 +000031488 done
cristy3ed852e2009-09-05 21:47:34 +000031489IFS=$as_save_IFS
31490
31491 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31492 ;;
31493esac
31494fi
31495WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31496if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo "$WMFDecodeDelegate" >&6; }
31499else
cristy8b350f62009-11-15 23:12:43 +000031500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031501$as_echo "no" >&6; }
31502fi
31503
31504
31505# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31506set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031509if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031510 $as_echo_n "(cached) " >&6
31511else
31512 case $WWWDecodeDelegate in
31513 [\\/]* | ?:[\\/]*)
31514 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31515 ;;
31516 *)
31517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518for as_dir in $PATH
31519do
31520 IFS=$as_save_IFS
31521 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031522 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031526 break 2
31527 fi
31528done
cristy8b350f62009-11-15 23:12:43 +000031529 done
cristy3ed852e2009-09-05 21:47:34 +000031530IFS=$as_save_IFS
31531
31532 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31533 ;;
31534esac
31535fi
31536WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31537if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031539$as_echo "$WWWDecodeDelegate" >&6; }
31540else
cristy8b350f62009-11-15 23:12:43 +000031541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031542$as_echo "no" >&6; }
31543fi
31544
31545
31546# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31547set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031550if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031551 $as_echo_n "(cached) " >&6
31552else
31553 case $XPSDelegate in
31554 [\\/]* | ?:[\\/]*)
31555 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31556 ;;
31557 *)
31558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31559for as_dir in $PATH
31560do
31561 IFS=$as_save_IFS
31562 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31565 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031567 break 2
31568 fi
31569done
cristy8b350f62009-11-15 23:12:43 +000031570 done
cristy3ed852e2009-09-05 21:47:34 +000031571IFS=$as_save_IFS
31572
31573 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31574 ;;
31575esac
31576fi
31577XPSDelegate=$ac_cv_path_XPSDelegate
31578if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo "$XPSDelegate" >&6; }
31581else
cristy8b350f62009-11-15 23:12:43 +000031582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031583$as_echo "no" >&6; }
31584fi
31585
31586
31587# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31588set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031591if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031592 $as_echo_n "(cached) " >&6
31593else
31594 case $ZipDelegate in
31595 [\\/]* | ?:[\\/]*)
31596 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31597 ;;
31598 *)
31599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31600for as_dir in $PATH
31601do
31602 IFS=$as_save_IFS
31603 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31606 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031608 break 2
31609 fi
31610done
cristy8b350f62009-11-15 23:12:43 +000031611 done
cristy3ed852e2009-09-05 21:47:34 +000031612IFS=$as_save_IFS
31613
31614 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31615 ;;
31616esac
31617fi
31618ZipDelegate=$ac_cv_path_ZipDelegate
31619if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031621$as_echo "$ZipDelegate" >&6; }
31622else
cristy8b350f62009-11-15 23:12:43 +000031623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031624$as_echo "no" >&6; }
31625fi
31626
31627
31628
31629# Prefer lpr to lp; lp needs options tacked on.
31630if test "$LPRDelegate" != no; then
31631 PrintDelegate="$LPRDelegate"
31632else
31633 PrintDelegate="$LPDelegate -c -s"
31634fi
31635
31636
31637# Installed ImageMagick utiltity paths
31638ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31639DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31640MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31641
31642# Set delegate booleans
31643have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31644have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31645have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31646have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31647have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31648have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031649have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031650have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31651have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31652have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31653have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31654have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31655
31656#
31657# Test for font directories
31658#
31659type_include_files=''
31660
cristy430a7312010-01-21 20:44:04 +000031661# Dejavu fonts.
31662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31663$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31664dejavu_font_dir=''
31665if test "${with_dejavu_font_dir}" != 'default'; then
31666 dejavu_font_dir="${with_dejavu_font_dir}/"
31667else
31668 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31669 if test -f "${font_dir}DejaVuSerif.ttf"; then
31670 dejavu_font_dir="${font_dir}"
31671 break 1
31672 fi
31673 done
31674fi
31675if test "${dejavu_font_dir}x" != 'x'; then
31676 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31678$as_echo "$dejavu_font_dir" >&6; }
31679else
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31681$as_echo "not found!" >&6; };
31682fi
31683
31684
cristy3ed852e2009-09-05 21:47:34 +000031685# Windows
31686windows_font_dir=''
31687if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31688 windows_font_dir="${with_windows_font_dir}/"
31689fi
cristy430a7312010-01-21 20:44:04 +000031690if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031691 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31692 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31693 fi
31694 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31695 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31696 fi
31697 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31698 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31699 fi
31700fi
cristy430a7312010-01-21 20:44:04 +000031701if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031702 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31703fi
31704
31705
31706# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031708$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31709ghostscript_font_dir=''
31710if test "${with_gs_font_dir}" != 'default'; then
31711 ghostscript_font_dir="${with_gs_font_dir}/"
31712else
31713 if test "${native_win32_build}" = 'yes'; then
31714 # Native Windows Build
31715 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31716 if test -f "${font_dir}a010013l.pfb"; then
31717 ghostscript_font_dir="$font_dir"
31718 break 1
31719 fi
31720 done
31721 if test "${PSDelegate}" != 'gswin32c'; then
31722 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31723 fi
31724 else
31725 # Linux / Mac OS X / Unix Build
31726 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
31727 if test -f "${font_dir}a010013l.pfb"; then
31728 ghostscript_font_dir="${font_dir}"
31729 break 1
31730 fi
31731 done
31732 if test "${ghostscript_font_dir}x" = 'x'; then
31733 if test "$PSDelegate" != 'gs'; then
31734 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31735 fi
31736 fi
31737 fi
31738fi
31739if test "${ghostscript_font_dir}x" != 'x'; then
31740 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031742$as_echo "$ghostscript_font_dir" >&6; }
31743else
cristy8b350f62009-11-15 23:12:43 +000031744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031745$as_echo "not found!" >&6; };
31746fi
31747
31748case "${build_os}" in
31749 mingw* )
31750 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31751 ;;
31752esac
31753
31754
31755
31756#
31757# Handle case where user doesn't want frozen paths
31758#
31759if test "$with_frozenpaths" != 'yes'; then
31760 # Re-set delegate definitions to default (no paths)
31761 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31762 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31763 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31764 BZIPDelegate="$BZIPDelegateDefault"
31765 BrowseDelegate="$BrowseDelegateDefault"
31766 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31767 CatDelegate="$CatDelegateDefault"
31768 ConvertDelegate="$ConvertDelegateDefault"
31769 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31770 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31771 EchoDelegate="$EchoDelegateDefault"
31772 EditorDelegate="$EditorDelegateDefault"
31773 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31774 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31775 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31776 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31777 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31778 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31779 LPDelegate="$LPDelegateDefault"
31780 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31781 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31782 LaunchDelegate="$LaunchDelegateDefault"
31783 MANDelegate="$MANDelegateDefault"
31784 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31785 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031786 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031787 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31788 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031789 PCLDelegate="$PCLDelegateDefault"
31790 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31791 POVDelegate="$POVDelegateDefault"
31792 PSDelegate="$PSDelegateDefault"
31793 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31794 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31795 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031796 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031797 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31798 ShowImageDelegate="$ShowImageDelegateDefault"
31799 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000031800 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031801 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31802 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31803 XPSDelegate="$XPSDelegateDefault"
31804 ZipDelegate="$ZipDelegateDefault"
31805fi
31806
31807# Delegate substitutions
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
cristy935c86e2010-06-05 23:50:07 +000031850
cristy5ac9ac82010-07-29 13:24:24 +000031851
cristy3ed852e2009-09-05 21:47:34 +000031852#
31853# RPM support.
31854#
31855RPM=''
31856for ac_prog in gnutar gtar tar
31857do
31858 # Extract the first word of "$ac_prog", so it can be a program name with args.
31859set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031862if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031863 $as_echo_n "(cached) " >&6
31864else
31865 if test -n "$TAR"; then
31866 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31867else
31868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31869for as_dir in $PATH
31870do
31871 IFS=$as_save_IFS
31872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31875 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031877 break 2
31878 fi
31879done
cristy8b350f62009-11-15 23:12:43 +000031880 done
cristy3ed852e2009-09-05 21:47:34 +000031881IFS=$as_save_IFS
31882
31883fi
31884fi
31885TAR=$ac_cv_prog_TAR
31886if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031888$as_echo "$TAR" >&6; }
31889else
cristy8b350f62009-11-15 23:12:43 +000031890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031891$as_echo "no" >&6; }
31892fi
31893
31894
31895 test -n "$TAR" && break
31896done
31897
31898for ac_prog in perl
31899do
31900 # Extract the first word of "$ac_prog", so it can be a program name with args.
31901set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031903$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031904if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031905 $as_echo_n "(cached) " >&6
31906else
31907 if test -n "$PERL"; then
31908 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31909else
31910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31911for as_dir in $PATH
31912do
31913 IFS=$as_save_IFS
31914 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31917 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031919 break 2
31920 fi
31921done
cristy8b350f62009-11-15 23:12:43 +000031922 done
cristy3ed852e2009-09-05 21:47:34 +000031923IFS=$as_save_IFS
31924
31925fi
31926fi
31927PERL=$ac_cv_prog_PERL
31928if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031930$as_echo "$PERL" >&6; }
31931else
cristy8b350f62009-11-15 23:12:43 +000031932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031933$as_echo "no" >&6; }
31934fi
31935
31936
31937 test -n "$PERL" && break
31938done
31939
31940for ac_prog in rpmbuild rpm
31941do
31942 # Extract the first word of "$ac_prog", so it can be a program name with args.
31943set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031945$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031946if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031947 $as_echo_n "(cached) " >&6
31948else
31949 if test -n "$RPM"; then
31950 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31951else
31952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31953for as_dir in $PATH
31954do
31955 IFS=$as_save_IFS
31956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31959 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031961 break 2
31962 fi
31963done
cristy8b350f62009-11-15 23:12:43 +000031964 done
cristy3ed852e2009-09-05 21:47:34 +000031965IFS=$as_save_IFS
31966
31967fi
31968fi
31969RPM=$ac_cv_prog_RPM
31970if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031972$as_echo "$RPM" >&6; }
31973else
cristy8b350f62009-11-15 23:12:43 +000031974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031975$as_echo "no" >&6; }
31976fi
31977
31978
31979 test -n "$RPM" && break
31980done
31981
31982
31983ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31984
31985
31986AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31987
31988
31989AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31990
31991
31992AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31993
31994
31995 if test "x$RPM" != "x" ; then
31996 RPM_DELEGATE_TRUE=
31997 RPM_DELEGATE_FALSE='#'
31998else
31999 RPM_DELEGATE_TRUE='#'
32000 RPM_DELEGATE_FALSE=
32001fi
32002
32003
32004#
32005# 7ZIP support (http://p7zip.sourceforge.net/)
32006#
32007P7ZIP=''
32008for ac_prog in 7za
32009do
32010 # Extract the first word of "$ac_prog", so it can be a program name with args.
32011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032013$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032014if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032015 $as_echo_n "(cached) " >&6
32016else
32017 if test -n "$P7ZIP"; then
32018 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32019else
32020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32021for as_dir in $PATH
32022do
32023 IFS=$as_save_IFS
32024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32027 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032029 break 2
32030 fi
32031done
cristy8b350f62009-11-15 23:12:43 +000032032 done
cristy3ed852e2009-09-05 21:47:34 +000032033IFS=$as_save_IFS
32034
32035fi
32036fi
32037P7ZIP=$ac_cv_prog_P7ZIP
32038if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032040$as_echo "$P7ZIP" >&6; }
32041else
cristy8b350f62009-11-15 23:12:43 +000032042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032043$as_echo "no" >&6; }
32044fi
32045
32046
32047 test -n "$P7ZIP" && break
32048done
32049
32050
32051 if test "x$P7ZIP" != "x" ; then
32052 P7ZIP_DELEGATE_TRUE=
32053 P7ZIP_DELEGATE_FALSE='#'
32054else
32055 P7ZIP_DELEGATE_TRUE='#'
32056 P7ZIP_DELEGATE_FALSE=
32057fi
32058
32059
32060#
32061# ZIP support (http://www.info-zip.org/Zip.html)
32062#
32063ZIP=''
32064for ac_prog in zip
32065do
32066 # Extract the first word of "$ac_prog", so it can be a program name with args.
32067set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032069$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032070if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032071 $as_echo_n "(cached) " >&6
32072else
32073 if test -n "$ZIP"; then
32074 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32075else
32076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32077for as_dir in $PATH
32078do
32079 IFS=$as_save_IFS
32080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32083 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032085 break 2
32086 fi
32087done
cristy8b350f62009-11-15 23:12:43 +000032088 done
cristy3ed852e2009-09-05 21:47:34 +000032089IFS=$as_save_IFS
32090
32091fi
32092fi
32093ZIP=$ac_cv_prog_ZIP
32094if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032096$as_echo "$ZIP" >&6; }
32097else
cristy8b350f62009-11-15 23:12:43 +000032098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032099$as_echo "no" >&6; }
32100fi
32101
32102
32103 test -n "$ZIP" && break
32104done
32105
32106
32107 if test "x$ZIP" != "x" ; then
32108 ZIP_DELEGATE_TRUE=
32109 ZIP_DELEGATE_FALSE='#'
32110else
32111 ZIP_DELEGATE_TRUE='#'
32112 ZIP_DELEGATE_FALSE=
32113fi
32114
32115
32116#
32117# GhostPCL related configuration.
32118#
32119PCLColorDevice=ppmraw
32120PCLCMYKDevice=bmpsep8
32121PCLMonoDevice=pbmraw
32122if test -z "$PCLVersion"; then
32123 PCLVersion='unknown'
32124fi
32125if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032129$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032131$as_echo "" >&6; }
32132 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032134$as_echo_n "checking for pcl color device... " >&6; }
32135 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32136 :
32137 else
32138 PCLColorDevice=ppmraw
32139 fi
cristy8b350f62009-11-15 23:12:43 +000032140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032141$as_echo "$PCLColorDevice" >&6; }
32142
32143 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo_n "checking for pcl CMYK device... " >&6; }
32146 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32147 :
32148 else
32149 PCLCMYKDevice=$PCLColorDevice
32150 fi
cristy8b350f62009-11-15 23:12:43 +000032151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032152$as_echo "$PCLCMYKDevice" >&6; }
32153
32154 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156$as_echo_n "checking for pcl mono device... " >&6; }
32157 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32158 :
32159 else
32160 PCLMonoDevice=$PCLColorDevice
32161 fi
cristy8b350f62009-11-15 23:12:43 +000032162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032163$as_echo "$PCLMonoDevice" >&6; }
32164fi
32165
32166
32167
32168
32169
32170
32171#
32172# GhostXPS related configuration.
32173#
32174XPSColorDevice=ppmraw
32175XPSCMYKDevice=bmpsep8
32176XPSMonoDevice=pbmraw
32177if test -z "$XPSVersion"; then
32178 XPSVersion='unknown'
32179fi
32180if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032184$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo "" >&6; }
32187 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032189$as_echo_n "checking for xps color device... " >&6; }
32190 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32191 :
32192 else
32193 XPSColorDevice=ppmraw
32194 fi
cristy8b350f62009-11-15 23:12:43 +000032195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196$as_echo "$XPSColorDevice" >&6; }
32197
32198 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032200$as_echo_n "checking for xps CMYK device... " >&6; }
32201 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32202 :
32203 else
32204 XPSCMYKDevice=$XPSColorDevice
32205 fi
cristy8b350f62009-11-15 23:12:43 +000032206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032207$as_echo "$XPSCMYKDevice" >&6; }
32208
32209 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032211$as_echo_n "checking for xps mono device... " >&6; }
32212 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32213 :
32214 else
32215 XPSMonoDevice=$XPSColorDevice
32216 fi
cristy8b350f62009-11-15 23:12:43 +000032217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032218$as_echo "$XPSMonoDevice" >&6; }
32219fi
32220
32221
32222
32223
32224
32225
32226#
32227# Ghostscript related configuration.
32228#
32229if test "$have_png" = 'yes'; then
32230 GSAlphaDevice=pngalpha
32231else
32232 GSAlphaDevice=pnmraw
32233fi
32234GSColorDevice=pnmraw
32235GSCMYKDevice=pam
32236GSMonoDevice=pbmraw
32237GSPDFDevice=pdfwrite
32238GSPSDevice=pswrite
32239GSEPSDevice=epswrite
32240GSVersion='unknown'
32241if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032245$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032247$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032249$as_echo_n "checking for Ghostscript version... " >&6; }
32250 if GSVersion=`$PSDelegate --version`; then
32251 :
32252 else
32253 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32254 fi
cristy8b350f62009-11-15 23:12:43 +000032255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032256$as_echo "$GSVersion" >&6; }
32257
32258 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260$as_echo_n "checking for gs alpha device... " >&6; }
32261 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32262 :
32263 else
32264 GSAlphaDevice=pnmraw
32265 fi
cristy8b350f62009-11-15 23:12:43 +000032266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032267$as_echo "$GSAlphaDevice" >&6; }
32268
32269 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo_n "checking for gs color device... " >&6; }
32272 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32273 :
32274 else
32275 GSColorDevice=pnmraw
32276 fi
cristy8b350f62009-11-15 23:12:43 +000032277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278$as_echo "$GSColorDevice" >&6; }
32279
32280 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032282$as_echo_n "checking for gs CMYK device... " >&6; }
32283 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32284 :
32285 else
32286 GSCMYKDevice=bmpsep8
32287 fi
cristy8b350f62009-11-15 23:12:43 +000032288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032289$as_echo "$GSCMYKDevice" >&6; }
32290
32291 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032293$as_echo_n "checking for gs mono device... " >&6; }
32294 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32295 :
32296 else
32297 GSMonoDevice=$GSColorDevice
32298 fi
cristy8b350f62009-11-15 23:12:43 +000032299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032300$as_echo "$GSMonoDevice" >&6; }
32301
32302 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032304$as_echo_n "checking for gs PDF writing device... " >&6; }
32305 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32306 :
32307 else
32308 GSPDFDevice=nodevice
32309 fi
cristy8b350f62009-11-15 23:12:43 +000032310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032311$as_echo "$GSPDFDevice" >&6; }
32312
32313 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo_n "checking for gs PS writing device... " >&6; }
32316 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32317 :
32318 else
32319 GSPSDevice=nodevice
32320 fi
cristy8b350f62009-11-15 23:12:43 +000032321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032322$as_echo "$GSPSDevice" >&6; }
32323
32324 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032326$as_echo_n "checking for gs EPS writing device... " >&6; }
32327 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32328 :
32329 else
32330 GSEPSDevice=nodevice
32331 fi
cristy8b350f62009-11-15 23:12:43 +000032332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo "$GSEPSDevice" >&6; }
32334fi
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345#
32346# PerlMagick-related configuration
32347#
32348
32349# Look for PERL if PerlMagick requested
32350# If name/path of desired PERL interpreter is specified, look for that one first
32351have_perl='no'
32352if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032354$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032358$as_echo "" >&6; }
32359 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032361$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032362if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032363 $as_echo_n "(cached) " >&6
32364else
32365 ac_cv_path_PERL="$with_perl"
32366fi
cristy8b350f62009-11-15 23:12:43 +000032367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032368$as_echo "$ac_cv_path_PERL" >&6; };
32369 PERL=$ac_cv_path_PERL
32370 have_perl="$ac_cv_path_PERL"
32371 else
32372 for ac_prog in perl perl5
32373do
32374 # Extract the first word of "$ac_prog", so it can be a program name with args.
32375set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032378if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032379 $as_echo_n "(cached) " >&6
32380else
32381 case $PERL in
32382 [\\/]* | ?:[\\/]*)
32383 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32384 ;;
32385 *)
32386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32387for as_dir in $PATH
32388do
32389 IFS=$as_save_IFS
32390 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32393 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032395 break 2
32396 fi
32397done
cristy8b350f62009-11-15 23:12:43 +000032398 done
cristy3ed852e2009-09-05 21:47:34 +000032399IFS=$as_save_IFS
32400
32401 ;;
32402esac
32403fi
32404PERL=$ac_cv_path_PERL
32405if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407$as_echo "$PERL" >&6; }
32408else
cristy8b350f62009-11-15 23:12:43 +000032409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032410$as_echo "no" >&6; }
32411fi
32412
32413
32414 test -n "$PERL" && break
32415done
32416 if test "$ac_cv_path_PERL"; then
32417 have_perl="$ac_cv_path_PERL"
32418 fi
32419 fi
32420fi
32421
cristy949301e2010-01-06 01:38:40 +000032422if test "$with_perl" != 'yes' ; then
32423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32424fi
32425
32426PERL_SUPPORTS_DESTDIR='no'
32427
cristy3ed852e2009-09-05 21:47:34 +000032428with_perl_static='no'
32429with_perl_dynamic='no'
32430if test "$have_perl" != 'no'; then
32431 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32432 with_perl_static='yes'
32433 fi
32434 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32435 with_perl_dynamic='yes'
32436 fi
32437 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032438
32439
32440
32441
32442 if test -n "$PERL"; then :
32443
32444 ax_perl_version="5.8.1"
32445
32446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32447$as_echo_n "checking for perl version... " >&6; }
32448
32449 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32450
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32452$as_echo "$perl_version" >&6; }
32453
32454 PERL_VERSION=$perl_version
32455
32456
32457
32458
32459
32460 # Used to indicate true or false condition
32461 ax_compare_version=false
32462
32463 # Convert the two version strings to be compared into a format that
32464 # allows a simple string comparison. The end result is that a version
32465 # string of the form 1.12.5-r617 will be converted to the form
32466 # 0001001200050617. In other words, each number is zero padded to four
32467 # digits, and non digits are removed.
32468
32469 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32470 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32471 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32472 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32473 -e 's/[^0-9]//g'`
32474
32475
32476 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32477 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32478 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32479 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32480 -e 's/[^0-9]//g'`
32481
32482
32483 ax_compare_version=`echo "x$ax_compare_version_A
32484x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32485
32486
32487
32488 if test "$ax_compare_version" = "true" ; then
32489
32490 :
32491 PERL_SUPPORTS_DESTDIR='yes'
32492
32493 else
32494 :
32495 PERL_SUPPORTS_DESTDIR='no'
32496
cristy3ed852e2009-09-05 21:47:34 +000032497 fi
cristy3ed852e2009-09-05 21:47:34 +000032498
cristy964cb7f2010-04-25 23:18:00 +000032499
cristy3ed852e2009-09-05 21:47:34 +000032500else
cristy3ed852e2009-09-05 21:47:34 +000032501
cristy964cb7f2010-04-25 23:18:00 +000032502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32503$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32504 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032505
32506fi
32507
cristy3ed852e2009-09-05 21:47:34 +000032508fi
32509 if test "$have_perl" != 'no'; then
32510 WITH_PERL_TRUE=
32511 WITH_PERL_FALSE='#'
32512else
32513 WITH_PERL_TRUE='#'
32514 WITH_PERL_FALSE=
32515fi
32516
32517 if test $with_perl_static = 'yes'; then
32518 WITH_PERL_STATIC_TRUE=
32519 WITH_PERL_STATIC_FALSE='#'
32520else
32521 WITH_PERL_STATIC_TRUE='#'
32522 WITH_PERL_STATIC_FALSE=
32523fi
32524
32525 if test $with_perl_dynamic = 'yes'; then
32526 WITH_PERL_DYNAMIC_TRUE=
32527 WITH_PERL_DYNAMIC_FALSE='#'
32528else
32529 WITH_PERL_DYNAMIC_TRUE='#'
32530 WITH_PERL_DYNAMIC_FALSE=
32531fi
32532
32533
32534
32535# Determine path to pick up MagickCore library from for use with building PerlMagick
32536MAGICKCORE_PATH="${LIB_DIR}"
32537if test $with_perl_static = 'yes'; then
32538 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32539 libtool_objdir=$objdir
32540
32541 # Linker search path to library, followed by -lMagickCore
32542 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32543fi
32544
32545
32546# Create a simple string containing format names for all delegate libraries
32547DELEGATES=''
32548if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32549if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32550if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32551if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32552if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32553if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32554if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32555if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32556if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32557if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32558if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32559if test "$have_jpeg" = 'yes'; then
32560 DELEGATES="$DELEGATES jpeg";
32561 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32562fi
32563if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000032564if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000032565if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32566if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32567if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32568if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32569if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32570if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32571if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32572if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32573if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32574if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32575if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32576
32577
32578
32579#
32580# Handle special compiler flags
32581#
32582
32583# Add '-p' if prof source profiling support enabled
32584if test "$enable_prof" = 'yes'; then
32585 CFLAGS="-p $CFLAGS"
32586 CXXFLAGS="-p $CXXFLAGS"
32587 LDFLAGS="-p $LDFLAGS"
32588fi
32589
32590# Add '-pg' if gprof source profiling support enabled
32591if test "$enable_gprof" = 'yes'; then
32592 CFLAGS="-pg $CFLAGS"
32593 CXXFLAGS="-pg $CXXFLAGS"
32594 LDFLAGS="-pg $LDFLAGS"
32595fi
32596
32597# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32598# This is a gcc-specific feature
32599if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032601$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032602if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032603 $as_echo_n "(cached) " >&6
32604else
32605 ac_check_lib_save_LIBS=$LIBS
32606LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032608/* end confdefs.h. */
32609
32610/* Override any GCC internal prototype to avoid an error.
32611 Use char because int might match the return type of a GCC
32612 builtin and then its argument prototype would still apply. */
32613#ifdef __cplusplus
32614extern "C"
32615#endif
32616char _gcov_init ();
32617int
32618main ()
32619{
32620return _gcov_init ();
32621 ;
32622 return 0;
32623}
32624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032626 ac_cv_lib_gcov__gcov_init=yes
32627else
cristy8b350f62009-11-15 23:12:43 +000032628 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032629fi
cristy8b350f62009-11-15 23:12:43 +000032630rm -f core conftest.err conftest.$ac_objext \
32631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032632LIBS=$ac_check_lib_save_LIBS
32633fi
cristy8b350f62009-11-15 23:12:43 +000032634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032635$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032636if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032637 cat >>confdefs.h <<_ACEOF
32638#define HAVE_LIBGCOV 1
32639_ACEOF
32640
32641 LIBS="-lgcov $LIBS"
32642
32643fi
32644
cristy8b350f62009-11-15 23:12:43 +000032645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032647if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032648 $as_echo_n "(cached) " >&6
32649else
32650 ac_check_lib_save_LIBS=$LIBS
32651LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032653/* end confdefs.h. */
32654
32655/* Override any GCC internal prototype to avoid an error.
32656 Use char because int might match the return type of a GCC
32657 builtin and then its argument prototype would still apply. */
32658#ifdef __cplusplus
32659extern "C"
32660#endif
32661char __gcov_init ();
32662int
32663main ()
32664{
32665return __gcov_init ();
32666 ;
32667 return 0;
32668}
32669_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032670if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032671 ac_cv_lib_gcov___gcov_init=yes
32672else
cristy8b350f62009-11-15 23:12:43 +000032673 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032674fi
cristy8b350f62009-11-15 23:12:43 +000032675rm -f core conftest.err conftest.$ac_objext \
32676 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032677LIBS=$ac_check_lib_save_LIBS
32678fi
cristy8b350f62009-11-15 23:12:43 +000032679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032681if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032682 cat >>confdefs.h <<_ACEOF
32683#define HAVE_LIBGCOV 1
32684_ACEOF
32685
32686 LIBS="-lgcov $LIBS"
32687
32688fi
32689
32690 case "$target_os" in
32691 darwin*)
32692 OSX_GCOV_LDFLAG="-Wl,-single_module"
32693 ;;
32694 *)
32695 OSX_GCOV_LDFLAG=""
32696 ;;
32697 esac
32698
32699 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32700 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32701 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32702fi
32703
32704#
32705# Build library dependency list for libMagickCore
32706#
32707
32708MAGICK_LIBLTDL='' # Libltdl for build
32709MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32710MAGICK_LTDLDEPS='' # extra libltdl dependencies
32711if test "$with_ltdl" != 'no'
32712then
32713 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32714 MAGICK_API_LIBLTDL='-lltdl'
32715 fi
32716 MAGICK_LIBLTDL=${LIBLTDL}
32717 MAGICK_LTDLDEPS=${LTDLDEPS}
32718fi
32719
32720
32721
32722if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032723 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 +000032724else
cristy2e8b51d2009-10-17 18:26:15 +000032725 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 +000032726fi
32727
32728
32729#
32730# Remove extraneous spaces from output variables (asthetic)
32731#
32732X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32733X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32734X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32735X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32736
32737CC=`echo $CC | sed -e 's/ */ /g'`
32738CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32739CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32740CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32741DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32742DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32743LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32744TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32745MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32746#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32747
32748# Pass only user-provided LIBS as "global" libraries
32749LIBS=$USER_LIBS
32750
32751#AC_SUBST(CPPFLAGS)
32752
32753#AC_SUBST(LDFLAGS)
32754#AC_SUBST(X_PRE_LIBS)
32755#AC_SUBST(X_LIBS)
32756#AC_SUBST(X_EXTRA_LIBS)
32757
32758MAGICK_CFLAGS=$CFLAGS
32759MAGICK_CXXFLAGS="$CXXFLAGS"
32760MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32761MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32762MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32763MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32764
32765
32766
32767
32768
32769
32770
32771
32772# Set configured scripts to executable.
32773ac_config_commands="$ac_config_commands default"
32774
32775ac_config_commands="$ac_config_commands MagickCore-config.in"
32776
32777ac_config_commands="$ac_config_commands Magick-config.in"
32778
32779ac_config_commands="$ac_config_commands MagickWand-config.in"
32780
32781ac_config_commands="$ac_config_commands Wand-config.in"
32782
32783ac_config_commands="$ac_config_commands Magick++-config.in"
32784
32785ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32786
32787
cristy8b350f62009-11-15 23:12:43 +000032788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032789$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo "Update ImageMagick configuration" >&6; }
32792cat >confcache <<\_ACEOF
32793# This file is a shell script that caches the results of configure
32794# tests run on this system so they can be shared between configure
32795# scripts and configure runs, see configure's option --config-cache.
32796# It is not useful on other systems. If it contains results you don't
32797# want to keep, you may remove or edit it.
32798#
32799# config.status only pays attention to the cache file if you give it
32800# the --recheck option to rerun configure.
32801#
32802# `ac_cv_env_foo' variables (set or unset) will be overridden when
32803# loading this file, other *unset* `ac_cv_foo' will be assigned the
32804# following values.
32805
32806_ACEOF
32807
32808# The following way of writing the cache mishandles newlines in values,
32809# but we know of no workaround that is simple, portable, and efficient.
32810# So, we kill variables containing newlines.
32811# Ultrix sh set writes to stderr and can't be redirected directly,
32812# and sets the high bit in the cache file unless we assign to the vars.
32813(
32814 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32815 eval ac_val=\$$ac_var
32816 case $ac_val in #(
32817 *${as_nl}*)
32818 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032820$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32821 esac
32822 case $ac_var in #(
32823 _ | IFS | as_nl) ;; #(
32824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032825 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032826 esac ;;
32827 esac
32828 done
32829
32830 (set) 2>&1 |
32831 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32832 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032833 # `set' does not quote correctly, so add quotes: double-quote
32834 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032835 sed -n \
32836 "s/'/'\\\\''/g;
32837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32838 ;; #(
32839 *)
32840 # `set' quotes correctly as required by POSIX, so do not add quotes.
32841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32842 ;;
32843 esac |
32844 sort
32845) |
32846 sed '
32847 /^ac_cv_env_/b end
32848 t clear
32849 :clear
32850 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32851 t end
32852 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32853 :end' >>confcache
32854if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32855 if test -w "$cache_file"; then
32856 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032857 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo "$as_me: updating cache $cache_file" >&6;}
32859 cat confcache >$cache_file
32860 else
cristy8b350f62009-11-15 23:12:43 +000032861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032862$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32863 fi
32864fi
32865rm -f confcache
32866
32867test "x$prefix" = xNONE && prefix=$ac_default_prefix
32868# Let make expand exec_prefix.
32869test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32870
32871DEFS=-DHAVE_CONFIG_H
32872
32873ac_libobjs=
32874ac_ltlibobjs=
32875for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32876 # 1. Remove the extension, and $U if already installed.
32877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32878 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32880 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032883done
32884LIBOBJS=$ac_libobjs
32885
32886LTLIBOBJS=$ac_ltlibobjs
32887
32888
32889 if test -n "$EXEEXT"; then
32890 am__EXEEXT_TRUE=
32891 am__EXEEXT_FALSE='#'
32892else
32893 am__EXEEXT_TRUE='#'
32894 am__EXEEXT_FALSE=
32895fi
32896
32897if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032898 as_fn_error "conditional \"AMDEP\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032899Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032900fi
32901if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032902 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032903Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032904fi
cristya0b81c32010-01-22 02:54:33 +000032905if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032906 as_fn_error "conditional \"am__fastdepCC\" was never defined.
cristya0b81c32010-01-22 02:54:33 +000032907Usually this means the macro was only invoked conditionally." "$LINENO" 5
32908fi
cristy3ed852e2009-09-05 21:47:34 +000032909if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032910 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032911Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032912fi
32913if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032914 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032915Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032916fi
32917if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032918 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032919Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032920fi
32921if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032922 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032923Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032924fi
32925if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032926 as_fn_error "conditional \"USING_CL\" was never defined.
32927Usually this means the macro was only invoked conditionally." "$LINENO" 5
32928fi
32929if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32930 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032931Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032932fi
cristy3ed852e2009-09-05 21:47:34 +000032933if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032934 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032935Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032936fi
32937if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032938 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032939Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032940fi
32941LT_CONFIG_H=config/config.h
32942
32943 _ltdl_libobjs=
32944 _ltdl_ltlibobjs=
32945 if test -n "$_LT_LIBOBJS"; then
32946 # Remove the extension.
32947 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32948 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32949 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32950 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32951 done
32952 fi
32953 ltdl_LIBOBJS=$_ltdl_libobjs
32954
32955 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32956
32957
cristyfa112112010-01-04 17:48:07 +000032958if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032959 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
cristyfa112112010-01-04 17:48:07 +000032960Usually this means the macro was only invoked conditionally." "$LINENO" 5
32961fi
cristy3ed852e2009-09-05 21:47:34 +000032962if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032963 as_fn_error "conditional \"WITH_MODULES\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032964Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032965fi
32966if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032967 as_fn_error "conditional \"WITH_LTDL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032968Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032969fi
32970if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032971 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032972Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032973fi
32974
32975if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032976 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032977Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032978fi
32979if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032980 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032981Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032982fi
32983if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032984 as_fn_error "conditional \"HasUMEM\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032985Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032986fi
32987if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032988 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032989Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032990fi
32991if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032992 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032993Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032994fi
32995if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000032996 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000032997Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032998fi
32999if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033000 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033001Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033002fi
33003if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033004 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033005Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033006fi
33007if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033008 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033009Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033010fi
33011if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033012 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033013Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033014fi
33015if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033016 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033017Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033018fi
33019if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033020 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033021Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033022fi
33023if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033024 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033025Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033026fi
33027if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033028 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033029Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033030fi
33031if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033032 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033033Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033034fi
33035if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033036 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033037Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033038fi
33039if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033040 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033041Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033042fi
33043if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033044 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033045Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033046fi
33047if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033048 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033049Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033050fi
33051if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033052 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033053Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033054fi
33055if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033056 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033057Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033058fi
33059if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033060 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033061Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033062fi
33063if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033064 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033065Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033066fi
33067if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033068 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033069Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033070fi
33071if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033072 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033073Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033074fi
33075if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033076 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033077Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033078fi
33079if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033080 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033081Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033082fi
33083if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033084 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033085Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033086fi
33087if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033088 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033089Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033090fi
33091if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033092 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033093Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033094fi
33095if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033096 as_fn_error "conditional \"WITH_PERL\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033097Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033098fi
33099if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033100 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033101Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033102fi
33103if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy5c40fb42010-08-05 16:12:44 +000033104 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy8b350f62009-11-15 23:12:43 +000033105Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033106fi
33107
33108: ${CONFIG_STATUS=./config.status}
33109ac_write_fail=0
33110ac_clean_files_save=$ac_clean_files
33111ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033112{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033113$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033114as_write_fail=0
33115cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033116#! $SHELL
33117# Generated by $as_me.
33118# Run this file to recreate the current configuration.
33119# Compiler output produced by configure, useful for debugging
33120# configure, is in config.log if it exists.
33121
33122debug=false
33123ac_cs_recheck=false
33124ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033125
cristy8b350f62009-11-15 23:12:43 +000033126SHELL=\${CONFIG_SHELL-$SHELL}
33127export SHELL
33128_ASEOF
33129cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33130## -------------------- ##
33131## M4sh Initialization. ##
33132## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033133
33134# Be more Bourne compatible
33135DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033136if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033137 emulate sh
33138 NULLCMD=:
33139 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33140 # is contrary to our usage. Disable this feature.
33141 alias -g '${1+"$@"}'='"$@"'
33142 setopt NO_GLOB_SUBST
33143else
cristy8b350f62009-11-15 23:12:43 +000033144 case `(set -o) 2>/dev/null` in #(
33145 *posix*) :
33146 set -o posix ;; #(
33147 *) :
33148 ;;
cristy3ed852e2009-09-05 21:47:34 +000033149esac
cristy3ed852e2009-09-05 21:47:34 +000033150fi
33151
33152
cristy3ed852e2009-09-05 21:47:34 +000033153as_nl='
33154'
33155export as_nl
33156# Printing a long string crashes Solaris 7 /usr/bin/printf.
33157as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33158as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33159as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033160# Prefer a ksh shell builtin over an external printf program on Solaris,
33161# but without wasting forks for bash or zsh.
33162if test -z "$BASH_VERSION$ZSH_VERSION" \
33163 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33164 as_echo='print -r --'
33165 as_echo_n='print -rn --'
33166elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033167 as_echo='printf %s\n'
33168 as_echo_n='printf %s'
33169else
33170 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33171 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33172 as_echo_n='/usr/ucb/echo -n'
33173 else
33174 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33175 as_echo_n_body='eval
33176 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033177 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033178 *"$as_nl"*)
33179 expr "X$arg" : "X\\(.*\\)$as_nl";
33180 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33181 esac;
33182 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33183 '
33184 export as_echo_n_body
33185 as_echo_n='sh -c $as_echo_n_body as_echo'
33186 fi
33187 export as_echo_body
33188 as_echo='sh -c $as_echo_body as_echo'
33189fi
33190
33191# The user is always right.
33192if test "${PATH_SEPARATOR+set}" != set; then
33193 PATH_SEPARATOR=:
33194 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33195 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33196 PATH_SEPARATOR=';'
33197 }
33198fi
33199
cristy3ed852e2009-09-05 21:47:34 +000033200
33201# IFS
33202# We need space, tab and new line, in precisely that order. Quoting is
33203# there to prevent editors from complaining about space-tab.
33204# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33205# splitting by setting IFS to empty value.)
33206IFS=" "" $as_nl"
33207
33208# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033209case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033210 *[\\/]* ) as_myself=$0 ;;
33211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33212for as_dir in $PATH
33213do
33214 IFS=$as_save_IFS
33215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33217 done
cristy3ed852e2009-09-05 21:47:34 +000033218IFS=$as_save_IFS
33219
33220 ;;
33221esac
33222# We did not find ourselves, most probably we were run as `sh COMMAND'
33223# in which case we are not to be found in the path.
33224if test "x$as_myself" = x; then
33225 as_myself=$0
33226fi
33227if test ! -f "$as_myself"; then
33228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033229 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033230fi
33231
cristy8b350f62009-11-15 23:12:43 +000033232# Unset variables that we do not need and which cause bugs (e.g. in
33233# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33234# suppresses any "Segmentation fault" message there. '((' could
33235# trigger a bug in pdksh 5.2.14.
33236for as_var in BASH_ENV ENV MAIL MAILPATH
33237do eval test x\${$as_var+set} = xset \
33238 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033239done
33240PS1='$ '
33241PS2='> '
33242PS4='+ '
33243
33244# NLS nuisances.
33245LC_ALL=C
33246export LC_ALL
33247LANGUAGE=C
33248export LANGUAGE
33249
cristy8b350f62009-11-15 23:12:43 +000033250# CDPATH.
33251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33252
33253
cristy5c40fb42010-08-05 16:12:44 +000033254# as_fn_error ERROR [LINENO LOG_FD]
33255# ---------------------------------
cristy8b350f62009-11-15 23:12:43 +000033256# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33257# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy5c40fb42010-08-05 16:12:44 +000033258# script with status $?, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033259as_fn_error ()
33260{
cristy5c40fb42010-08-05 16:12:44 +000033261 as_status=$?; test $as_status -eq 0 && as_status=1
33262 if test "$3"; then
33263 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
cristy8b350f62009-11-15 23:12:43 +000033265 fi
cristy5c40fb42010-08-05 16:12:44 +000033266 $as_echo "$as_me: error: $1" >&2
cristy8b350f62009-11-15 23:12:43 +000033267 as_fn_exit $as_status
33268} # as_fn_error
33269
33270
33271# as_fn_set_status STATUS
33272# -----------------------
33273# Set $? to STATUS, without forking.
33274as_fn_set_status ()
33275{
33276 return $1
33277} # as_fn_set_status
33278
33279# as_fn_exit STATUS
33280# -----------------
33281# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33282as_fn_exit ()
33283{
33284 set +e
33285 as_fn_set_status $1
33286 exit $1
33287} # as_fn_exit
33288
33289# as_fn_unset VAR
33290# ---------------
33291# Portably unset VAR.
33292as_fn_unset ()
33293{
33294 { eval $1=; unset $1;}
33295}
33296as_unset=as_fn_unset
33297# as_fn_append VAR VALUE
33298# ----------------------
33299# Append the text in VALUE to the end of the definition contained in VAR. Take
33300# advantage of any shell optimizations that allow amortized linear growth over
33301# repeated appends, instead of the typical quadratic growth present in naive
33302# implementations.
33303if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33304 eval 'as_fn_append ()
33305 {
33306 eval $1+=\$2
33307 }'
33308else
33309 as_fn_append ()
33310 {
33311 eval $1=\$$1\$2
33312 }
33313fi # as_fn_append
33314
33315# as_fn_arith ARG...
33316# ------------------
33317# Perform arithmetic evaluation on the ARGs, and store the result in the
33318# global $as_val. Take advantage of shells that can avoid forks. The arguments
33319# must be portable across $(()) and expr.
33320if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33321 eval 'as_fn_arith ()
33322 {
33323 as_val=$(( $* ))
33324 }'
33325else
33326 as_fn_arith ()
33327 {
33328 as_val=`expr "$@" || test $? -eq 1`
33329 }
33330fi # as_fn_arith
33331
33332
cristy3ed852e2009-09-05 21:47:34 +000033333if expr a : '\(a\)' >/dev/null 2>&1 &&
33334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33335 as_expr=expr
33336else
33337 as_expr=false
33338fi
33339
33340if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33341 as_basename=basename
33342else
33343 as_basename=false
33344fi
33345
cristy8b350f62009-11-15 23:12:43 +000033346if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33347 as_dirname=dirname
33348else
33349 as_dirname=false
33350fi
cristy3ed852e2009-09-05 21:47:34 +000033351
cristy3ed852e2009-09-05 21:47:34 +000033352as_me=`$as_basename -- "$0" ||
33353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33354 X"$0" : 'X\(//\)$' \| \
33355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33356$as_echo X/"$0" |
33357 sed '/^.*\/\([^/][^/]*\)\/*$/{
33358 s//\1/
33359 q
33360 }
33361 /^X\/\(\/\/\)$/{
33362 s//\1/
33363 q
33364 }
33365 /^X\/\(\/\).*/{
33366 s//\1/
33367 q
33368 }
33369 s/.*/./; q'`
33370
cristy8b350f62009-11-15 23:12:43 +000033371# Avoid depending upon Character Ranges.
33372as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33373as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33374as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33375as_cr_digits='0123456789'
33376as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033377
33378ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033379case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033380-n*)
cristy8b350f62009-11-15 23:12:43 +000033381 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033382 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033383 xy) ECHO_C='\c';;
33384 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33385 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033386 esac;;
33387*)
33388 ECHO_N='-n';;
33389esac
cristy3ed852e2009-09-05 21:47:34 +000033390
33391rm -f conf$$ conf$$.exe conf$$.file
33392if test -d conf$$.dir; then
33393 rm -f conf$$.dir/conf$$.file
33394else
33395 rm -f conf$$.dir
33396 mkdir conf$$.dir 2>/dev/null
33397fi
33398if (echo >conf$$.file) 2>/dev/null; then
33399 if ln -s conf$$.file conf$$ 2>/dev/null; then
33400 as_ln_s='ln -s'
33401 # ... but there are two gotchas:
33402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33404 # In both cases, we have to default to `cp -p'.
33405 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33406 as_ln_s='cp -p'
33407 elif ln conf$$.file conf$$ 2>/dev/null; then
33408 as_ln_s=ln
33409 else
33410 as_ln_s='cp -p'
33411 fi
33412else
33413 as_ln_s='cp -p'
33414fi
33415rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33416rmdir conf$$.dir 2>/dev/null
33417
cristy8b350f62009-11-15 23:12:43 +000033418
33419# as_fn_mkdir_p
33420# -------------
33421# Create "$as_dir" as a directory, including parents if necessary.
33422as_fn_mkdir_p ()
33423{
33424
33425 case $as_dir in #(
33426 -*) as_dir=./$as_dir;;
33427 esac
33428 test -d "$as_dir" || eval $as_mkdir_p || {
33429 as_dirs=
33430 while :; do
33431 case $as_dir in #(
33432 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33433 *) as_qdir=$as_dir;;
33434 esac
33435 as_dirs="'$as_qdir' $as_dirs"
33436 as_dir=`$as_dirname -- "$as_dir" ||
33437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33438 X"$as_dir" : 'X\(//\)[^/]' \| \
33439 X"$as_dir" : 'X\(//\)$' \| \
33440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33441$as_echo X"$as_dir" |
33442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33443 s//\1/
33444 q
33445 }
33446 /^X\(\/\/\)[^/].*/{
33447 s//\1/
33448 q
33449 }
33450 /^X\(\/\/\)$/{
33451 s//\1/
33452 q
33453 }
33454 /^X\(\/\).*/{
33455 s//\1/
33456 q
33457 }
33458 s/.*/./; q'`
33459 test -d "$as_dir" && break
33460 done
33461 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy5c40fb42010-08-05 16:12:44 +000033462 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000033463
33464
33465} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033466if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033467 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033468else
33469 test -d ./-p && rmdir ./-p
33470 as_mkdir_p=false
33471fi
33472
33473if test -x / >/dev/null 2>&1; then
33474 as_test_x='test -x'
33475else
33476 if ls -dL / >/dev/null 2>&1; then
33477 as_ls_L_option=L
33478 else
33479 as_ls_L_option=
33480 fi
33481 as_test_x='
33482 eval sh -c '\''
33483 if test -d "$1"; then
33484 test -d "$1/.";
33485 else
cristy8b350f62009-11-15 23:12:43 +000033486 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033487 -*)set "./$1";;
33488 esac;
cristy8b350f62009-11-15 23:12:43 +000033489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033490 ???[sx]*):;;*)false;;esac;fi
33491 '\'' sh
33492 '
33493fi
33494as_executable_p=$as_test_x
33495
33496# Sed expression to map a string onto a valid CPP name.
33497as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33498
33499# Sed expression to map a string onto a valid variable name.
33500as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33501
33502
33503exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033504## ----------------------------------- ##
33505## Main body of $CONFIG_STATUS script. ##
33506## ----------------------------------- ##
33507_ASEOF
33508test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033509
cristy8b350f62009-11-15 23:12:43 +000033510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33511# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033512# report actual input values of CONFIG_FILES etc. instead of their
33513# values after options handling.
33514ac_log="
cristyfbb4a972010-06-30 17:42:22 +000033515This file was extended by ImageMagick $as_me 6.6.3, which was
cristy5c40fb42010-08-05 16:12:44 +000033516generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033517
33518 CONFIG_FILES = $CONFIG_FILES
33519 CONFIG_HEADERS = $CONFIG_HEADERS
33520 CONFIG_LINKS = $CONFIG_LINKS
33521 CONFIG_COMMANDS = $CONFIG_COMMANDS
33522 $ $0 $@
33523
33524on `(hostname || uname -n) 2>/dev/null | sed 1q`
33525"
33526
33527_ACEOF
33528
33529case $ac_config_files in *"
33530"*) set x $ac_config_files; shift; ac_config_files=$*;;
33531esac
33532
33533case $ac_config_headers in *"
33534"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33535esac
33536
33537
33538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33539# Files that config.status was made for.
33540config_files="$ac_config_files"
33541config_headers="$ac_config_headers"
33542config_commands="$ac_config_commands"
33543
33544_ACEOF
33545
33546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33547ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033548\`$as_me' instantiates files and other configuration actions
33549from templates according to the current configuration. Unless the files
33550and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033551
cristy8b350f62009-11-15 23:12:43 +000033552Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033553
33554 -h, --help print this help, then exit
33555 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033556 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033557 -q, --quiet, --silent
33558 do not print progress messages
33559 -d, --debug don't remove temporary files
33560 --recheck update $as_me by reconfiguring in the same conditions
33561 --file=FILE[:TEMPLATE]
33562 instantiate the configuration file FILE
33563 --header=FILE[:TEMPLATE]
33564 instantiate the configuration header FILE
33565
33566Configuration files:
33567$config_files
33568
33569Configuration headers:
33570$config_headers
33571
33572Configuration commands:
33573$config_commands
33574
cristy8b350f62009-11-15 23:12:43 +000033575Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033576
33577_ACEOF
33578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033579ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033580ac_cs_version="\\
cristyfbb4a972010-06-30 17:42:22 +000033581ImageMagick config.status 6.6.3
cristy5c40fb42010-08-05 16:12:44 +000033582configured by $0, generated by GNU Autoconf 2.65,
cristycd4c5312009-11-22 01:19:08 +000033583 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033584
cristy5c40fb42010-08-05 16:12:44 +000033585Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033586This config.status script is free software; the Free Software Foundation
33587gives unlimited permission to copy, distribute and modify it."
33588
33589ac_pwd='$ac_pwd'
33590srcdir='$srcdir'
33591INSTALL='$INSTALL'
33592MKDIR_P='$MKDIR_P'
33593AWK='$AWK'
33594test -n "\$AWK" || AWK=awk
33595_ACEOF
33596
33597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33598# The default lists apply if the user does not specify any file.
33599ac_need_defaults=:
33600while test $# != 0
33601do
33602 case $1 in
33603 --*=*)
33604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33605 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33606 ac_shift=:
33607 ;;
33608 *)
33609 ac_option=$1
33610 ac_optarg=$2
33611 ac_shift=shift
33612 ;;
33613 esac
33614
33615 case $ac_option in
33616 # Handling of the options.
33617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33618 ac_cs_recheck=: ;;
33619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33620 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033621 --config | --confi | --conf | --con | --co | --c )
33622 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033623 --debug | --debu | --deb | --de | --d | -d )
33624 debug=: ;;
33625 --file | --fil | --fi | --f )
33626 $ac_shift
33627 case $ac_optarg in
33628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33629 esac
cristy8b350f62009-11-15 23:12:43 +000033630 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033631 ac_need_defaults=false;;
33632 --header | --heade | --head | --hea )
33633 $ac_shift
33634 case $ac_optarg in
33635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33636 esac
cristy8b350f62009-11-15 23:12:43 +000033637 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033638 ac_need_defaults=false;;
33639 --he | --h)
33640 # Conflict between --help and --header
cristy5c40fb42010-08-05 16:12:44 +000033641 as_fn_error "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033642Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033643 --help | --hel | -h )
33644 $as_echo "$ac_cs_usage"; exit ;;
33645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33646 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33647 ac_cs_silent=: ;;
33648
33649 # This is an error.
cristy5c40fb42010-08-05 16:12:44 +000033650 -*) as_fn_error "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000033651Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033652
cristy8b350f62009-11-15 23:12:43 +000033653 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033654 ac_need_defaults=false ;;
33655
33656 esac
33657 shift
33658done
33659
33660ac_configure_extra_args=
33661
33662if $ac_cs_silent; then
33663 exec 6>/dev/null
33664 ac_configure_extra_args="$ac_configure_extra_args --silent"
33665fi
33666
33667_ACEOF
33668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33669if \$ac_cs_recheck; then
33670 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33671 shift
33672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33673 CONFIG_SHELL='$SHELL'
33674 export CONFIG_SHELL
33675 exec "\$@"
33676fi
33677
33678_ACEOF
33679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33680exec 5>>config.log
33681{
33682 echo
33683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33684## Running $as_me. ##
33685_ASBOX
33686 $as_echo "$ac_log"
33687} >&5
33688
33689_ACEOF
33690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33691#
33692# INIT-COMMANDS
33693#
33694PACKAGE="$PACKAGE"
33695AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33696
33697
33698# The HP-UX ksh and POSIX shell print the target directory to stdout
33699# if CDPATH is set.
33700(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33701
33702sed_quote_subst='$sed_quote_subst'
33703double_quote_subst='$double_quote_subst'
33704delay_variable_subst='$delay_variable_subst'
cristy5c40fb42010-08-05 16:12:44 +000033705SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33706Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33707GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33708EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33709FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33710LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33711macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33712macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33713AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33714DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33715OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33716enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33717enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33718pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33719enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33720host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33721host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33722host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33723build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33724build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33725build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33726NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33727LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33728max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33729ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33730exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33731lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33732lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33733lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33734reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33735reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33736deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33737file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33738AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33739AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33740STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33741RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33742old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33743old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33744old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33745CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33746CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33747compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33748GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33749lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33750lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33751lt_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"`'
33752lt_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"`'
33753objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33754SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33755ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33756MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33757lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33758lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33759lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33760lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33761lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33762need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33763DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33764NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33765LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33766OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33767OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33768libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33769shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33770extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33771archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33772enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33773export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33774whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33775compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33776old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33777old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33778archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33779archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33780module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33781module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33782with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33783allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33784no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33785hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33786hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33787hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33788hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33789hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33790hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33791hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33792hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33793inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33794link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33795fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33796always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33797export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33798exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33799include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33800prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33801file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33802variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33803need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33804need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33805version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33806runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33807shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33808shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33809libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33810library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33811soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33812postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33813postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33814finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33815finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33816hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33817sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33818sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33819hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33820enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33821enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33822enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33823old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33824striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33825compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33826predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33827postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33828predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33829postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33830compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33831LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33832old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33833compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33834GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33835lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33836lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33837lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33838lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33839lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33840archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33841enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33842export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33843whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33844compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33845old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33846old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33847archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33848archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33849module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33850module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33851with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33852allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33853no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33854hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33855hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33856hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33857hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33858hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33859hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33860hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33861hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33862inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33863link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33864fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33865always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33866export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33867exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33868include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33869prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33870file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33871hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33872compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33873predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33874postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33875predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33876postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33877compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033878
33879LTCC='$LTCC'
33880LTCFLAGS='$LTCFLAGS'
33881compiler='$compiler_DEFAULT'
33882
33883# Quote evaled strings.
33884for var in SED \
33885GREP \
33886EGREP \
33887FGREP \
33888LD \
33889NM \
33890LN_S \
33891lt_SP2NL \
33892lt_NL2SP \
33893reload_flag \
33894deplibs_check_method \
33895file_magic_cmd \
33896AR \
33897AR_FLAGS \
33898STRIP \
33899RANLIB \
33900CC \
33901CFLAGS \
33902compiler \
33903lt_cv_sys_global_symbol_pipe \
33904lt_cv_sys_global_symbol_to_cdecl \
33905lt_cv_sys_global_symbol_to_c_name_address \
33906lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy5c40fb42010-08-05 16:12:44 +000033907SHELL \
33908ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033909lt_prog_compiler_no_builtin_flag \
33910lt_prog_compiler_wl \
33911lt_prog_compiler_pic \
33912lt_prog_compiler_static \
33913lt_cv_prog_compiler_c_o \
33914need_locks \
33915DSYMUTIL \
33916NMEDIT \
33917LIPO \
33918OTOOL \
33919OTOOL64 \
33920shrext_cmds \
33921export_dynamic_flag_spec \
33922whole_archive_flag_spec \
33923compiler_needs_object \
33924with_gnu_ld \
33925allow_undefined_flag \
33926no_undefined_flag \
33927hardcode_libdir_flag_spec \
33928hardcode_libdir_flag_spec_ld \
33929hardcode_libdir_separator \
33930fix_srcfile_path \
33931exclude_expsyms \
33932include_expsyms \
33933file_list_spec \
33934variables_saved_for_relink \
33935libname_spec \
33936library_names_spec \
33937soname_spec \
33938finish_eval \
33939old_striplib \
33940striplib \
33941compiler_lib_search_dirs \
33942predep_objects \
33943postdep_objects \
33944predeps \
33945postdeps \
33946compiler_lib_search_path \
33947LD_CXX \
33948compiler_CXX \
33949lt_prog_compiler_no_builtin_flag_CXX \
33950lt_prog_compiler_wl_CXX \
33951lt_prog_compiler_pic_CXX \
33952lt_prog_compiler_static_CXX \
33953lt_cv_prog_compiler_c_o_CXX \
33954export_dynamic_flag_spec_CXX \
33955whole_archive_flag_spec_CXX \
33956compiler_needs_object_CXX \
33957with_gnu_ld_CXX \
33958allow_undefined_flag_CXX \
33959no_undefined_flag_CXX \
33960hardcode_libdir_flag_spec_CXX \
33961hardcode_libdir_flag_spec_ld_CXX \
33962hardcode_libdir_separator_CXX \
33963fix_srcfile_path_CXX \
33964exclude_expsyms_CXX \
33965include_expsyms_CXX \
33966file_list_spec_CXX \
33967compiler_lib_search_dirs_CXX \
33968predep_objects_CXX \
33969postdep_objects_CXX \
33970predeps_CXX \
33971postdeps_CXX \
33972compiler_lib_search_path_CXX; do
cristy5c40fb42010-08-05 16:12:44 +000033973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033974 *[\\\\\\\`\\"\\\$]*)
cristy5c40fb42010-08-05 16:12:44 +000033975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033976 ;;
33977 *)
33978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33979 ;;
33980 esac
33981done
33982
33983# Double-quote double-evaled strings.
33984for var in reload_cmds \
33985old_postinstall_cmds \
33986old_postuninstall_cmds \
33987old_archive_cmds \
33988extract_expsyms_cmds \
33989old_archive_from_new_cmds \
33990old_archive_from_expsyms_cmds \
33991archive_cmds \
33992archive_expsym_cmds \
33993module_cmds \
33994module_expsym_cmds \
33995export_symbols_cmds \
33996prelink_cmds \
33997postinstall_cmds \
33998postuninstall_cmds \
33999finish_cmds \
34000sys_lib_search_path_spec \
34001sys_lib_dlsearch_path_spec \
34002old_archive_cmds_CXX \
34003old_archive_from_new_cmds_CXX \
34004old_archive_from_expsyms_cmds_CXX \
34005archive_cmds_CXX \
34006archive_expsym_cmds_CXX \
34007module_cmds_CXX \
34008module_expsym_cmds_CXX \
34009export_symbols_cmds_CXX \
34010prelink_cmds_CXX; do
cristy5c40fb42010-08-05 16:12:44 +000034011 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000034012 *[\\\\\\\`\\"\\\$]*)
cristy5c40fb42010-08-05 16:12:44 +000034013 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 +000034014 ;;
34015 *)
34016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34017 ;;
34018 esac
34019done
34020
cristy5c40fb42010-08-05 16:12:44 +000034021# Fix-up fallback echo if it was mangled by the above quoting rules.
34022case \$lt_ECHO in
34023*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34024 ;;
34025esac
34026
cristy3ed852e2009-09-05 21:47:34 +000034027ac_aux_dir='$ac_aux_dir'
34028xsi_shell='$xsi_shell'
34029lt_shell_append='$lt_shell_append'
34030
34031# See if we are running on zsh, and set the options which allow our
34032# commands through without removal of \ escapes INIT.
34033if test -n "\${ZSH_VERSION+set}" ; then
34034 setopt NO_GLOB_SUBST
34035fi
34036
34037
34038 PACKAGE='$PACKAGE'
34039 VERSION='$VERSION'
34040 TIMESTAMP='$TIMESTAMP'
34041 RM='$RM'
34042 ofile='$ofile'
34043
34044
34045
34046
34047
34048
34049_ACEOF
34050
34051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34052
34053# Handling of arguments.
34054for ac_config_target in $ac_config_targets
34055do
34056 case $ac_config_target in
34057 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34058 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34059 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34060 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34061 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34062 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34063 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034064 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034065 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34066 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34067 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34068 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34069 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34070 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34071 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34072 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34073 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34074 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34075 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34076 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34077 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34078 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34079 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34080 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34081 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34082 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34083 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34084 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34085 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34086 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34087 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34088 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34089 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34090 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34091 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34092 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34093 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34094 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34095 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34096 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34097 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34099 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34100 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34101 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34102 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34103 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34104 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34105 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34106 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34107
cristy5c40fb42010-08-05 16:12:44 +000034108 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034109 esac
34110done
34111
34112
34113# If the user did not use the arguments to specify the items to instantiate,
34114# then the envvar interface is used. Set only those that are not.
34115# We use the long form for the default assignment because of an extremely
34116# bizarre bug on SunOS 4.1.3.
34117if $ac_need_defaults; then
34118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34120 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34121fi
34122
34123# Have a temporary directory for convenience. Make it in the build tree
34124# simply because there is no reason against having it here, and in addition,
34125# creating and moving files from /tmp can sometimes cause problems.
34126# Hook for its removal unless debugging.
34127# Note that there is a small window in which the directory will not be cleaned:
34128# after its creation but before its name has been assigned to `$tmp'.
34129$debug ||
34130{
34131 tmp=
34132 trap 'exit_status=$?
34133 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34134' 0
cristy8b350f62009-11-15 23:12:43 +000034135 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034136}
34137# Create a (secure) tmp directory for tmp files.
34138
34139{
34140 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34141 test -n "$tmp" && test -d "$tmp"
34142} ||
34143{
34144 tmp=./conf$$-$RANDOM
34145 (umask 077 && mkdir "$tmp")
cristy5c40fb42010-08-05 16:12:44 +000034146} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034147
34148# Set up the scripts for CONFIG_FILES section.
34149# No need to generate them if there are no CONFIG_FILES.
34150# This happens for instance with `./config.status config.h'.
34151if test -n "$CONFIG_FILES"; then
34152
34153
cristy8b350f62009-11-15 23:12:43 +000034154ac_cr=`echo X | tr X '\015'`
34155# On cygwin, bash can eat \r inside `` if the user requested igncr.
34156# But we know of no other shell where ac_cr would be empty at this
34157# point, so we can use a bashism as a fallback.
34158if test "x$ac_cr" = x; then
34159 eval ac_cr=\$\'\\r\'
34160fi
cristy3ed852e2009-09-05 21:47:34 +000034161ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34162if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy5c40fb42010-08-05 16:12:44 +000034163 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034164else
34165 ac_cs_awk_cr=$ac_cr
34166fi
34167
34168echo 'BEGIN {' >"$tmp/subs1.awk" &&
34169_ACEOF
34170
34171
34172{
34173 echo "cat >conf$$subs.awk <<_ACEOF" &&
34174 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34175 echo "_ACEOF"
34176} >conf$$subs.sh ||
cristy5c40fb42010-08-05 16:12:44 +000034177 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34178ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
cristy3ed852e2009-09-05 21:47:34 +000034179ac_delim='%!_!# '
34180for ac_last_try in false false false false false :; do
34181 . ./conf$$subs.sh ||
cristy5c40fb42010-08-05 16:12:44 +000034182 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034183
34184 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34185 if test $ac_delim_n = $ac_delim_num; then
34186 break
34187 elif $ac_last_try; then
cristy5c40fb42010-08-05 16:12:44 +000034188 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034189 else
34190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34191 fi
34192done
34193rm -f conf$$subs.sh
34194
34195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34196cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34197_ACEOF
34198sed -n '
34199h
34200s/^/S["/; s/!.*/"]=/
34201p
34202g
34203s/^[^!]*!//
34204:repl
34205t repl
34206s/'"$ac_delim"'$//
34207t delim
34208:nl
34209h
cristycd4c5312009-11-22 01:19:08 +000034210s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034211t more1
34212s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34213p
34214n
34215b repl
34216:more1
34217s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34218p
34219g
34220s/.\{148\}//
34221t nl
34222:delim
34223h
cristycd4c5312009-11-22 01:19:08 +000034224s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034225t more2
34226s/["\\]/\\&/g; s/^/"/; s/$/"/
34227p
34228b
34229:more2
34230s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34231p
34232g
34233s/.\{148\}//
34234t delim
34235' <conf$$subs.awk | sed '
34236/^[^""]/{
34237 N
34238 s/\n//
34239}
34240' >>$CONFIG_STATUS || ac_write_fail=1
34241rm -f conf$$subs.awk
34242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34243_ACAWK
34244cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34245 for (key in S) S_is_set[key] = 1
34246 FS = ""
34247
34248}
34249{
34250 line = $ 0
34251 nfields = split(line, field, "@")
34252 substed = 0
34253 len = length(field[1])
34254 for (i = 2; i < nfields; i++) {
34255 key = field[i]
34256 keylen = length(key)
34257 if (S_is_set[key]) {
34258 value = S[key]
34259 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34260 len += length(value) + length(field[++i])
34261 substed = 1
34262 } else
34263 len += 1 + keylen
34264 }
34265
34266 print line
34267}
34268
34269_ACAWK
34270_ACEOF
34271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34272if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34273 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34274else
34275 cat
34276fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy5c40fb42010-08-05 16:12:44 +000034277 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034278_ACEOF
34279
cristy5c40fb42010-08-05 16:12:44 +000034280# VPATH may cause trouble with some makes, so we remove $(srcdir),
34281# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034282# trailing colons and then remove the whole line if VPATH becomes empty
34283# (actually we leave an empty line to preserve line numbers).
34284if test "x$srcdir" = x.; then
cristy5c40fb42010-08-05 16:12:44 +000034285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34286s/:*\$(srcdir):*/:/
34287s/:*\${srcdir}:*/:/
34288s/:*@srcdir@:*/:/
34289s/^\([^=]*=[ ]*\):*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034290s/:*$//
34291s/^[^=]*=[ ]*$//
34292}'
34293fi
34294
34295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34296fi # test -n "$CONFIG_FILES"
34297
34298# Set up the scripts for CONFIG_HEADERS section.
34299# No need to generate them if there are no CONFIG_HEADERS.
34300# This happens for instance with `./config.status Makefile'.
34301if test -n "$CONFIG_HEADERS"; then
34302cat >"$tmp/defines.awk" <<\_ACAWK ||
34303BEGIN {
34304_ACEOF
34305
34306# Transform confdefs.h into an awk script `defines.awk', embedded as
34307# here-document in config.status, that substitutes the proper values into
34308# config.h.in to produce config.h.
34309
34310# Create a delimiter string that does not exist in confdefs.h, to ease
34311# handling of long lines.
34312ac_delim='%!_!# '
34313for ac_last_try in false false :; do
34314 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34315 if test -z "$ac_t"; then
34316 break
34317 elif $ac_last_try; then
cristy5c40fb42010-08-05 16:12:44 +000034318 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034319 else
34320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34321 fi
34322done
34323
34324# For the awk script, D is an array of macro values keyed by name,
34325# likewise P contains macro parameters if any. Preserve backslash
34326# newline sequences.
34327
34328ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34329sed -n '
34330s/.\{148\}/&'"$ac_delim"'/g
34331t rset
34332:rset
34333s/^[ ]*#[ ]*define[ ][ ]*/ /
34334t def
34335d
34336:def
34337s/\\$//
34338t bsnl
34339s/["\\]/\\&/g
34340s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34341D["\1"]=" \3"/p
34342s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34343d
34344:bsnl
34345s/["\\]/\\&/g
34346s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34347D["\1"]=" \3\\\\\\n"\\/p
34348t cont
34349s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34350t cont
34351d
34352:cont
34353n
34354s/.\{148\}/&'"$ac_delim"'/g
34355t clear
34356:clear
34357s/\\$//
34358t bsnlc
34359s/["\\]/\\&/g; s/^/"/; s/$/"/p
34360d
34361:bsnlc
34362s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34363b cont
34364' <confdefs.h | sed '
34365s/'"$ac_delim"'/"\\\
34366"/g' >>$CONFIG_STATUS || ac_write_fail=1
34367
34368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34369 for (key in D) D_is_set[key] = 1
34370 FS = ""
34371}
34372/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34373 line = \$ 0
34374 split(line, arg, " ")
34375 if (arg[1] == "#") {
34376 defundef = arg[2]
34377 mac1 = arg[3]
34378 } else {
34379 defundef = substr(arg[1], 2)
34380 mac1 = arg[2]
34381 }
34382 split(mac1, mac2, "(") #)
34383 macro = mac2[1]
34384 prefix = substr(line, 1, index(line, defundef) - 1)
34385 if (D_is_set[macro]) {
34386 # Preserve the white space surrounding the "#".
34387 print prefix "define", macro P[macro] D[macro]
34388 next
34389 } else {
34390 # Replace #undef with comments. This is necessary, for example,
34391 # in the case of _POSIX_SOURCE, which is predefined and required
34392 # on some systems where configure will not decide to define it.
34393 if (defundef == "undef") {
34394 print "/*", prefix defundef, macro, "*/"
34395 next
34396 }
34397 }
34398}
34399{ print }
34400_ACAWK
34401_ACEOF
34402cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy5c40fb42010-08-05 16:12:44 +000034403 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034404fi # test -n "$CONFIG_HEADERS"
34405
34406
34407eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34408shift
34409for ac_tag
34410do
34411 case $ac_tag in
34412 :[FHLC]) ac_mode=$ac_tag; continue;;
34413 esac
34414 case $ac_mode$ac_tag in
34415 :[FHL]*:*);;
cristy5c40fb42010-08-05 16:12:44 +000034416 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034417 :[FH]-) ac_tag=-:-;;
34418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34419 esac
34420 ac_save_IFS=$IFS
34421 IFS=:
34422 set x $ac_tag
34423 IFS=$ac_save_IFS
34424 shift
34425 ac_file=$1
34426 shift
34427
34428 case $ac_mode in
34429 :L) ac_source=$1;;
34430 :[FH])
34431 ac_file_inputs=
34432 for ac_f
34433 do
34434 case $ac_f in
34435 -) ac_f="$tmp/stdin";;
34436 *) # Look for the file first in the build tree, then in the source tree
34437 # (if the path is not absolute). The absolute path cannot be DOS-style,
34438 # because $ac_f cannot contain `:'.
34439 test -f "$ac_f" ||
34440 case $ac_f in
34441 [\\/$]*) false;;
34442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34443 esac ||
cristy5c40fb42010-08-05 16:12:44 +000034444 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034445 esac
34446 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034447 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034448 done
34449
34450 # Let's still pretend it is `configure' which instantiates (i.e., don't
34451 # use $as_me), people would be surprised to read:
34452 # /* config.h. Generated by config.status. */
34453 configure_input='Generated from '`
34454 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34455 `' by configure.'
34456 if test x"$ac_file" != x-; then
34457 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034459$as_echo "$as_me: creating $ac_file" >&6;}
34460 fi
34461 # Neutralize special characters interpreted by sed in replacement strings.
34462 case $configure_input in #(
34463 *\&* | *\|* | *\\* )
34464 ac_sed_conf_input=`$as_echo "$configure_input" |
34465 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34466 *) ac_sed_conf_input=$configure_input;;
34467 esac
34468
34469 case $ac_tag in
34470 *:-:* | *:-) cat >"$tmp/stdin" \
cristy5c40fb42010-08-05 16:12:44 +000034471 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034472 esac
34473 ;;
34474 esac
34475
34476 ac_dir=`$as_dirname -- "$ac_file" ||
34477$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34478 X"$ac_file" : 'X\(//\)[^/]' \| \
34479 X"$ac_file" : 'X\(//\)$' \| \
34480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34481$as_echo X"$ac_file" |
34482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34483 s//\1/
34484 q
34485 }
34486 /^X\(\/\/\)[^/].*/{
34487 s//\1/
34488 q
34489 }
34490 /^X\(\/\/\)$/{
34491 s//\1/
34492 q
34493 }
34494 /^X\(\/\).*/{
34495 s//\1/
34496 q
34497 }
34498 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034499 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034500 ac_builddir=.
34501
34502case "$ac_dir" in
34503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34504*)
34505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34506 # A ".." for each directory in $ac_dir_suffix.
34507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34508 case $ac_top_builddir_sub in
34509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34511 esac ;;
34512esac
34513ac_abs_top_builddir=$ac_pwd
34514ac_abs_builddir=$ac_pwd$ac_dir_suffix
34515# for backward compatibility:
34516ac_top_builddir=$ac_top_build_prefix
34517
34518case $srcdir in
34519 .) # We are building in place.
34520 ac_srcdir=.
34521 ac_top_srcdir=$ac_top_builddir_sub
34522 ac_abs_top_srcdir=$ac_pwd ;;
34523 [\\/]* | ?:[\\/]* ) # Absolute name.
34524 ac_srcdir=$srcdir$ac_dir_suffix;
34525 ac_top_srcdir=$srcdir
34526 ac_abs_top_srcdir=$srcdir ;;
34527 *) # Relative name.
34528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34529 ac_top_srcdir=$ac_top_build_prefix$srcdir
34530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34531esac
34532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34533
34534
34535 case $ac_mode in
34536 :F)
34537 #
34538 # CONFIG_FILE
34539 #
34540
34541 case $INSTALL in
34542 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34543 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34544 esac
34545 ac_MKDIR_P=$MKDIR_P
34546 case $MKDIR_P in
34547 [\\/$]* | ?:[\\/]* ) ;;
34548 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34549 esac
34550_ACEOF
34551
34552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34553# If the template does not know about datarootdir, expand it.
34554# FIXME: This hack should be removed a few years after 2.60.
34555ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034556ac_sed_dataroot='
34557/datarootdir/ {
34558 p
34559 q
34560}
34561/@datadir@/p
34562/@docdir@/p
34563/@infodir@/p
34564/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034565/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034566case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34567*datarootdir*) ac_datarootdir_seen=yes;;
34568*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34571_ACEOF
34572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34573 ac_datarootdir_hack='
34574 s&@datadir@&$datadir&g
34575 s&@docdir@&$docdir&g
34576 s&@infodir@&$infodir&g
34577 s&@localedir@&$localedir&g
34578 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034579 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034580esac
34581_ACEOF
34582
34583# Neutralize VPATH when `$srcdir' = `.'.
34584# Shell code in configure.ac might set extrasub.
34585# FIXME: do we really want to maintain this feature?
34586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34587ac_sed_extra="$ac_vpsub
34588$extrasub
34589_ACEOF
34590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34591:t
34592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34593s|@configure_input@|$ac_sed_conf_input|;t t
34594s&@top_builddir@&$ac_top_builddir_sub&;t t
34595s&@top_build_prefix@&$ac_top_build_prefix&;t t
34596s&@srcdir@&$ac_srcdir&;t t
34597s&@abs_srcdir@&$ac_abs_srcdir&;t t
34598s&@top_srcdir@&$ac_top_srcdir&;t t
34599s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34600s&@builddir@&$ac_builddir&;t t
34601s&@abs_builddir@&$ac_abs_builddir&;t t
34602s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34603s&@INSTALL@&$ac_INSTALL&;t t
34604s&@MKDIR_P@&$ac_MKDIR_P&;t t
34605$ac_datarootdir_hack
34606"
34607eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy5c40fb42010-08-05 16:12:44 +000034608 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034609
34610test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34611 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34612 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy5c40fb42010-08-05 16:12:44 +000034614which seems to be undefined. Please make sure it is defined." >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy5c40fb42010-08-05 16:12:44 +000034616which seems to be undefined. Please make sure it is defined." >&2;}
cristy3ed852e2009-09-05 21:47:34 +000034617
34618 rm -f "$tmp/stdin"
34619 case $ac_file in
34620 -) cat "$tmp/out" && rm -f "$tmp/out";;
34621 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34622 esac \
cristy5c40fb42010-08-05 16:12:44 +000034623 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034624 ;;
34625 :H)
34626 #
34627 # CONFIG_HEADER
34628 #
34629 if test x"$ac_file" != x-; then
34630 {
34631 $as_echo "/* $configure_input */" \
34632 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34633 } >"$tmp/config.h" \
cristy5c40fb42010-08-05 16:12:44 +000034634 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034635 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034637$as_echo "$as_me: $ac_file is unchanged" >&6;}
34638 else
34639 rm -f "$ac_file"
34640 mv "$tmp/config.h" "$ac_file" \
cristy5c40fb42010-08-05 16:12:44 +000034641 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034642 fi
34643 else
34644 $as_echo "/* $configure_input */" \
34645 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy5c40fb42010-08-05 16:12:44 +000034646 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034647 fi
34648# Compute "$ac_file"'s index in $config_headers.
34649_am_arg="$ac_file"
34650_am_stamp_count=1
34651for _am_header in $config_headers :; do
34652 case $_am_header in
34653 $_am_arg | $_am_arg:* )
34654 break ;;
34655 * )
34656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34657 esac
34658done
34659echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34660$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34661 X"$_am_arg" : 'X\(//\)[^/]' \| \
34662 X"$_am_arg" : 'X\(//\)$' \| \
34663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34664$as_echo X"$_am_arg" |
34665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34666 s//\1/
34667 q
34668 }
34669 /^X\(\/\/\)[^/].*/{
34670 s//\1/
34671 q
34672 }
34673 /^X\(\/\/\)$/{
34674 s//\1/
34675 q
34676 }
34677 /^X\(\/\).*/{
34678 s//\1/
34679 q
34680 }
34681 s/.*/./; q'`/stamp-h$_am_stamp_count
34682 ;;
34683
cristy8b350f62009-11-15 23:12:43 +000034684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685$as_echo "$as_me: executing $ac_file commands" >&6;}
34686 ;;
34687 esac
34688
34689
34690 case $ac_file$ac_mode in
34691 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34692ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34693ac_prefix_conf_PKG=`echo MagickCore`
34694ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34695ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34696ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34697if test ".$ac_prefix_conf_INP" = "."; then
34698 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34699 case "$ac_file" in
34700 *.h) ac_prefix_conf_INP=$ac_file ;;
34701 *)
34702 esac
34703 test ".$ac_prefix_conf_INP" != "." && break
34704 done
34705fi
34706if test ".$ac_prefix_conf_INP" = "."; then
34707 case "$ac_prefix_conf_OUT" in
34708 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34709 ;;
34710 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34711 ;;
34712 *) ac_prefix_conf_INP=config.h
34713 ;;
34714 esac
34715fi
34716if test -z "$ac_prefix_conf_PKG" ; then
cristy5c40fb42010-08-05 16:12:44 +000034717 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034718else
34719 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34720 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34721 fi fi
cristy8b350f62009-11-15 23:12:43 +000034722 { $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 +000034723$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34724 if test -f $ac_prefix_conf_INP ; then
34725 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34726 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034727 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34728 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034729 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034730 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34731 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034732 echo "#endif/" >> conftest.prefix
34733 # now executing _script on _DEF input to create _OUT output file
34734 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34735 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34736 echo ' ' >>$tmp/pconfig.h
34737 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34738
34739 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34740 echo ' ' >>$tmp/pconfig.h
34741 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34742 echo "#endif" >>$tmp/pconfig.h
34743 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34746 else
34747 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34748$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34749 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34750 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34751 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34752$as_echo X"$ac_prefix_conf_OUT" |
34753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34754 s//\1/
34755 q
34756 }
34757 /^X\(\/\/\)[^/].*/{
34758 s//\1/
34759 q
34760 }
34761 /^X\(\/\/\)$/{
34762 s//\1/
34763 q
34764 }
34765 /^X\(\/\).*/{
34766 s//\1/
34767 q
34768 }
34769 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034770 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034771 rm -f "$ac_prefix_conf_OUT"
34772 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34773 fi
34774 cp conftest.prefix _configs.sed
34775 else
cristy5c40fb42010-08-05 16:12:44 +000034776 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 +000034777 fi
34778 rm -f conftest.*
34779fi
34780 ;;
34781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34782 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34783 # are listed without --file. Let's play safe and only enable the eval
34784 # if we detect the quoting.
34785 case $CONFIG_FILES in
34786 *\'*) eval set x "$CONFIG_FILES" ;;
34787 *) set x $CONFIG_FILES ;;
34788 esac
34789 shift
34790 for mf
34791 do
34792 # Strip MF so we end up with the name of the file.
34793 mf=`echo "$mf" | sed -e 's/:.*$//'`
34794 # Check whether this is an Automake generated Makefile or not.
34795 # We used to match only the files named `Makefile.in', but
34796 # some people rename them; so instead we look at the file content.
34797 # Grep'ing the first line is not enough: some people post-process
34798 # each Makefile.in and add a new line on top of each file to say so.
34799 # Grep'ing the whole file is not good either: AIX grep has a line
34800 # limit of 2048, but all sed's we know have understand at least 4000.
34801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34802 dirpart=`$as_dirname -- "$mf" ||
34803$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34804 X"$mf" : 'X\(//\)[^/]' \| \
34805 X"$mf" : 'X\(//\)$' \| \
34806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34807$as_echo X"$mf" |
34808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34809 s//\1/
34810 q
34811 }
34812 /^X\(\/\/\)[^/].*/{
34813 s//\1/
34814 q
34815 }
34816 /^X\(\/\/\)$/{
34817 s//\1/
34818 q
34819 }
34820 /^X\(\/\).*/{
34821 s//\1/
34822 q
34823 }
34824 s/.*/./; q'`
34825 else
34826 continue
34827 fi
34828 # Extract the definition of DEPDIR, am__include, and am__quote
34829 # from the Makefile without running `make'.
34830 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34831 test -z "$DEPDIR" && continue
34832 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34833 test -z "am__include" && continue
34834 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34835 # When using ansi2knr, U may be empty or an underscore; expand it
34836 U=`sed -n 's/^U = //p' < "$mf"`
34837 # Find all dependency output files, they are included files with
34838 # $(DEPDIR) in their names. We invoke sed twice because it is the
34839 # simplest approach to changing $(DEPDIR) to its actual value in the
34840 # expansion.
34841 for file in `sed -n "
34842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34844 # Make sure the directory exists.
34845 test -f "$dirpart/$file" && continue
34846 fdir=`$as_dirname -- "$file" ||
34847$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34848 X"$file" : 'X\(//\)[^/]' \| \
34849 X"$file" : 'X\(//\)$' \| \
34850 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34851$as_echo X"$file" |
34852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34853 s//\1/
34854 q
34855 }
34856 /^X\(\/\/\)[^/].*/{
34857 s//\1/
34858 q
34859 }
34860 /^X\(\/\/\)$/{
34861 s//\1/
34862 q
34863 }
34864 /^X\(\/\).*/{
34865 s//\1/
34866 q
34867 }
34868 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034869 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034870 # echo "creating $dirpart/$file"
34871 echo '# dummy' > "$dirpart/$file"
34872 done
34873 done
34874}
34875 ;;
34876 "libtool":C)
34877
34878 # See if we are running on zsh, and set the options which allow our
34879 # commands through without removal of \ escapes.
34880 if test -n "${ZSH_VERSION+set}" ; then
34881 setopt NO_GLOB_SUBST
34882 fi
34883
34884 cfgfile="${ofile}T"
34885 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34886 $RM "$cfgfile"
34887
34888 cat <<_LT_EOF >> "$cfgfile"
34889#! $SHELL
34890
34891# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34892# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34893# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34894# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34895#
34896# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy5c40fb42010-08-05 16:12:44 +000034897# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034898# Written by Gordon Matzigkeit, 1996
34899#
34900# This file is part of GNU Libtool.
34901#
34902# GNU Libtool is free software; you can redistribute it and/or
34903# modify it under the terms of the GNU General Public License as
34904# published by the Free Software Foundation; either version 2 of
34905# the License, or (at your option) any later version.
34906#
34907# As a special exception to the GNU General Public License,
34908# if you distribute this file as part of a program or library that
34909# is built using GNU Libtool, you may include this file under the
34910# same distribution terms that you use for the rest of that program.
34911#
34912# GNU Libtool is distributed in the hope that it will be useful,
34913# but WITHOUT ANY WARRANTY; without even the implied warranty of
34914# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34915# GNU General Public License for more details.
34916#
34917# You should have received a copy of the GNU General Public License
34918# along with GNU Libtool; see the file COPYING. If not, a copy
34919# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34920# obtained by writing to the Free Software Foundation, Inc.,
34921# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34922
34923
34924# The names of the tagged configurations supported by this script.
34925available_tags="CXX "
34926
34927# ### BEGIN LIBTOOL CONFIG
34928
34929# A sed program that does not truncate output.
34930SED=$lt_SED
34931
34932# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34933Xsed="\$SED -e 1s/^X//"
34934
34935# A grep program that handles long lines.
34936GREP=$lt_GREP
34937
34938# An ERE matcher.
34939EGREP=$lt_EGREP
34940
34941# A literal string matcher.
34942FGREP=$lt_FGREP
34943
34944# Which release of libtool.m4 was used?
34945macro_version=$macro_version
34946macro_revision=$macro_revision
34947
34948# Assembler program.
cristy5c40fb42010-08-05 16:12:44 +000034949AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034950
34951# DLL creation program.
cristy5c40fb42010-08-05 16:12:44 +000034952DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034953
34954# Object dumper program.
cristy5c40fb42010-08-05 16:12:44 +000034955OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034956
34957# Whether or not to build shared libraries.
34958build_libtool_libs=$enable_shared
34959
34960# Whether or not to build static libraries.
34961build_old_libs=$enable_static
34962
34963# What type of objects to build.
34964pic_mode=$pic_mode
34965
34966# Whether or not to optimize for fast installation.
34967fast_install=$enable_fast_install
34968
34969# The host system.
34970host_alias=$host_alias
34971host=$host
34972host_os=$host_os
34973
34974# The build system.
34975build_alias=$build_alias
34976build=$build
34977build_os=$build_os
34978
34979# A BSD- or MS-compatible name lister.
34980NM=$lt_NM
34981
34982# Whether we need soft or hard links.
34983LN_S=$lt_LN_S
34984
34985# What is the maximum length of a command?
34986max_cmd_len=$max_cmd_len
34987
34988# Object file suffix (normally "o").
34989objext=$ac_objext
34990
34991# Executable file suffix (normally "").
34992exeext=$exeext
34993
34994# whether the shell understands "unset".
34995lt_unset=$lt_unset
34996
34997# turn spaces into newlines.
34998SP2NL=$lt_lt_SP2NL
34999
35000# turn newlines into spaces.
35001NL2SP=$lt_lt_NL2SP
35002
cristy5c40fb42010-08-05 16:12:44 +000035003# How to create reloadable object files.
35004reload_flag=$lt_reload_flag
35005reload_cmds=$lt_reload_cmds
35006
cristy3ed852e2009-09-05 21:47:34 +000035007# Method to check whether dependent libraries are shared objects.
35008deplibs_check_method=$lt_deplibs_check_method
35009
35010# Command to use when deplibs_check_method == "file_magic".
35011file_magic_cmd=$lt_file_magic_cmd
35012
35013# The archiver.
35014AR=$lt_AR
35015AR_FLAGS=$lt_AR_FLAGS
35016
35017# A symbol stripping program.
35018STRIP=$lt_STRIP
35019
35020# Commands used to install an old-style archive.
35021RANLIB=$lt_RANLIB
35022old_postinstall_cmds=$lt_old_postinstall_cmds
35023old_postuninstall_cmds=$lt_old_postuninstall_cmds
35024
35025# A C compiler.
35026LTCC=$lt_CC
35027
35028# LTCC compiler flags.
35029LTCFLAGS=$lt_CFLAGS
35030
35031# Take the output of nm and produce a listing of raw symbols and C names.
35032global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35033
35034# Transform the output of nm in a proper C declaration.
35035global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35036
35037# Transform the output of nm in a C name address pair.
35038global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35039
35040# Transform the output of nm in a C name address pair when lib prefix is needed.
35041global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35042
35043# The name of the directory that contains temporary libtool files.
35044objdir=$objdir
35045
cristy5c40fb42010-08-05 16:12:44 +000035046# Shell to use when invoking shell scripts.
35047SHELL=$lt_SHELL
35048
35049# An echo program that does not interpret backslashes.
35050ECHO=$lt_ECHO
35051
cristy3ed852e2009-09-05 21:47:34 +000035052# Used to examine libraries when file_magic_cmd begins with "file".
35053MAGIC_CMD=$MAGIC_CMD
35054
35055# Must we lock files when doing compilation?
35056need_locks=$lt_need_locks
35057
35058# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35059DSYMUTIL=$lt_DSYMUTIL
35060
35061# Tool to change global to local symbols on Mac OS X.
35062NMEDIT=$lt_NMEDIT
35063
35064# Tool to manipulate fat objects and archives on Mac OS X.
35065LIPO=$lt_LIPO
35066
35067# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35068OTOOL=$lt_OTOOL
35069
35070# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35071OTOOL64=$lt_OTOOL64
35072
35073# Old archive suffix (normally "a").
35074libext=$libext
35075
35076# Shared library suffix (normally ".so").
35077shrext_cmds=$lt_shrext_cmds
35078
35079# The commands to extract the exported symbol list from a shared archive.
35080extract_expsyms_cmds=$lt_extract_expsyms_cmds
35081
35082# Variables whose values should be saved in libtool wrapper scripts and
35083# restored at link time.
35084variables_saved_for_relink=$lt_variables_saved_for_relink
35085
35086# Do we need the "lib" prefix for modules?
35087need_lib_prefix=$need_lib_prefix
35088
35089# Do we need a version for libraries?
35090need_version=$need_version
35091
35092# Library versioning type.
35093version_type=$version_type
35094
35095# Shared library runtime path variable.
35096runpath_var=$runpath_var
35097
35098# Shared library path variable.
35099shlibpath_var=$shlibpath_var
35100
35101# Is shlibpath searched before the hard-coded library search path?
35102shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35103
35104# Format of library name prefix.
35105libname_spec=$lt_libname_spec
35106
35107# List of archive names. First name is the real one, the rest are links.
35108# The last name is the one that the linker finds with -lNAME
35109library_names_spec=$lt_library_names_spec
35110
35111# The coded name of the library, if different from the real name.
35112soname_spec=$lt_soname_spec
35113
35114# Command to use after installation of a shared archive.
35115postinstall_cmds=$lt_postinstall_cmds
35116
35117# Command to use after uninstallation of a shared archive.
35118postuninstall_cmds=$lt_postuninstall_cmds
35119
35120# Commands used to finish a libtool library installation in a directory.
35121finish_cmds=$lt_finish_cmds
35122
35123# As "finish_cmds", except a single script fragment to be evaled but
35124# not shown.
35125finish_eval=$lt_finish_eval
35126
35127# Whether we should hardcode library paths into libraries.
35128hardcode_into_libs=$hardcode_into_libs
35129
35130# Compile-time system search path for libraries.
35131sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35132
35133# Run-time system search path for libraries.
35134sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35135
35136# Whether dlopen is supported.
35137dlopen_support=$enable_dlopen
35138
35139# Whether dlopen of programs is supported.
35140dlopen_self=$enable_dlopen_self
35141
35142# Whether dlopen of statically linked programs is supported.
35143dlopen_self_static=$enable_dlopen_self_static
35144
35145# Commands to strip libraries.
35146old_striplib=$lt_old_striplib
35147striplib=$lt_striplib
35148
35149
35150# The linker used to build libraries.
35151LD=$lt_LD
35152
35153# Commands used to build an old-style archive.
35154old_archive_cmds=$lt_old_archive_cmds
35155
35156# A language specific compiler.
35157CC=$lt_compiler
35158
35159# Is the compiler the GNU compiler?
35160with_gcc=$GCC
35161
35162# Compiler flag to turn off builtin functions.
35163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35164
35165# How to pass a linker flag through the compiler.
35166wl=$lt_lt_prog_compiler_wl
35167
35168# Additional compiler flags for building library objects.
35169pic_flag=$lt_lt_prog_compiler_pic
35170
35171# Compiler flag to prevent dynamic linking.
35172link_static_flag=$lt_lt_prog_compiler_static
35173
35174# Does compiler simultaneously support -c and -o options?
35175compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35176
35177# Whether or not to add -lc for building shared libraries.
35178build_libtool_need_lc=$archive_cmds_need_lc
35179
35180# Whether or not to disallow shared libs when runtime libs are static.
35181allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35182
35183# Compiler flag to allow reflexive dlopens.
35184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35185
35186# Compiler flag to generate shared objects directly from archives.
35187whole_archive_flag_spec=$lt_whole_archive_flag_spec
35188
35189# Whether the compiler copes with passing no objects directly.
35190compiler_needs_object=$lt_compiler_needs_object
35191
35192# Create an old-style archive from a shared archive.
35193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35194
35195# Create a temporary old-style archive to link instead of a shared archive.
35196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35197
35198# Commands used to build a shared archive.
35199archive_cmds=$lt_archive_cmds
35200archive_expsym_cmds=$lt_archive_expsym_cmds
35201
35202# Commands used to build a loadable module if different from building
35203# a shared archive.
35204module_cmds=$lt_module_cmds
35205module_expsym_cmds=$lt_module_expsym_cmds
35206
35207# Whether we are building with GNU ld or not.
35208with_gnu_ld=$lt_with_gnu_ld
35209
35210# Flag that allows shared libraries with undefined symbols to be built.
35211allow_undefined_flag=$lt_allow_undefined_flag
35212
35213# Flag that enforces no undefined symbols.
35214no_undefined_flag=$lt_no_undefined_flag
35215
35216# Flag to hardcode \$libdir into a binary during linking.
35217# This must work even if \$libdir does not exist
35218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35219
35220# If ld is used when linking, flag to hardcode \$libdir into a binary
35221# during linking. This must work even if \$libdir does not exist.
35222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35223
35224# Whether we need a single "-rpath" flag with a separated argument.
35225hardcode_libdir_separator=$lt_hardcode_libdir_separator
35226
35227# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35228# DIR into the resulting binary.
35229hardcode_direct=$hardcode_direct
35230
35231# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35232# DIR into the resulting binary and the resulting library dependency is
35233# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35234# library is relocated.
35235hardcode_direct_absolute=$hardcode_direct_absolute
35236
35237# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35238# into the resulting binary.
35239hardcode_minus_L=$hardcode_minus_L
35240
35241# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35242# into the resulting binary.
35243hardcode_shlibpath_var=$hardcode_shlibpath_var
35244
35245# Set to "yes" if building a shared library automatically hardcodes DIR
35246# into the library and all subsequent libraries and executables linked
35247# against it.
35248hardcode_automatic=$hardcode_automatic
35249
35250# Set to yes if linker adds runtime paths of dependent libraries
35251# to runtime path list.
35252inherit_rpath=$inherit_rpath
35253
35254# Whether libtool must link a program against all its dependency libraries.
35255link_all_deplibs=$link_all_deplibs
35256
35257# Fix the shell variable \$srcfile for the compiler.
35258fix_srcfile_path=$lt_fix_srcfile_path
35259
35260# Set to "yes" if exported symbols are required.
35261always_export_symbols=$always_export_symbols
35262
35263# The commands to list exported symbols.
35264export_symbols_cmds=$lt_export_symbols_cmds
35265
35266# Symbols that should not be listed in the preloaded symbols.
35267exclude_expsyms=$lt_exclude_expsyms
35268
35269# Symbols that must always be exported.
35270include_expsyms=$lt_include_expsyms
35271
35272# Commands necessary for linking programs (against libraries) with templates.
35273prelink_cmds=$lt_prelink_cmds
35274
35275# Specify filename containing input files.
35276file_list_spec=$lt_file_list_spec
35277
35278# How to hardcode a shared library path into an executable.
35279hardcode_action=$hardcode_action
35280
35281# The directories searched by this compiler when creating a shared library.
35282compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35283
35284# Dependencies to place before and after the objects being linked to
35285# create a shared library.
35286predep_objects=$lt_predep_objects
35287postdep_objects=$lt_postdep_objects
35288predeps=$lt_predeps
35289postdeps=$lt_postdeps
35290
35291# The library search path used internally by the compiler when linking
35292# a shared library.
35293compiler_lib_search_path=$lt_compiler_lib_search_path
35294
35295# ### END LIBTOOL CONFIG
35296
35297_LT_EOF
35298
35299 case $host_os in
35300 aix3*)
35301 cat <<\_LT_EOF >> "$cfgfile"
35302# AIX sometimes has problems with the GCC collect2 program. For some
35303# reason, if we set the COLLECT_NAMES environment variable, the problems
35304# vanish in a puff of smoke.
35305if test "X${COLLECT_NAMES+set}" != Xset; then
35306 COLLECT_NAMES=
35307 export COLLECT_NAMES
35308fi
35309_LT_EOF
35310 ;;
35311 esac
35312
35313
35314ltmain="$ac_aux_dir/ltmain.sh"
35315
35316
35317 # We use sed instead of cat because bash on DJGPP gets confused if
35318 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35319 # text mode, it properly converts lines to CR/LF. This bash problem
35320 # is reportedly fixed, but why not run on old versions too?
35321 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35322 || (rm -f "$cfgfile"; exit 1)
35323
35324 case $xsi_shell in
35325 yes)
35326 cat << \_LT_EOF >> "$cfgfile"
35327
35328# func_dirname file append nondir_replacement
35329# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35330# otherwise set result to NONDIR_REPLACEMENT.
35331func_dirname ()
35332{
35333 case ${1} in
35334 */*) func_dirname_result="${1%/*}${2}" ;;
35335 * ) func_dirname_result="${3}" ;;
35336 esac
35337}
35338
35339# func_basename file
35340func_basename ()
35341{
35342 func_basename_result="${1##*/}"
35343}
35344
35345# func_dirname_and_basename file append nondir_replacement
35346# perform func_basename and func_dirname in a single function
35347# call:
35348# dirname: Compute the dirname of FILE. If nonempty,
35349# add APPEND to the result, otherwise set result
35350# to NONDIR_REPLACEMENT.
35351# value returned in "$func_dirname_result"
35352# basename: Compute filename of FILE.
35353# value retuned in "$func_basename_result"
35354# Implementation must be kept synchronized with func_dirname
35355# and func_basename. For efficiency, we do not delegate to
35356# those functions but instead duplicate the functionality here.
35357func_dirname_and_basename ()
35358{
35359 case ${1} in
35360 */*) func_dirname_result="${1%/*}${2}" ;;
35361 * ) func_dirname_result="${3}" ;;
35362 esac
35363 func_basename_result="${1##*/}"
35364}
35365
35366# func_stripname prefix suffix name
35367# strip PREFIX and SUFFIX off of NAME.
35368# PREFIX and SUFFIX must not contain globbing or regex special
35369# characters, hashes, percent signs, but SUFFIX may contain a leading
35370# dot (in which case that matches only a dot).
35371func_stripname ()
35372{
35373 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35374 # positional parameters, so assign one to ordinary parameter first.
35375 func_stripname_result=${3}
35376 func_stripname_result=${func_stripname_result#"${1}"}
35377 func_stripname_result=${func_stripname_result%"${2}"}
35378}
35379
35380# func_opt_split
35381func_opt_split ()
35382{
35383 func_opt_split_opt=${1%%=*}
35384 func_opt_split_arg=${1#*=}
35385}
35386
35387# func_lo2o object
35388func_lo2o ()
35389{
35390 case ${1} in
35391 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35392 *) func_lo2o_result=${1} ;;
35393 esac
35394}
35395
35396# func_xform libobj-or-source
35397func_xform ()
35398{
35399 func_xform_result=${1%.*}.lo
35400}
35401
35402# func_arith arithmetic-term...
35403func_arith ()
35404{
35405 func_arith_result=$(( $* ))
35406}
35407
35408# func_len string
35409# STRING may not start with a hyphen.
35410func_len ()
35411{
35412 func_len_result=${#1}
35413}
35414
35415_LT_EOF
35416 ;;
35417 *) # Bourne compatible functions.
35418 cat << \_LT_EOF >> "$cfgfile"
35419
35420# func_dirname file append nondir_replacement
35421# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35422# otherwise set result to NONDIR_REPLACEMENT.
35423func_dirname ()
35424{
35425 # Extract subdirectory from the argument.
cristy5c40fb42010-08-05 16:12:44 +000035426 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035427 if test "X$func_dirname_result" = "X${1}"; then
35428 func_dirname_result="${3}"
35429 else
35430 func_dirname_result="$func_dirname_result${2}"
35431 fi
35432}
35433
35434# func_basename file
35435func_basename ()
35436{
cristy5c40fb42010-08-05 16:12:44 +000035437 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035438}
35439
35440
35441# func_stripname prefix suffix name
35442# strip PREFIX and SUFFIX off of NAME.
35443# PREFIX and SUFFIX must not contain globbing or regex special
35444# characters, hashes, percent signs, but SUFFIX may contain a leading
35445# dot (in which case that matches only a dot).
35446# func_strip_suffix prefix name
35447func_stripname ()
35448{
35449 case ${2} in
cristy5c40fb42010-08-05 16:12:44 +000035450 .*) func_stripname_result=`$ECHO "X${3}" \
35451 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35452 *) func_stripname_result=`$ECHO "X${3}" \
35453 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035454 esac
35455}
35456
35457# sed scripts:
35458my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35459my_sed_long_arg='1s/^-[^=]*=//'
35460
35461# func_opt_split
35462func_opt_split ()
35463{
cristy5c40fb42010-08-05 16:12:44 +000035464 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35465 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035466}
35467
35468# func_lo2o object
35469func_lo2o ()
35470{
cristy5c40fb42010-08-05 16:12:44 +000035471 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035472}
35473
35474# func_xform libobj-or-source
35475func_xform ()
35476{
cristy5c40fb42010-08-05 16:12:44 +000035477 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035478}
35479
35480# func_arith arithmetic-term...
35481func_arith ()
35482{
35483 func_arith_result=`expr "$@"`
35484}
35485
35486# func_len string
35487# STRING may not start with a hyphen.
35488func_len ()
35489{
35490 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35491}
35492
35493_LT_EOF
35494esac
35495
35496case $lt_shell_append in
35497 yes)
35498 cat << \_LT_EOF >> "$cfgfile"
35499
35500# func_append var value
35501# Append VALUE to the end of shell variable VAR.
35502func_append ()
35503{
35504 eval "$1+=\$2"
35505}
35506_LT_EOF
35507 ;;
35508 *)
35509 cat << \_LT_EOF >> "$cfgfile"
35510
35511# func_append var value
35512# Append VALUE to the end of shell variable VAR.
35513func_append ()
35514{
35515 eval "$1=\$$1\$2"
35516}
35517
35518_LT_EOF
35519 ;;
35520 esac
35521
35522
35523 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35524 || (rm -f "$cfgfile"; exit 1)
35525
35526 mv -f "$cfgfile" "$ofile" ||
35527 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35528 chmod +x "$ofile"
35529
35530
35531 cat <<_LT_EOF >> "$ofile"
35532
35533# ### BEGIN LIBTOOL TAG CONFIG: CXX
35534
35535# The linker used to build libraries.
35536LD=$lt_LD_CXX
35537
35538# Commands used to build an old-style archive.
35539old_archive_cmds=$lt_old_archive_cmds_CXX
35540
35541# A language specific compiler.
35542CC=$lt_compiler_CXX
35543
35544# Is the compiler the GNU compiler?
35545with_gcc=$GCC_CXX
35546
35547# Compiler flag to turn off builtin functions.
35548no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35549
35550# How to pass a linker flag through the compiler.
35551wl=$lt_lt_prog_compiler_wl_CXX
35552
35553# Additional compiler flags for building library objects.
35554pic_flag=$lt_lt_prog_compiler_pic_CXX
35555
35556# Compiler flag to prevent dynamic linking.
35557link_static_flag=$lt_lt_prog_compiler_static_CXX
35558
35559# Does compiler simultaneously support -c and -o options?
35560compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35561
35562# Whether or not to add -lc for building shared libraries.
35563build_libtool_need_lc=$archive_cmds_need_lc_CXX
35564
35565# Whether or not to disallow shared libs when runtime libs are static.
35566allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35567
35568# Compiler flag to allow reflexive dlopens.
35569export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35570
35571# Compiler flag to generate shared objects directly from archives.
35572whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35573
35574# Whether the compiler copes with passing no objects directly.
35575compiler_needs_object=$lt_compiler_needs_object_CXX
35576
35577# Create an old-style archive from a shared archive.
35578old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35579
35580# Create a temporary old-style archive to link instead of a shared archive.
35581old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35582
35583# Commands used to build a shared archive.
35584archive_cmds=$lt_archive_cmds_CXX
35585archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35586
35587# Commands used to build a loadable module if different from building
35588# a shared archive.
35589module_cmds=$lt_module_cmds_CXX
35590module_expsym_cmds=$lt_module_expsym_cmds_CXX
35591
35592# Whether we are building with GNU ld or not.
35593with_gnu_ld=$lt_with_gnu_ld_CXX
35594
35595# Flag that allows shared libraries with undefined symbols to be built.
35596allow_undefined_flag=$lt_allow_undefined_flag_CXX
35597
35598# Flag that enforces no undefined symbols.
35599no_undefined_flag=$lt_no_undefined_flag_CXX
35600
35601# Flag to hardcode \$libdir into a binary during linking.
35602# This must work even if \$libdir does not exist
35603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35604
35605# If ld is used when linking, flag to hardcode \$libdir into a binary
35606# during linking. This must work even if \$libdir does not exist.
35607hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35608
35609# Whether we need a single "-rpath" flag with a separated argument.
35610hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35611
35612# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35613# DIR into the resulting binary.
35614hardcode_direct=$hardcode_direct_CXX
35615
35616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35617# DIR into the resulting binary and the resulting library dependency is
35618# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35619# library is relocated.
35620hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35621
35622# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35623# into the resulting binary.
35624hardcode_minus_L=$hardcode_minus_L_CXX
35625
35626# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35627# into the resulting binary.
35628hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35629
35630# Set to "yes" if building a shared library automatically hardcodes DIR
35631# into the library and all subsequent libraries and executables linked
35632# against it.
35633hardcode_automatic=$hardcode_automatic_CXX
35634
35635# Set to yes if linker adds runtime paths of dependent libraries
35636# to runtime path list.
35637inherit_rpath=$inherit_rpath_CXX
35638
35639# Whether libtool must link a program against all its dependency libraries.
35640link_all_deplibs=$link_all_deplibs_CXX
35641
35642# Fix the shell variable \$srcfile for the compiler.
35643fix_srcfile_path=$lt_fix_srcfile_path_CXX
35644
35645# Set to "yes" if exported symbols are required.
35646always_export_symbols=$always_export_symbols_CXX
35647
35648# The commands to list exported symbols.
35649export_symbols_cmds=$lt_export_symbols_cmds_CXX
35650
35651# Symbols that should not be listed in the preloaded symbols.
35652exclude_expsyms=$lt_exclude_expsyms_CXX
35653
35654# Symbols that must always be exported.
35655include_expsyms=$lt_include_expsyms_CXX
35656
35657# Commands necessary for linking programs (against libraries) with templates.
35658prelink_cmds=$lt_prelink_cmds_CXX
35659
35660# Specify filename containing input files.
35661file_list_spec=$lt_file_list_spec_CXX
35662
35663# How to hardcode a shared library path into an executable.
35664hardcode_action=$hardcode_action_CXX
35665
35666# The directories searched by this compiler when creating a shared library.
35667compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35668
35669# Dependencies to place before and after the objects being linked to
35670# create a shared library.
35671predep_objects=$lt_predep_objects_CXX
35672postdep_objects=$lt_postdep_objects_CXX
35673predeps=$lt_predeps_CXX
35674postdeps=$lt_postdeps_CXX
35675
35676# The library search path used internally by the compiler when linking
35677# a shared library.
35678compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35679
35680# ### END LIBTOOL TAG CONFIG: CXX
35681_LT_EOF
35682
35683 ;;
35684 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35685 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35686 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35687 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35688 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35689 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35690
35691 esac
35692done # for ac_tag
35693
35694
cristy8b350f62009-11-15 23:12:43 +000035695as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035696_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035697ac_clean_files=$ac_clean_files_save
35698
35699test $ac_write_fail = 0 ||
cristy5c40fb42010-08-05 16:12:44 +000035700 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035701
35702
35703# configure is writing to config.log, and then calls config.status.
35704# config.status does its own redirection, appending to config.log.
35705# Unfortunately, on DOS this fails, as config.log is still kept open
35706# by configure, so config.status won't be able to write to it; its
35707# output is simply discarded. So we exec the FD to /dev/null,
35708# effectively closing config.log, so it can be properly (re)opened and
35709# appended to by config.status. When coming back to configure, we
35710# need to make the FD available again.
35711if test "$no_create" != yes; then
35712 ac_cs_success=:
35713 ac_config_status_args=
35714 test "$silent" = yes &&
35715 ac_config_status_args="$ac_config_status_args --quiet"
35716 exec 5>/dev/null
35717 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35718 exec 5>>config.log
35719 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35720 # would make configure fail if this is the last instruction.
cristy5c40fb42010-08-05 16:12:44 +000035721 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035722fi
35723if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035725$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35726fi
35727
35728
35729rm -f magick-version
35730
cristy430a7312010-01-21 20:44:04 +000035731result_dejavu_font_dir='none'
35732if test "${dejavu_font_dir}x" != 'x'; then
35733 result_dejavu_font_dir=$dejavu_font_dir
35734fi
35735
cristy3ed852e2009-09-05 21:47:34 +000035736result_ghostscript_font_dir='none'
35737if test "${ghostscript_font_dir}x" != 'x'; then
35738 result_ghostscript_font_dir=$ghostscript_font_dir
35739fi
35740
35741result_windows_font_dir='none'
35742if test "${windows_font_dir}x" != 'x'; then
35743 result_windows_font_dir=${windows_font_dir}
35744fi
35745
cristy8b350f62009-11-15 23:12:43 +000035746{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035747ImageMagick is configured as follows. Please verify that this configuration
35748matches your expectations.
35749
35750Host system type: $host
35751Build system type: $build
35752
35753 Option Value
35754-------------------------------------------------------------------------------
35755Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35756Static libraries --enable-static=$enable_static $libtool_build_static_libs
35757Module support --with-modules=$with_modules $with_modules
35758GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35759Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35760High Dynamic Range Imagery
35761 --enable-hdri=$enable_hdri $enable_hdri
35762
35763Delegate Configuration:
35764BZLIB --with-bzlib=$with_bzlib $have_bzlib
35765Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035766Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035767DJVU --with-djvu=$with_djvu $have_djvu
35768DPS --with-dps=$with_dps $have_dps
35769FFTW --with-fftw=$with_fftw $have_fftw
35770FlashPIX --with-fpx=$with_fpx $have_fpx
35771FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35772FreeType --with-freetype=$with_freetype $have_freetype
35773GhostPCL None $PCLDelegate ($PCLVersion)
35774GhostXPS None $XPSDelegate ($XPSVersion)
35775Ghostscript None $PSDelegate ($GSVersion)
35776Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35777Ghostscript lib --with-gslib=$with_gslib $have_gslib
35778Graphviz --with-gvc=$with_gvc $have_gvc
35779JBIG --with-jbig=$with_jbig $have_jbig
35780JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35781JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035782LCMS v1 --with-lcms=$with_lcms $have_lcms
35783LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035784LQR --with-lqr=$with_lqr $have_lqr
35785Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35786OpenEXR --with-openexr=$with_openexr $have_openexr
35787PERL --with-perl=$with_perl $have_perl
35788PNG --with-png=$with_png $have_png
35789RSVG --with-rsvg=$with_rsvg $have_rsvg
35790TIFF --with-tiff=$with_tiff $have_tiff
35791Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35792WMF --with-wmf=$with_wmf $have_wmf
35793X11 --with-x=$with_x $have_x
35794XML --with-xml=$with_xml $have_xml
35795ZLIB --with-zlib=$with_zlib $have_zlib
35796
35797X11 Configuration:
35798 X_CFLAGS = $X_CFLAGS
35799 X_PRE_LIBS = $X_PRE_LIBS
35800 X_LIBS = $X_LIBS
35801 X_EXTRA_LIBS = $X_EXTRA_LIBS
35802
35803Options used to compile and link:
35804 PREFIX = $PREFIX_DIR
35805 EXEC-PREFIX = $EXEC_PREFIX_DIR
35806 VERSION = $PACKAGE_VERSION
35807 CC = $CC
35808 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035809 CPPFLAGS = $MAGICK_CPPFLAGS
35810 PCFLAGS = $MAGICK_PCFLAGS
35811 DEFS = $DEFS
35812 LDFLAGS = $LDFLAGS
35813 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35814 LIBS = $MAGICK_LIBS
35815 CXX = $CXX
35816 CXXFLAGS = $CXXFLAGS
35817" >&5
35818$as_echo "
35819ImageMagick is configured as follows. Please verify that this configuration
35820matches your expectations.
35821
35822Host system type: $host
35823Build system type: $build
35824
35825 Option Value
35826-------------------------------------------------------------------------------
35827Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35828Static libraries --enable-static=$enable_static $libtool_build_static_libs
35829Module support --with-modules=$with_modules $with_modules
35830GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35831Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35832High Dynamic Range Imagery
35833 --enable-hdri=$enable_hdri $enable_hdri
35834
35835Delegate Configuration:
35836BZLIB --with-bzlib=$with_bzlib $have_bzlib
35837Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035838Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035839DJVU --with-djvu=$with_djvu $have_djvu
35840DPS --with-dps=$with_dps $have_dps
35841FFTW --with-fftw=$with_fftw $have_fftw
35842FlashPIX --with-fpx=$with_fpx $have_fpx
35843FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35844FreeType --with-freetype=$with_freetype $have_freetype
35845GhostPCL None $PCLDelegate ($PCLVersion)
35846GhostXPS None $XPSDelegate ($XPSVersion)
35847Ghostscript None $PSDelegate ($GSVersion)
35848Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35849Ghostscript lib --with-gslib=$with_gslib $have_gslib
35850Graphviz --with-gvc=$with_gvc $have_gvc
35851JBIG --with-jbig=$with_jbig $have_jbig
35852JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35853JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000035854LCMS v1 --with-lcms=$with_lcms $have_lcms
35855LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000035856LQR --with-lqr=$with_lqr $have_lqr
35857Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35858OpenEXR --with-openexr=$with_openexr $have_openexr
35859PERL --with-perl=$with_perl $have_perl
35860PNG --with-png=$with_png $have_png
35861RSVG --with-rsvg=$with_rsvg $have_rsvg
35862TIFF --with-tiff=$with_tiff $have_tiff
35863Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35864WMF --with-wmf=$with_wmf $have_wmf
35865X11 --with-x=$with_x $have_x
35866XML --with-xml=$with_xml $have_xml
35867ZLIB --with-zlib=$with_zlib $have_zlib
35868
35869X11 Configuration:
35870 X_CFLAGS = $X_CFLAGS
35871 X_PRE_LIBS = $X_PRE_LIBS
35872 X_LIBS = $X_LIBS
35873 X_EXTRA_LIBS = $X_EXTRA_LIBS
35874
35875Options used to compile and link:
35876 PREFIX = $PREFIX_DIR
35877 EXEC-PREFIX = $EXEC_PREFIX_DIR
35878 VERSION = $PACKAGE_VERSION
35879 CC = $CC
35880 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035881 CPPFLAGS = $MAGICK_CPPFLAGS
35882 PCFLAGS = $MAGICK_PCFLAGS
35883 DEFS = $DEFS
35884 LDFLAGS = $LDFLAGS
35885 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35886 LIBS = $MAGICK_LIBS
35887 CXX = $CXX
35888 CXXFLAGS = $CXXFLAGS
35889" >&6; }