blob: 41a07b8837e5b877cd4cc282fdd0b9d8012ef2be [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristydc12aa12010-02-22 01:03:18 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristydc12aa12010-02-22 01:03:18 +0000708PACKAGE_VERSION='6.6.0'
709PACKAGE_STRING='ImageMagick 6.6.0'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
776GSVersion
777GSPSDevice
778GSPDFDevice
779GSMonoDevice
780GSEPSDevice
781GSColorDevice
782GSCMYKDevice
783GSAlphaDevice
784XPSVersion
785XPSCMYKDevice
786XPSColorDevice
787XPSMonoDevice
788PCLVersion
789PCLCMYKDevice
790PCLColorDevice
791PCLMonoDevice
792ZIP_DELEGATE_FALSE
793ZIP_DELEGATE_TRUE
794ZIP
795P7ZIP_DELEGATE_FALSE
796P7ZIP_DELEGATE_TRUE
797P7ZIP
798RPM_DELEGATE_FALSE
799RPM_DELEGATE_TRUE
800RPM
801PERL
802TAR
803ShowImageDelegate
804type_include_files
805ghostscript_font_dir
806windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000807dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000808PrintDelegate
809ZipDelegate
810XPSDelegate
811WWWDecodeDelegate
812WMFDecodeDelegate
813TXTDelegate
814SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000815RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000816RMDelegate
817RLEEncodeDelegate
818PSDelegate
819POVDelegate
820PGPDecodeDelegate
821PCLDelegate
822MVDelegate
823MPEGEncodeDelegate
824MPEGDecodeDelegate
825MANDelegate
826LaunchDelegate
827LZWEncodeDelegate
828LZWDecodeDelegate
829LPRDelegate
830LPDelegate
831ILBMEncodeDelegate
832ILBMDecodeDelegate
833HTMLDecodeDelegate
834HPGLDecodeDelegate
835HDRDecodeDelegate
836GnuplotDecodeDelegate
837MogrifyDelegate
838DisplayDelegate
839ConvertDelegate
840FIGDecodeDelegate
841EditorDelegate
842EchoDelegate
843DVIDecodeDelegate
844GVCDecodeDelegate
845DNGDecodeDelegate
846CatDelegate
847CGMDecodeDelegate
848BrowseDelegate
849BZIPDelegate
850BlenderDecodeDelegate
851AVIDecodeDelegate
852AutotraceDecodeDelegate
853SHARE_CONFIGURE_PATH
854SHARE_PATH
855DOCUMENTATION_PATH
856FILTER_PATH
857CODER_PATH
858CONFIGURE_PATH
859LIBRARY_PATH
860EXECUTABLE_PATH
861PERLMAINCC
862XML_LIBS
863XML_DELEGATE_FALSE
864XML_DELEGATE_TRUE
865xml2_config
866WMF_LIBS_DEPS
867WMF_LIBS
868WMF_DELEGATE_FALSE
869WMF_DELEGATE_TRUE
870TIFF_LIBS
871TIFF_DELEGATE_FALSE
872TIFF_DELEGATE_TRUE
873CAIRO_DELEGATE_FALSE
874CAIRO_DELEGATE_TRUE
875RSVG_DELEGATE_FALSE
876RSVG_DELEGATE_TRUE
877CAIRO_SVG_LIBS
878CAIRO_SVG_CFLAGS
879RSVG_LIBS
880RSVG_CFLAGS
881PNG_LIBS
882PNG_DELEGATE_FALSE
883PNG_DELEGATE_TRUE
884OPENEXR_DELEGATE_FALSE
885OPENEXR_DELEGATE_TRUE
886OPENEXR_LIBS
887OPENEXR_CFLAGS
888LQR_DELEGATE_FALSE
889LQR_DELEGATE_TRUE
890LQR_LIBS
891LQR_CFLAGS
892LCMS_LIBS
893LCMS_DELEGATE_FALSE
894LCMS_DELEGATE_TRUE
895JP2_LIBS
896JP2_DELEGATE_FALSE
897JP2_DELEGATE_TRUE
898JPEG_LIBS
899JPEG_DELEGATE_FALSE
900JPEG_DELEGATE_TRUE
901JBIG_LIBS
902JBIG_DELEGATE_FALSE
903JBIG_DELEGATE_TRUE
904GVC_DELEGATE_FALSE
905GVC_DELEGATE_TRUE
906GVC_LIBS
907GVC_CFLAGS
908GS_LIBS
909GS_DELEGATE_FALSE
910GS_DELEGATE_TRUE
911FREETYPE_LIBS
912FREETYPE_DELEGATE_FALSE
913FREETYPE_DELEGATE_TRUE
914freetype_config
915FONTCONFIG_DELEGATE_FALSE
916FONTCONFIG_DELEGATE_TRUE
917FONTCONFIG_LIBS
918FONTCONFIG_CFLAGS
919FPX_LIBS
920FPX_DELEGATE_FALSE
921FPX_DELEGATE_TRUE
922FFTW_LIBS
923FFTW_DELEGATE_FALSE
924FFTW_DELEGATE_TRUE
925DJVU_LIBS
926DJVU_DELEGATE_FALSE
927DJVU_DELEGATE_TRUE
928DPS_LIBS
929DPS_DELEGATE_FALSE
930DPS_DELEGATE_TRUE
931AUTOTRACE_DELEGATE_FALSE
932AUTOTRACE_DELEGATE_TRUE
933AUTOTRACE_LIBS
934AUTOTRACE_CFLAGS
935LIB_DL
936ZLIB_LIBS
937ZLIB_DELEGATE_FALSE
938ZLIB_DELEGATE_TRUE
939XEXT_LIBS
940X11_LIBS
941X11_DELEGATE_FALSE
942X11_DELEGATE_TRUE
943X_EXTRA_LIBS
944X_LIBS
945X_PRE_LIBS
946X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000947XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000948BZLIB_LIBS
949BZLIB_DELEGATE_FALSE
950BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000951CCMALLOCDelegate
952UMEM_LIBS
953HasUMEM_FALSE
954HasUMEM_TRUE
955THREAD_LIBS
956GOMP_LIBS
957WITH_MAGICK_PLUS_PLUS_FALSE
958WITH_MAGICK_PLUS_PLUS_TRUE
959OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000960MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000961POW_LIB
962LIBOBJS
963UINTPTR_T
964UINTMAX_T
965UINT64_T
966INT64_T
967UINT32_T
968INT32_T
969UINT16_T
970INT16_T
971UINT8_T
972INT8_T
973LIBRARY_EXTRA_CPPFLAGS
974MODULE_EXTRA_CPPFLAGS
975LIBSTDCLDFLAGS
976PERL_MAKE_OPTIONS
977QUANTUM_DEPTH
978MAINT
979MAINTAINER_MODE_FALSE
980MAINTAINER_MODE_TRUE
981MAGICK_HDRI
982DLLDFLAGS
983WITH_LTDL_FALSE
984WITH_LTDL_TRUE
985WITH_MODULES_FALSE
986WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000987WITH_SHARED_LIBS_FALSE
988WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000989LTDLOPEN
990LT_CONFIG_H
991CONVENIENCE_LTDL_FALSE
992CONVENIENCE_LTDL_TRUE
993INSTALL_LTDL_FALSE
994INSTALL_LTDL_TRUE
995ARGZ_H
996sys_symbol_underscore
997LIBADD_DL
998LT_DLPREOPEN
999LIBADD_DLD_LINK
1000LIBADD_SHL_LOAD
1001LIBADD_DLOPEN
1002LT_DLLOADERS
1003INCLTDL
1004LTDLINCL
1005LTDLDEPS
1006LIBLTDL
1007LIBTOOL_DEPS
1008CXXCPP
1009OTOOL64
1010OTOOL
1011LIPO
1012NMEDIT
1013DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001014lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001015RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001016AR
1017NM
1018ac_ct_DUMPBIN
1019DUMPBIN
1020LIBTOOL
1021OBJDUMP
1022DLLTOOL
1023AS
1024LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001025CL_LIBS
1026CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001027OPENMP_CFLAGS
1028PTHREAD_CFLAGS
1029PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001030PTHREAD_CC
1031acx_pthread_config
1032WinPathScript
1033USING_CL_FALSE
1034USING_CL_TRUE
1035CYGWIN_BUILD_FALSE
1036CYGWIN_BUILD_TRUE
1037WIN32_NATIVE_BUILD_FALSE
1038WIN32_NATIVE_BUILD_TRUE
1039WINGDI32_DELEGATE_FALSE
1040WINGDI32_DELEGATE_TRUE
1041GDI32_LIBS
1042PKG_CONFIG
1043LN_S
cristy3ed852e2009-09-05 21:47:34 +00001044LD
1045FGREP
cristy3ed852e2009-09-05 21:47:34 +00001046SED
cristy95646052009-11-28 23:05:30 +00001047am__fastdepCXX_FALSE
1048am__fastdepCXX_TRUE
1049CXXDEPMODE
1050ac_ct_CXX
1051CXXFLAGS
1052CXX
cristya0b81c32010-01-22 02:54:33 +00001053EGREP
1054GREP
1055CPP
cristy3ed852e2009-09-05 21:47:34 +00001056am__fastdepCC_FALSE
1057am__fastdepCC_TRUE
1058CCDEPMODE
1059AMDEPBACKSLASH
1060AMDEP_FALSE
1061AMDEP_TRUE
1062am__quote
1063am__include
1064DEPDIR
1065OBJEXT
1066EXEEXT
1067ac_ct_CC
1068CPPFLAGS
1069LDFLAGS
1070CFLAGS
1071CC
1072DIRSEP
1073MAGICK_FILTER_MODULE_PATH
1074MAGICK_CONFIGURE_BUILD_PATH
1075MAGICK_CONFIGURE_SRC_PATH
1076MAGICK_CODER_MODULE_PATH
1077MAN_DIR
1078INFO_DIR
1079PERSISTINCLUDE_DIR
1080INCLUDE_DIR
1081LIB_DIR
1082LOCALSTATE_DIR
1083SHAREDSTATE_DIR
1084SYSCONF_DIR
1085DATA_DIR
1086LIBEXEC_DIR
1087SBIN_DIR
1088BIN_DIR
1089EXEC_PREFIX_DIR
1090PREFIX_DIR
1091CONFIG_STATUS_DEPENDENCIES
1092MAGICK_LIB_VERSION_NUMBER
1093MAGICK_LIB_VERSION_TEXT
1094MAGICK_LIB_VERSION
1095AM_BACKSLASH
1096AM_DEFAULT_VERBOSITY
1097am__untar
1098am__tar
1099AMTAR
1100am__leading_dot
1101SET_MAKE
1102AWK
1103mkdir_p
1104MKDIR_P
1105INSTALL_STRIP_PROGRAM
1106STRIP
1107install_sh
1108MAKEINFO
1109AUTOHEADER
1110AUTOMAKE
1111AUTOCONF
1112ACLOCAL
1113VERSION
1114PACKAGE
1115CYGPATH_W
1116am__isrc
1117INSTALL_DATA
1118INSTALL_SCRIPT
1119INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001120PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001121PACKAGE_RELEASE_DATE
1122PACKAGE_LIB_VERSION_NUMBER
1123PACKAGE_LIB_VERSION
1124PACKAGE_CHANGE_DATE
1125PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001126MAGICK_LIBRARY_VERSION_INFO
1127MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001128MAGICK_LIBRARY_AGE
1129MAGICK_LIBRARY_REVISION
1130MAGICK_LIBRARY_CURRENT
1131target_os
1132target_vendor
1133target_cpu
1134target
1135host_os
1136host_vendor
1137host_cpu
1138host
1139build_os
1140build_vendor
1141build_cpu
1142build
1143CONFIGURE_ARGS
1144DISTCHECK_CONFIG_FLAGS
1145target_alias
1146host_alias
1147build_alias
1148LIBS
1149ECHO_T
1150ECHO_N
1151ECHO_C
1152DEFS
1153mandir
1154localedir
1155libdir
1156psdir
1157pdfdir
1158dvidir
1159htmldir
1160infodir
1161docdir
1162oldincludedir
1163includedir
1164localstatedir
1165sharedstatedir
1166sysconfdir
1167datadir
1168datarootdir
1169libexecdir
1170sbindir
1171bindir
1172program_transform_name
1173prefix
1174exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001175PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001176PACKAGE_BUGREPORT
1177PACKAGE_STRING
1178PACKAGE_VERSION
1179PACKAGE_TARNAME
1180PACKAGE_NAME
1181PATH_SEPARATOR
1182SHELL'
1183ac_subst_files=''
1184ac_user_opts='
1185enable_option_checking
1186enable_silent_rules
1187enable_dependency_tracking
1188with_gnu_ld
1189with_maximum_compile_warnings
1190with_dmalloc
1191enable_bounds_checking
1192enable_osx_universal_binary
1193with_threads
1194enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001195enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001196enable_largefile
1197enable_shared
1198enable_static
1199with_pic
1200enable_fast_install
1201enable_libtool_lock
1202with_included_ltdl
1203with_ltdl_include
1204with_ltdl_lib
1205enable_ltdl_install
1206with_modules
1207enable_delegate_build
1208enable_deprecated
1209enable_installed
1210enable_cipher
1211enable_embeddable
1212enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001213enable_assert
1214enable_maintainer_mode
1215enable_ccmalloc
1216enable_efence
1217enable_prof
1218enable_gprof
1219enable_gcov
1220with_method_prefix
1221with_quantum_depth
1222with_cache
1223with_frozenpaths
1224with_magick_plus_plus
1225with_perl
1226with_perl_options
1227with_umem
1228with_libstdc
1229with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001230with_x
cristy3ed852e2009-09-05 21:47:34 +00001231with_zlib
1232with_autotrace
1233with_dps
1234with_djvu
cristy430a7312010-01-21 20:44:04 +00001235with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001236with_fftw
1237with_fpx
1238with_fontconfig
1239with_freetype
1240with_gslib
1241with_fontpath
1242with_gs_font_dir
1243with_gvc
1244with_jbig
1245with_jpeg
1246with_jp2
1247with_lcms
1248with_lqr
1249with_openexr
1250with_png
1251with_rsvg
1252with_tiff
1253with_windows_font_dir
1254with_wmf
1255with_xml
1256'
1257 ac_precious_vars='build_alias
1258host_alias
1259target_alias
1260CC
1261CFLAGS
1262LDFLAGS
1263LIBS
1264CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001265CPP
cristy3ed852e2009-09-05 21:47:34 +00001266CXX
1267CXXFLAGS
1268CCC
1269PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001270CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001271XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001272AUTOTRACE_CFLAGS
1273AUTOTRACE_LIBS
1274FONTCONFIG_CFLAGS
1275FONTCONFIG_LIBS
1276GVC_CFLAGS
1277GVC_LIBS
1278LQR_CFLAGS
1279LQR_LIBS
1280OPENEXR_CFLAGS
1281OPENEXR_LIBS
1282RSVG_CFLAGS
1283RSVG_LIBS
1284CAIRO_SVG_CFLAGS
1285CAIRO_SVG_LIBS'
1286
1287
1288# Initialize some variables set by options.
1289ac_init_help=
1290ac_init_version=false
1291ac_unrecognized_opts=
1292ac_unrecognized_sep=
1293# The variables have the same names as the options, with
1294# dashes changed to underlines.
1295cache_file=/dev/null
1296exec_prefix=NONE
1297no_create=
1298no_recursion=
1299prefix=NONE
1300program_prefix=NONE
1301program_suffix=NONE
1302program_transform_name=s,x,x,
1303silent=
1304site=
1305srcdir=
1306verbose=
1307x_includes=NONE
1308x_libraries=NONE
1309
1310# Installation directory options.
1311# These are left unexpanded so users can "make install exec_prefix=/foo"
1312# and all the variables that are supposed to be based on exec_prefix
1313# by default will actually change.
1314# Use braces instead of parens because sh, perl, etc. also accept them.
1315# (The list follows the same order as the GNU Coding Standards.)
1316bindir='${exec_prefix}/bin'
1317sbindir='${exec_prefix}/sbin'
1318libexecdir='${exec_prefix}/libexec'
1319datarootdir='${prefix}/share'
1320datadir='${datarootdir}'
1321sysconfdir='${prefix}/etc'
1322sharedstatedir='${prefix}/com'
1323localstatedir='${prefix}/var'
1324includedir='${prefix}/include'
1325oldincludedir='/usr/include'
1326docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1327infodir='${datarootdir}/info'
1328htmldir='${docdir}'
1329dvidir='${docdir}'
1330pdfdir='${docdir}'
1331psdir='${docdir}'
1332libdir='${exec_prefix}/lib'
1333localedir='${datarootdir}/locale'
1334mandir='${datarootdir}/man'
1335
1336ac_prev=
1337ac_dashdash=
1338for ac_option
1339do
1340 # If the previous option needs an argument, assign it.
1341 if test -n "$ac_prev"; then
1342 eval $ac_prev=\$ac_option
1343 ac_prev=
1344 continue
1345 fi
1346
1347 case $ac_option in
1348 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1349 *) ac_optarg=yes ;;
1350 esac
1351
1352 # Accept the important Cygnus configure options, so we can diagnose typos.
1353
1354 case $ac_dashdash$ac_option in
1355 --)
1356 ac_dashdash=yes ;;
1357
1358 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1359 ac_prev=bindir ;;
1360 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1361 bindir=$ac_optarg ;;
1362
1363 -build | --build | --buil | --bui | --bu)
1364 ac_prev=build_alias ;;
1365 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1366 build_alias=$ac_optarg ;;
1367
1368 -cache-file | --cache-file | --cache-fil | --cache-fi \
1369 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1370 ac_prev=cache_file ;;
1371 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1372 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1373 cache_file=$ac_optarg ;;
1374
1375 --config-cache | -C)
1376 cache_file=config.cache ;;
1377
1378 -datadir | --datadir | --datadi | --datad)
1379 ac_prev=datadir ;;
1380 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1381 datadir=$ac_optarg ;;
1382
1383 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1384 | --dataroo | --dataro | --datar)
1385 ac_prev=datarootdir ;;
1386 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1387 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1388 datarootdir=$ac_optarg ;;
1389
1390 -disable-* | --disable-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001394 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1398 *"
1399"enable_$ac_useropt"
1400"*) ;;
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1403 esac
1404 eval enable_$ac_useropt=no ;;
1405
1406 -docdir | --docdir | --docdi | --doc | --do)
1407 ac_prev=docdir ;;
1408 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1409 docdir=$ac_optarg ;;
1410
1411 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1412 ac_prev=dvidir ;;
1413 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1414 dvidir=$ac_optarg ;;
1415
1416 -enable-* | --enable-*)
1417 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001420 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1424 *"
1425"enable_$ac_useropt"
1426"*) ;;
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1429 esac
1430 eval enable_$ac_useropt=\$ac_optarg ;;
1431
1432 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1433 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1434 | --exec | --exe | --ex)
1435 ac_prev=exec_prefix ;;
1436 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1437 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1438 | --exec=* | --exe=* | --ex=*)
1439 exec_prefix=$ac_optarg ;;
1440
1441 -gas | --gas | --ga | --g)
1442 # Obsolete; use --with-gas.
1443 with_gas=yes ;;
1444
1445 -help | --help | --hel | --he | -h)
1446 ac_init_help=long ;;
1447 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1448 ac_init_help=recursive ;;
1449 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1450 ac_init_help=short ;;
1451
1452 -host | --host | --hos | --ho)
1453 ac_prev=host_alias ;;
1454 -host=* | --host=* | --hos=* | --ho=*)
1455 host_alias=$ac_optarg ;;
1456
1457 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1458 ac_prev=htmldir ;;
1459 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1460 | --ht=*)
1461 htmldir=$ac_optarg ;;
1462
1463 -includedir | --includedir | --includedi | --included | --include \
1464 | --includ | --inclu | --incl | --inc)
1465 ac_prev=includedir ;;
1466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1467 | --includ=* | --inclu=* | --incl=* | --inc=*)
1468 includedir=$ac_optarg ;;
1469
1470 -infodir | --infodir | --infodi | --infod | --info | --inf)
1471 ac_prev=infodir ;;
1472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1473 infodir=$ac_optarg ;;
1474
1475 -libdir | --libdir | --libdi | --libd)
1476 ac_prev=libdir ;;
1477 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1478 libdir=$ac_optarg ;;
1479
1480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1481 | --libexe | --libex | --libe)
1482 ac_prev=libexecdir ;;
1483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1484 | --libexe=* | --libex=* | --libe=*)
1485 libexecdir=$ac_optarg ;;
1486
1487 -localedir | --localedir | --localedi | --localed | --locale)
1488 ac_prev=localedir ;;
1489 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1490 localedir=$ac_optarg ;;
1491
1492 -localstatedir | --localstatedir | --localstatedi | --localstated \
1493 | --localstate | --localstat | --localsta | --localst | --locals)
1494 ac_prev=localstatedir ;;
1495 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1496 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1497 localstatedir=$ac_optarg ;;
1498
1499 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1500 ac_prev=mandir ;;
1501 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1502 mandir=$ac_optarg ;;
1503
1504 -nfp | --nfp | --nf)
1505 # Obsolete; use --without-fp.
1506 with_fp=no ;;
1507
1508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1509 | --no-cr | --no-c | -n)
1510 no_create=yes ;;
1511
1512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1514 no_recursion=yes ;;
1515
1516 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1517 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1518 | --oldin | --oldi | --old | --ol | --o)
1519 ac_prev=oldincludedir ;;
1520 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1521 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1522 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1523 oldincludedir=$ac_optarg ;;
1524
1525 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1526 ac_prev=prefix ;;
1527 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1528 prefix=$ac_optarg ;;
1529
1530 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1531 | --program-pre | --program-pr | --program-p)
1532 ac_prev=program_prefix ;;
1533 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1534 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1535 program_prefix=$ac_optarg ;;
1536
1537 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1538 | --program-suf | --program-su | --program-s)
1539 ac_prev=program_suffix ;;
1540 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1541 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1542 program_suffix=$ac_optarg ;;
1543
1544 -program-transform-name | --program-transform-name \
1545 | --program-transform-nam | --program-transform-na \
1546 | --program-transform-n | --program-transform- \
1547 | --program-transform | --program-transfor \
1548 | --program-transfo | --program-transf \
1549 | --program-trans | --program-tran \
1550 | --progr-tra | --program-tr | --program-t)
1551 ac_prev=program_transform_name ;;
1552 -program-transform-name=* | --program-transform-name=* \
1553 | --program-transform-nam=* | --program-transform-na=* \
1554 | --program-transform-n=* | --program-transform-=* \
1555 | --program-transform=* | --program-transfor=* \
1556 | --program-transfo=* | --program-transf=* \
1557 | --program-trans=* | --program-tran=* \
1558 | --progr-tra=* | --program-tr=* | --program-t=*)
1559 program_transform_name=$ac_optarg ;;
1560
1561 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1562 ac_prev=pdfdir ;;
1563 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1564 pdfdir=$ac_optarg ;;
1565
1566 -psdir | --psdir | --psdi | --psd | --ps)
1567 ac_prev=psdir ;;
1568 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1569 psdir=$ac_optarg ;;
1570
1571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1572 | -silent | --silent | --silen | --sile | --sil)
1573 silent=yes ;;
1574
1575 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1576 ac_prev=sbindir ;;
1577 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1578 | --sbi=* | --sb=*)
1579 sbindir=$ac_optarg ;;
1580
1581 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1582 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1583 | --sharedst | --shareds | --shared | --share | --shar \
1584 | --sha | --sh)
1585 ac_prev=sharedstatedir ;;
1586 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1587 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1588 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1589 | --sha=* | --sh=*)
1590 sharedstatedir=$ac_optarg ;;
1591
1592 -site | --site | --sit)
1593 ac_prev=site ;;
1594 -site=* | --site=* | --sit=*)
1595 site=$ac_optarg ;;
1596
1597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1598 ac_prev=srcdir ;;
1599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1600 srcdir=$ac_optarg ;;
1601
1602 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1603 | --syscon | --sysco | --sysc | --sys | --sy)
1604 ac_prev=sysconfdir ;;
1605 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1606 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1607 sysconfdir=$ac_optarg ;;
1608
1609 -target | --target | --targe | --targ | --tar | --ta | --t)
1610 ac_prev=target_alias ;;
1611 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1612 target_alias=$ac_optarg ;;
1613
1614 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1615 verbose=yes ;;
1616
1617 -version | --version | --versio | --versi | --vers | -V)
1618 ac_init_version=: ;;
1619
1620 -with-* | --with-*)
1621 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1622 # Reject names that are not valid shell variable names.
1623 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001624 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001625 ac_useropt_orig=$ac_useropt
1626 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1627 case $ac_user_opts in
1628 *"
1629"with_$ac_useropt"
1630"*) ;;
1631 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1632 ac_unrecognized_sep=', ';;
1633 esac
1634 eval with_$ac_useropt=\$ac_optarg ;;
1635
1636 -without-* | --without-*)
1637 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1638 # Reject names that are not valid shell variable names.
1639 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001640 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001641 ac_useropt_orig=$ac_useropt
1642 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1643 case $ac_user_opts in
1644 *"
1645"with_$ac_useropt"
1646"*) ;;
1647 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1648 ac_unrecognized_sep=', ';;
1649 esac
1650 eval with_$ac_useropt=no ;;
1651
1652 --x)
1653 # Obsolete; use --with-x.
1654 with_x=yes ;;
1655
1656 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1657 | --x-incl | --x-inc | --x-in | --x-i)
1658 ac_prev=x_includes ;;
1659 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1660 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1661 x_includes=$ac_optarg ;;
1662
1663 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1664 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1665 ac_prev=x_libraries ;;
1666 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1667 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1668 x_libraries=$ac_optarg ;;
1669
cristy8b350f62009-11-15 23:12:43 +00001670 -*) as_fn_error "unrecognized option: \`$ac_option'
1671Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001672 ;;
1673
1674 *=*)
1675 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1676 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001677 case $ac_envvar in #(
1678 '' | [0-9]* | *[!_$as_cr_alnum]* )
1679 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1680 esac
cristy3ed852e2009-09-05 21:47:34 +00001681 eval $ac_envvar=\$ac_optarg
1682 export $ac_envvar ;;
1683
1684 *)
1685 # FIXME: should be removed in autoconf 3.0.
1686 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1687 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1688 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1689 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1690 ;;
1691
1692 esac
1693done
1694
1695if test -n "$ac_prev"; then
1696 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001697 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001698fi
1699
1700if test -n "$ac_unrecognized_opts"; then
1701 case $enable_option_checking in
1702 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001703 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001704 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1705 esac
1706fi
1707
1708# Check all directory arguments for consistency.
1709for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1710 datadir sysconfdir sharedstatedir localstatedir includedir \
1711 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1712 libdir localedir mandir
1713do
1714 eval ac_val=\$$ac_var
1715 # Remove trailing slashes.
1716 case $ac_val in
1717 */ )
1718 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1719 eval $ac_var=\$ac_val;;
1720 esac
1721 # Be sure to have absolute directory names.
1722 case $ac_val in
1723 [\\/$]* | ?:[\\/]* ) continue;;
1724 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1725 esac
cristy8b350f62009-11-15 23:12:43 +00001726 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001727done
1728
1729# There might be people who depend on the old broken behavior: `$host'
1730# used to hold the argument of --host etc.
1731# FIXME: To remove some day.
1732build=$build_alias
1733host=$host_alias
1734target=$target_alias
1735
1736# FIXME: To remove some day.
1737if test "x$host_alias" != x; then
1738 if test "x$build_alias" = x; then
1739 cross_compiling=maybe
1740 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1741 If a cross compiler is detected then cross compile mode will be used." >&2
1742 elif test "x$build_alias" != "x$host_alias"; then
1743 cross_compiling=yes
1744 fi
1745fi
1746
1747ac_tool_prefix=
1748test -n "$host_alias" && ac_tool_prefix=$host_alias-
1749
1750test "$silent" = yes && exec 6>/dev/null
1751
1752
1753ac_pwd=`pwd` && test -n "$ac_pwd" &&
1754ac_ls_di=`ls -di .` &&
1755ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001756 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001757test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001758 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001759
1760
1761# Find the source files, if location was not specified.
1762if test -z "$srcdir"; then
1763 ac_srcdir_defaulted=yes
1764 # Try the directory containing this script, then the parent directory.
1765 ac_confdir=`$as_dirname -- "$as_myself" ||
1766$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1767 X"$as_myself" : 'X\(//\)[^/]' \| \
1768 X"$as_myself" : 'X\(//\)$' \| \
1769 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1770$as_echo X"$as_myself" |
1771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1772 s//\1/
1773 q
1774 }
1775 /^X\(\/\/\)[^/].*/{
1776 s//\1/
1777 q
1778 }
1779 /^X\(\/\/\)$/{
1780 s//\1/
1781 q
1782 }
1783 /^X\(\/\).*/{
1784 s//\1/
1785 q
1786 }
1787 s/.*/./; q'`
1788 srcdir=$ac_confdir
1789 if test ! -r "$srcdir/$ac_unique_file"; then
1790 srcdir=..
1791 fi
1792else
1793 ac_srcdir_defaulted=no
1794fi
1795if test ! -r "$srcdir/$ac_unique_file"; then
1796 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001797 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001798fi
1799ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1800ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001801 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001802 pwd)`
1803# When building in place, set srcdir=.
1804if test "$ac_abs_confdir" = "$ac_pwd"; then
1805 srcdir=.
1806fi
1807# Remove unnecessary trailing slashes from srcdir.
1808# Double slashes in file names in object file debugging info
1809# mess up M-x gdb in Emacs.
1810case $srcdir in
1811*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1812esac
1813for ac_var in $ac_precious_vars; do
1814 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1815 eval ac_env_${ac_var}_value=\$${ac_var}
1816 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1818done
1819
1820#
1821# Report the --help message.
1822#
1823if test "$ac_init_help" = "long"; then
1824 # Omit some internal or obsolete options to make the list less imposing.
1825 # This message is too long to be a string in the A/UX 3.1 sh.
1826 cat <<_ACEOF
cristydc12aa12010-02-22 01:03:18 +00001827\`configure' configures ImageMagick 6.6.0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001828
1829Usage: $0 [OPTION]... [VAR=VALUE]...
1830
1831To assign environment variables (e.g., CC, CFLAGS...), specify them as
1832VAR=VALUE. See below for descriptions of some of the useful variables.
1833
1834Defaults for the options are specified in brackets.
1835
1836Configuration:
1837 -h, --help display this help and exit
1838 --help=short display options specific to this package
1839 --help=recursive display the short help of all the included packages
1840 -V, --version display version information and exit
1841 -q, --quiet, --silent do not print \`checking...' messages
1842 --cache-file=FILE cache test results in FILE [disabled]
1843 -C, --config-cache alias for \`--cache-file=config.cache'
1844 -n, --no-create do not create output files
1845 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1846
1847Installation directories:
1848 --prefix=PREFIX install architecture-independent files in PREFIX
1849 [$ac_default_prefix]
1850 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1851 [PREFIX]
1852
1853By default, \`make install' will install all the files in
1854\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1855an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1856for instance \`--prefix=\$HOME'.
1857
1858For better control, use the options below.
1859
1860Fine tuning of the installation directories:
1861 --bindir=DIR user executables [EPREFIX/bin]
1862 --sbindir=DIR system admin executables [EPREFIX/sbin]
1863 --libexecdir=DIR program executables [EPREFIX/libexec]
1864 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1865 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1866 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1867 --libdir=DIR object code libraries [EPREFIX/lib]
1868 --includedir=DIR C header files [PREFIX/include]
1869 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1870 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1871 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1872 --infodir=DIR info documentation [DATAROOTDIR/info]
1873 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1874 --mandir=DIR man documentation [DATAROOTDIR/man]
1875 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1876 --htmldir=DIR html documentation [DOCDIR]
1877 --dvidir=DIR dvi documentation [DOCDIR]
1878 --pdfdir=DIR pdf documentation [DOCDIR]
1879 --psdir=DIR ps documentation [DOCDIR]
1880_ACEOF
1881
1882 cat <<\_ACEOF
1883
1884Program names:
1885 --program-prefix=PREFIX prepend PREFIX to installed program names
1886 --program-suffix=SUFFIX append SUFFIX to installed program names
1887 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1888
1889X features:
1890 --x-includes=DIR X include files are in DIR
1891 --x-libraries=DIR X library files are in DIR
1892
1893System types:
1894 --build=BUILD configure for building on BUILD [guessed]
1895 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1896 --target=TARGET configure for building compilers for TARGET [HOST]
1897_ACEOF
1898fi
1899
1900if test -n "$ac_init_help"; then
1901 case $ac_init_help in
cristydc12aa12010-02-22 01:03:18 +00001902 short | recursive ) echo "Configuration of ImageMagick 6.6.0:";;
cristy3ed852e2009-09-05 21:47:34 +00001903 esac
1904 cat <<\_ACEOF
1905
1906Optional Features:
1907 --disable-option-checking ignore unrecognized --enable/--with options
1908 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1909 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1910 --enable-silent-rules less verbose build output (undo: `make V=1')
1911 --disable-silent-rules verbose build output (undo: `make V=0')
1912 --disable-dependency-tracking speeds up one-time build
1913 --enable-dependency-tracking do not reject slow dependency extractors
1914 --bounds-checking enable run-time bounds-checking
1915 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001916 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001917 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001918 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001919 --disable-largefile omit support for large files
1920 --enable-shared[=PKGS] build shared libraries [default=yes]
1921 --enable-static[=PKGS] build static libraries [default=yes]
1922 --enable-fast-install[=PKGS]
1923 optimize for fast installation [default=yes]
1924 --disable-libtool-lock avoid locking (might break parallel builds)
1925 --enable-ltdl-install install libltdl
1926 --enable-delegate-build look for delegate libraries in build directory
1927 --disable-deprecated exclude deprecated methods in MagickCore and
1928 MagickWand API's
1929 --disable-installed Formally install ImageMagick under PREFIX
1930 --disable-cipher disable enciphering and deciphering image pixels
1931 --enable-embeddable enable self-contained, embeddable,
1932 zero-configuration ImageMagick
1933 --enable-hdri accurately represent the wide range of intensity
1934 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001935 --disable-assert disable assert() statements in build
1936 --enable-maintainer-mode enable make rules and dependencies not useful
1937 (and sometimes confusing) to the casual installer
1938 --enable-ccmalloc enable 'ccmalloc' memory debug support
1939 --enable-efence enable 'efence' memory debug support
1940 --enable-prof enable 'prof' profiling support
1941 --enable-gprof enable 'gprof' profiling support
1942 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001943 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001944
1945Optional Packages:
1946 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1947 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1948 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1949 --without-maximum-compile-warnings
1950 Disable maximum warning verbosity
1951 --with-dmalloc use dmalloc, as in
1952 http://www.dmalloc.com/dmalloc.tar.gz
1953 --without-threads disable threads support
1954 --with-pic try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-included-ltdl use the GNU ltdl sources included here
1957 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1958 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1959 --with-modules enable building dynamically loadable modules
1960 --with-method-prefix=PREFIX
1961 prefix MagickCore API methods
1962 --with-quantum-depth=DEPTH
1963 number of bits in a pixel quantum (default 16)
1964 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1965 memory)
1966 --with-frozenpaths freeze delegate paths
1967 --without-magick-plus-plus
1968 disable build/install of Magick++
1969 --with-perl enable build/install of PerlMagick
1970 --with-perl-options=OPTIONS
1971 options to pass on command-line when generating
1972 PerlMagick's build file
1973 --with-umem enable umem memory allocation library support
1974 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1975 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001976 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001977 --without-zlib disable ZLIB support
1978 --with-autotrace enable autotrace support
1979 --without-dps disable Display Postscript support
1980 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001981 --with-dejavu-font-dir=DIR
1982 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001983 --without-fftw disable FFTW support
1984 --without-fpx disable FlashPIX support
1985 --without-fontconfig disable fontconfig support
1986 --without-freetype disable Freetype support
1987 --without-gslib enable Ghostscript library support
1988 --with-fontpath=DIR prepend to default font search path
1989 --with-gs-font-dir=DIR Ghostscript font directory
1990 --without-gvc disable GVC support
1991 --without-jbig disable JBIG support
1992 --without-jpeg disable JPEG support
1993 --without-jp2 disable JPEG-2000 support
1994 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001995 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001996 --without-openexr disable OpenEXR support
1997 --without-png disable PNG support
1998 --without-rsvg disable RSVG support
1999 --without-tiff disable TIFF support
2000 --with-windows-font-dir=DIR
2001 directory containing MS-Windows fonts
2002 --without-wmf disable WMF support
2003 --without-xml disable XML support
2004
2005Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002012 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002013 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002014 CXX C++ compiler command
2015 CXXFLAGS C++ compiler flags
2016 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002017 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002018 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002019 AUTOTRACE_CFLAGS
2020 C compiler flags for AUTOTRACE, overriding pkg-config
2021 AUTOTRACE_LIBS
2022 linker flags for AUTOTRACE, overriding pkg-config
2023 FONTCONFIG_CFLAGS
2024 C compiler flags for FONTCONFIG, overriding pkg-config
2025 FONTCONFIG_LIBS
2026 linker flags for FONTCONFIG, overriding pkg-config
2027 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2028 GVC_LIBS linker flags for GVC, overriding pkg-config
2029 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2030 LQR_LIBS linker flags for LQR, overriding pkg-config
2031 OPENEXR_CFLAGS
2032 C compiler flags for OPENEXR, overriding pkg-config
2033 OPENEXR_LIBS
2034 linker flags for OPENEXR, overriding pkg-config
2035 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2036 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2037 CAIRO_SVG_CFLAGS
2038 C compiler flags for CAIRO_SVG, overriding pkg-config
2039 CAIRO_SVG_LIBS
2040 linker flags for CAIRO_SVG, overriding pkg-config
2041
2042Use these variables to override the choices made by `configure' or to help
2043it to find libraries and programs with nonstandard names/locations.
2044
2045Report bugs to <http://www.imagemagick.org>.
2046_ACEOF
2047ac_status=$?
2048fi
2049
2050if test "$ac_init_help" = "recursive"; then
2051 # If there are subdirs, report their specific --help.
2052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2053 test -d "$ac_dir" ||
2054 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2055 continue
2056 ac_builddir=.
2057
2058case "$ac_dir" in
2059.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2060*)
2061 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2062 # A ".." for each directory in $ac_dir_suffix.
2063 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2064 case $ac_top_builddir_sub in
2065 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2067 esac ;;
2068esac
2069ac_abs_top_builddir=$ac_pwd
2070ac_abs_builddir=$ac_pwd$ac_dir_suffix
2071# for backward compatibility:
2072ac_top_builddir=$ac_top_build_prefix
2073
2074case $srcdir in
2075 .) # We are building in place.
2076 ac_srcdir=.
2077 ac_top_srcdir=$ac_top_builddir_sub
2078 ac_abs_top_srcdir=$ac_pwd ;;
2079 [\\/]* | ?:[\\/]* ) # Absolute name.
2080 ac_srcdir=$srcdir$ac_dir_suffix;
2081 ac_top_srcdir=$srcdir
2082 ac_abs_top_srcdir=$srcdir ;;
2083 *) # Relative name.
2084 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2085 ac_top_srcdir=$ac_top_build_prefix$srcdir
2086 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2087esac
2088ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2089
2090 cd "$ac_dir" || { ac_status=$?; continue; }
2091 # Check for guested configure.
2092 if test -f "$ac_srcdir/configure.gnu"; then
2093 echo &&
2094 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2095 elif test -f "$ac_srcdir/configure"; then
2096 echo &&
2097 $SHELL "$ac_srcdir/configure" --help=recursive
2098 else
2099 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2100 fi || ac_status=$?
2101 cd "$ac_pwd" || { ac_status=$?; break; }
2102 done
2103fi
2104
2105test -n "$ac_init_help" && exit $ac_status
2106if $ac_init_version; then
2107 cat <<\_ACEOF
cristydc12aa12010-02-22 01:03:18 +00002108ImageMagick configure 6.6.0
cristycd4c5312009-11-22 01:19:08 +00002109generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002110
cristy8b350f62009-11-15 23:12:43 +00002111Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002112This configure script is free software; the Free Software Foundation
2113gives unlimited permission to copy, distribute and modify it.
2114_ACEOF
2115 exit
2116fi
cristy8b350f62009-11-15 23:12:43 +00002117
2118## ------------------------ ##
2119## Autoconf initialization. ##
2120## ------------------------ ##
2121
2122# ac_fn_c_try_compile LINENO
2123# --------------------------
2124# Try to compile conftest.$ac_ext, and return whether this succeeded.
2125ac_fn_c_try_compile ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 rm -f conftest.$ac_objext
2129 if { { ac_try="$ac_compile"
2130case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133esac
2134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135$as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_compile") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2142 fi
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } && {
2145 test -z "$ac_c_werror_flag" ||
2146 test ! -s conftest.err
2147 } && test -s conftest.$ac_objext; then :
2148 ac_retval=0
2149else
2150 $as_echo "$as_me: failed program was:" >&5
2151sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 ac_retval=1
2154fi
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002156 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002157
2158} # ac_fn_c_try_compile
2159
cristy95646052009-11-28 23:05:30 +00002160# ac_fn_c_try_cpp LINENO
2161# ----------------------
2162# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2163ac_fn_c_try_cpp ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if { { ac_try="$ac_cpp conftest.$ac_ext"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172$as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2174 ac_status=$?
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2179 fi
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } >/dev/null && {
2182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 }; then :
2185 ac_retval=0
2186else
2187 $as_echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 ac_retval=1
2191fi
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2194
2195} # ac_fn_c_try_cpp
2196
cristy8b350f62009-11-15 23:12:43 +00002197# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198# -------------------------------------------------------
2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200# the include files in INCLUDES and setting the cache variable VAR
2201# accordingly.
2202ac_fn_c_check_header_mongrel ()
2203{
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207$as_echo_n "checking for $2... " >&6; }
2208if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210fi
2211eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213$as_echo "$ac_res" >&6; }
2214else
2215 # Is the header compilable?
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217$as_echo_n "checking $2 usability... " >&6; }
2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221#include <$2>
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224 ac_header_compiler=yes
2225else
2226 ac_header_compiler=no
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230$as_echo "$ac_header_compiler" >&6; }
2231
2232# Is the header present?
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234$as_echo_n "checking $2 presence... " >&6; }
2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237#include <$2>
2238_ACEOF
2239if ac_fn_c_try_cpp "$LINENO"; then :
2240 ac_header_preproc=yes
2241else
2242 ac_header_preproc=no
2243fi
2244rm -f conftest.err conftest.$ac_ext
2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246$as_echo "$ac_header_preproc" >&6; }
2247
2248# So? What about this header?
2249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250 yes:no: )
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255 ;;
2256 no:yes:* )
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267( cat <<\_ASBOX
2268## ----------------------------------------- ##
2269## Report this to http://www.imagemagick.org ##
2270## ----------------------------------------- ##
2271_ASBOX
2272 ) | sed "s/^/$as_me: WARNING: /" >&2
2273 ;;
2274esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276$as_echo_n "checking for $2... " >&6; }
2277if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279else
2280 eval "$3=\$ac_header_compiler"
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
2285fi
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2287
2288} # ac_fn_c_check_header_mongrel
2289
2290# ac_fn_c_try_run LINENO
2291# ----------------------
2292# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2293# that executables *can* be run.
2294ac_fn_c_try_run ()
2295{
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { { ac_try="$ac_link"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>&5
2305 ac_status=$?
2306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2308 { { case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311esac
2312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313$as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_try") 2>&5
2315 ac_status=$?
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; }; }; then :
2318 ac_retval=0
2319else
2320 $as_echo "$as_me: program exited with status $ac_status" >&5
2321 $as_echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 ac_retval=$ac_status
2325fi
2326 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002328 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002329
2330} # ac_fn_c_try_run
2331
2332# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2333# -------------------------------------------------------
2334# Tests whether HEADER exists and can be compiled using the include files in
2335# INCLUDES, setting the cache variable VAR accordingly.
2336ac_fn_c_check_header_compile ()
2337{
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340$as_echo_n "checking for $2... " >&6; }
2341if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343else
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347#include <$2>
2348_ACEOF
2349if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351else
2352 eval "$3=no"
2353fi
2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355fi
2356eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358$as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360
2361} # ac_fn_c_check_header_compile
2362
cristya0b81c32010-01-22 02:54:33 +00002363# ac_fn_cxx_try_compile LINENO
2364# ----------------------------
2365# Try to compile conftest.$ac_ext, and return whether this succeeded.
2366ac_fn_cxx_try_compile ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 rm -f conftest.$ac_objext
2370 if { { ac_try="$ac_compile"
2371case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374esac
2375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2376$as_echo "$ac_try_echo"; } >&5
2377 (eval "$ac_compile") 2>conftest.err
2378 ac_status=$?
2379 if test -s conftest.err; then
2380 grep -v '^ *+' conftest.err >conftest.er1
2381 cat conftest.er1 >&5
2382 mv -f conftest.er1 conftest.err
2383 fi
2384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2385 test $ac_status = 0; } && {
2386 test -z "$ac_cxx_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then :
2389 ac_retval=0
2390else
2391 $as_echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 ac_retval=1
2395fi
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2397 as_fn_set_status $ac_retval
2398
2399} # ac_fn_cxx_try_compile
2400
cristy8b350f62009-11-15 23:12:43 +00002401# ac_fn_c_try_link LINENO
2402# -----------------------
2403# Try to link conftest.$ac_ext, and return whether this succeeded.
2404ac_fn_c_try_link ()
2405{
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 rm -f conftest.$ac_objext conftest$ac_exeext
2408 if { { ac_try="$ac_link"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414$as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_link") 2>conftest.err
2416 ac_status=$?
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2421 fi
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest$ac_exeext && {
2427 test "$cross_compiling" = yes ||
2428 $as_test_x conftest$ac_exeext
2429 }; then :
2430 ac_retval=0
2431else
2432 $as_echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 ac_retval=1
2436fi
2437 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2438 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2439 # interfere with the next link command; also delete a directory that is
2440 # left behind by Apple's compiler. We do this before executing the actions.
2441 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002443 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002444
2445} # ac_fn_c_try_link
2446
2447# ac_fn_c_check_func LINENO FUNC VAR
2448# ----------------------------------
2449# Tests whether FUNC exists, setting the cache variable VAR accordingly
2450ac_fn_c_check_func ()
2451{
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454$as_echo_n "checking for $2... " >&6; }
2455if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2457else
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459/* end confdefs.h. */
2460/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2462#define $2 innocuous_$2
2463
2464/* System header to define __stub macros and hopefully few prototypes,
2465 which can conflict with char $2 (); below.
2466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 <limits.h> exists even on freestanding compilers. */
2468
2469#ifdef __STDC__
2470# include <limits.h>
2471#else
2472# include <assert.h>
2473#endif
2474
2475#undef $2
2476
2477/* Override any GCC internal prototype to avoid an error.
2478 Use char because int might match the return type of a GCC
2479 builtin and then its argument prototype would still apply. */
2480#ifdef __cplusplus
2481extern "C"
2482#endif
2483char $2 ();
2484/* The GNU C library defines this for functions which it implements
2485 to always fail with ENOSYS. Some functions are actually named
2486 something starting with __ and the normal name is an alias. */
2487#if defined __stub_$2 || defined __stub___$2
2488choke me
2489#endif
2490
2491int
2492main ()
2493{
2494return $2 ();
2495 ;
2496 return 0;
2497}
2498_ACEOF
2499if ac_fn_c_try_link "$LINENO"; then :
2500 eval "$3=yes"
2501else
2502 eval "$3=no"
2503fi
2504rm -f core conftest.err conftest.$ac_objext \
2505 conftest$ac_exeext conftest.$ac_ext
2506fi
2507eval ac_res=\$$3
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511
2512} # ac_fn_c_check_func
2513
2514# ac_fn_cxx_try_cpp LINENO
2515# ------------------------
2516# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517ac_fn_cxx_try_cpp ()
2518{
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 if { { ac_try="$ac_cpp conftest.$ac_ext"
2521case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526$as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2528 ac_status=$?
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2533 fi
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2538 }; then :
2539 ac_retval=0
2540else
2541 $as_echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_retval=1
2545fi
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002547 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002548
2549} # ac_fn_cxx_try_cpp
2550
2551# ac_fn_cxx_try_link LINENO
2552# -------------------------
2553# Try to link conftest.$ac_ext, and return whether this succeeded.
2554ac_fn_cxx_try_link ()
2555{
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2559case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562esac
2563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564$as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2566 ac_status=$?
2567 if test -s conftest.err; then
2568 grep -v '^ *+' conftest.err >conftest.er1
2569 cat conftest.er1 >&5
2570 mv -f conftest.er1 conftest.err
2571 fi
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 $as_test_x conftest$ac_exeext
2579 }; then :
2580 ac_retval=0
2581else
2582 $as_echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 ac_retval=1
2586fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002593 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002594
2595} # ac_fn_cxx_try_link
2596
2597# ac_fn_c_check_decl LINENO SYMBOL VAR
2598# ------------------------------------
2599# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2600ac_fn_c_check_decl ()
2601{
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2604$as_echo_n "checking whether $2 is declared... " >&6; }
2605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2606 $as_echo_n "(cached) " >&6
2607else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611int
2612main ()
2613{
2614#ifndef $2
2615 (void) $2;
2616#endif
2617
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$3=yes"
2624else
2625 eval "$3=no"
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631$as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633
2634} # ac_fn_c_check_decl
2635
2636# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2637# -------------------------------------------
2638# Tests whether TYPE exists after having included INCLUDES, setting cache
2639# variable VAR accordingly.
2640ac_fn_c_check_type ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2644$as_echo_n "checking for $2... " >&6; }
2645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 eval "$3=no"
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650/* end confdefs.h. */
2651$4
2652int
2653main ()
2654{
2655if (sizeof ($2))
2656 return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663/* end confdefs.h. */
2664$4
2665int
2666main ()
2667{
2668if (sizeof (($2)))
2669 return 0;
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675
2676else
2677 eval "$3=yes"
2678fi
2679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682fi
2683eval ac_res=\$$3
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2685$as_echo "$ac_res" >&6; }
2686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2687
2688} # ac_fn_c_check_type
2689
2690# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2691# --------------------------------------------
2692# Tries to find the compile-time value of EXPR in a program that includes
2693# INCLUDES, setting VAR accordingly. Returns whether the value could be
2694# computed
2695ac_fn_c_compute_int ()
2696{
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 if test "$cross_compiling" = yes; then
2699 # Depending upon the size, compute the lo and hi bounds.
2700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h. */
2702$4
2703int
2704main ()
2705{
2706static int test_array [1 - 2 * !(($2) >= 0)];
2707test_array [0] = 0
2708
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713if ac_fn_c_try_compile "$LINENO"; then :
2714 ac_lo=0 ac_mid=0
2715 while :; do
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717/* end confdefs.h. */
2718$4
2719int
2720main ()
2721{
2722static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2723test_array [0] = 0
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_compile "$LINENO"; then :
2730 ac_hi=$ac_mid; break
2731else
2732 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2733 if test $ac_lo -le $ac_mid; then
2734 ac_lo= ac_hi=
2735 break
2736 fi
2737 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741else
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$4
2745int
2746main ()
2747{
2748static int test_array [1 - 2 * !(($2) < 0)];
2749test_array [0] = 0
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755if ac_fn_c_try_compile "$LINENO"; then :
2756 ac_hi=-1 ac_mid=-1
2757 while :; do
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760$4
2761int
2762main ()
2763{
2764static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2765test_array [0] = 0
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=$ac_mid; break
2773else
2774 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2775 if test $ac_mid -le $ac_hi; then
2776 ac_lo= ac_hi=
2777 break
2778 fi
2779 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2780fi
2781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 done
2783else
2784 ac_lo= ac_hi=
2785fi
2786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787fi
2788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789# Binary search between lo and hi bounds.
2790while test "x$ac_lo" != "x$ac_hi"; do
2791 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793/* end confdefs.h. */
2794$4
2795int
2796main ()
2797{
2798static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2799test_array [0] = 0
2800
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_hi=$ac_mid
2807else
2808 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2809fi
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811done
2812case $ac_lo in #((
2813?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2814'') ac_retval=1 ;;
2815esac
2816 else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818/* end confdefs.h. */
2819$4
2820static long int longval () { return $2; }
2821static unsigned long int ulongval () { return $2; }
2822#include <stdio.h>
2823#include <stdlib.h>
2824int
2825main ()
2826{
2827
2828 FILE *f = fopen ("conftest.val", "w");
2829 if (! f)
2830 return 1;
2831 if (($2) < 0)
2832 {
2833 long int i = longval ();
2834 if (i != ($2))
2835 return 1;
2836 fprintf (f, "%ld", i);
2837 }
2838 else
2839 {
2840 unsigned long int i = ulongval ();
2841 if (i != ($2))
2842 return 1;
2843 fprintf (f, "%lu", i);
2844 }
2845 /* Do not output a trailing newline, as this causes \r\n confusion
2846 on some platforms. */
2847 return ferror (f) || fclose (f) != 0;
2848
2849 ;
2850 return 0;
2851}
2852_ACEOF
2853if ac_fn_c_try_run "$LINENO"; then :
2854 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2855else
2856 ac_retval=1
2857fi
2858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2859 conftest.$ac_objext conftest.beam conftest.$ac_ext
2860rm -f conftest.val
2861
2862 fi
2863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002864 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002865
2866} # ac_fn_c_compute_int
2867
2868# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2869# ---------------------------------------------------------
2870# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2871# the include files in INCLUDES and setting the cache variable VAR
2872# accordingly.
2873ac_fn_cxx_check_header_mongrel ()
2874{
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2878$as_echo_n "checking for $2... " >&6; }
2879if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2880 $as_echo_n "(cached) " >&6
2881fi
2882eval ac_res=\$$3
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2884$as_echo "$ac_res" >&6; }
2885else
2886 # Is the header compilable?
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2888$as_echo_n "checking $2 usability... " >&6; }
2889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890/* end confdefs.h. */
2891$4
2892#include <$2>
2893_ACEOF
2894if ac_fn_cxx_try_compile "$LINENO"; then :
2895 ac_header_compiler=yes
2896else
2897 ac_header_compiler=no
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2901$as_echo "$ac_header_compiler" >&6; }
2902
2903# Is the header present?
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2905$as_echo_n "checking $2 presence... " >&6; }
2906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908#include <$2>
2909_ACEOF
2910if ac_fn_cxx_try_cpp "$LINENO"; then :
2911 ac_header_preproc=yes
2912else
2913 ac_header_preproc=no
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2917$as_echo "$ac_header_preproc" >&6; }
2918
2919# So? What about this header?
2920case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2921 yes:no: )
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2923$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2925$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2926 ;;
2927 no:yes:* )
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2929$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2931$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2933$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2935$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2937$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2938( cat <<\_ASBOX
2939## ----------------------------------------- ##
2940## Report this to http://www.imagemagick.org ##
2941## ----------------------------------------- ##
2942_ASBOX
2943 ) | sed "s/^/$as_me: WARNING: /" >&2
2944 ;;
2945esac
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2947$as_echo_n "checking for $2... " >&6; }
2948if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2949 $as_echo_n "(cached) " >&6
2950else
2951 eval "$3=\$ac_header_compiler"
2952fi
2953eval ac_res=\$$3
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2955$as_echo "$ac_res" >&6; }
2956fi
2957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2958
2959} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002960cat >config.log <<_ACEOF
2961This file contains any messages produced by compilers while
2962running configure, to aid debugging if configure makes a mistake.
2963
cristydc12aa12010-02-22 01:03:18 +00002964It was created by ImageMagick $as_me 6.6.0, which was
cristycd4c5312009-11-22 01:19:08 +00002965generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002966
2967 $ $0 $@
2968
2969_ACEOF
2970exec 5>>config.log
2971{
2972cat <<_ASUNAME
2973## --------- ##
2974## Platform. ##
2975## --------- ##
2976
2977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2978uname -m = `(uname -m) 2>/dev/null || echo unknown`
2979uname -r = `(uname -r) 2>/dev/null || echo unknown`
2980uname -s = `(uname -s) 2>/dev/null || echo unknown`
2981uname -v = `(uname -v) 2>/dev/null || echo unknown`
2982
2983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2985
2986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2989/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2993
2994_ASUNAME
2995
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003001 $as_echo "PATH: $as_dir"
3002 done
cristy3ed852e2009-09-05 21:47:34 +00003003IFS=$as_save_IFS
3004
3005} >&5
3006
3007cat >&5 <<_ACEOF
3008
3009
3010## ----------- ##
3011## Core tests. ##
3012## ----------- ##
3013
3014_ACEOF
3015
3016
3017# Keep a trace of the command line.
3018# Strip out --no-create and --no-recursion so they do not pile up.
3019# Strip out --silent because we don't want to record it for future runs.
3020# Also quote any args containing shell meta-characters.
3021# Make two passes to allow for proper duplicate-argument suppression.
3022ac_configure_args=
3023ac_configure_args0=
3024ac_configure_args1=
3025ac_must_keep_next=false
3026for ac_pass in 1 2
3027do
3028 for ac_arg
3029 do
3030 case $ac_arg in
3031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3033 | -silent | --silent | --silen | --sile | --sil)
3034 continue ;;
3035 *\'*)
3036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3037 esac
3038 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003040 2)
cristy8b350f62009-11-15 23:12:43 +00003041 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003042 if test $ac_must_keep_next = true; then
3043 ac_must_keep_next=false # Got value, back to normal.
3044 else
3045 case $ac_arg in
3046 *=* | --config-cache | -C | -disable-* | --disable-* \
3047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3049 | -with-* | --with-* | -without-* | --without-* | --x)
3050 case "$ac_configure_args0 " in
3051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3052 esac
3053 ;;
3054 -* ) ac_must_keep_next=true ;;
3055 esac
3056 fi
cristy8b350f62009-11-15 23:12:43 +00003057 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003058 ;;
3059 esac
3060 done
3061done
cristy8b350f62009-11-15 23:12:43 +00003062{ ac_configure_args0=; unset ac_configure_args0;}
3063{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003064
3065# When interrupted or exit'd, cleanup temporary files, and complete
3066# config.log. We remove comments because anyway the quotes in there
3067# would cause problems or look ugly.
3068# WARNING: Use '\'' to represent an apostrophe within the trap.
3069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3070trap 'exit_status=$?
3071 # Save into config.log some information that might help in debugging.
3072 {
3073 echo
3074
3075 cat <<\_ASBOX
3076## ---------------- ##
3077## Cache variables. ##
3078## ---------------- ##
3079_ASBOX
3080 echo
3081 # The following way of writing the cache mishandles newlines in values,
3082(
3083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3084 eval ac_val=\$$ac_var
3085 case $ac_val in #(
3086 *${as_nl}*)
3087 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3090 esac
3091 case $ac_var in #(
3092 _ | IFS | as_nl) ;; #(
3093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003094 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003095 esac ;;
3096 esac
3097 done
3098 (set) 2>&1 |
3099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3100 *${as_nl}ac_space=\ *)
3101 sed -n \
3102 "s/'\''/'\''\\\\'\'''\''/g;
3103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3104 ;; #(
3105 *)
3106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3107 ;;
3108 esac |
3109 sort
3110)
3111 echo
3112
3113 cat <<\_ASBOX
3114## ----------------- ##
3115## Output variables. ##
3116## ----------------- ##
3117_ASBOX
3118 echo
3119 for ac_var in $ac_subst_vars
3120 do
3121 eval ac_val=\$$ac_var
3122 case $ac_val in
3123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3124 esac
3125 $as_echo "$ac_var='\''$ac_val'\''"
3126 done | sort
3127 echo
3128
3129 if test -n "$ac_subst_files"; then
3130 cat <<\_ASBOX
3131## ------------------- ##
3132## File substitutions. ##
3133## ------------------- ##
3134_ASBOX
3135 echo
3136 for ac_var in $ac_subst_files
3137 do
3138 eval ac_val=\$$ac_var
3139 case $ac_val in
3140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 esac
3142 $as_echo "$ac_var='\''$ac_val'\''"
3143 done | sort
3144 echo
3145 fi
3146
3147 if test -s confdefs.h; then
3148 cat <<\_ASBOX
3149## ----------- ##
3150## confdefs.h. ##
3151## ----------- ##
3152_ASBOX
3153 echo
3154 cat confdefs.h
3155 echo
3156 fi
3157 test "$ac_signal" != 0 &&
3158 $as_echo "$as_me: caught signal $ac_signal"
3159 $as_echo "$as_me: exit $exit_status"
3160 } >&5
3161 rm -f core *.core core.conftest.* &&
3162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3163 exit $exit_status
3164' 0
3165for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003167done
3168ac_signal=0
3169
3170# confdefs.h avoids OS command line length limits that DEFS can exceed.
3171rm -f -r conftest* confdefs.h
3172
cristy8b350f62009-11-15 23:12:43 +00003173$as_echo "/* confdefs.h */" > confdefs.h
3174
cristy3ed852e2009-09-05 21:47:34 +00003175# Predefined preprocessor variables.
3176
3177cat >>confdefs.h <<_ACEOF
3178#define PACKAGE_NAME "$PACKAGE_NAME"
3179_ACEOF
3180
cristy3ed852e2009-09-05 21:47:34 +00003181cat >>confdefs.h <<_ACEOF
3182#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3183_ACEOF
3184
cristy3ed852e2009-09-05 21:47:34 +00003185cat >>confdefs.h <<_ACEOF
3186#define PACKAGE_VERSION "$PACKAGE_VERSION"
3187_ACEOF
3188
cristy3ed852e2009-09-05 21:47:34 +00003189cat >>confdefs.h <<_ACEOF
3190#define PACKAGE_STRING "$PACKAGE_STRING"
3191_ACEOF
3192
cristy3ed852e2009-09-05 21:47:34 +00003193cat >>confdefs.h <<_ACEOF
3194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3195_ACEOF
3196
cristy8b350f62009-11-15 23:12:43 +00003197cat >>confdefs.h <<_ACEOF
3198#define PACKAGE_URL "$PACKAGE_URL"
3199_ACEOF
3200
cristy3ed852e2009-09-05 21:47:34 +00003201
3202# Let the site file select an alternate cache file if it wants to.
3203# Prefer an explicitly selected file to automatically selected ones.
3204ac_site_file1=NONE
3205ac_site_file2=NONE
3206if test -n "$CONFIG_SITE"; then
3207 ac_site_file1=$CONFIG_SITE
3208elif test "x$prefix" != xNONE; then
3209 ac_site_file1=$prefix/share/config.site
3210 ac_site_file2=$prefix/etc/config.site
3211else
3212 ac_site_file1=$ac_default_prefix/share/config.site
3213 ac_site_file2=$ac_default_prefix/etc/config.site
3214fi
3215for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3216do
3217 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003220$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3221 sed 's/^/| /' "$ac_site_file" >&5
3222 . "$ac_site_file"
3223 fi
3224done
3225
3226if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003227 # Some versions of bash will fail to source /dev/null (special files
3228 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003231$as_echo "$as_me: loading cache $cache_file" >&6;}
3232 case $cache_file in
3233 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3234 *) . "./$cache_file";;
3235 esac
3236 fi
3237else
cristy8b350f62009-11-15 23:12:43 +00003238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: creating cache $cache_file" >&6;}
3240 >$cache_file
3241fi
3242
cristycd4c5312009-11-22 01:19:08 +00003243as_fn_append ac_header_list " stdlib.h"
3244as_fn_append ac_header_list " unistd.h"
3245as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003246# Check that the precious variables saved in the cache have kept the same
3247# value.
3248ac_cache_corrupted=false
3249for ac_var in $ac_precious_vars; do
3250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3251 eval ac_new_set=\$ac_env_${ac_var}_set
3252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3253 eval ac_new_val=\$ac_env_${ac_var}_value
3254 case $ac_old_set,$ac_new_set in
3255 set,)
cristy8b350f62009-11-15 23:12:43 +00003256 { $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 +00003257$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3258 ac_cache_corrupted=: ;;
3259 ,set)
cristy8b350f62009-11-15 23:12:43 +00003260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003261$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3262 ac_cache_corrupted=: ;;
3263 ,);;
3264 *)
3265 if test "x$ac_old_val" != "x$ac_new_val"; then
3266 # differences in whitespace do not lead to failure.
3267 ac_old_val_w=`echo x $ac_old_val`
3268 ac_new_val_w=`echo x $ac_new_val`
3269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003271$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3272 ac_cache_corrupted=:
3273 else
cristy8b350f62009-11-15 23:12:43 +00003274 { $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 +00003275$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3276 eval $ac_var=\$ac_old_val
3277 fi
cristy8b350f62009-11-15 23:12:43 +00003278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003279$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003281$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3282 fi;;
3283 esac
3284 # Pass precious variables to config.status.
3285 if test "$ac_new_set" = set; then
3286 case $ac_new_val in
3287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3288 *) ac_arg=$ac_var=$ac_new_val ;;
3289 esac
3290 case " $ac_configure_args " in
3291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003293 esac
3294 fi
3295done
3296if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003300$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003301 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003302fi
cristy8b350f62009-11-15 23:12:43 +00003303## -------------------- ##
3304## Main body of script. ##
3305## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003306
3307ac_ext=c
3308ac_cpp='$CPP $CPPFLAGS'
3309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312
3313
3314
3315ac_aux_dir=
3316for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003317 for ac_t in install-sh install.sh shtool; do
3318 if test -f "$ac_dir/$ac_t"; then
3319 ac_aux_dir=$ac_dir
3320 ac_install_sh="$ac_aux_dir/$ac_t -c"
3321 break 2
3322 fi
3323 done
cristy3ed852e2009-09-05 21:47:34 +00003324done
3325if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003326 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003327fi
3328
3329# These three variables are undocumented and unsupported,
3330# and are intended to be withdrawn in a future Autoconf release.
3331# They can cause serious problems if a builder's source tree is in a directory
3332# whose full name contains unusual characters.
3333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3336
3337
3338
3339
3340ac_config_headers="$ac_config_headers config/config.h"
3341
3342ac_config_commands="$ac_config_commands magick/magick-config.h"
3343
cristy430a7312010-01-21 20:44:04 +00003344ac_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 +00003345
3346
3347#
3348# Save initial user-tunable values
3349#
3350USER_LIBS=$LIBS
3351for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3352 eval isset=\${$var+set}
3353 if test "$isset" = 'set'; then
3354 eval val=$`echo $var`
3355 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3356 fi
3357done
3358
3359
3360CONFIGURE_ARGS="$0 ${ac_configure_args}"
3361
3362
3363# Source file containing package/library versioning information.
3364. ${srcdir}/version.sh
3365
cristy15a88782010-01-31 23:24:49 +00003366echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003367# Make sure we can run config.sub.
3368$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003369 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003370
cristy8b350f62009-11-15 23:12:43 +00003371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003373if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003374 $as_echo_n "(cached) " >&6
3375else
3376 ac_build_alias=$build_alias
3377test "x$ac_build_alias" = x &&
3378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3379test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003380 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003381ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003382 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003383
3384fi
cristy8b350f62009-11-15 23:12:43 +00003385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003386$as_echo "$ac_cv_build" >&6; }
3387case $ac_cv_build in
3388*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003389*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003390esac
3391build=$ac_cv_build
3392ac_save_IFS=$IFS; IFS='-'
3393set x $ac_cv_build
3394shift
3395build_cpu=$1
3396build_vendor=$2
3397shift; shift
3398# Remember, the first character of IFS is used to create $*,
3399# except with old shells:
3400build_os=$*
3401IFS=$ac_save_IFS
3402case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3403
3404
cristy8b350f62009-11-15 23:12:43 +00003405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003406$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003407if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003408 $as_echo_n "(cached) " >&6
3409else
3410 if test "x$host_alias" = x; then
3411 ac_cv_host=$ac_cv_build
3412else
3413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003414 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003415fi
3416
3417fi
cristy8b350f62009-11-15 23:12:43 +00003418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003419$as_echo "$ac_cv_host" >&6; }
3420case $ac_cv_host in
3421*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003422*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003423esac
3424host=$ac_cv_host
3425ac_save_IFS=$IFS; IFS='-'
3426set x $ac_cv_host
3427shift
3428host_cpu=$1
3429host_vendor=$2
3430shift; shift
3431# Remember, the first character of IFS is used to create $*,
3432# except with old shells:
3433host_os=$*
3434IFS=$ac_save_IFS
3435case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3436
3437
cristy8b350f62009-11-15 23:12:43 +00003438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003439$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003440if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003441 $as_echo_n "(cached) " >&6
3442else
3443 if test "x$target_alias" = x; then
3444 ac_cv_target=$ac_cv_host
3445else
3446 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003447 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003448fi
3449
3450fi
cristy8b350f62009-11-15 23:12:43 +00003451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$ac_cv_target" >&6; }
3453case $ac_cv_target in
3454*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003455*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003456esac
3457target=$ac_cv_target
3458ac_save_IFS=$IFS; IFS='-'
3459set x $ac_cv_target
3460shift
3461target_cpu=$1
3462target_vendor=$2
3463shift; shift
3464# Remember, the first character of IFS is used to create $*,
3465# except with old shells:
3466target_os=$*
3467IFS=$ac_save_IFS
3468case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3469
3470
3471# The aliases save the names the user supplied, while $host etc.
3472# will get canonicalized.
3473test -n "$target_alias" &&
3474 test "$program_prefix$program_suffix$program_transform_name" = \
3475 NONENONEs,x,x, &&
3476 program_prefix=${target_alias}-
3477
cristy837d6dc2010-02-27 01:16:57 +00003478
3479
3480
3481
cristy3ed852e2009-09-05 21:47:34 +00003482# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003483MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3484
3485MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3486
cristy3ed852e2009-09-05 21:47:34 +00003487
3488
3489# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003491$as_echo_n "checking whether build environment is sane... " >&6; }
3492# Just in case
3493sleep 1
3494echo timestamp > conftest.file
3495# Reject unsafe characters in $srcdir or the absolute working directory
3496# name. Accept space and tab only in the latter.
3497am_lf='
3498'
3499case `pwd` in
3500 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003501 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003502esac
3503case $srcdir in
3504 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003505 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003506esac
3507
3508# Do `set' in a subshell so we don't clobber the current shell's
3509# arguments. Must try -L first in case configure is actually a
3510# symlink; some systems play weird games with the mod time of symlinks
3511# (eg FreeBSD returns the mod time of the symlink's containing
3512# directory).
3513if (
3514 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3515 if test "$*" = "X"; then
3516 # -L didn't work.
3517 set X `ls -t "$srcdir/configure" conftest.file`
3518 fi
3519 rm -f conftest.file
3520 if test "$*" != "X $srcdir/configure conftest.file" \
3521 && test "$*" != "X conftest.file $srcdir/configure"; then
3522
3523 # If neither matched, then we have a broken ls. This can happen
3524 # if, for instance, CONFIG_SHELL is bash and it inherits a
3525 # broken ls alias from the environment. This has actually
3526 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003527 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3528alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003529 fi
3530
3531 test "$2" = conftest.file
3532 )
3533then
3534 # Ok.
3535 :
3536else
cristy8b350f62009-11-15 23:12:43 +00003537 as_fn_error "newly created file is older than distributed files!
3538Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539fi
cristy8b350f62009-11-15 23:12:43 +00003540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo "yes" >&6; }
3542
3543am__api_version='1.11'
3544
3545# Find a good install program. We prefer a C program (faster),
3546# so one script is as good as another. But avoid the broken or
3547# incompatible versions:
3548# SysV /etc/install, /usr/sbin/install
3549# SunOS /usr/etc/install
3550# IRIX /sbin/install
3551# AIX /bin/install
3552# AmigaOS /C/install, which installs bootblocks on floppy discs
3553# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3554# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3555# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3556# OS/2's system install, which has a completely different semantic
3557# ./install, which can be erroneously created by make from ./install.sh.
3558# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo_n "checking for a BSD-compatible install... " >&6; }
3561if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003562if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003563 $as_echo_n "(cached) " >&6
3564else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003570 # Account for people who put trailing slashes in PATH elements.
3571case $as_dir/ in #((
3572 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003575 /usr/ucb/* ) ;;
3576 *)
3577 # OSF1 and SCO ODT 3.0 have their own names for install.
3578 # Don't use installbsd from OSF since it installs stuff as root
3579 # by default.
3580 for ac_prog in ginstall scoinst install; do
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3583 if test $ac_prog = install &&
3584 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3585 # AIX install. It has an incompatible calling convention.
3586 :
3587 elif test $ac_prog = install &&
3588 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3589 # program-specific install script used by HP pwplus--don't use.
3590 :
3591 else
3592 rm -rf conftest.one conftest.two conftest.dir
3593 echo one > conftest.one
3594 echo two > conftest.two
3595 mkdir conftest.dir
3596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3597 test -s conftest.one && test -s conftest.two &&
3598 test -s conftest.dir/conftest.one &&
3599 test -s conftest.dir/conftest.two
3600 then
3601 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3602 break 3
3603 fi
3604 fi
3605 fi
3606 done
3607 done
3608 ;;
3609esac
3610
cristy8b350f62009-11-15 23:12:43 +00003611 done
cristy3ed852e2009-09-05 21:47:34 +00003612IFS=$as_save_IFS
3613
3614rm -rf conftest.one conftest.two conftest.dir
3615
3616fi
3617 if test "${ac_cv_path_install+set}" = set; then
3618 INSTALL=$ac_cv_path_install
3619 else
3620 # As a last resort, use the slow shell script. Don't cache a
3621 # value for INSTALL within a source directory, because that will
3622 # break other packages using the cache if that directory is
3623 # removed, or if the value is a relative name.
3624 INSTALL=$ac_install_sh
3625 fi
3626fi
cristy8b350f62009-11-15 23:12:43 +00003627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003628$as_echo "$INSTALL" >&6; }
3629
3630# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3631# It thinks the first close brace ends the variable substitution.
3632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3633
3634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3635
3636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3637
3638test "$program_prefix" != NONE &&
3639 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3640# Use a double $ so make ignores it.
3641test "$program_suffix" != NONE &&
3642 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3643# Double any \ or $.
3644# By default was `s,x,x', remove it if useless.
3645ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3646program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3647
3648# expand $ac_aux_dir to an absolute path
3649am_aux_dir=`cd $ac_aux_dir && pwd`
3650
3651if test x"${MISSING+set}" != xset; then
3652 case $am_aux_dir in
3653 *\ * | *\ *)
3654 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3655 *)
3656 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3657 esac
3658fi
3659# Use eval to expand $SHELL
3660if eval "$MISSING --run true"; then
3661 am_missing_run="$MISSING --run "
3662else
3663 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003665$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3666fi
3667
3668if test x"${install_sh}" != xset; then
3669 case $am_aux_dir in
3670 *\ * | *\ *)
3671 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3672 *)
3673 install_sh="\${SHELL} $am_aux_dir/install-sh"
3674 esac
3675fi
3676
3677# Installed binaries are usually stripped using `strip' when the user
3678# run `make install-strip'. However `strip' might not be the right
3679# tool to use in cross-compilation environments, therefore Automake
3680# will honor the `STRIP' environment variable to overrule this program.
3681if test "$cross_compiling" != no; then
3682 if test -n "$ac_tool_prefix"; then
3683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3684set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003686$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003687if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003688 $as_echo_n "(cached) " >&6
3689else
3690 if test -n "$STRIP"; then
3691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003702 break 2
3703 fi
3704done
cristy8b350f62009-11-15 23:12:43 +00003705 done
cristy3ed852e2009-09-05 21:47:34 +00003706IFS=$as_save_IFS
3707
3708fi
3709fi
3710STRIP=$ac_cv_prog_STRIP
3711if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003713$as_echo "$STRIP" >&6; }
3714else
cristy8b350f62009-11-15 23:12:43 +00003715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003716$as_echo "no" >&6; }
3717fi
3718
3719
3720fi
3721if test -z "$ac_cv_prog_STRIP"; then
3722 ac_ct_STRIP=$STRIP
3723 # Extract the first word of "strip", so it can be a program name with args.
3724set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003726$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003727if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003728 $as_echo_n "(cached) " >&6
3729else
3730 if test -n "$ac_ct_STRIP"; then
3731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3732else
3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003738 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003742 break 2
3743 fi
3744done
cristy8b350f62009-11-15 23:12:43 +00003745 done
cristy3ed852e2009-09-05 21:47:34 +00003746IFS=$as_save_IFS
3747
3748fi
3749fi
3750ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3751if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003753$as_echo "$ac_ct_STRIP" >&6; }
3754else
cristy8b350f62009-11-15 23:12:43 +00003755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003756$as_echo "no" >&6; }
3757fi
3758
3759 if test "x$ac_ct_STRIP" = x; then
3760 STRIP=":"
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763yes:)
cristy8b350f62009-11-15 23:12:43 +00003764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766ac_tool_warned=yes ;;
3767esac
3768 STRIP=$ac_ct_STRIP
3769 fi
3770else
3771 STRIP="$ac_cv_prog_STRIP"
3772fi
3773
3774fi
3775INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3776
cristy8b350f62009-11-15 23:12:43 +00003777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003778$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3779if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003780 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003781 $as_echo_n "(cached) " >&6
3782else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003788 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3791 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3792 'mkdir (GNU coreutils) '* | \
3793 'mkdir (coreutils) '* | \
3794 'mkdir (fileutils) '4.1*)
3795 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3796 break 3;;
3797 esac
3798 done
3799 done
cristy8b350f62009-11-15 23:12:43 +00003800 done
cristy3ed852e2009-09-05 21:47:34 +00003801IFS=$as_save_IFS
3802
3803fi
3804
cristycd4c5312009-11-22 01:19:08 +00003805 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003806 if test "${ac_cv_path_mkdir+set}" = set; then
3807 MKDIR_P="$ac_cv_path_mkdir -p"
3808 else
3809 # As a last resort, use the slow shell script. Don't cache a
3810 # value for MKDIR_P within a source directory, because that will
3811 # break other packages using the cache if that directory is
3812 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003813 MKDIR_P="$ac_install_sh -d"
3814 fi
3815fi
cristy8b350f62009-11-15 23:12:43 +00003816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003817$as_echo "$MKDIR_P" >&6; }
3818
3819mkdir_p="$MKDIR_P"
3820case $mkdir_p in
3821 [\\/$]* | ?:[\\/]*) ;;
3822 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3823esac
3824
3825for ac_prog in gawk mawk nawk awk
3826do
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003830$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003831if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003832 $as_echo_n "(cached) " >&6
3833else
3834 if test -n "$AWK"; then
3835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3836else
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003846 break 2
3847 fi
3848done
cristy8b350f62009-11-15 23:12:43 +00003849 done
cristy3ed852e2009-09-05 21:47:34 +00003850IFS=$as_save_IFS
3851
3852fi
3853fi
3854AWK=$ac_cv_prog_AWK
3855if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003857$as_echo "$AWK" >&6; }
3858else
cristy8b350f62009-11-15 23:12:43 +00003859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003860$as_echo "no" >&6; }
3861fi
3862
3863
3864 test -n "$AWK" && break
3865done
3866
cristy8b350f62009-11-15 23:12:43 +00003867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003868$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3869set x ${MAKE-make}
3870ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003871if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003872 $as_echo_n "(cached) " >&6
3873else
3874 cat >conftest.make <<\_ACEOF
3875SHELL = /bin/sh
3876all:
3877 @echo '@@@%%%=$(MAKE)=@@@%%%'
3878_ACEOF
3879# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3880case `${MAKE-make} -f conftest.make 2>/dev/null` in
3881 *@@@%%%=?*=@@@%%%*)
3882 eval ac_cv_prog_make_${ac_make}_set=yes;;
3883 *)
3884 eval ac_cv_prog_make_${ac_make}_set=no;;
3885esac
3886rm -f conftest.make
3887fi
3888if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003890$as_echo "yes" >&6; }
3891 SET_MAKE=
3892else
cristy8b350f62009-11-15 23:12:43 +00003893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003894$as_echo "no" >&6; }
3895 SET_MAKE="MAKE=${MAKE-make}"
3896fi
3897
3898rm -rf .tst 2>/dev/null
3899mkdir .tst 2>/dev/null
3900if test -d .tst; then
3901 am__leading_dot=.
3902else
3903 am__leading_dot=_
3904fi
3905rmdir .tst 2>/dev/null
3906
3907if test "`cd $srcdir && pwd`" != "`pwd`"; then
3908 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3909 # is not polluted with repeated "-I."
3910 am__isrc=' -I$(srcdir)'
3911 # test to see if srcdir already configured
3912 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003913 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003914 fi
3915fi
3916
3917# test whether we have cygpath
3918if test -z "$CYGPATH_W"; then
3919 if (cygpath --version) >/dev/null 2>/dev/null; then
3920 CYGPATH_W='cygpath -w'
3921 else
3922 CYGPATH_W=echo
3923 fi
3924fi
3925
3926
3927# Define the identity of the package.
3928 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003929 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003930
3931
3932# Some tools Automake needs.
3933
3934ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3935
3936
3937AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3938
3939
3940AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3941
3942
3943AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3944
3945
3946MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3947
3948# We need awk for the "check" target. The system "awk" is bad on
3949# some platforms.
3950# Always define AMTAR for backward compatibility.
3951
3952AMTAR=${AMTAR-"${am_missing_run}tar"}
3953
3954am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3955
3956
3957
3958
3959
3960
3961# Enable support for silent build rules
3962# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00003963if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003964 enableval=$enable_silent_rules;
3965fi
3966
3967case $enable_silent_rules in
3968yes) AM_DEFAULT_VERBOSITY=0;;
3969no) AM_DEFAULT_VERBOSITY=1;;
3970*) AM_DEFAULT_VERBOSITY=0;;
3971esac
3972AM_BACKSLASH='\'
3973
3974
3975MAGICK_LIB_VERSION="0x"
3976if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3977 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3978fi
3979MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3980if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3981 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3982fi
3983MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3984if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3985 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3986fi
3987MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3988
3989
3990# Definition used to define MagickLibVersionText in version.h
3991MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3992
3993
3994# Definition used to define MagickLibVersionNumber in version.h
3995MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3996
3997
3998# Regenerate config.status if ChangeLog or version.sh is updated.
3999CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4000
4001
4002PERLMAINCC=$CC
4003
4004MAGICK_CFLAGS=''
4005MAGICK_CPPFLAGS=$CPPFLAGS_USER
4006MAGICK_PCFLAGS=$CPPFLAGS_USER
4007MAGICK_LDFLAGS=''
4008MAGICK_LIBS=''
4009
4010#
4011# Evaluate shell variable equivalents to Makefile directory variables
4012#
4013if test "x$prefix" = xNONE; then
4014 prefix=$ac_default_prefix
4015fi
4016# Let make expand exec_prefix.
4017if test "x$exec_prefix" = xNONE; then
4018 exec_prefix='${prefix}'
4019fi
4020
4021#
4022eval "eval PREFIX_DIR=${prefix}"
4023
4024eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4025
4026eval "eval BIN_DIR=$bindir"
4027
4028eval "eval SBIN_DIR=$sbindir"
4029
4030eval "eval LIBEXEC_DIR=$libexecdir"
4031
4032eval "eval DATA_DIR=$datadir"
4033
4034eval "eval SYSCONF_DIR=$sysconfdir"
4035
4036eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4037
4038eval "eval LOCALSTATE_DIR=$localstatedir"
4039
4040eval "eval LIB_DIR=$libdir"
4041
4042eval "eval INCLUDE_DIR=$includedir"
4043
4044eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4045
4046eval "eval INFO_DIR=$infodir"
4047
4048eval "eval MAN_DIR=$mandir"
4049
4050
4051# Get full paths to source and build directories
4052srcdirfull="`cd $srcdir && pwd`"
4053builddir="`pwd`"
4054
4055#
4056# Compute variables useful for running uninstalled software.
4057#
4058MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4059MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4060MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4061MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4062DIRSEP=':'
4063case "${build_os}" in
4064 mingw* )
4065 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4066 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4067 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4068 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4069 DIRSEP=';'
4070 ;;
4071esac
4072case "${host_os}" in
4073 mingw* )
4074 DIRSEP=';'
4075 ;;
4076esac
4077
4078
4079
4080
4081
4082
cristya0b81c32010-01-22 02:54:33 +00004083
4084#
4085# Enable OS features.
4086#
4087DEPDIR="${am__leading_dot}deps"
4088
4089ac_config_commands="$ac_config_commands depfiles"
4090
4091
4092am_make=${MAKE-make}
4093cat > confinc << 'END'
4094am__doit:
4095 @echo this is the am__doit target
4096.PHONY: am__doit
4097END
4098# If we don't find an include directive, just comment out the code.
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4100$as_echo_n "checking for style of include used by $am_make... " >&6; }
4101am__include="#"
4102am__quote=
4103_am_result=none
4104# First try GNU make style include.
4105echo "include confinc" > confmf
4106# Ignore all kinds of additional output from `make'.
4107case `$am_make -s -f confmf 2> /dev/null` in #(
4108*the\ am__doit\ target*)
4109 am__include=include
4110 am__quote=
4111 _am_result=GNU
4112 ;;
4113esac
4114# Now try BSD make style include.
4115if test "$am__include" = "#"; then
4116 echo '.include "confinc"' > confmf
4117 case `$am_make -s -f confmf 2> /dev/null` in #(
4118 *the\ am__doit\ target*)
4119 am__include=.include
4120 am__quote="\""
4121 _am_result=BSD
4122 ;;
4123 esac
4124fi
4125
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4128$as_echo "$_am_result" >&6; }
4129rm -f confinc confmf
4130
4131# Check whether --enable-dependency-tracking was given.
4132if test "${enable_dependency_tracking+set}" = set; then :
4133 enableval=$enable_dependency_tracking;
4134fi
4135
4136if test "x$enable_dependency_tracking" != xno; then
4137 am_depcomp="$ac_aux_dir/depcomp"
4138 AMDEPBACKSLASH='\'
4139fi
4140 if test "x$enable_dependency_tracking" != xno; then
4141 AMDEP_TRUE=
4142 AMDEP_FALSE='#'
4143else
4144 AMDEP_TRUE='#'
4145 AMDEP_FALSE=
4146fi
4147
4148
cristy3ed852e2009-09-05 21:47:34 +00004149ac_ext=c
4150ac_cpp='$CPP $CPPFLAGS'
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4156set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004158$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004159if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004160 $as_echo_n "(cached) " >&6
4161else
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4164else
4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004170 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004174 break 2
4175 fi
4176done
cristy8b350f62009-11-15 23:12:43 +00004177 done
cristy3ed852e2009-09-05 21:47:34 +00004178IFS=$as_save_IFS
4179
4180fi
4181fi
4182CC=$ac_cv_prog_CC
4183if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004185$as_echo "$CC" >&6; }
4186else
cristy8b350f62009-11-15 23:12:43 +00004187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004188$as_echo "no" >&6; }
4189fi
4190
4191
4192fi
4193if test -z "$ac_cv_prog_CC"; then
4194 ac_ct_CC=$CC
4195 # Extract the first word of "gcc", so it can be a program name with args.
4196set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004198$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004199if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004200 $as_echo_n "(cached) " >&6
4201else
4202 if test -n "$ac_ct_CC"; then
4203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004210 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004214 break 2
4215 fi
4216done
cristy8b350f62009-11-15 23:12:43 +00004217 done
cristy3ed852e2009-09-05 21:47:34 +00004218IFS=$as_save_IFS
4219
4220fi
4221fi
4222ac_ct_CC=$ac_cv_prog_ac_ct_CC
4223if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004225$as_echo "$ac_ct_CC" >&6; }
4226else
cristy8b350f62009-11-15 23:12:43 +00004227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228$as_echo "no" >&6; }
4229fi
4230
4231 if test "x$ac_ct_CC" = x; then
4232 CC=""
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235yes:)
cristy8b350f62009-11-15 23:12:43 +00004236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238ac_tool_warned=yes ;;
4239esac
4240 CC=$ac_ct_CC
4241 fi
4242else
4243 CC="$ac_cv_prog_CC"
4244fi
4245
4246if test -z "$CC"; then
4247 if test -n "$ac_tool_prefix"; then
4248 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4249set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004251$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004252if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004253 $as_echo_n "(cached) " >&6
4254else
4255 if test -n "$CC"; then
4256 ac_cv_prog_CC="$CC" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004267 break 2
4268 fi
4269done
cristy8b350f62009-11-15 23:12:43 +00004270 done
cristy3ed852e2009-09-05 21:47:34 +00004271IFS=$as_save_IFS
4272
4273fi
4274fi
4275CC=$ac_cv_prog_CC
4276if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004278$as_echo "$CC" >&6; }
4279else
cristy8b350f62009-11-15 23:12:43 +00004280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004281$as_echo "no" >&6; }
4282fi
4283
4284
4285 fi
4286fi
4287if test -z "$CC"; then
4288 # Extract the first word of "cc", so it can be a program name with args.
4289set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004291$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004292if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004293 $as_echo_n "(cached) " >&6
4294else
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4297else
4298 ac_prog_rejected=no
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4307 ac_prog_rejected=yes
4308 continue
4309 fi
4310 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004312 break 2
4313 fi
4314done
cristy8b350f62009-11-15 23:12:43 +00004315 done
cristy3ed852e2009-09-05 21:47:34 +00004316IFS=$as_save_IFS
4317
4318if test $ac_prog_rejected = yes; then
4319 # We found a bogon in the path, so make sure we never use it.
4320 set dummy $ac_cv_prog_CC
4321 shift
4322 if test $# != 0; then
4323 # We chose a different compiler from the bogus one.
4324 # However, it has the same basename, so the bogon will be chosen
4325 # first if we set CC to just the basename; use the full file name.
4326 shift
4327 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4328 fi
4329fi
4330fi
4331fi
4332CC=$ac_cv_prog_CC
4333if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004335$as_echo "$CC" >&6; }
4336else
cristy8b350f62009-11-15 23:12:43 +00004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo "no" >&6; }
4339fi
4340
4341
4342fi
4343if test -z "$CC"; then
4344 if test -n "$ac_tool_prefix"; then
4345 for ac_prog in cl.exe
4346 do
4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004350$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004351if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004352 $as_echo_n "(cached) " >&6
4353else
4354 if test -n "$CC"; then
4355 ac_cv_prog_CC="$CC" # Let the user override the test.
4356else
4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358for as_dir in $PATH
4359do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004362 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004366 break 2
4367 fi
4368done
cristy8b350f62009-11-15 23:12:43 +00004369 done
cristy3ed852e2009-09-05 21:47:34 +00004370IFS=$as_save_IFS
4371
4372fi
4373fi
4374CC=$ac_cv_prog_CC
4375if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004377$as_echo "$CC" >&6; }
4378else
cristy8b350f62009-11-15 23:12:43 +00004379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "no" >&6; }
4381fi
4382
4383
4384 test -n "$CC" && break
4385 done
4386fi
4387if test -z "$CC"; then
4388 ac_ct_CC=$CC
4389 for ac_prog in cl.exe
4390do
4391 # Extract the first word of "$ac_prog", so it can be a program name with args.
4392set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004396 $as_echo_n "(cached) " >&6
4397else
4398 if test -n "$ac_ct_CC"; then
4399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410 break 2
4411 fi
4412done
cristy8b350f62009-11-15 23:12:43 +00004413 done
cristy3ed852e2009-09-05 21:47:34 +00004414IFS=$as_save_IFS
4415
4416fi
4417fi
4418ac_ct_CC=$ac_cv_prog_ac_ct_CC
4419if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421$as_echo "$ac_ct_CC" >&6; }
4422else
cristy8b350f62009-11-15 23:12:43 +00004423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424$as_echo "no" >&6; }
4425fi
4426
4427
4428 test -n "$ac_ct_CC" && break
4429done
4430
4431 if test "x$ac_ct_CC" = x; then
4432 CC=""
4433 else
4434 case $cross_compiling:$ac_tool_warned in
4435yes:)
cristy8b350f62009-11-15 23:12:43 +00004436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438ac_tool_warned=yes ;;
4439esac
4440 CC=$ac_ct_CC
4441 fi
4442fi
4443
4444fi
4445
4446
cristy8b350f62009-11-15 23:12:43 +00004447test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004449as_fn_error "no acceptable C compiler found in \$PATH
4450See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004451
4452# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004453$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004454set X $ac_compile
4455ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004456for ac_option in --version -v -V -qversion; do
4457 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
cristy8b350f62009-11-15 23:12:43 +00004462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004465 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004466 if test -s conftest.err; then
4467 sed '10a\
4468... rest of stderr output deleted ...
4469 10q' conftest.err >conftest.er1
4470 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004471 fi
cristycd4c5312009-11-22 01:19:08 +00004472 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474 test $ac_status = 0; }
4475done
cristy3ed852e2009-09-05 21:47:34 +00004476
cristy8b350f62009-11-15 23:12:43 +00004477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004478/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004479
cristy3ed852e2009-09-05 21:47:34 +00004480int
4481main ()
4482{
4483
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004489ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004490# Try to create an executable without -o first, disregard a.out.
4491# It will help us diagnose broken compilers, and finding out an intuition
4492# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4494$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004495ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4496
4497# The possible output files:
4498ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4499
4500ac_rmfiles=
4501for ac_file in $ac_files
4502do
4503 case $ac_file in
4504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4505 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4506 esac
4507done
4508rm -f $ac_rmfiles
4509
cristy8b350f62009-11-15 23:12:43 +00004510if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004511case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
cristy8b350f62009-11-15 23:12:43 +00004515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4516$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004517 (eval "$ac_link_default") 2>&5
4518 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4522# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4523# in a Makefile. We should not override ac_cv_exeext if it was cached,
4524# so that the user can short-circuit this test for compilers unknown to
4525# Autoconf.
4526for ac_file in $ac_files ''
4527do
4528 test -f "$ac_file" || continue
4529 case $ac_file in
4530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4531 ;;
4532 [ab].out )
4533 # We found the default executable, but exeext='' is most
4534 # certainly right.
4535 break;;
4536 *.* )
cristy8b350f62009-11-15 23:12:43 +00004537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004538 then :; else
4539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4540 fi
4541 # We set ac_cv_exeext here because the later test for it is not
4542 # safe: cross compilers may not add the suffix if given an `-o'
4543 # argument, so we may need to know it at that point already.
4544 # Even if this section looks crufty: it has the advantage of
4545 # actually working.
4546 break;;
4547 * )
4548 break;;
4549 esac
4550done
4551test "$ac_cv_exeext" = no && ac_cv_exeext=
4552
4553else
4554 ac_file=''
4555fi
cristy8b350f62009-11-15 23:12:43 +00004556if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558$as_echo "no" >&6; }
4559$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560sed 's/^/| /' conftest.$ac_ext >&5
4561
cristy8b350f62009-11-15 23:12:43 +00004562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004564{ as_fn_set_status 77
4565as_fn_error "C compiler cannot create executables
4566See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004567else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4569$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004570fi
cristycd4c5312009-11-22 01:19:08 +00004571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4572$as_echo_n "checking for C compiler default output file name... " >&6; }
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4574$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004575ac_exeext=$ac_cv_exeext
4576
cristycd4c5312009-11-22 01:19:08 +00004577rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004578ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004581if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004582case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585esac
cristy8b350f62009-11-15 23:12:43 +00004586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004588 (eval "$ac_link") 2>&5
4589 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4593# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4594# work properly (i.e., refer to `conftest.exe'), while it won't with
4595# `rm'.
4596for ac_file in conftest.exe conftest conftest.*; do
4597 test -f "$ac_file" || continue
4598 case $ac_file in
4599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4601 break;;
4602 * ) break;;
4603 esac
4604done
4605else
cristy8b350f62009-11-15 23:12:43 +00004606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004608as_fn_error "cannot compute suffix of executables: cannot compile and link
4609See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004610fi
cristycd4c5312009-11-22 01:19:08 +00004611rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004613$as_echo "$ac_cv_exeext" >&6; }
4614
4615rm -f conftest.$ac_ext
4616EXEEXT=$ac_cv_exeext
4617ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h. */
4620#include <stdio.h>
4621int
4622main ()
4623{
4624FILE *f = fopen ("conftest.out", "w");
4625 return ferror (f) || fclose (f) != 0;
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631ac_clean_files="$ac_clean_files conftest.out"
4632# Check that the compiler produces executables we can run. If not, either
4633# the compiler is broken, or we cross compile.
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4635$as_echo_n "checking whether we are cross compiling... " >&6; }
4636if test "$cross_compiling" != yes; then
4637 { { ac_try="$ac_link"
4638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643$as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_link") 2>&5
4645 ac_status=$?
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4648 if { ac_try='./conftest$ac_cv_exeext'
4649 { { case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_try") 2>&5
4656 ac_status=$?
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }; }; then
4659 cross_compiling=no
4660 else
4661 if test "$cross_compiling" = maybe; then
4662 cross_compiling=yes
4663 else
4664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666as_fn_error "cannot run C compiled programs.
4667If you meant to cross compile, use \`--host'.
4668See \`config.log' for more details." "$LINENO" 5; }
4669 fi
4670 fi
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4673$as_echo "$cross_compiling" >&6; }
4674
4675rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4676ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004679if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004680 $as_echo_n "(cached) " >&6
4681else
cristy8b350f62009-11-15 23:12:43 +00004682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004683/* end confdefs.h. */
4684
4685int
4686main ()
4687{
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004694if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004695case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698esac
cristy8b350f62009-11-15 23:12:43 +00004699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004701 (eval "$ac_compile") 2>&5
4702 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004705 for ac_file in conftest.o conftest.obj conftest.*; do
4706 test -f "$ac_file" || continue;
4707 case $ac_file in
4708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4710 break;;
4711 esac
4712done
4713else
4714 $as_echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
cristy8b350f62009-11-15 23:12:43 +00004717{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004719as_fn_error "cannot compute suffix of object files: cannot compile
4720See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004721fi
cristy3ed852e2009-09-05 21:47:34 +00004722rm -f conftest.$ac_cv_objext conftest.$ac_ext
4723fi
cristy8b350f62009-11-15 23:12:43 +00004724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004725$as_echo "$ac_cv_objext" >&6; }
4726OBJEXT=$ac_cv_objext
4727ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004730if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004731 $as_echo_n "(cached) " >&6
4732else
cristy8b350f62009-11-15 23:12:43 +00004733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004734/* end confdefs.h. */
4735
4736int
4737main ()
4738{
4739#ifndef __GNUC__
4740 choke me
4741#endif
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004747if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004748 ac_compiler_gnu=yes
4749else
cristy8b350f62009-11-15 23:12:43 +00004750 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004751fi
cristy3ed852e2009-09-05 21:47:34 +00004752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753ac_cv_c_compiler_gnu=$ac_compiler_gnu
4754
4755fi
cristy8b350f62009-11-15 23:12:43 +00004756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004757$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4758if test $ac_compiler_gnu = yes; then
4759 GCC=yes
4760else
4761 GCC=
4762fi
4763ac_test_CFLAGS=${CFLAGS+set}
4764ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004766$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004767if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004768 $as_echo_n "(cached) " >&6
4769else
4770 ac_save_c_werror_flag=$ac_c_werror_flag
4771 ac_c_werror_flag=yes
4772 ac_cv_prog_cc_g=no
4773 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004785if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004786 ac_cv_prog_cc_g=yes
4787else
cristy8b350f62009-11-15 23:12:43 +00004788 CFLAGS=""
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004790/* end confdefs.h. */
4791
4792int
4793main ()
4794{
4795
4796 ;
4797 return 0;
4798}
4799_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004800if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004801
cristy8b350f62009-11-15 23:12:43 +00004802else
4803 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004804 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004806/* end confdefs.h. */
4807
4808int
4809main ()
4810{
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004816if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004817 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004818fi
cristy3ed852e2009-09-05 21:47:34 +00004819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
cristy3ed852e2009-09-05 21:47:34 +00004821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
cristy3ed852e2009-09-05 21:47:34 +00004823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_c_werror_flag=$ac_save_c_werror_flag
4825fi
cristy8b350f62009-11-15 23:12:43 +00004826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004827$as_echo "$ac_cv_prog_cc_g" >&6; }
4828if test "$ac_test_CFLAGS" = set; then
4829 CFLAGS=$ac_save_CFLAGS
4830elif test $ac_cv_prog_cc_g = yes; then
4831 if test "$GCC" = yes; then
4832 CFLAGS="-g -O2"
4833 else
4834 CFLAGS="-g"
4835 fi
4836else
4837 if test "$GCC" = yes; then
4838 CFLAGS="-O2"
4839 else
4840 CFLAGS=
4841 fi
4842fi
cristy8b350f62009-11-15 23:12:43 +00004843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004845if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004846 $as_echo_n "(cached) " >&6
4847else
4848 ac_cv_prog_cc_c89=no
4849ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004851/* end confdefs.h. */
4852#include <stdarg.h>
4853#include <stdio.h>
4854#include <sys/types.h>
4855#include <sys/stat.h>
4856/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4857struct buf { int x; };
4858FILE * (*rcsopen) (struct buf *, struct stat *, int);
4859static char *e (p, i)
4860 char **p;
4861 int i;
4862{
4863 return p[i];
4864}
4865static char *f (char * (*g) (char **, int), char **p, ...)
4866{
4867 char *s;
4868 va_list v;
4869 va_start (v,p);
4870 s = g (p, va_arg (v,int));
4871 va_end (v);
4872 return s;
4873}
4874
4875/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4876 function prototypes and stuff, but not '\xHH' hex character constants.
4877 These don't provoke an error unfortunately, instead are silently treated
4878 as 'x'. The following induces an error, until -std is added to get
4879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4880 array size at least. It's necessary to write '\x00'==0 to get something
4881 that's true only with -std. */
4882int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4883
4884/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4885 inside strings and character constants. */
4886#define FOO(x) 'x'
4887int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4888
4889int test (int i, double x);
4890struct s1 {int (*f) (int a);};
4891struct s2 {int (*f) (double a);};
4892int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4893int argc;
4894char **argv;
4895int
4896main ()
4897{
4898return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4899 ;
4900 return 0;
4901}
4902_ACEOF
4903for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905do
4906 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004907 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004908 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004909fi
cristy3ed852e2009-09-05 21:47:34 +00004910rm -f core conftest.err conftest.$ac_objext
4911 test "x$ac_cv_prog_cc_c89" != "xno" && break
4912done
4913rm -f conftest.$ac_ext
4914CC=$ac_save_CC
4915
4916fi
4917# AC_CACHE_VAL
4918case "x$ac_cv_prog_cc_c89" in
4919 x)
cristy8b350f62009-11-15 23:12:43 +00004920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004921$as_echo "none needed" >&6; } ;;
4922 xno)
cristy8b350f62009-11-15 23:12:43 +00004923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004924$as_echo "unsupported" >&6; } ;;
4925 *)
4926 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004928$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4929esac
cristy8b350f62009-11-15 23:12:43 +00004930if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004931
cristy8b350f62009-11-15 23:12:43 +00004932fi
cristy3ed852e2009-09-05 21:47:34 +00004933
4934ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004939
cristya0b81c32010-01-22 02:54:33 +00004940depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00004941
cristya0b81c32010-01-22 02:54:33 +00004942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4943$as_echo_n "checking dependency style of $depcc... " >&6; }
4944if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00004946else
cristya0b81c32010-01-22 02:54:33 +00004947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4948 # We make a subdir and do the tests there. Otherwise we can end up
4949 # making bogus files that we don't know about and never remove. For
4950 # instance it was reported that on HP-UX the gcc test will end up
4951 # making a dummy file named `D' -- because `-MD' means `put the output
4952 # in D'.
4953 mkdir conftest.dir
4954 # Copy depcomp to subdir because otherwise we won't find it if we're
4955 # using a relative directory.
4956 cp "$am_depcomp" conftest.dir
4957 cd conftest.dir
4958 # We will build objects and dependencies in a subdirectory because
4959 # it helps to detect inapplicable dependency modes. For instance
4960 # both Tru64's cc and ICC support -MD to output dependencies as a
4961 # side effect of compilation, but ICC will put the dependencies in
4962 # the current directory while Tru64 will put them in the object
4963 # directory.
4964 mkdir sub
4965
4966 am_cv_CC_dependencies_compiler_type=none
4967 if test "$am_compiler_list" = ""; then
4968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4969 fi
4970 am__universal=false
4971 case " $depcc " in #(
4972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4973 esac
4974
4975 for depmode in $am_compiler_list; do
4976 # Setup a source with many dependencies, because some compilers
4977 # like to wrap large dependency lists on column 80 (with \), and
4978 # we should not choose a depcomp mode which is confused by this.
4979 #
4980 # We need to recreate these files for each test, as the compiler may
4981 # overwrite some of them when testing with obscure command lines.
4982 # This happens at least with the AIX C compiler.
4983 : > sub/conftest.c
4984 for i in 1 2 3 4 5 6; do
4985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4986 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4987 # Solaris 8's {/usr,}/bin/sh.
4988 touch sub/conftst$i.h
4989 done
4990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4991
4992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4993 # mode. It turns out that the SunPro C++ compiler does not properly
4994 # handle `-M -o', and we need to detect this. Also, some Intel
4995 # versions had trouble with output in subdirs
4996 am__obj=sub/conftest.${OBJEXT-o}
4997 am__minus_obj="-o $am__obj"
4998 case $depmode in
4999 gcc)
5000 # This depmode causes a compiler race in universal mode.
5001 test "$am__universal" = false || continue
5002 ;;
5003 nosideeffect)
5004 # after this tag, mechanisms are not by side-effect, so they'll
5005 # only be used when explicitly requested
5006 if test "x$enable_dependency_tracking" = xyes; then
5007 continue
5008 else
5009 break
5010 fi
5011 ;;
5012 msvisualcpp | msvcmsys)
5013 # This compiler won't grok `-c -o', but also, the minuso test has
5014 # not run yet. These depmodes are late enough in the game, and
5015 # so weak that their functioning should not be impacted.
5016 am__obj=conftest.${OBJEXT-o}
5017 am__minus_obj=
5018 ;;
5019 none) break ;;
5020 esac
5021 if depmode=$depmode \
5022 source=sub/conftest.c object=$am__obj \
5023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5025 >/dev/null 2>conftest.err &&
5026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5030 # icc doesn't choke on unknown options, it will just issue warnings
5031 # or remarks (even with -Werror). So we grep stderr for any message
5032 # that says an option was ignored or not supported.
5033 # When given -MP, icc 7.0 and 7.1 complain thusly:
5034 # icc: Command line warning: ignoring option '-M'; no argument required
5035 # The diagnosis changed in icc 8.0:
5036 # icc: Command line remark: option '-MP' not supported
5037 if (grep 'ignoring option' conftest.err ||
5038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5039 am_cv_CC_dependencies_compiler_type=$depmode
5040 break
5041 fi
5042 fi
5043 done
5044
5045 cd ..
5046 rm -rf conftest.dir
5047else
5048 am_cv_CC_dependencies_compiler_type=none
5049fi
5050
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5053$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5054CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5055
5056 if
5057 test "x$enable_dependency_tracking" != xno \
5058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5059 am__fastdepCC_TRUE=
5060 am__fastdepCC_FALSE='#'
5061else
5062 am__fastdepCC_TRUE='#'
5063 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005064fi
5065
5066
5067
cristya0b81c32010-01-22 02:54:33 +00005068ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5074$as_echo_n "checking how to run the C preprocessor... " >&6; }
5075# On Suns, sometimes $CPP names a directory.
5076if test -n "$CPP" && test -d "$CPP"; then
5077 CPP=
5078fi
5079if test -z "$CPP"; then
5080 if test "${ac_cv_prog_CPP+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082else
5083 # Double quotes because CPP needs to be expanded
5084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5085 do
5086 ac_preproc_ok=false
5087for ac_c_preproc_warn_flag in '' yes
5088do
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifdef __STDC__
5098# include <limits.h>
5099#else
5100# include <assert.h>
5101#endif
5102 Syntax error
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105
5106else
5107 # Broken: fails on valid input.
5108continue
5109fi
5110rm -f conftest.err conftest.$ac_ext
5111
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#include <ac_nonexistent.h>
5117_ACEOF
5118if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5120continue
5121else
5122 # Passes both tests.
5123ac_preproc_ok=:
5124break
5125fi
5126rm -f conftest.err conftest.$ac_ext
5127
5128done
5129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130rm -f conftest.err conftest.$ac_ext
5131if $ac_preproc_ok; then :
5132 break
5133fi
5134
5135 done
5136 ac_cv_prog_CPP=$CPP
5137
5138fi
5139 CPP=$ac_cv_prog_CPP
5140else
5141 ac_cv_prog_CPP=$CPP
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5144$as_echo "$CPP" >&6; }
5145ac_preproc_ok=false
5146for ac_c_preproc_warn_flag in '' yes
5147do
5148 # Use a header file that comes with gcc, so configuring glibc
5149 # with a fresh cross-compiler works.
5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 # <limits.h> exists even on freestanding compilers.
5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5153 # not just through cpp. "Syntax error" is here to catch this case.
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155/* end confdefs.h. */
5156#ifdef __STDC__
5157# include <limits.h>
5158#else
5159# include <assert.h>
5160#endif
5161 Syntax error
5162_ACEOF
5163if ac_fn_c_try_cpp "$LINENO"; then :
5164
5165else
5166 # Broken: fails on valid input.
5167continue
5168fi
5169rm -f conftest.err conftest.$ac_ext
5170
5171 # OK, works on sane cases. Now check whether nonexistent headers
5172 # can be detected and how.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h. */
5175#include <ac_nonexistent.h>
5176_ACEOF
5177if ac_fn_c_try_cpp "$LINENO"; then :
5178 # Broken: success on invalid input.
5179continue
5180else
5181 # Passes both tests.
5182ac_preproc_ok=:
5183break
5184fi
5185rm -f conftest.err conftest.$ac_ext
5186
5187done
5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189rm -f conftest.err conftest.$ac_ext
5190if $ac_preproc_ok; then :
5191
5192else
5193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195as_fn_error "C preprocessor \"$CPP\" fails sanity check
5196See \`config.log' for more details." "$LINENO" 5; }
5197fi
5198
5199ac_ext=c
5200ac_cpp='$CPP $CPPFLAGS'
5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5207$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5208if test "${ac_cv_path_GREP+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210else
5211 if test -z "$GREP"; then
5212 ac_path_GREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_prog in grep ggrep; do
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5223# Check for GNU ac_path_GREP and select it if it is found.
5224 # Check for GNU $ac_path_GREP
5225case `"$ac_path_GREP" --version 2>&1` in
5226*GNU*)
5227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5228*)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo 'GREP' >> "conftest.nl"
5237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_GREP="$ac_path_GREP"
5243 ac_path_GREP_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249esac
5250
5251 $ac_path_GREP_found && break 3
5252 done
5253 done
5254 done
5255IFS=$as_save_IFS
5256 if test -z "$ac_cv_path_GREP"; then
5257 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5258 fi
5259else
5260 ac_cv_path_GREP=$GREP
5261fi
5262
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5265$as_echo "$ac_cv_path_GREP" >&6; }
5266 GREP="$ac_cv_path_GREP"
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5270$as_echo_n "checking for egrep... " >&6; }
5271if test "${ac_cv_path_EGREP+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5273else
5274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5275 then ac_cv_path_EGREP="$GREP -E"
5276 else
5277 if test -z "$EGREP"; then
5278 ac_path_EGREP_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_prog in egrep; do
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5288 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5289# Check for GNU ac_path_EGREP and select it if it is found.
5290 # Check for GNU $ac_path_EGREP
5291case `"$ac_path_EGREP" --version 2>&1` in
5292*GNU*)
5293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5294*)
5295 ac_count=0
5296 $as_echo_n 0123456789 >"conftest.in"
5297 while :
5298 do
5299 cat "conftest.in" "conftest.in" >"conftest.tmp"
5300 mv "conftest.tmp" "conftest.in"
5301 cp "conftest.in" "conftest.nl"
5302 $as_echo 'EGREP' >> "conftest.nl"
5303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5305 as_fn_arith $ac_count + 1 && ac_count=$as_val
5306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5307 # Best one so far, save it but keep looking for a better one
5308 ac_cv_path_EGREP="$ac_path_EGREP"
5309 ac_path_EGREP_max=$ac_count
5310 fi
5311 # 10*(2^10) chars as input seems more than enough
5312 test $ac_count -gt 10 && break
5313 done
5314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5315esac
5316
5317 $ac_path_EGREP_found && break 3
5318 done
5319 done
5320 done
5321IFS=$as_save_IFS
5322 if test -z "$ac_cv_path_EGREP"; then
5323 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5324 fi
5325else
5326 ac_cv_path_EGREP=$EGREP
5327fi
5328
5329 fi
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5332$as_echo "$ac_cv_path_EGREP" >&6; }
5333 EGREP="$ac_cv_path_EGREP"
5334
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5337$as_echo_n "checking for ANSI C header files... " >&6; }
5338if test "${ac_cv_header_stdc+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
5343#include <stdlib.h>
5344#include <stdarg.h>
5345#include <string.h>
5346#include <float.h>
5347
5348int
5349main ()
5350{
5351
5352 ;
5353 return 0;
5354}
5355_ACEOF
5356if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_header_stdc=yes
5358else
5359 ac_cv_header_stdc=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362
5363if test $ac_cv_header_stdc = yes; then
5364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h. */
5367#include <string.h>
5368
5369_ACEOF
5370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5371 $EGREP "memchr" >/dev/null 2>&1; then :
5372
5373else
5374 ac_cv_header_stdc=no
5375fi
5376rm -f conftest*
5377
5378fi
5379
5380if test $ac_cv_header_stdc = yes; then
5381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h. */
5384#include <stdlib.h>
5385
5386_ACEOF
5387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388 $EGREP "free" >/dev/null 2>&1; then :
5389
5390else
5391 ac_cv_header_stdc=no
5392fi
5393rm -f conftest*
5394
5395fi
5396
5397if test $ac_cv_header_stdc = yes; then
5398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5399 if test "$cross_compiling" = yes; then :
5400 :
5401else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h. */
5404#include <ctype.h>
5405#include <stdlib.h>
5406#if ((' ' & 0x0FF) == 0x020)
5407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5409#else
5410# define ISLOWER(c) \
5411 (('a' <= (c) && (c) <= 'i') \
5412 || ('j' <= (c) && (c) <= 'r') \
5413 || ('s' <= (c) && (c) <= 'z'))
5414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5415#endif
5416
5417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5418int
5419main ()
5420{
5421 int i;
5422 for (i = 0; i < 256; i++)
5423 if (XOR (islower (i), ISLOWER (i))
5424 || toupper (i) != TOUPPER (i))
5425 return 2;
5426 return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_run "$LINENO"; then :
5430
5431else
5432 ac_cv_header_stdc=no
5433fi
5434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5435 conftest.$ac_objext conftest.beam conftest.$ac_ext
5436fi
5437
5438fi
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5441$as_echo "$ac_cv_header_stdc" >&6; }
5442if test $ac_cv_header_stdc = yes; then
5443
5444$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5445
5446fi
5447
5448# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5450 inttypes.h stdint.h unistd.h
5451do :
5452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5454"
5455eval as_val=\$$as_ac_Header
5456 if test "x$as_val" = x""yes; then :
5457 cat >>confdefs.h <<_ACEOF
5458#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459_ACEOF
5460
5461fi
5462
5463done
5464
5465
5466
5467 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5468if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5469 MINIX=yes
5470else
5471 MINIX=
5472fi
5473
5474
5475 if test "$MINIX" = yes; then
5476
5477$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5478
5479
5480$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5481
5482
5483$as_echo "#define _MINIX 1" >>confdefs.h
5484
5485 fi
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5489$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5490if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5492else
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495
5496# define __EXTENSIONS__ 1
5497 $ac_includes_default
5498int
5499main ()
5500{
5501
5502 ;
5503 return 0;
5504}
5505_ACEOF
5506if ac_fn_c_try_compile "$LINENO"; then :
5507 ac_cv_safe_to_define___extensions__=yes
5508else
5509 ac_cv_safe_to_define___extensions__=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512fi
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5514$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5515 test $ac_cv_safe_to_define___extensions__ = yes &&
5516 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5517
5518 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5519
5520 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5521
5522 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5523
5524 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5525
5526
5527
5528# Check for programs
5529ac_ext=c
5530ac_cpp='$CPP $CPPFLAGS'
5531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533ac_compiler_gnu=$ac_cv_c_compiler_gnu
5534if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}gcc; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if test "${ac_cv_prog_CC+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 if test -n "$CC"; then
5543 ac_cv_prog_CC="$CC" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556done
5557 done
5558IFS=$as_save_IFS
5559
5560fi
5561fi
5562CC=$ac_cv_prog_CC
5563if test -n "$CC"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5565$as_echo "$CC" >&6; }
5566else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568$as_echo "no" >&6; }
5569fi
5570
5571
5572fi
5573if test -z "$ac_cv_prog_CC"; then
5574 ac_ct_CC=$CC
5575 # Extract the first word of "gcc", so it can be a program name with args.
5576set dummy gcc; ac_word=$2
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578$as_echo_n "checking for $ac_word... " >&6; }
5579if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5581else
5582 if test -n "$ac_ct_CC"; then
5583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592 ac_cv_prog_ac_ct_CC="gcc"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596done
5597 done
5598IFS=$as_save_IFS
5599
5600fi
5601fi
5602ac_ct_CC=$ac_cv_prog_ac_ct_CC
5603if test -n "$ac_ct_CC"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5605$as_echo "$ac_ct_CC" >&6; }
5606else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608$as_echo "no" >&6; }
5609fi
5610
5611 if test "x$ac_ct_CC" = x; then
5612 CC=""
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615yes:)
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618ac_tool_warned=yes ;;
5619esac
5620 CC=$ac_ct_CC
5621 fi
5622else
5623 CC="$ac_cv_prog_CC"
5624fi
5625
5626if test -z "$CC"; then
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5629set dummy ${ac_tool_prefix}cc; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
5632if test "${ac_cv_prog_CC+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634else
5635 if test -n "$CC"; then
5636 ac_cv_prog_CC="$CC" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_CC="${ac_tool_prefix}cc"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649done
5650 done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655CC=$ac_cv_prog_CC
5656if test -n "$CC"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5658$as_echo "$CC" >&6; }
5659else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664
5665 fi
5666fi
5667if test -z "$CC"; then
5668 # Extract the first word of "cc", so it can be a program name with args.
5669set dummy cc; ac_word=$2
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5671$as_echo_n "checking for $ac_word... " >&6; }
5672if test "${ac_cv_prog_CC+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5674else
5675 if test -n "$CC"; then
5676 ac_cv_prog_CC="$CC" # Let the user override the test.
5677else
5678 ac_prog_rejected=no
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687 ac_prog_rejected=yes
5688 continue
5689 fi
5690 ac_cv_prog_CC="cc"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5693 fi
5694done
5695 done
5696IFS=$as_save_IFS
5697
5698if test $ac_prog_rejected = yes; then
5699 # We found a bogon in the path, so make sure we never use it.
5700 set dummy $ac_cv_prog_CC
5701 shift
5702 if test $# != 0; then
5703 # We chose a different compiler from the bogus one.
5704 # However, it has the same basename, so the bogon will be chosen
5705 # first if we set CC to just the basename; use the full file name.
5706 shift
5707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5708 fi
5709fi
5710fi
5711fi
5712CC=$ac_cv_prog_CC
5713if test -n "$CC"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5715$as_echo "$CC" >&6; }
5716else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722fi
5723if test -z "$CC"; then
5724 if test -n "$ac_tool_prefix"; then
5725 for ac_prog in cl.exe
5726 do
5727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
5731if test "${ac_cv_prog_CC+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 if test -n "$CC"; then
5735 ac_cv_prog_CC="$CC" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749 done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754CC=$ac_cv_prog_CC
5755if test -n "$CC"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5757$as_echo "$CC" >&6; }
5758else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763
5764 test -n "$CC" && break
5765 done
5766fi
5767if test -z "$CC"; then
5768 ac_ct_CC=$CC
5769 for ac_prog in cl.exe
5770do
5771 # Extract the first word of "$ac_prog", so it can be a program name with args.
5772set dummy $ac_prog; ac_word=$2
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774$as_echo_n "checking for $ac_word... " >&6; }
5775if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777else
5778 if test -n "$ac_ct_CC"; then
5779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5780else
5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH
5783do
5784 IFS=$as_save_IFS
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_ac_ct_CC="$ac_prog"
5789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 break 2
5791 fi
5792done
5793 done
5794IFS=$as_save_IFS
5795
5796fi
5797fi
5798ac_ct_CC=$ac_cv_prog_ac_ct_CC
5799if test -n "$ac_ct_CC"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5801$as_echo "$ac_ct_CC" >&6; }
5802else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804$as_echo "no" >&6; }
5805fi
5806
5807
5808 test -n "$ac_ct_CC" && break
5809done
5810
5811 if test "x$ac_ct_CC" = x; then
5812 CC=""
5813 else
5814 case $cross_compiling:$ac_tool_warned in
5815yes:)
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818ac_tool_warned=yes ;;
5819esac
5820 CC=$ac_ct_CC
5821 fi
5822fi
5823
5824fi
5825
5826
5827test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5829as_fn_error "no acceptable C compiler found in \$PATH
5830See \`config.log' for more details." "$LINENO" 5; }
5831
5832# Provide some information about the compiler.
5833$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5834set X $ac_compile
5835ac_compiler=$2
5836for ac_option in --version -v -V -qversion; do
5837 { { ac_try="$ac_compiler $ac_option >&5"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5843$as_echo "$ac_try_echo"; } >&5
5844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5845 ac_status=$?
5846 if test -s conftest.err; then
5847 sed '10a\
5848... rest of stderr output deleted ...
5849 10q' conftest.err >conftest.er1
5850 cat conftest.er1 >&5
5851 fi
5852 rm -f conftest.er1 conftest.err
5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5854 test $ac_status = 0; }
5855done
5856
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5858$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5859if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h. */
5864
5865int
5866main ()
5867{
5868#ifndef __GNUC__
5869 choke me
5870#endif
5871
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876if ac_fn_c_try_compile "$LINENO"; then :
5877 ac_compiler_gnu=yes
5878else
5879 ac_compiler_gnu=no
5880fi
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882ac_cv_c_compiler_gnu=$ac_compiler_gnu
5883
5884fi
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5886$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5887if test $ac_compiler_gnu = yes; then
5888 GCC=yes
5889else
5890 GCC=
5891fi
5892ac_test_CFLAGS=${CFLAGS+set}
5893ac_save_CFLAGS=$CFLAGS
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5895$as_echo_n "checking whether $CC accepts -g... " >&6; }
5896if test "${ac_cv_prog_cc_g+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5898else
5899 ac_save_c_werror_flag=$ac_c_werror_flag
5900 ac_c_werror_flag=yes
5901 ac_cv_prog_cc_g=no
5902 CFLAGS="-g"
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904/* end confdefs.h. */
5905
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915 ac_cv_prog_cc_g=yes
5916else
5917 CFLAGS=""
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h. */
5920
5921int
5922main ()
5923{
5924
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930
5931else
5932 ac_c_werror_flag=$ac_save_c_werror_flag
5933 CFLAGS="-g"
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936
5937int
5938main ()
5939{
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945if ac_fn_c_try_compile "$LINENO"; then :
5946 ac_cv_prog_cc_g=yes
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951fi
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 ac_c_werror_flag=$ac_save_c_werror_flag
5954fi
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5956$as_echo "$ac_cv_prog_cc_g" >&6; }
5957if test "$ac_test_CFLAGS" = set; then
5958 CFLAGS=$ac_save_CFLAGS
5959elif test $ac_cv_prog_cc_g = yes; then
5960 if test "$GCC" = yes; then
5961 CFLAGS="-g -O2"
5962 else
5963 CFLAGS="-g"
5964 fi
5965else
5966 if test "$GCC" = yes; then
5967 CFLAGS="-O2"
5968 else
5969 CFLAGS=
5970 fi
5971fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5973$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5974if test "${ac_cv_prog_cc_c89+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 ac_cv_prog_cc_c89=no
5978ac_save_CC=$CC
5979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h. */
5981#include <stdarg.h>
5982#include <stdio.h>
5983#include <sys/types.h>
5984#include <sys/stat.h>
5985/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5986struct buf { int x; };
5987FILE * (*rcsopen) (struct buf *, struct stat *, int);
5988static char *e (p, i)
5989 char **p;
5990 int i;
5991{
5992 return p[i];
5993}
5994static char *f (char * (*g) (char **, int), char **p, ...)
5995{
5996 char *s;
5997 va_list v;
5998 va_start (v,p);
5999 s = g (p, va_arg (v,int));
6000 va_end (v);
6001 return s;
6002}
6003
6004/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6005 function prototypes and stuff, but not '\xHH' hex character constants.
6006 These don't provoke an error unfortunately, instead are silently treated
6007 as 'x'. The following induces an error, until -std is added to get
6008 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6009 array size at least. It's necessary to write '\x00'==0 to get something
6010 that's true only with -std. */
6011int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6012
6013/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6014 inside strings and character constants. */
6015#define FOO(x) 'x'
6016int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6017
6018int test (int i, double x);
6019struct s1 {int (*f) (int a);};
6020struct s2 {int (*f) (double a);};
6021int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6022int argc;
6023char **argv;
6024int
6025main ()
6026{
6027return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6028 ;
6029 return 0;
6030}
6031_ACEOF
6032for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6033 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6034do
6035 CC="$ac_save_CC $ac_arg"
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 ac_cv_prog_cc_c89=$ac_arg
6038fi
6039rm -f core conftest.err conftest.$ac_objext
6040 test "x$ac_cv_prog_cc_c89" != "xno" && break
6041done
6042rm -f conftest.$ac_ext
6043CC=$ac_save_CC
6044
6045fi
6046# AC_CACHE_VAL
6047case "x$ac_cv_prog_cc_c89" in
6048 x)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6050$as_echo "none needed" >&6; } ;;
6051 xno)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6053$as_echo "unsupported" >&6; } ;;
6054 *)
6055 CC="$CC $ac_cv_prog_cc_c89"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6057$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6058esac
6059if test "x$ac_cv_prog_cc_c89" != xno; then :
6060
6061fi
6062
6063ac_ext=c
6064ac_cpp='$CPP $CPPFLAGS'
6065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068
cristy3ed852e2009-09-05 21:47:34 +00006069depcc="$CC" am_compiler_list=
6070
cristy8b350f62009-11-15 23:12:43 +00006071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006072$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006073if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006074 $as_echo_n "(cached) " >&6
6075else
6076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6077 # We make a subdir and do the tests there. Otherwise we can end up
6078 # making bogus files that we don't know about and never remove. For
6079 # instance it was reported that on HP-UX the gcc test will end up
6080 # making a dummy file named `D' -- because `-MD' means `put the output
6081 # in D'.
6082 mkdir conftest.dir
6083 # Copy depcomp to subdir because otherwise we won't find it if we're
6084 # using a relative directory.
6085 cp "$am_depcomp" conftest.dir
6086 cd conftest.dir
6087 # We will build objects and dependencies in a subdirectory because
6088 # it helps to detect inapplicable dependency modes. For instance
6089 # both Tru64's cc and ICC support -MD to output dependencies as a
6090 # side effect of compilation, but ICC will put the dependencies in
6091 # the current directory while Tru64 will put them in the object
6092 # directory.
6093 mkdir sub
6094
6095 am_cv_CC_dependencies_compiler_type=none
6096 if test "$am_compiler_list" = ""; then
6097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6098 fi
6099 am__universal=false
6100 case " $depcc " in #(
6101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6102 esac
6103
6104 for depmode in $am_compiler_list; do
6105 # Setup a source with many dependencies, because some compilers
6106 # like to wrap large dependency lists on column 80 (with \), and
6107 # we should not choose a depcomp mode which is confused by this.
6108 #
6109 # We need to recreate these files for each test, as the compiler may
6110 # overwrite some of them when testing with obscure command lines.
6111 # This happens at least with the AIX C compiler.
6112 : > sub/conftest.c
6113 for i in 1 2 3 4 5 6; do
6114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6116 # Solaris 8's {/usr,}/bin/sh.
6117 touch sub/conftst$i.h
6118 done
6119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6120
6121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6122 # mode. It turns out that the SunPro C++ compiler does not properly
6123 # handle `-M -o', and we need to detect this. Also, some Intel
6124 # versions had trouble with output in subdirs
6125 am__obj=sub/conftest.${OBJEXT-o}
6126 am__minus_obj="-o $am__obj"
6127 case $depmode in
6128 gcc)
6129 # This depmode causes a compiler race in universal mode.
6130 test "$am__universal" = false || continue
6131 ;;
6132 nosideeffect)
6133 # after this tag, mechanisms are not by side-effect, so they'll
6134 # only be used when explicitly requested
6135 if test "x$enable_dependency_tracking" = xyes; then
6136 continue
6137 else
6138 break
6139 fi
6140 ;;
6141 msvisualcpp | msvcmsys)
6142 # This compiler won't grok `-c -o', but also, the minuso test has
6143 # not run yet. These depmodes are late enough in the game, and
6144 # so weak that their functioning should not be impacted.
6145 am__obj=conftest.${OBJEXT-o}
6146 am__minus_obj=
6147 ;;
6148 none) break ;;
6149 esac
6150 if depmode=$depmode \
6151 source=sub/conftest.c object=$am__obj \
6152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6154 >/dev/null 2>conftest.err &&
6155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6159 # icc doesn't choke on unknown options, it will just issue warnings
6160 # or remarks (even with -Werror). So we grep stderr for any message
6161 # that says an option was ignored or not supported.
6162 # When given -MP, icc 7.0 and 7.1 complain thusly:
6163 # icc: Command line warning: ignoring option '-M'; no argument required
6164 # The diagnosis changed in icc 8.0:
6165 # icc: Command line remark: option '-MP' not supported
6166 if (grep 'ignoring option' conftest.err ||
6167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6168 am_cv_CC_dependencies_compiler_type=$depmode
6169 break
6170 fi
6171 fi
6172 done
6173
6174 cd ..
6175 rm -rf conftest.dir
6176else
6177 am_cv_CC_dependencies_compiler_type=none
6178fi
6179
6180fi
cristy8b350f62009-11-15 23:12:43 +00006181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006182$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6183CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6184
6185 if
6186 test "x$enable_dependency_tracking" != xno \
6187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6188 am__fastdepCC_TRUE=
6189 am__fastdepCC_FALSE='#'
6190else
6191 am__fastdepCC_TRUE='#'
6192 am__fastdepCC_FALSE=
6193fi
6194
6195
cristy95646052009-11-28 23:05:30 +00006196ac_ext=cpp
6197ac_cpp='$CXXCPP $CPPFLAGS'
6198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6201if test -z "$CXX"; then
6202 if test -n "$CCC"; then
6203 CXX=$CCC
6204 else
6205 if test -n "$ac_tool_prefix"; then
6206 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6207 do
6208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if test "${ac_cv_prog_CXX+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214else
6215 if test -n "$CXX"; then
6216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229done
6230 done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235CXX=$ac_cv_prog_CXX
6236if test -n "$CXX"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6238$as_echo "$CXX" >&6; }
6239else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244
6245 test -n "$CXX" && break
6246 done
6247fi
6248if test -z "$CXX"; then
6249 ac_ct_CXX=$CXX
6250 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6251do
6252 # Extract the first word of "$ac_prog", so it can be a program name with args.
6253set dummy $ac_prog; ac_word=$2
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255$as_echo_n "checking for $ac_word... " >&6; }
6256if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258else
6259 if test -n "$ac_ct_CXX"; then
6260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_CXX="$ac_prog"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273done
6274 done
6275IFS=$as_save_IFS
6276
6277fi
6278fi
6279ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6280if test -n "$ac_ct_CXX"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6282$as_echo "$ac_ct_CXX" >&6; }
6283else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285$as_echo "no" >&6; }
6286fi
6287
6288
6289 test -n "$ac_ct_CXX" && break
6290done
6291
6292 if test "x$ac_ct_CXX" = x; then
6293 CXX="g++"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301 CXX=$ac_ct_CXX
6302 fi
6303fi
6304
6305 fi
6306fi
6307# Provide some information about the compiler.
6308$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6309set X $ac_compile
6310ac_compiler=$2
6311for ac_option in --version -v -V -qversion; do
6312 { { ac_try="$ac_compiler $ac_option >&5"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6318$as_echo "$ac_try_echo"; } >&5
6319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6320 ac_status=$?
6321 if test -s conftest.err; then
6322 sed '10a\
6323... rest of stderr output deleted ...
6324 10q' conftest.err >conftest.er1
6325 cat conftest.er1 >&5
6326 fi
6327 rm -f conftest.er1 conftest.err
6328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6329 test $ac_status = 0; }
6330done
6331
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6333$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6334if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336else
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h. */
6339
6340int
6341main ()
6342{
6343#ifndef __GNUC__
6344 choke me
6345#endif
6346
6347 ;
6348 return 0;
6349}
6350_ACEOF
6351if ac_fn_cxx_try_compile "$LINENO"; then :
6352 ac_compiler_gnu=yes
6353else
6354 ac_compiler_gnu=no
6355fi
6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6358
6359fi
6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6361$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6362if test $ac_compiler_gnu = yes; then
6363 GXX=yes
6364else
6365 GXX=
6366fi
6367ac_test_CXXFLAGS=${CXXFLAGS+set}
6368ac_save_CXXFLAGS=$CXXFLAGS
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6370$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6371if test "${ac_cv_prog_cxx_g+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
6373else
6374 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6375 ac_cxx_werror_flag=yes
6376 ac_cv_prog_cxx_g=no
6377 CXXFLAGS="-g"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h. */
6380
6381int
6382main ()
6383{
6384
6385 ;
6386 return 0;
6387}
6388_ACEOF
6389if ac_fn_cxx_try_compile "$LINENO"; then :
6390 ac_cv_prog_cxx_g=yes
6391else
6392 CXXFLAGS=""
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h. */
6395
6396int
6397main ()
6398{
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404if ac_fn_cxx_try_compile "$LINENO"; then :
6405
6406else
6407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6408 CXXFLAGS="-g"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h. */
6411
6412int
6413main ()
6414{
6415
6416 ;
6417 return 0;
6418}
6419_ACEOF
6420if ac_fn_cxx_try_compile "$LINENO"; then :
6421 ac_cv_prog_cxx_g=yes
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424fi
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6431$as_echo "$ac_cv_prog_cxx_g" >&6; }
6432if test "$ac_test_CXXFLAGS" = set; then
6433 CXXFLAGS=$ac_save_CXXFLAGS
6434elif test $ac_cv_prog_cxx_g = yes; then
6435 if test "$GXX" = yes; then
6436 CXXFLAGS="-g -O2"
6437 else
6438 CXXFLAGS="-g"
6439 fi
6440else
6441 if test "$GXX" = yes; then
6442 CXXFLAGS="-O2"
6443 else
6444 CXXFLAGS=
6445 fi
6446fi
6447ac_ext=c
6448ac_cpp='$CPP $CPPFLAGS'
6449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452
6453depcc="$CXX" am_compiler_list=
6454
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6456$as_echo_n "checking dependency style of $depcc... " >&6; }
6457if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459else
6460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6461 # We make a subdir and do the tests there. Otherwise we can end up
6462 # making bogus files that we don't know about and never remove. For
6463 # instance it was reported that on HP-UX the gcc test will end up
6464 # making a dummy file named `D' -- because `-MD' means `put the output
6465 # in D'.
6466 mkdir conftest.dir
6467 # Copy depcomp to subdir because otherwise we won't find it if we're
6468 # using a relative directory.
6469 cp "$am_depcomp" conftest.dir
6470 cd conftest.dir
6471 # We will build objects and dependencies in a subdirectory because
6472 # it helps to detect inapplicable dependency modes. For instance
6473 # both Tru64's cc and ICC support -MD to output dependencies as a
6474 # side effect of compilation, but ICC will put the dependencies in
6475 # the current directory while Tru64 will put them in the object
6476 # directory.
6477 mkdir sub
6478
6479 am_cv_CXX_dependencies_compiler_type=none
6480 if test "$am_compiler_list" = ""; then
6481 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6482 fi
6483 am__universal=false
6484 case " $depcc " in #(
6485 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6486 esac
6487
6488 for depmode in $am_compiler_list; do
6489 # Setup a source with many dependencies, because some compilers
6490 # like to wrap large dependency lists on column 80 (with \), and
6491 # we should not choose a depcomp mode which is confused by this.
6492 #
6493 # We need to recreate these files for each test, as the compiler may
6494 # overwrite some of them when testing with obscure command lines.
6495 # This happens at least with the AIX C compiler.
6496 : > sub/conftest.c
6497 for i in 1 2 3 4 5 6; do
6498 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6499 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6500 # Solaris 8's {/usr,}/bin/sh.
6501 touch sub/conftst$i.h
6502 done
6503 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6504
6505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6506 # mode. It turns out that the SunPro C++ compiler does not properly
6507 # handle `-M -o', and we need to detect this. Also, some Intel
6508 # versions had trouble with output in subdirs
6509 am__obj=sub/conftest.${OBJEXT-o}
6510 am__minus_obj="-o $am__obj"
6511 case $depmode in
6512 gcc)
6513 # This depmode causes a compiler race in universal mode.
6514 test "$am__universal" = false || continue
6515 ;;
6516 nosideeffect)
6517 # after this tag, mechanisms are not by side-effect, so they'll
6518 # only be used when explicitly requested
6519 if test "x$enable_dependency_tracking" = xyes; then
6520 continue
6521 else
6522 break
6523 fi
6524 ;;
6525 msvisualcpp | msvcmsys)
6526 # This compiler won't grok `-c -o', but also, the minuso test has
6527 # not run yet. These depmodes are late enough in the game, and
6528 # so weak that their functioning should not be impacted.
6529 am__obj=conftest.${OBJEXT-o}
6530 am__minus_obj=
6531 ;;
6532 none) break ;;
6533 esac
6534 if depmode=$depmode \
6535 source=sub/conftest.c object=$am__obj \
6536 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6537 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6538 >/dev/null 2>conftest.err &&
6539 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6540 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6541 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6542 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6543 # icc doesn't choke on unknown options, it will just issue warnings
6544 # or remarks (even with -Werror). So we grep stderr for any message
6545 # that says an option was ignored or not supported.
6546 # When given -MP, icc 7.0 and 7.1 complain thusly:
6547 # icc: Command line warning: ignoring option '-M'; no argument required
6548 # The diagnosis changed in icc 8.0:
6549 # icc: Command line remark: option '-MP' not supported
6550 if (grep 'ignoring option' conftest.err ||
6551 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6552 am_cv_CXX_dependencies_compiler_type=$depmode
6553 break
6554 fi
6555 fi
6556 done
6557
6558 cd ..
6559 rm -rf conftest.dir
6560else
6561 am_cv_CXX_dependencies_compiler_type=none
6562fi
6563
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6566$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6567CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6568
6569 if
6570 test "x$enable_dependency_tracking" != xno \
6571 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6572 am__fastdepCXX_TRUE=
6573 am__fastdepCXX_FALSE='#'
6574else
6575 am__fastdepCXX_TRUE='#'
6576 am__fastdepCXX_FALSE=
6577fi
6578
6579
cristy8b350f62009-11-15 23:12:43 +00006580 case $ac_cv_prog_cc_stdc in #(
6581 no) :
6582 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6583 *) :
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006585$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006586if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006587 $as_echo_n "(cached) " >&6
6588else
6589 ac_cv_prog_cc_c99=no
6590ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006592/* end confdefs.h. */
6593#include <stdarg.h>
6594#include <stdbool.h>
6595#include <stdlib.h>
6596#include <wchar.h>
6597#include <stdio.h>
6598
6599// Check varargs macros. These examples are taken from C99 6.10.3.5.
6600#define debug(...) fprintf (stderr, __VA_ARGS__)
6601#define showlist(...) puts (#__VA_ARGS__)
6602#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6603static void
6604test_varargs_macros (void)
6605{
6606 int x = 1234;
6607 int y = 5678;
6608 debug ("Flag");
6609 debug ("X = %d\n", x);
6610 showlist (The first, second, and third items.);
6611 report (x>y, "x is %d but y is %d", x, y);
6612}
6613
6614// Check long long types.
6615#define BIG64 18446744073709551615ull
6616#define BIG32 4294967295ul
6617#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6618#if !BIG_OK
6619 your preprocessor is broken;
6620#endif
6621#if BIG_OK
6622#else
6623 your preprocessor is broken;
6624#endif
6625static long long int bignum = -9223372036854775807LL;
6626static unsigned long long int ubignum = BIG64;
6627
6628struct incomplete_array
6629{
6630 int datasize;
6631 double data[];
6632};
6633
6634struct named_init {
6635 int number;
6636 const wchar_t *name;
6637 double average;
6638};
6639
6640typedef const char *ccp;
6641
6642static inline int
6643test_restrict (ccp restrict text)
6644{
6645 // See if C++-style comments work.
6646 // Iterate through items via the restricted pointer.
6647 // Also check for declarations in for loops.
6648 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6649 continue;
6650 return 0;
6651}
6652
6653// Check varargs and va_copy.
6654static void
6655test_varargs (const char *format, ...)
6656{
6657 va_list args;
6658 va_start (args, format);
6659 va_list args_copy;
6660 va_copy (args_copy, args);
6661
6662 const char *str;
6663 int number;
6664 float fnumber;
6665
6666 while (*format)
6667 {
6668 switch (*format++)
6669 {
6670 case 's': // string
6671 str = va_arg (args_copy, const char *);
6672 break;
6673 case 'd': // int
6674 number = va_arg (args_copy, int);
6675 break;
6676 case 'f': // float
6677 fnumber = va_arg (args_copy, double);
6678 break;
6679 default:
6680 break;
6681 }
6682 }
6683 va_end (args_copy);
6684 va_end (args);
6685}
6686
6687int
6688main ()
6689{
6690
6691 // Check bool.
6692 _Bool success = false;
6693
6694 // Check restrict.
6695 if (test_restrict ("String literal") == 0)
6696 success = true;
6697 char *restrict newvar = "Another string";
6698
6699 // Check varargs.
6700 test_varargs ("s, d' f .", "string", 65, 34.234);
6701 test_varargs_macros ();
6702
6703 // Check flexible array members.
6704 struct incomplete_array *ia =
6705 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6706 ia->datasize = 10;
6707 for (int i = 0; i < ia->datasize; ++i)
6708 ia->data[i] = i * 1.234;
6709
6710 // Check named initializers.
6711 struct named_init ni = {
6712 .number = 34,
6713 .name = L"Test wide string",
6714 .average = 543.34343,
6715 };
6716
6717 ni.number = 58;
6718
6719 int dynamic_array[ni.number];
6720 dynamic_array[ni.number - 1] = 543;
6721
6722 // work around unused variable warnings
6723 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6724 || dynamic_array[ni.number - 1] != 543);
6725
6726 ;
6727 return 0;
6728}
6729_ACEOF
6730for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6731do
6732 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006733 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006734 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006735fi
cristy3ed852e2009-09-05 21:47:34 +00006736rm -f core conftest.err conftest.$ac_objext
6737 test "x$ac_cv_prog_cc_c99" != "xno" && break
6738done
6739rm -f conftest.$ac_ext
6740CC=$ac_save_CC
6741
6742fi
6743# AC_CACHE_VAL
6744case "x$ac_cv_prog_cc_c99" in
6745 x)
cristy8b350f62009-11-15 23:12:43 +00006746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006747$as_echo "none needed" >&6; } ;;
6748 xno)
cristy8b350f62009-11-15 23:12:43 +00006749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006750$as_echo "unsupported" >&6; } ;;
6751 *)
6752 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006754$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6755esac
cristy8b350f62009-11-15 23:12:43 +00006756if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006757 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6758else
cristy8b350f62009-11-15 23:12:43 +00006759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006760$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006761if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006762 $as_echo_n "(cached) " >&6
6763else
6764 ac_cv_prog_cc_c89=no
6765ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006767/* end confdefs.h. */
6768#include <stdarg.h>
6769#include <stdio.h>
6770#include <sys/types.h>
6771#include <sys/stat.h>
6772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6773struct buf { int x; };
6774FILE * (*rcsopen) (struct buf *, struct stat *, int);
6775static char *e (p, i)
6776 char **p;
6777 int i;
6778{
6779 return p[i];
6780}
6781static char *f (char * (*g) (char **, int), char **p, ...)
6782{
6783 char *s;
6784 va_list v;
6785 va_start (v,p);
6786 s = g (p, va_arg (v,int));
6787 va_end (v);
6788 return s;
6789}
6790
6791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6792 function prototypes and stuff, but not '\xHH' hex character constants.
6793 These don't provoke an error unfortunately, instead are silently treated
6794 as 'x'. The following induces an error, until -std is added to get
6795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6796 array size at least. It's necessary to write '\x00'==0 to get something
6797 that's true only with -std. */
6798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6799
6800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6801 inside strings and character constants. */
6802#define FOO(x) 'x'
6803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6804
6805int test (int i, double x);
6806struct s1 {int (*f) (int a);};
6807struct s2 {int (*f) (double a);};
6808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6809int argc;
6810char **argv;
6811int
6812main ()
6813{
6814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6815 ;
6816 return 0;
6817}
6818_ACEOF
6819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6821do
6822 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006823 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006824 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006825fi
cristy3ed852e2009-09-05 21:47:34 +00006826rm -f core conftest.err conftest.$ac_objext
6827 test "x$ac_cv_prog_cc_c89" != "xno" && break
6828done
6829rm -f conftest.$ac_ext
6830CC=$ac_save_CC
6831
6832fi
6833# AC_CACHE_VAL
6834case "x$ac_cv_prog_cc_c89" in
6835 x)
cristy8b350f62009-11-15 23:12:43 +00006836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006837$as_echo "none needed" >&6; } ;;
6838 xno)
cristy8b350f62009-11-15 23:12:43 +00006839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006840$as_echo "unsupported" >&6; } ;;
6841 *)
6842 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6845esac
cristy8b350f62009-11-15 23:12:43 +00006846if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006847 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6848else
6849 ac_cv_prog_cc_stdc=no
6850fi
6851
cristy3ed852e2009-09-05 21:47:34 +00006852fi
cristy3ed852e2009-09-05 21:47:34 +00006853 ;;
6854esac
cristy8b350f62009-11-15 23:12:43 +00006855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006856$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006857 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006858 $as_echo_n "(cached) " >&6
6859fi
6860
cristy8b350f62009-11-15 23:12:43 +00006861 case $ac_cv_prog_cc_stdc in #(
6862 no) :
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6864$as_echo "unsupported" >&6; } ;; #(
6865 '') :
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6867$as_echo "none needed" >&6; } ;; #(
6868 *) :
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006870$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6871esac
6872
cristy3ed852e2009-09-05 21:47:34 +00006873ac_ext=c
6874ac_cpp='$CPP $CPPFLAGS'
6875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006879$as_echo_n "checking how to run the C preprocessor... " >&6; }
6880# On Suns, sometimes $CPP names a directory.
6881if test -n "$CPP" && test -d "$CPP"; then
6882 CPP=
6883fi
6884if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006885 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006886 $as_echo_n "(cached) " >&6
6887else
6888 # Double quotes because CPP needs to be expanded
6889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6890 do
6891 ac_preproc_ok=false
6892for ac_c_preproc_warn_flag in '' yes
6893do
6894 # Use a header file that comes with gcc, so configuring glibc
6895 # with a fresh cross-compiler works.
6896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 # <limits.h> exists even on freestanding compilers.
6898 # On the NeXT, cc -E runs the code through the compiler's parser,
6899 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006901/* end confdefs.h. */
6902#ifdef __STDC__
6903# include <limits.h>
6904#else
6905# include <assert.h>
6906#endif
6907 Syntax error
6908_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006909if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006910
cristy8b350f62009-11-15 23:12:43 +00006911else
cristy3ed852e2009-09-05 21:47:34 +00006912 # Broken: fails on valid input.
6913continue
6914fi
cristy3ed852e2009-09-05 21:47:34 +00006915rm -f conftest.err conftest.$ac_ext
6916
6917 # OK, works on sane cases. Now check whether nonexistent headers
6918 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006920/* end confdefs.h. */
6921#include <ac_nonexistent.h>
6922_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006923if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006924 # Broken: success on invalid input.
6925continue
6926else
cristy3ed852e2009-09-05 21:47:34 +00006927 # Passes both tests.
6928ac_preproc_ok=:
6929break
6930fi
cristy3ed852e2009-09-05 21:47:34 +00006931rm -f conftest.err conftest.$ac_ext
6932
6933done
6934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6935rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006936if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006937 break
6938fi
6939
6940 done
6941 ac_cv_prog_CPP=$CPP
6942
6943fi
6944 CPP=$ac_cv_prog_CPP
6945else
6946 ac_cv_prog_CPP=$CPP
6947fi
cristy8b350f62009-11-15 23:12:43 +00006948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006949$as_echo "$CPP" >&6; }
6950ac_preproc_ok=false
6951for ac_c_preproc_warn_flag in '' yes
6952do
6953 # Use a header file that comes with gcc, so configuring glibc
6954 # with a fresh cross-compiler works.
6955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956 # <limits.h> exists even on freestanding compilers.
6957 # On the NeXT, cc -E runs the code through the compiler's parser,
6958 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006960/* end confdefs.h. */
6961#ifdef __STDC__
6962# include <limits.h>
6963#else
6964# include <assert.h>
6965#endif
6966 Syntax error
6967_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006968if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006969
cristy8b350f62009-11-15 23:12:43 +00006970else
cristy3ed852e2009-09-05 21:47:34 +00006971 # Broken: fails on valid input.
6972continue
6973fi
cristy3ed852e2009-09-05 21:47:34 +00006974rm -f conftest.err conftest.$ac_ext
6975
6976 # OK, works on sane cases. Now check whether nonexistent headers
6977 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006979/* end confdefs.h. */
6980#include <ac_nonexistent.h>
6981_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006982if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006983 # Broken: success on invalid input.
6984continue
6985else
cristy3ed852e2009-09-05 21:47:34 +00006986 # Passes both tests.
6987ac_preproc_ok=:
6988break
6989fi
cristy3ed852e2009-09-05 21:47:34 +00006990rm -f conftest.err conftest.$ac_ext
6991
6992done
6993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6994rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006995if $ac_preproc_ok; then :
6996
cristy3ed852e2009-09-05 21:47:34 +00006997else
cristy8b350f62009-11-15 23:12:43 +00006998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007000as_fn_error "C preprocessor \"$CPP\" fails sanity check
7001See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007002fi
7003
7004ac_ext=c
7005ac_cpp='$CPP $CPPFLAGS'
7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009
cristy8b350f62009-11-15 23:12:43 +00007010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007012if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007013 $as_echo_n "(cached) " >&6
7014else
7015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7016 for ac_i in 1 2 3 4 5 6 7; do
7017 ac_script="$ac_script$as_nl$ac_script"
7018 done
7019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007020 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007021 if test -z "$SED"; then
7022 ac_path_SED_found=false
7023 # Loop through the user's path and test for each of PROGNAME-LIST
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007029 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7032 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7033# Check for GNU ac_path_SED and select it if it is found.
7034 # Check for GNU $ac_path_SED
7035case `"$ac_path_SED" --version 2>&1` in
7036*GNU*)
7037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7038*)
7039 ac_count=0
7040 $as_echo_n 0123456789 >"conftest.in"
7041 while :
7042 do
7043 cat "conftest.in" "conftest.in" >"conftest.tmp"
7044 mv "conftest.tmp" "conftest.in"
7045 cp "conftest.in" "conftest.nl"
7046 $as_echo '' >> "conftest.nl"
7047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007049 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007050 if test $ac_count -gt ${ac_path_SED_max-0}; then
7051 # Best one so far, save it but keep looking for a better one
7052 ac_cv_path_SED="$ac_path_SED"
7053 ac_path_SED_max=$ac_count
7054 fi
7055 # 10*(2^10) chars as input seems more than enough
7056 test $ac_count -gt 10 && break
7057 done
7058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7059esac
7060
7061 $ac_path_SED_found && break 3
7062 done
7063 done
cristy8b350f62009-11-15 23:12:43 +00007064 done
cristy3ed852e2009-09-05 21:47:34 +00007065IFS=$as_save_IFS
7066 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007067 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007068 fi
7069else
7070 ac_cv_path_SED=$SED
7071fi
7072
7073fi
cristy8b350f62009-11-15 23:12:43 +00007074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007075$as_echo "$ac_cv_path_SED" >&6; }
7076 SED="$ac_cv_path_SED"
7077 rm -f conftest.sed
7078
7079test -z "$SED" && SED=sed
7080Xsed="$SED -e 1s/^X//"
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
cristy8b350f62009-11-15 23:12:43 +00007092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007094if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007095 $as_echo_n "(cached) " >&6
7096else
7097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7098 then ac_cv_path_FGREP="$GREP -F"
7099 else
7100 if test -z "$FGREP"; then
7101 ac_path_FGREP_found=false
7102 # Loop through the user's path and test for each of PROGNAME-LIST
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007108 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7111 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7112# Check for GNU ac_path_FGREP and select it if it is found.
7113 # Check for GNU $ac_path_FGREP
7114case `"$ac_path_FGREP" --version 2>&1` in
7115*GNU*)
7116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7117*)
7118 ac_count=0
7119 $as_echo_n 0123456789 >"conftest.in"
7120 while :
7121 do
7122 cat "conftest.in" "conftest.in" >"conftest.tmp"
7123 mv "conftest.tmp" "conftest.in"
7124 cp "conftest.in" "conftest.nl"
7125 $as_echo 'FGREP' >> "conftest.nl"
7126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007128 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7130 # Best one so far, save it but keep looking for a better one
7131 ac_cv_path_FGREP="$ac_path_FGREP"
7132 ac_path_FGREP_max=$ac_count
7133 fi
7134 # 10*(2^10) chars as input seems more than enough
7135 test $ac_count -gt 10 && break
7136 done
7137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7138esac
7139
7140 $ac_path_FGREP_found && break 3
7141 done
7142 done
cristy8b350f62009-11-15 23:12:43 +00007143 done
cristy3ed852e2009-09-05 21:47:34 +00007144IFS=$as_save_IFS
7145 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007146 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007147 fi
7148else
7149 ac_cv_path_FGREP=$FGREP
7150fi
7151
7152 fi
7153fi
cristy8b350f62009-11-15 23:12:43 +00007154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007155$as_echo "$ac_cv_path_FGREP" >&6; }
7156 FGREP="$ac_cv_path_FGREP"
7157
7158
7159test -z "$GREP" && GREP=grep
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007180if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7182else
7183 with_gnu_ld=no
7184fi
7185
7186ac_prog=ld
7187if test "$GCC" = yes; then
7188 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007190$as_echo_n "checking for ld used by $CC... " >&6; }
7191 case $host in
7192 *-*-mingw*)
7193 # gcc leaves a trailing carriage return which upsets mingw
7194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7195 *)
7196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7197 esac
7198 case $ac_prog in
7199 # Accept absolute paths.
7200 [\\/]* | ?:[\\/]*)
7201 re_direlt='/[^/][^/]*/\.\./'
7202 # Canonicalize the pathname of ld
7203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7206 done
7207 test -z "$LD" && LD="$ac_prog"
7208 ;;
7209 "")
7210 # If it fails, then pretend we aren't using GCC.
7211 ac_prog=ld
7212 ;;
7213 *)
7214 # If it is relative, then search for the first ld in PATH.
7215 with_gnu_ld=unknown
7216 ;;
7217 esac
7218elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007220$as_echo_n "checking for GNU ld... " >&6; }
7221else
cristy8b350f62009-11-15 23:12:43 +00007222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007223$as_echo_n "checking for non-GNU ld... " >&6; }
7224fi
cristy8b350f62009-11-15 23:12:43 +00007225if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007226 $as_echo_n "(cached) " >&6
7227else
7228 if test -z "$LD"; then
7229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7230 for ac_dir in $PATH; do
7231 IFS="$lt_save_ifs"
7232 test -z "$ac_dir" && ac_dir=.
7233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7234 lt_cv_path_LD="$ac_dir/$ac_prog"
7235 # Check to see if the program is GNU ld. I'd rather use --version,
7236 # but apparently some variants of GNU ld only accept -v.
7237 # Break only if it was the GNU/non-GNU ld that we prefer.
7238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7239 *GNU* | *'with BFD'*)
7240 test "$with_gnu_ld" != no && break
7241 ;;
7242 *)
7243 test "$with_gnu_ld" != yes && break
7244 ;;
7245 esac
7246 fi
7247 done
7248 IFS="$lt_save_ifs"
7249else
7250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7251fi
7252fi
7253
7254LD="$lt_cv_path_LD"
7255if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo "$LD" >&6; }
7258else
cristy8b350f62009-11-15 23:12:43 +00007259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007260$as_echo "no" >&6; }
7261fi
cristy8b350f62009-11-15 23:12:43 +00007262test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007264$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007265if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007266 $as_echo_n "(cached) " >&6
7267else
7268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7269case `$LD -v 2>&1 </dev/null` in
7270*GNU* | *'with BFD'*)
7271 lt_cv_prog_gnu_ld=yes
7272 ;;
7273*)
7274 lt_cv_prog_gnu_ld=no
7275 ;;
7276esac
7277fi
cristy8b350f62009-11-15 23:12:43 +00007278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007279$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7280with_gnu_ld=$lt_cv_prog_gnu_ld
7281
7282
7283
7284
7285
7286
7287
7288
7289
cristy3ed852e2009-09-05 21:47:34 +00007290
cristy837d6dc2010-02-27 01:16:57 +00007291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7292$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7293if test "${ac_cv_prog_cc_c99+set}" = set; then :
7294 $as_echo_n "(cached) " >&6
7295else
7296 ac_cv_prog_cc_c99=no
7297ac_save_CC=$CC
7298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h. */
7300#include <stdarg.h>
7301#include <stdbool.h>
7302#include <stdlib.h>
7303#include <wchar.h>
7304#include <stdio.h>
7305
7306// Check varargs macros. These examples are taken from C99 6.10.3.5.
7307#define debug(...) fprintf (stderr, __VA_ARGS__)
7308#define showlist(...) puts (#__VA_ARGS__)
7309#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7310static void
7311test_varargs_macros (void)
7312{
7313 int x = 1234;
7314 int y = 5678;
7315 debug ("Flag");
7316 debug ("X = %d\n", x);
7317 showlist (The first, second, and third items.);
7318 report (x>y, "x is %d but y is %d", x, y);
7319}
7320
7321// Check long long types.
7322#define BIG64 18446744073709551615ull
7323#define BIG32 4294967295ul
7324#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7325#if !BIG_OK
7326 your preprocessor is broken;
7327#endif
7328#if BIG_OK
7329#else
7330 your preprocessor is broken;
7331#endif
7332static long long int bignum = -9223372036854775807LL;
7333static unsigned long long int ubignum = BIG64;
7334
7335struct incomplete_array
7336{
7337 int datasize;
7338 double data[];
7339};
7340
7341struct named_init {
7342 int number;
7343 const wchar_t *name;
7344 double average;
7345};
7346
7347typedef const char *ccp;
7348
7349static inline int
7350test_restrict (ccp restrict text)
7351{
7352 // See if C++-style comments work.
7353 // Iterate through items via the restricted pointer.
7354 // Also check for declarations in for loops.
7355 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7356 continue;
7357 return 0;
7358}
7359
7360// Check varargs and va_copy.
7361static void
7362test_varargs (const char *format, ...)
7363{
7364 va_list args;
7365 va_start (args, format);
7366 va_list args_copy;
7367 va_copy (args_copy, args);
7368
7369 const char *str;
7370 int number;
7371 float fnumber;
7372
7373 while (*format)
7374 {
7375 switch (*format++)
7376 {
7377 case 's': // string
7378 str = va_arg (args_copy, const char *);
7379 break;
7380 case 'd': // int
7381 number = va_arg (args_copy, int);
7382 break;
7383 case 'f': // float
7384 fnumber = va_arg (args_copy, double);
7385 break;
7386 default:
7387 break;
7388 }
7389 }
7390 va_end (args_copy);
7391 va_end (args);
7392}
7393
7394int
7395main ()
7396{
7397
7398 // Check bool.
7399 _Bool success = false;
7400
7401 // Check restrict.
7402 if (test_restrict ("String literal") == 0)
7403 success = true;
7404 char *restrict newvar = "Another string";
7405
7406 // Check varargs.
7407 test_varargs ("s, d' f .", "string", 65, 34.234);
7408 test_varargs_macros ();
7409
7410 // Check flexible array members.
7411 struct incomplete_array *ia =
7412 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7413 ia->datasize = 10;
7414 for (int i = 0; i < ia->datasize; ++i)
7415 ia->data[i] = i * 1.234;
7416
7417 // Check named initializers.
7418 struct named_init ni = {
7419 .number = 34,
7420 .name = L"Test wide string",
7421 .average = 543.34343,
7422 };
7423
7424 ni.number = 58;
7425
7426 int dynamic_array[ni.number];
7427 dynamic_array[ni.number - 1] = 543;
7428
7429 // work around unused variable warnings
7430 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7431 || dynamic_array[ni.number - 1] != 543);
7432
7433 ;
7434 return 0;
7435}
7436_ACEOF
7437for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7438do
7439 CC="$ac_save_CC $ac_arg"
7440 if ac_fn_c_try_compile "$LINENO"; then :
7441 ac_cv_prog_cc_c99=$ac_arg
7442fi
7443rm -f core conftest.err conftest.$ac_objext
7444 test "x$ac_cv_prog_cc_c99" != "xno" && break
7445done
7446rm -f conftest.$ac_ext
7447CC=$ac_save_CC
7448
7449fi
7450# AC_CACHE_VAL
7451case "x$ac_cv_prog_cc_c99" in
7452 x)
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7454$as_echo "none needed" >&6; } ;;
7455 xno)
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7457$as_echo "unsupported" >&6; } ;;
7458 *)
7459 CC="$CC $ac_cv_prog_cc_c99"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7461$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7462esac
7463if test "x$ac_cv_prog_cc_c99" != xno; then :
7464
7465fi
7466
7467
cristy3ed852e2009-09-05 21:47:34 +00007468if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007470$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7471else
cristy8b350f62009-11-15 23:12:43 +00007472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007473$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7474fi
7475set dummy $CC; ac_cc=`$as_echo "$2" |
7476 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007477if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007478 $as_echo_n "(cached) " >&6
7479else
cristy8b350f62009-11-15 23:12:43 +00007480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007481/* end confdefs.h. */
7482
7483int
7484main ()
7485{
7486
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491# Make sure it works both with $CC and with simple cc.
7492# We do the test twice because some compilers refuse to overwrite an
7493# existing .o file with -o, though they will create one.
7494ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7495rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007496if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7499esac
cristy8b350f62009-11-15 23:12:43 +00007500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7501$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007502 (eval "$ac_try") 2>&5
7503 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; } &&
7506 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
cristy8b350f62009-11-15 23:12:43 +00007510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7511$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007512 (eval "$ac_try") 2>&5
7513 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007516then
7517 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7518 if test "x$CC" != xcc; then
7519 # Test first that cc exists at all.
7520 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007521 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524esac
cristy8b350f62009-11-15 23:12:43 +00007525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7526$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007527 (eval "$ac_try") 2>&5
7528 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007531 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7532 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007533 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536esac
cristy8b350f62009-11-15 23:12:43 +00007537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7538$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007539 (eval "$ac_try") 2>&5
7540 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; } &&
7543 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7546esac
cristy8b350f62009-11-15 23:12:43 +00007547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7548$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007549 (eval "$ac_try") 2>&5
7550 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007553 then
7554 # cc works too.
7555 :
7556 else
7557 # cc exists but doesn't like -o.
7558 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7559 fi
7560 fi
7561 fi
7562else
7563 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7564fi
7565rm -f core conftest*
7566
7567fi
7568if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007570$as_echo "yes" >&6; }
7571else
cristy8b350f62009-11-15 23:12:43 +00007572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007573$as_echo "no" >&6; }
7574
cristy8b350f62009-11-15 23:12:43 +00007575$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007576
7577fi
7578
7579# FIXME: we rely on the cache variable name because
7580# there is no other way.
7581set dummy $CC
7582am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7583eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7584if test "$am_t" != yes; then
7585 # Losing compiler, so override with the script.
7586 # FIXME: It is wrong to rewrite CC.
7587 # But if we don't then we get into trouble of one sort or another.
7588 # A longer-term fix would be to have automake use am__CC in this case,
7589 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7590 CC="$am_aux_dir/compile $CC"
7591fi
7592
7593
cristy3ed852e2009-09-05 21:47:34 +00007594
cristy8b350f62009-11-15 23:12:43 +00007595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007596$as_echo_n "checking maximum warning verbosity option... " >&6; }
7597
7598
7599
7600
7601# Check whether --with-maximum-compile-warnings was given.
cristy8b350f62009-11-15 23:12:43 +00007602if test "${with_maximum_compile_warnings+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007603 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7604else
7605 ac_compile_warnings_on=""
7606fi
7607
7608
7609 if test x"$ac_compile_warnings_on" = xno
7610 then
7611 ac_compile_warnings_msg=no
7612 else
7613 if test -n "$CXX"
7614 then
7615 if test "$GXX" = "yes"
7616 then
cristybcbeec82010-01-22 03:20:31 +00007617 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007618 fi
7619 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7620 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7621 fi
7622
7623 if test -n "$CC"
7624 then
7625 if test "$GCC" = "yes"
7626 then
cristybcbeec82010-01-22 03:20:31 +00007627 ac_compile_warnings_opt='-Wall -W'
cristy3ed852e2009-09-05 21:47:34 +00007628 fi
7629 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7630 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7631 fi
7632 fi
cristy8b350f62009-11-15 23:12:43 +00007633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
cristy3ed852e2009-09-05 21:47:34 +00007634$as_echo "$ac_compile_warnings_msg" >&6; }
7635 unset ac_compile_warnings_msg
7636 unset ac_compile_warnings_opt
7637
cristya0b81c32010-01-22 02:54:33 +00007638$ac_includes_default
7639
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7641$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7642set x ${MAKE-make}
7643ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7644if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7645 $as_echo_n "(cached) " >&6
7646else
7647 cat >conftest.make <<\_ACEOF
7648SHELL = /bin/sh
7649all:
7650 @echo '@@@%%%=$(MAKE)=@@@%%%'
7651_ACEOF
7652# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7653case `${MAKE-make} -f conftest.make 2>/dev/null` in
7654 *@@@%%%=?*=@@@%%%*)
7655 eval ac_cv_prog_make_${ac_make}_set=yes;;
7656 *)
7657 eval ac_cv_prog_make_${ac_make}_set=no;;
7658esac
7659rm -f conftest.make
7660fi
7661if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7663$as_echo "yes" >&6; }
7664 SET_MAKE=
7665else
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
7668 SET_MAKE="MAKE=${MAKE-make}"
7669fi
7670
cristy8b350f62009-11-15 23:12:43 +00007671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007672$as_echo_n "checking whether ln -s works... " >&6; }
7673LN_S=$as_ln_s
7674if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007676$as_echo "yes" >&6; }
7677else
cristy8b350f62009-11-15 23:12:43 +00007678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007679$as_echo "no, using $LN_S" >&6; }
7680fi
7681
cristy8b350f62009-11-15 23:12:43 +00007682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007683$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7684
7685# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007686if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007687 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007689$as_echo "yes" >&6; }
7690
cristy8b350f62009-11-15 23:12:43 +00007691$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007692
7693 LIBS="$LIBS -ldmalloc"
7694 LDFLAGS="$LDFLAGS -g"
7695else
cristy8b350f62009-11-15 23:12:43 +00007696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007697$as_echo "no" >&6; }
7698fi
7699else
cristy8b350f62009-11-15 23:12:43 +00007700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo "no" >&6; }
7702fi
7703
7704
7705
7706
7707if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007712$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007713if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007714 $as_echo_n "(cached) " >&6
7715else
7716 case $PKG_CONFIG in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7719 ;;
7720 *)
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007726 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007730 break 2
7731 fi
7732done
cristy8b350f62009-11-15 23:12:43 +00007733 done
cristy3ed852e2009-09-05 21:47:34 +00007734IFS=$as_save_IFS
7735
7736 ;;
7737esac
7738fi
7739PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7740if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007742$as_echo "$PKG_CONFIG" >&6; }
7743else
cristy8b350f62009-11-15 23:12:43 +00007744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007745$as_echo "no" >&6; }
7746fi
7747
7748
7749fi
7750if test -z "$ac_cv_path_PKG_CONFIG"; then
7751 ac_pt_PKG_CONFIG=$PKG_CONFIG
7752 # Extract the first word of "pkg-config", so it can be a program name with args.
7753set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007755$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007756if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007757 $as_echo_n "(cached) " >&6
7758else
7759 case $ac_pt_PKG_CONFIG in
7760 [\\/]* | ?:[\\/]*)
7761 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7762 ;;
7763 *)
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007769 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007773 break 2
7774 fi
7775done
cristy8b350f62009-11-15 23:12:43 +00007776 done
cristy3ed852e2009-09-05 21:47:34 +00007777IFS=$as_save_IFS
7778
7779 ;;
7780esac
7781fi
7782ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7783if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007785$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7786else
cristy8b350f62009-11-15 23:12:43 +00007787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007788$as_echo "no" >&6; }
7789fi
7790
7791 if test "x$ac_pt_PKG_CONFIG" = x; then
7792 PKG_CONFIG=""
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795yes:)
cristy8b350f62009-11-15 23:12:43 +00007796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798ac_tool_warned=yes ;;
7799esac
7800 PKG_CONFIG=$ac_pt_PKG_CONFIG
7801 fi
7802else
7803 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7804fi
7805
7806fi
7807if test -n "$PKG_CONFIG"; then
7808 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007810$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7811 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007813$as_echo "yes" >&6; }
7814 else
cristy8b350f62009-11-15 23:12:43 +00007815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007816$as_echo "no" >&6; }
7817 PKG_CONFIG=""
7818 fi
7819
7820fi
7821
7822#
cristy3ed852e2009-09-05 21:47:34 +00007823# Enable run-time checking.
7824#
7825# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007826if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007827 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7828else
7829 enable_bounds_checking='no'
7830fi
7831
7832
7833if test "$enable_bounds_checking" = yes; then
7834
cristy8b350f62009-11-15 23:12:43 +00007835$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007836
7837fi
7838
7839#
7840# Tests for Windows
7841#
7842
7843
7844
7845GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007846native_win32_build='no'
7847cygwin_build='no'
7848case "${host_os}" in
7849 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007850 cygwin_build='yes'
7851 GDI32_LIBS='-lgdi32'
7852 ;;
7853 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007854 native_win32_build='yes'
7855 GDI32_LIBS='-lgdi32'
7856 ;;
7857esac
7858if test "${GDI32_LIBS}x" != 'x'; then
7859
cristy8b350f62009-11-15 23:12:43 +00007860$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007861
7862fi
7863
7864 if test "${GDI32_LIBS}x" != 'x' ; then
7865 WINGDI32_DELEGATE_TRUE=
7866 WINGDI32_DELEGATE_FALSE='#'
7867else
7868 WINGDI32_DELEGATE_TRUE='#'
7869 WINGDI32_DELEGATE_FALSE=
7870fi
7871
7872 if test "${native_win32_build}" = 'yes' ; then
7873 WIN32_NATIVE_BUILD_TRUE=
7874 WIN32_NATIVE_BUILD_FALSE='#'
7875else
7876 WIN32_NATIVE_BUILD_TRUE='#'
7877 WIN32_NATIVE_BUILD_FALSE=
7878fi
7879
7880 if test "${cygwin_build}" = 'yes' ; then
7881 CYGWIN_BUILD_TRUE=
7882 CYGWIN_BUILD_FALSE='#'
7883else
7884 CYGWIN_BUILD_TRUE='#'
7885 CYGWIN_BUILD_FALSE=
7886fi
7887
7888 if test "x${CC}" = 'xcl.exe' ; then
7889 USING_CL_TRUE=
7890 USING_CL_FALSE='#'
7891else
7892 USING_CL_TRUE='#'
7893 USING_CL_FALSE=
7894fi
7895
7896
7897WinPathScript="${srcdirfull}/winpath.sh"
7898
7899
7900#
7901# Compiler flags tweaks
7902#
7903if test "${GCC}" != "yes"; then
7904 case "${host}" in
7905 *-*-hpux* )
7906 # aCC: HP ANSI C++ B3910B A.03.34
7907 CFLAGS="${CFLAGS} -Wp,-H30000"
7908 if test -n "${CXXFLAGS}"; then
7909 CXXFLAGS='-AA'
7910 else
7911 CXXFLAGS="${CXXFLAGS} -AA"
7912 fi
7913 ;;
7914 *-dec-osf5.* )
7915 # Compaq alphaev68-dec-osf5.1 compiler
7916 if test -n "${CXXFLAGS}"; then
7917 CXXFLAGS='-std strict_ansi -noimplicit_include'
7918 else
7919 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7920 fi
7921 esac
7922fi
7923
7924# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00007925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00007926$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007927if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007928 $as_echo_n "(cached) " >&6
7929else
7930
7931im_cv_ld_lazyload='none'
7932case "${host}" in
7933 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7934 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7935 im_cv_ld_lazyload='-Wl,-zlazyload'
7936 fi
7937 ;;
7938esac
7939
7940fi
cristy8b350f62009-11-15 23:12:43 +00007941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00007942$as_echo "$im_cv_ld_lazyload" >&6; }
7943if test "${im_cv_ld_lazyload}" != 'none' ; then
7944 if test -z "${LDFLAGS}" ; then
7945 LDFLAGS="${im_cv_ld_lazyload}"
7946 else
7947 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7948 fi
7949fi
7950
7951case "$host" in
7952*darwin* | *-macos10*)
7953 if test -d /opt/local ; then
7954 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7955 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7956 elif test -d /sw ; then
7957 CPPFLAGS="$CPPFLAGS -I/sw/include"
7958 LDFLAGS="$LDFLAGS -L/sw/lib"
7959 fi
7960 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00007961if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007962 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7963else
7964 build_osxuniversal=no
7965fi
7966
7967
7968 if test "${build_osxuniversal}" != no ; then
7969 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00007970 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00007971Please re-run configure with these options:
7972 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00007973 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007974 fi
7975 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7976 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7977 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7978 fi
7979 ;;
7980esac
7981
7982# Enable support for threads
7983
7984# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00007985if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007986 withval=$with_threads; with_threads=$withval
7987else
7988 with_threads='yes'
7989fi
7990
7991
7992have_threads=no
7993if test "$with_threads" != 'no'; then
7994
7995
7996
7997ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003acx_pthread_ok=no
8004
8005# We used to check for pthread.h first, but this fails if pthread.h
8006# requires special compiler flags (e.g. on True64 or Sequent).
8007# It gets checked for in the link test anyway.
8008
8009# First of all, check if the user has set any of the PTHREAD_LIBS,
8010# etcetera environment variables, and if threads linking works using
8011# them:
8012if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8013 save_CFLAGS="$CFLAGS"
8014 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8015 save_LIBS="$LIBS"
8016 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008017 { $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 +00008018$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008020/* end confdefs.h. */
8021
8022/* Override any GCC internal prototype to avoid an error.
8023 Use char because int might match the return type of a GCC
8024 builtin and then its argument prototype would still apply. */
8025#ifdef __cplusplus
8026extern "C"
8027#endif
8028char pthread_join ();
8029int
8030main ()
8031{
8032return pthread_join ();
8033 ;
8034 return 0;
8035}
8036_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008038 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008039fi
cristy8b350f62009-11-15 23:12:43 +00008040rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008043$as_echo "$acx_pthread_ok" >&6; }
8044 if test x"$acx_pthread_ok" = xno; then
8045 PTHREAD_LIBS=""
8046 PTHREAD_CFLAGS=""
8047 fi
8048 LIBS="$save_LIBS"
8049 CFLAGS="$save_CFLAGS"
8050fi
8051
8052# We must check for the threads library under a number of different
8053# names; the ordering is very important because some systems
8054# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8055# libraries is broken (non-POSIX).
8056
8057# Create a list of thread flags to try. Items starting with a "-" are
8058# C compiler flags, and other items are library names, except for "none"
8059# which indicates that we try without any flags at all, and "pthread-config"
8060# which is a program returning the flags for the Pth emulation library.
8061
8062acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8063
8064# The ordering *is* (sometimes) important. Some notes on the
8065# individual items follow:
8066
8067# pthreads: AIX (must check this before -lpthread)
8068# none: in case threads are in libc; should be tried before -Kthread and
8069# other compiler flags to prevent continual compiler warnings
8070# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8071# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8072# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8073# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8074# -pthreads: Solaris/gcc
8075# -mthreads: Mingw32/gcc, Lynx/gcc
8076# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8077# doesn't hurt to check since this sometimes defines pthreads too;
8078# also defines -D_REENTRANT)
8079# ... -mt is also the pthreads flag for HP/aCC
8080# pthread: Linux, etcetera
8081# --thread-safe: KAI C++
8082# pthread-config: use pthread-config program (for GNU Pth library)
8083
8084case "${host_cpu}-${host_os}" in
8085 *solaris*)
8086
8087 # On Solaris (at least, for some versions), libc contains stubbed
8088 # (non-functional) versions of the pthreads routines, so link-based
8089 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8090 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8091 # a function called by this macro, so we could check for that, but
8092 # who knows whether they'll stub that too in a future libc.) So,
8093 # we'll just look for -pthreads and -lpthread first:
8094
8095 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
8096 ;;
cristy3ed852e2009-09-05 21:47:34 +00008097esac
8098
8099if test x"$acx_pthread_ok" = xno; then
8100for flag in $acx_pthread_flags; do
8101
8102 case $flag in
8103 none)
cristy8b350f62009-11-15 23:12:43 +00008104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008105$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8106 ;;
8107
8108 -*)
cristy8b350f62009-11-15 23:12:43 +00008109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008110$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8111 PTHREAD_CFLAGS="$flag"
8112 ;;
8113
8114 pthread-config)
8115 # Extract the first word of "pthread-config", so it can be a program name with args.
8116set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008118$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008119if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008120 $as_echo_n "(cached) " >&6
8121else
8122 if test -n "$acx_pthread_config"; then
8123 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_acx_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008134 break 2
8135 fi
8136done
cristy8b350f62009-11-15 23:12:43 +00008137 done
cristy3ed852e2009-09-05 21:47:34 +00008138IFS=$as_save_IFS
8139
8140 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
8141fi
8142fi
8143acx_pthread_config=$ac_cv_prog_acx_pthread_config
8144if test -n "$acx_pthread_config"; then
cristy8b350f62009-11-15 23:12:43 +00008145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
cristy3ed852e2009-09-05 21:47:34 +00008146$as_echo "$acx_pthread_config" >&6; }
8147else
cristy8b350f62009-11-15 23:12:43 +00008148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008149$as_echo "no" >&6; }
8150fi
8151
8152
8153 if test x"$acx_pthread_config" = xno; then continue; fi
8154 PTHREAD_CFLAGS="`pthread-config --cflags`"
8155 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8156 ;;
8157
8158 *)
cristy8b350f62009-11-15 23:12:43 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008160$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8161 PTHREAD_LIBS="-l$flag"
8162 ;;
8163 esac
8164
8165 save_LIBS="$LIBS"
8166 save_CFLAGS="$CFLAGS"
8167 LIBS="$PTHREAD_LIBS $LIBS"
8168 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8169
8170 # Check for various functions. We must include pthread.h,
8171 # since some functions may be macros. (On the Sequent, we
8172 # need a special flag -Kthread to make this header compile.)
8173 # We check for pthread_join because it is in -lpthread on IRIX
8174 # while pthread_create is in libc. We check for pthread_attr_init
8175 # due to DEC craziness with -lpthreads. We check for
8176 # pthread_cleanup_push because it is one of the few pthread
8177 # functions on Solaris that doesn't have a non-functional libc stub.
8178 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008180/* end confdefs.h. */
8181#include <pthread.h>
8182int
8183main ()
8184{
8185pthread_t th; pthread_join(th, 0);
8186 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8187 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8188 ;
8189 return 0;
8190}
8191_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008192if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008193 acx_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008194fi
cristy8b350f62009-11-15 23:12:43 +00008195rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008197
8198 LIBS="$save_LIBS"
8199 CFLAGS="$save_CFLAGS"
8200
cristy8b350f62009-11-15 23:12:43 +00008201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +00008202$as_echo "$acx_pthread_ok" >&6; }
8203 if test "x$acx_pthread_ok" = xyes; then
8204 break;
8205 fi
8206
8207 PTHREAD_LIBS=""
8208 PTHREAD_CFLAGS=""
8209done
8210fi
8211
8212# Various other checks:
8213if test "x$acx_pthread_ok" = xyes; then
8214 save_LIBS="$LIBS"
8215 LIBS="$PTHREAD_LIBS $LIBS"
8216 save_CFLAGS="$CFLAGS"
8217 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8218
8219 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008221$as_echo_n "checking for joinable pthread attribute... " >&6; }
8222 attr_name=unknown
8223 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008225/* end confdefs.h. */
8226#include <pthread.h>
8227int
8228main ()
8229{
8230int attr=$attr; return attr;
8231 ;
8232 return 0;
8233}
8234_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008235if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008236 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008237fi
cristy8b350f62009-11-15 23:12:43 +00008238rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008240 done
cristy8b350f62009-11-15 23:12:43 +00008241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008242$as_echo "$attr_name" >&6; }
8243 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8244
8245cat >>confdefs.h <<_ACEOF
8246#define PTHREAD_CREATE_JOINABLE $attr_name
8247_ACEOF
8248
8249 fi
8250
cristy8b350f62009-11-15 23:12:43 +00008251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008252$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8253 flag=no
8254 case "${host_cpu}-${host_os}" in
8255 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8256 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8257 esac
cristy8b350f62009-11-15 23:12:43 +00008258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008259$as_echo "${flag}" >&6; }
8260 if test "x$flag" != xno; then
8261 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8262 fi
8263
8264 LIBS="$save_LIBS"
8265 CFLAGS="$save_CFLAGS"
8266
8267 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008268 if test x"$GCC" != xyes; then
8269 for ac_prog in xlc_r cc_r
8270do
8271 # Extract the first word of "$ac_prog", so it can be a program name with args.
8272set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008274$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008275if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008276 $as_echo_n "(cached) " >&6
8277else
8278 if test -n "$PTHREAD_CC"; then
8279 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008287 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 +00008288 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008290 break 2
8291 fi
8292done
cristy8b350f62009-11-15 23:12:43 +00008293 done
cristy3ed852e2009-09-05 21:47:34 +00008294IFS=$as_save_IFS
8295
cristy3ed852e2009-09-05 21:47:34 +00008296fi
8297fi
8298PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8299if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008301$as_echo "$PTHREAD_CC" >&6; }
8302else
cristy8b350f62009-11-15 23:12:43 +00008303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008304$as_echo "no" >&6; }
8305fi
8306
cristy736173a2009-09-20 21:18:22 +00008307
8308 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008309done
cristy736173a2009-09-20 21:18:22 +00008310test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008311
cristy736173a2009-09-20 21:18:22 +00008312 else
8313 PTHREAD_CC=$CC
8314 fi
cristy3ed852e2009-09-05 21:47:34 +00008315else
cristy736173a2009-09-20 21:18:22 +00008316 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008317fi
8318
cristy3ed852e2009-09-05 21:47:34 +00008319
8320
8321
8322
8323# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8324if test x"$acx_pthread_ok" = xyes; then
8325
cristy8b350f62009-11-15 23:12:43 +00008326$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008327
8328 :
8329else
8330 acx_pthread_ok=no
8331
8332fi
8333ac_ext=c
8334ac_cpp='$CPP $CPPFLAGS'
8335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339
8340 if test "$acx_pthread_ok" = yes; then
8341 have_threads=yes
8342 DEF_THREAD="$PTHREAD_CFLAGS"
8343 CFLAGS="$CFLAGS $DEF_THREAD"
8344 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8345 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008346 { $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 +00008347$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8348 CC="$PTHREAD_CC"
8349 fi
8350 fi
8351fi
8352
8353# Enable support for OpenMP
8354if test "$have_threads" != 'yes'; then
8355 ac_cv_prog_c_openmp=unsupported
8356fi
8357
8358 OPENMP_CFLAGS=
8359 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008360if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008361 enableval=$enable_openmp;
8362fi
8363
8364 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008366$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008367if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008368 $as_echo_n "(cached) " >&6
8369else
cristy8b350f62009-11-15 23:12:43 +00008370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008372
8373#ifndef _OPENMP
8374 choke me
8375#endif
8376#include <omp.h>
8377int main () { return omp_get_num_threads (); }
8378
8379_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008381 ac_cv_prog_c_openmp='none needed'
8382else
cristy8b350f62009-11-15 23:12:43 +00008383 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008384 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8385 ac_save_CFLAGS=$CFLAGS
8386 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008389
8390#ifndef _OPENMP
8391 choke me
8392#endif
8393#include <omp.h>
8394int main () { return omp_get_num_threads (); }
8395
8396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008397if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008398 ac_cv_prog_c_openmp=$ac_option
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 CFLAGS=$ac_save_CFLAGS
8403 if test "$ac_cv_prog_c_openmp" != unsupported; then
8404 break
8405 fi
8406 done
8407fi
cristy8b350f62009-11-15 23:12:43 +00008408rm -f core conftest.err conftest.$ac_objext \
8409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008410fi
cristy8b350f62009-11-15 23:12:43 +00008411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008412$as_echo "$ac_cv_prog_c_openmp" >&6; }
8413 case $ac_cv_prog_c_openmp in #(
8414 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008415 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008416 *)
cristy8b350f62009-11-15 23:12:43 +00008417 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008418 esac
8419 fi
8420
8421
8422CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8423MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8424
8425
cristy736173a2009-09-20 21:18:22 +00008426# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008427
cristy43596fe2010-01-21 16:46:08 +00008428# Check whether --enable-opencl was given.
8429if test "${enable_opencl+set}" = set; then :
8430 enableval=$enable_opencl; disable_opencl=$enableval
8431else
8432 disable_opencl='yes'
8433fi
8434
8435
8436if test "$disable_opencl" = 'yes'; then
8437 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008438ac_cpp='$CPP $CPPFLAGS'
8439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
cristy43596fe2010-01-21 16:46:08 +00008443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008444$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008445if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008446 $as_echo_n "(cached) " >&6
8447else
cristy8b350f62009-11-15 23:12:43 +00008448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008449/* end confdefs.h. */
8450
8451int
8452main ()
8453{
8454#ifndef _MSC_VER
8455 choke me
8456#endif
8457
8458 ;
8459 return 0;
8460}
8461_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008462if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008463 ax_compiler_ms=yes
8464else
cristy8b350f62009-11-15 23:12:43 +00008465 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008466fi
cristy736173a2009-09-20 21:18:22 +00008467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468ax_cv_c_compiler_ms=$ax_compiler_ms
8469
8470fi
cristy8b350f62009-11-15 23:12:43 +00008471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008472$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008473 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008474 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8475fi
8476
cristy43596fe2010-01-21 16:46:08 +00008477 ax_save_CPPFLAGS=$CPPFLAGS
8478 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8479 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008480do :
8481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8482ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8483eval as_val=\$$as_ac_Header
8484 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008485 cat >>confdefs.h <<_ACEOF
8486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8487_ACEOF
8488
8489fi
8490
8491done
8492
cristy43596fe2010-01-21 16:46:08 +00008493 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008494
cristy43596fe2010-01-21 16:46:08 +00008495 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00008496do :
8497 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8498if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008499 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008500#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00008501_ACEOF
8502
8503fi
8504
8505done
8506
8507
8508
8509
cristy43596fe2010-01-21 16:46:08 +00008510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00008511$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008512if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008513 $as_echo_n "(cached) " >&6
8514else
8515 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00008516 case $host_cpu in
8517 x86_64) ax_check_cl_libdir=lib64 ;;
8518 *) ax_check_cl_libdir=lib ;;
8519 esac
8520 ax_save_CPPFLAGS=$CPPFLAGS
8521 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8522 ax_save_LIBS=$LIBS
8523 LIBS=""
8524 ax_check_libs="-lOpenCL -lCL -lclparser"
8525 for ax_lib in $ax_check_libs; do
8526 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008527 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8528else
8529 ax_try_lib=$ax_lib
8530fi
cristy43596fe2010-01-21 16:46:08 +00008531 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008533/* end confdefs.h. */
8534
cristy43596fe2010-01-21 16:46:08 +00008535 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8536 # include <windows.h>
8537 # endif
8538 # ifdef HAVE_CL_CL_H
8539 # include <CL/cl.h>
8540 # elif defined(HAVE_OPENCL_CL_H)
8541 # include <OpenCL/cl.h>
8542 # else
8543 # error no CL.h
8544 # endif
cristy736173a2009-09-20 21:18:22 +00008545int
8546main ()
8547{
cristyc7083c12009-10-14 03:16:55 +00008548clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008549 ;
8550 return 0;
8551}
8552_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008553if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008554 ax_cv_check_cl_libcl=$ax_try_lib; break
8555else
cristy8b350f62009-11-15 23:12:43 +00008556 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 +00008557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008558/* end confdefs.h. */
8559
cristy43596fe2010-01-21 16:46:08 +00008560 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8561 # include <windows.h>
8562 # endif
8563 # ifdef HAVE_CL_CL_H
8564 # include <CL/cl.h>
8565 # elif defined(HAVE_OPENCL_CL_H)
8566 # include <OpenCL/cl.h>
8567 # else
8568 # error no CL.h
8569 # endif
cristy736173a2009-09-20 21:18:22 +00008570int
8571main ()
8572{
cristyc7083c12009-10-14 03:16:55 +00008573clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008574 ;
8575 return 0;
8576}
8577_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008578if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008579 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8580else
cristy4dc44432009-12-30 23:30:06 +00008581 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 +00008582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008583/* end confdefs.h. */
8584
cristy43596fe2010-01-21 16:46:08 +00008585 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8586 # include <windows.h>
8587 # endif
8588 # ifdef HAVE_CL_CL_H
8589 # include <CL/cl.h>
8590 # elif defined(HAVE_OPENCL_CL_H)
8591 # include <OpenCL/cl.h>
8592 # else
8593 # error no CL.h
8594 # endif
cristy736173a2009-09-20 21:18:22 +00008595int
8596main ()
8597{
cristyc7083c12009-10-14 03:16:55 +00008598clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008599 ;
8600 return 0;
8601}
8602_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008603if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008604 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00008605fi
cristy8b350f62009-11-15 23:12:43 +00008606rm -f core conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008608fi
cristy8b350f62009-11-15 23:12:43 +00008609rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008611fi
cristy8b350f62009-11-15 23:12:43 +00008612rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00008614 done
cristy736173a2009-09-20 21:18:22 +00008615
cristy43596fe2010-01-21 16:46:08 +00008616 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00008617 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00008618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008619/* end confdefs.h. */
8620
cristy43596fe2010-01-21 16:46:08 +00008621 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8622 # include <windows.h>
8623 # endif
8624 # ifdef HAVE_CL_CL_H
8625 # include <CL/cl.h>
8626 # elif defined(HAVE_OPENCL_CL_H)
8627 # include <OpenCL/cl.h>
8628 # else
8629 # error no CL.h
8630 # endif
cristy736173a2009-09-20 21:18:22 +00008631int
8632main ()
8633{
cristyc7083c12009-10-14 03:16:55 +00008634clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008635 ;
8636 return 0;
8637}
8638_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008639if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008640 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00008641fi
cristy8b350f62009-11-15 23:12:43 +00008642rm -f core conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008644fi
8645
cristy43596fe2010-01-21 16:46:08 +00008646 LIBS=$ax_save_LIBS
8647 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00008648fi
cristy8b350f62009-11-15 23:12:43 +00008649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00008650$as_echo "$ax_cv_check_cl_libcl" >&6; }
8651
cristy43596fe2010-01-21 16:46:08 +00008652 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008653 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8654else
cristy99cc3002010-01-21 14:50:11 +00008655 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8656$as_echo "#define _OPENCL 1" >>confdefs.h
8657
cristy736173a2009-09-20 21:18:22 +00008658fi
cristy43596fe2010-01-21 16:46:08 +00008659 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008660ac_cpp='$CPP $CPPFLAGS'
8661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
cristy43596fe2010-01-21 16:46:08 +00008665fi
cristy736173a2009-09-20 21:18:22 +00008666
8667
8668
8669
cristyc7083c12009-10-14 03:16:55 +00008670CFLAGS="$CL_CFLAGS $CFLAGS"
8671LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008672
cristy2e8b51d2009-10-17 18:26:15 +00008673
cristy3ed852e2009-09-05 21:47:34 +00008674########
8675#
8676# Check for large file support
8677#
8678########
8679# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00008680if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008681 enableval=$enable_largefile;
8682fi
8683
8684if test "$enable_largefile" != no; then
8685
cristy8b350f62009-11-15 23:12:43 +00008686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008687$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008688if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008689 $as_echo_n "(cached) " >&6
8690else
8691 ac_cv_sys_largefile_CC=no
8692 if test "$GCC" != yes; then
8693 ac_save_CC=$CC
8694 while :; do
8695 # IRIX 6.2 and later do not support large files by default,
8696 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00008697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008698/* end confdefs.h. */
8699#include <sys/types.h>
8700 /* Check that off_t can represent 2**63 - 1 correctly.
8701 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8702 since some C++ compilers masquerading as C compilers
8703 incorrectly reject 9223372036854775807. */
8704#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8706 && LARGE_OFF_T % 2147483647 == 1)
8707 ? 1 : -1];
8708int
8709main ()
8710{
8711
8712 ;
8713 return 0;
8714}
8715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008716 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008717 break
cristy3ed852e2009-09-05 21:47:34 +00008718fi
cristy3ed852e2009-09-05 21:47:34 +00008719rm -f core conftest.err conftest.$ac_objext
8720 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00008721 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008722 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00008723fi
cristy3ed852e2009-09-05 21:47:34 +00008724rm -f core conftest.err conftest.$ac_objext
8725 break
8726 done
8727 CC=$ac_save_CC
8728 rm -f conftest.$ac_ext
8729 fi
8730fi
cristy8b350f62009-11-15 23:12:43 +00008731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008732$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8733 if test "$ac_cv_sys_largefile_CC" != no; then
8734 CC=$CC$ac_cv_sys_largefile_CC
8735 fi
8736
cristy8b350f62009-11-15 23:12:43 +00008737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008738$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008739if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008740 $as_echo_n "(cached) " >&6
8741else
8742 while :; do
cristy8b350f62009-11-15 23:12:43 +00008743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008744/* end confdefs.h. */
8745#include <sys/types.h>
8746 /* Check that off_t can represent 2**63 - 1 correctly.
8747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8748 since some C++ compilers masquerading as C compilers
8749 incorrectly reject 9223372036854775807. */
8750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8752 && LARGE_OFF_T % 2147483647 == 1)
8753 ? 1 : -1];
8754int
8755main ()
8756{
8757
8758 ;
8759 return 0;
8760}
8761_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008762if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008763 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00008764fi
cristy3ed852e2009-09-05 21:47:34 +00008765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008767/* end confdefs.h. */
8768#define _FILE_OFFSET_BITS 64
8769#include <sys/types.h>
8770 /* Check that off_t can represent 2**63 - 1 correctly.
8771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8772 since some C++ compilers masquerading as C compilers
8773 incorrectly reject 9223372036854775807. */
8774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8776 && LARGE_OFF_T % 2147483647 == 1)
8777 ? 1 : -1];
8778int
8779main ()
8780{
8781
8782 ;
8783 return 0;
8784}
8785_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008787 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00008788fi
cristy3ed852e2009-09-05 21:47:34 +00008789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 ac_cv_sys_file_offset_bits=unknown
8791 break
8792done
8793fi
cristy8b350f62009-11-15 23:12:43 +00008794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00008795$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8796case $ac_cv_sys_file_offset_bits in #(
8797 no | unknown) ;;
8798 *)
8799cat >>confdefs.h <<_ACEOF
8800#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8801_ACEOF
8802;;
8803esac
8804rm -rf conftest*
8805 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00008806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008807$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008808if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008809 $as_echo_n "(cached) " >&6
8810else
8811 while :; do
cristy8b350f62009-11-15 23:12:43 +00008812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008813/* end confdefs.h. */
8814#include <sys/types.h>
8815 /* Check that off_t can represent 2**63 - 1 correctly.
8816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8817 since some C++ compilers masquerading as C compilers
8818 incorrectly reject 9223372036854775807. */
8819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8821 && LARGE_OFF_T % 2147483647 == 1)
8822 ? 1 : -1];
8823int
8824main ()
8825{
8826
8827 ;
8828 return 0;
8829}
8830_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008832 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00008833fi
cristy3ed852e2009-09-05 21:47:34 +00008834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00008835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008836/* end confdefs.h. */
8837#define _LARGE_FILES 1
8838#include <sys/types.h>
8839 /* Check that off_t can represent 2**63 - 1 correctly.
8840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8841 since some C++ compilers masquerading as C compilers
8842 incorrectly reject 9223372036854775807. */
8843#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8845 && LARGE_OFF_T % 2147483647 == 1)
8846 ? 1 : -1];
8847int
8848main ()
8849{
8850
8851 ;
8852 return 0;
8853}
8854_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008855if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008856 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00008857fi
cristy3ed852e2009-09-05 21:47:34 +00008858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 ac_cv_sys_large_files=unknown
8860 break
8861done
8862fi
cristy8b350f62009-11-15 23:12:43 +00008863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008864$as_echo "$ac_cv_sys_large_files" >&6; }
8865case $ac_cv_sys_large_files in #(
8866 no | unknown) ;;
8867 *)
8868cat >>confdefs.h <<_ACEOF
8869#define _LARGE_FILES $ac_cv_sys_large_files
8870_ACEOF
8871;;
8872esac
8873rm -rf conftest*
8874 fi
8875fi
8876
cristy8b350f62009-11-15 23:12:43 +00008877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00008878$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008879if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008880 $as_echo_n "(cached) " >&6
8881else
8882 while :; do
cristy8b350f62009-11-15 23:12:43 +00008883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008884/* end confdefs.h. */
8885#include <sys/types.h> /* for off_t */
8886 #include <stdio.h>
8887int
8888main ()
8889{
8890int (*fp) (FILE *, off_t, int) = fseeko;
8891 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8892 ;
8893 return 0;
8894}
8895_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008896if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008897 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00008898fi
cristy8b350f62009-11-15 23:12:43 +00008899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008902/* end confdefs.h. */
8903#define _LARGEFILE_SOURCE 1
8904#include <sys/types.h> /* for off_t */
8905 #include <stdio.h>
8906int
8907main ()
8908{
8909int (*fp) (FILE *, off_t, int) = fseeko;
8910 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8911 ;
8912 return 0;
8913}
8914_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008916 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00008917fi
cristy8b350f62009-11-15 23:12:43 +00008918rm -f core conftest.err conftest.$ac_objext \
8919 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008920 ac_cv_sys_largefile_source=unknown
8921 break
8922done
8923fi
cristy8b350f62009-11-15 23:12:43 +00008924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00008925$as_echo "$ac_cv_sys_largefile_source" >&6; }
8926case $ac_cv_sys_largefile_source in #(
8927 no | unknown) ;;
8928 *)
8929cat >>confdefs.h <<_ACEOF
8930#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8931_ACEOF
8932;;
8933esac
8934rm -rf conftest*
8935
8936# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8937# in glibc 2.1.3, but that breaks too many other things.
8938# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8939if test $ac_cv_sys_largefile_source != unknown; then
8940
cristy8b350f62009-11-15 23:12:43 +00008941$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008942
8943fi
8944
8945LFS_CPPFLAGS=''
8946if test "$enable_largefile" != no; then
8947 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8948 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8949 else
cristy8b350f62009-11-15 23:12:43 +00008950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00008951$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008952 if test "$cross_compiling" = yes; then :
8953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00008954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00008955as_fn_error "cannot run test program while cross compiling
8956See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00008957else
cristy8b350f62009-11-15 23:12:43 +00008958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008960#include <unistd.h>
8961 main () {
8962 exit(!(sizeof(off_t) == 8));
8963 }
8964_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008965if ac_fn_c_try_run "$LINENO"; then :
8966 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008967
cristy8b350f62009-11-15 23:12:43 +00008968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008969$as_echo "yes" >&6; }
8970else
cristy8b350f62009-11-15 23:12:43 +00008971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008972$as_echo "no" >&6; }
8973fi
cristy8b350f62009-11-15 23:12:43 +00008974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8975 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008976fi
8977
cristy3ed852e2009-09-05 21:47:34 +00008978 fi
8979 if test "$ac_cv_sys_large_files" != 'no'; then
8980 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8981 fi
8982 if test "$ac_cv_sys_largefile_source" != 'no'; then
8983 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8984 fi
8985fi
8986
8987
8988#
8989# Configure libtool & libltdl
8990#
8991# Configure libtool
8992enable_dlopen=yes
8993
8994
8995
8996case `pwd` in
8997 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00008998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00008999$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9000esac
9001
9002
9003
cristy18304f92009-11-22 15:48:26 +00009004macro_version='2.2.6b'
9005macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019ltmain="$ac_aux_dir/ltmain.sh"
9020
cristy8b350f62009-11-15 23:12:43 +00009021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009022$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009023if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009024 $as_echo_n "(cached) " >&6
9025else
9026 if test -n "$NM"; then
9027 # Let the user override the test.
9028 lt_cv_path_NM="$NM"
9029else
9030 lt_nm_to_check="${ac_tool_prefix}nm"
9031 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9032 lt_nm_to_check="$lt_nm_to_check nm"
9033 fi
9034 for lt_tmp_nm in $lt_nm_to_check; do
9035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9036 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9037 IFS="$lt_save_ifs"
9038 test -z "$ac_dir" && ac_dir=.
9039 tmp_nm="$ac_dir/$lt_tmp_nm"
9040 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9041 # Check to see if the nm accepts a BSD-compat flag.
9042 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9043 # nm: unknown option "B" ignored
9044 # Tru64's nm complains that /dev/null is an invalid object file
9045 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9046 */dev/null* | *'Invalid file or object type'*)
9047 lt_cv_path_NM="$tmp_nm -B"
9048 break
9049 ;;
9050 *)
9051 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9052 */dev/null*)
9053 lt_cv_path_NM="$tmp_nm -p"
9054 break
9055 ;;
9056 *)
9057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9058 continue # so that we can try to find one that supports BSD flags
9059 ;;
9060 esac
9061 ;;
9062 esac
9063 fi
9064 done
9065 IFS="$lt_save_ifs"
9066 done
9067 : ${lt_cv_path_NM=no}
9068fi
9069fi
cristy8b350f62009-11-15 23:12:43 +00009070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009071$as_echo "$lt_cv_path_NM" >&6; }
9072if test "$lt_cv_path_NM" != "no"; then
9073 NM="$lt_cv_path_NM"
9074else
9075 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009076 if test -n "$ac_tool_prefix"; then
9077 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009078 do
9079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009082$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009083if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009084 $as_echo_n "(cached) " >&6
9085else
9086 if test -n "$DUMPBIN"; then
9087 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9088else
9089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009098 break 2
9099 fi
9100done
cristy8b350f62009-11-15 23:12:43 +00009101 done
cristy3ed852e2009-09-05 21:47:34 +00009102IFS=$as_save_IFS
9103
9104fi
9105fi
9106DUMPBIN=$ac_cv_prog_DUMPBIN
9107if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009109$as_echo "$DUMPBIN" >&6; }
9110else
cristy8b350f62009-11-15 23:12:43 +00009111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009112$as_echo "no" >&6; }
9113fi
9114
9115
9116 test -n "$DUMPBIN" && break
9117 done
9118fi
9119if test -z "$DUMPBIN"; then
9120 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009121 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009122do
9123 # Extract the first word of "$ac_prog", so it can be a program name with args.
9124set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009126$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009127if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009128 $as_echo_n "(cached) " >&6
9129else
9130 if test -n "$ac_ct_DUMPBIN"; then
9131 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9132else
9133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9134for as_dir in $PATH
9135do
9136 IFS=$as_save_IFS
9137 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009138 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9140 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009142 break 2
9143 fi
9144done
cristy8b350f62009-11-15 23:12:43 +00009145 done
cristy3ed852e2009-09-05 21:47:34 +00009146IFS=$as_save_IFS
9147
9148fi
9149fi
9150ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9151if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009153$as_echo "$ac_ct_DUMPBIN" >&6; }
9154else
cristy8b350f62009-11-15 23:12:43 +00009155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009156$as_echo "no" >&6; }
9157fi
9158
9159
9160 test -n "$ac_ct_DUMPBIN" && break
9161done
9162
9163 if test "x$ac_ct_DUMPBIN" = x; then
9164 DUMPBIN=":"
9165 else
9166 case $cross_compiling:$ac_tool_warned in
9167yes:)
cristy8b350f62009-11-15 23:12:43 +00009168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170ac_tool_warned=yes ;;
9171esac
9172 DUMPBIN=$ac_ct_DUMPBIN
9173 fi
9174fi
9175
9176
9177 if test "$DUMPBIN" != ":"; then
9178 NM="$DUMPBIN"
9179 fi
9180fi
9181test -z "$NM" && NM=nm
9182
9183
9184
9185
9186
9187
cristy8b350f62009-11-15 23:12:43 +00009188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009189$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009190if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009191 $as_echo_n "(cached) " >&6
9192else
9193 lt_cv_nm_interface="BSD nm"
9194 echo "int some_variable = 0;" > conftest.$ac_ext
cristy837d6dc2010-02-27 01:16:57 +00009195 (eval echo "\"\$as_me:9195: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009196 (eval "$ac_compile" 2>conftest.err)
9197 cat conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +00009198 (eval echo "\"\$as_me:9198: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009199 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9200 cat conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +00009201 (eval echo "\"\$as_me:9201: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009202 cat conftest.out >&5
9203 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9204 lt_cv_nm_interface="MS dumpbin"
9205 fi
9206 rm -f conftest*
9207fi
cristy8b350f62009-11-15 23:12:43 +00009208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009209$as_echo "$lt_cv_nm_interface" >&6; }
9210
9211# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009213$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009214if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009215 $as_echo_n "(cached) " >&6
9216else
9217 i=0
9218 teststring="ABCD"
9219
9220 case $build_os in
9221 msdosdjgpp*)
9222 # On DJGPP, this test can blow up pretty badly due to problems in libc
9223 # (any single argument exceeding 2000 bytes causes a buffer overrun
9224 # during glob expansion). Even if it were fixed, the result of this
9225 # check would be larger than it should be.
9226 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9227 ;;
9228
9229 gnu*)
9230 # Under GNU Hurd, this test is not required because there is
9231 # no limit to the length of command line arguments.
9232 # Libtool will interpret -1 as no limit whatsoever
9233 lt_cv_sys_max_cmd_len=-1;
9234 ;;
9235
9236 cygwin* | mingw* | cegcc*)
9237 # On Win9x/ME, this test blows up -- it succeeds, but takes
9238 # about 5 minutes as the teststring grows exponentially.
9239 # Worse, since 9x/ME are not pre-emptively multitasking,
9240 # you end up with a "frozen" computer, even though with patience
9241 # the test eventually succeeds (with a max line length of 256k).
9242 # Instead, let's just punt: use the minimum linelength reported by
9243 # all of the supported platforms: 8192 (on NT/2K/XP).
9244 lt_cv_sys_max_cmd_len=8192;
9245 ;;
9246
9247 amigaos*)
9248 # On AmigaOS with pdksh, this test takes hours, literally.
9249 # So we just punt and use a minimum line length of 8192.
9250 lt_cv_sys_max_cmd_len=8192;
9251 ;;
9252
9253 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9254 # This has been around since 386BSD, at least. Likely further.
9255 if test -x /sbin/sysctl; then
9256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9257 elif test -x /usr/sbin/sysctl; then
9258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9259 else
9260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9261 fi
9262 # And add a safety zone
9263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9265 ;;
9266
9267 interix*)
9268 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9269 lt_cv_sys_max_cmd_len=196608
9270 ;;
9271
9272 osf*)
9273 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9274 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9275 # nice to cause kernel panics so lets avoid the loop below.
9276 # First set a reasonable default.
9277 lt_cv_sys_max_cmd_len=16384
9278 #
9279 if test -x /sbin/sysconfig; then
9280 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9281 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9282 esac
9283 fi
9284 ;;
9285 sco3.2v5*)
9286 lt_cv_sys_max_cmd_len=102400
9287 ;;
9288 sysv5* | sco5v6* | sysv4.2uw2*)
9289 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9290 if test -n "$kargmax"; then
9291 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9292 else
9293 lt_cv_sys_max_cmd_len=32768
9294 fi
9295 ;;
9296 *)
9297 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9298 if test -n "$lt_cv_sys_max_cmd_len"; then
9299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9301 else
9302 # Make teststring a little bigger before we do anything with it.
9303 # a 1K string should be a reasonable start.
9304 for i in 1 2 3 4 5 6 7 8 ; do
9305 teststring=$teststring$teststring
9306 done
9307 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9308 # If test is not a shell built-in, we'll probably end up computing a
9309 # maximum length that is only half of the actual maximum length, but
9310 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009311 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9312 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009313 test $i != 17 # 1/2 MB should be enough
9314 do
9315 i=`expr $i + 1`
9316 teststring=$teststring$teststring
9317 done
9318 # Only check the string length outside the loop.
9319 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9320 teststring=
9321 # Add a significant safety factor because C++ compilers can tack on
9322 # massive amounts of additional arguments before passing them to the
9323 # linker. It appears as though 1/2 is a usable value.
9324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9325 fi
9326 ;;
9327 esac
9328
9329fi
9330
9331if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9334else
cristy8b350f62009-11-15 23:12:43 +00009335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009336$as_echo "none" >&6; }
9337fi
9338max_cmd_len=$lt_cv_sys_max_cmd_len
9339
9340
9341
9342
9343
9344
9345: ${CP="cp -f"}
9346: ${MV="mv -f"}
9347: ${RM="rm -f"}
9348
cristy8b350f62009-11-15 23:12:43 +00009349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009350$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9351# Try some XSI features
9352xsi_shell=no
9353( _lt_dummy="a/b/c"
9354 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9355 = c,a/b,, \
9356 && eval 'test $(( 1 + 1 )) -eq 2 \
9357 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9358 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009360$as_echo "$xsi_shell" >&6; }
9361
9362
cristy8b350f62009-11-15 23:12:43 +00009363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009364$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9365lt_shell_append=no
9366( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9367 >/dev/null 2>&1 \
9368 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009370$as_echo "$lt_shell_append" >&6; }
9371
9372
9373if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9374 lt_unset=unset
9375else
9376 lt_unset=false
9377fi
9378
9379
9380
9381
9382
9383# test EBCDIC or ASCII
9384case `echo X|tr X '\101'` in
9385 A) # ASCII based system
9386 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9387 lt_SP2NL='tr \040 \012'
9388 lt_NL2SP='tr \015\012 \040\040'
9389 ;;
9390 *) # EBCDIC based system
9391 lt_SP2NL='tr \100 \n'
9392 lt_NL2SP='tr \r\n \100\100'
9393 ;;
9394esac
9395
9396
9397
9398
9399
9400
9401
9402
9403
cristy8b350f62009-11-15 23:12:43 +00009404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009405$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009406if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009407 $as_echo_n "(cached) " >&6
9408else
9409 lt_cv_ld_reload_flag='-r'
9410fi
cristy8b350f62009-11-15 23:12:43 +00009411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009412$as_echo "$lt_cv_ld_reload_flag" >&6; }
9413reload_flag=$lt_cv_ld_reload_flag
9414case $reload_flag in
9415"" | " "*) ;;
9416*) reload_flag=" $reload_flag" ;;
9417esac
9418reload_cmds='$LD$reload_flag -o $output$reload_objs'
9419case $host_os in
9420 darwin*)
9421 if test "$GCC" = yes; then
9422 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9423 else
9424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9425 fi
9426 ;;
9427esac
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437if test -n "$ac_tool_prefix"; then
9438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9439set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009441$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009442if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009443 $as_echo_n "(cached) " >&6
9444else
9445 if test -n "$OBJDUMP"; then
9446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9447else
9448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449for as_dir in $PATH
9450do
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009457 break 2
9458 fi
9459done
cristy8b350f62009-11-15 23:12:43 +00009460 done
cristy3ed852e2009-09-05 21:47:34 +00009461IFS=$as_save_IFS
9462
9463fi
9464fi
9465OBJDUMP=$ac_cv_prog_OBJDUMP
9466if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009468$as_echo "$OBJDUMP" >&6; }
9469else
cristy8b350f62009-11-15 23:12:43 +00009470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009471$as_echo "no" >&6; }
9472fi
9473
9474
9475fi
9476if test -z "$ac_cv_prog_OBJDUMP"; then
9477 ac_ct_OBJDUMP=$OBJDUMP
9478 # Extract the first word of "objdump", so it can be a program name with args.
9479set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009481$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009482if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009483 $as_echo_n "(cached) " >&6
9484else
9485 if test -n "$ac_ct_OBJDUMP"; then
9486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +00009496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009497 break 2
9498 fi
9499done
cristy8b350f62009-11-15 23:12:43 +00009500 done
cristy3ed852e2009-09-05 21:47:34 +00009501IFS=$as_save_IFS
9502
9503fi
9504fi
9505ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9506if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009508$as_echo "$ac_ct_OBJDUMP" >&6; }
9509else
cristy8b350f62009-11-15 23:12:43 +00009510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009511$as_echo "no" >&6; }
9512fi
9513
9514 if test "x$ac_ct_OBJDUMP" = x; then
9515 OBJDUMP="false"
9516 else
9517 case $cross_compiling:$ac_tool_warned in
9518yes:)
cristy8b350f62009-11-15 23:12:43 +00009519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9521ac_tool_warned=yes ;;
9522esac
9523 OBJDUMP=$ac_ct_OBJDUMP
9524 fi
9525else
9526 OBJDUMP="$ac_cv_prog_OBJDUMP"
9527fi
9528
9529test -z "$OBJDUMP" && OBJDUMP=objdump
9530
9531
9532
9533
9534
9535
cristy8b350f62009-11-15 23:12:43 +00009536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +00009537$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009538if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009539 $as_echo_n "(cached) " >&6
9540else
9541 lt_cv_file_magic_cmd='$MAGIC_CMD'
9542lt_cv_file_magic_test_file=
9543lt_cv_deplibs_check_method='unknown'
9544# Need to set the preceding variable on all platforms that support
9545# interlibrary dependencies.
9546# 'none' -- dependencies not supported.
9547# `unknown' -- same as none, but documents that we really don't know.
9548# 'pass_all' -- all dependencies passed with no checks.
9549# 'test_compile' -- check by making test program.
9550# 'file_magic [[regex]]' -- check by looking for files in library path
9551# which responds to the $file_magic_cmd with a given extended regex.
9552# If you have `file' or equivalent on your system and you're not sure
9553# whether `pass_all' will *always* work, you probably want this one.
9554
9555case $host_os in
9556aix[4-9]*)
9557 lt_cv_deplibs_check_method=pass_all
9558 ;;
9559
9560beos*)
9561 lt_cv_deplibs_check_method=pass_all
9562 ;;
9563
9564bsdi[45]*)
9565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9566 lt_cv_file_magic_cmd='/usr/bin/file -L'
9567 lt_cv_file_magic_test_file=/shlib/libc.so
9568 ;;
9569
9570cygwin*)
9571 # func_win32_libid is a shell function defined in ltmain.sh
9572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9573 lt_cv_file_magic_cmd='func_win32_libid'
9574 ;;
9575
9576mingw* | pw32*)
9577 # Base MSYS/MinGW do not provide the 'file' command needed by
9578 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9579 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +00009580 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +00009581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9582 lt_cv_file_magic_cmd='func_win32_libid'
9583 else
9584 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9585 lt_cv_file_magic_cmd='$OBJDUMP -f'
9586 fi
9587 ;;
9588
cristy18304f92009-11-22 15:48:26 +00009589cegcc)
cristy3ed852e2009-09-05 21:47:34 +00009590 # use the weaker test based on 'objdump'. See mingw*.
9591 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9592 lt_cv_file_magic_cmd='$OBJDUMP -f'
9593 ;;
9594
9595darwin* | rhapsody*)
9596 lt_cv_deplibs_check_method=pass_all
9597 ;;
9598
9599freebsd* | dragonfly*)
9600 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9601 case $host_cpu in
9602 i*86 )
9603 # Not sure whether the presence of OpenBSD here was a mistake.
9604 # Let's accept both of them until this is cleared up.
9605 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9606 lt_cv_file_magic_cmd=/usr/bin/file
9607 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9608 ;;
9609 esac
9610 else
9611 lt_cv_deplibs_check_method=pass_all
9612 fi
9613 ;;
9614
9615gnu*)
9616 lt_cv_deplibs_check_method=pass_all
9617 ;;
9618
9619hpux10.20* | hpux11*)
9620 lt_cv_file_magic_cmd=/usr/bin/file
9621 case $host_cpu in
9622 ia64*)
9623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9624 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9625 ;;
9626 hppa*64*)
cristy18304f92009-11-22 15:48:26 +00009627 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 +00009628 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9629 ;;
9630 *)
cristy18304f92009-11-22 15:48:26 +00009631 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 +00009632 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9633 ;;
9634 esac
9635 ;;
9636
9637interix[3-9]*)
9638 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9640 ;;
9641
9642irix5* | irix6* | nonstopux*)
9643 case $LD in
9644 *-32|*"-32 ") libmagic=32-bit;;
9645 *-n32|*"-n32 ") libmagic=N32;;
9646 *-64|*"-64 ") libmagic=64-bit;;
9647 *) libmagic=never-match;;
9648 esac
9649 lt_cv_deplibs_check_method=pass_all
9650 ;;
9651
9652# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +00009653linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +00009654 lt_cv_deplibs_check_method=pass_all
9655 ;;
9656
9657netbsd*)
9658 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9660 else
9661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9662 fi
9663 ;;
9664
9665newos6*)
9666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9667 lt_cv_file_magic_cmd=/usr/bin/file
9668 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9669 ;;
9670
9671*nto* | *qnx*)
9672 lt_cv_deplibs_check_method=pass_all
9673 ;;
9674
9675openbsd*)
9676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9678 else
9679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9680 fi
9681 ;;
9682
9683osf3* | osf4* | osf5*)
9684 lt_cv_deplibs_check_method=pass_all
9685 ;;
9686
9687rdos*)
9688 lt_cv_deplibs_check_method=pass_all
9689 ;;
9690
9691solaris*)
9692 lt_cv_deplibs_check_method=pass_all
9693 ;;
9694
9695sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9696 lt_cv_deplibs_check_method=pass_all
9697 ;;
9698
9699sysv4 | sysv4.3*)
9700 case $host_vendor in
9701 motorola)
9702 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]'
9703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9704 ;;
9705 ncr)
9706 lt_cv_deplibs_check_method=pass_all
9707 ;;
9708 sequent)
9709 lt_cv_file_magic_cmd='/bin/file'
9710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9711 ;;
9712 sni)
9713 lt_cv_file_magic_cmd='/bin/file'
9714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9715 lt_cv_file_magic_test_file=/lib/libc.so
9716 ;;
9717 siemens)
9718 lt_cv_deplibs_check_method=pass_all
9719 ;;
9720 pc)
9721 lt_cv_deplibs_check_method=pass_all
9722 ;;
9723 esac
9724 ;;
9725
9726tpf*)
9727 lt_cv_deplibs_check_method=pass_all
9728 ;;
9729esac
9730
9731fi
cristy8b350f62009-11-15 23:12:43 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +00009733$as_echo "$lt_cv_deplibs_check_method" >&6; }
9734file_magic_cmd=$lt_cv_file_magic_cmd
9735deplibs_check_method=$lt_cv_deplibs_check_method
9736test -z "$deplibs_check_method" && deplibs_check_method=unknown
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749if test -n "$ac_tool_prefix"; then
9750 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9751set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009754if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009755 $as_echo_n "(cached) " >&6
9756else
9757 if test -n "$AR"; then
9758 ac_cv_prog_AR="$AR" # Let the user override the test.
9759else
9760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761for as_dir in $PATH
9762do
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +00009768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009769 break 2
9770 fi
9771done
cristy8b350f62009-11-15 23:12:43 +00009772 done
cristy3ed852e2009-09-05 21:47:34 +00009773IFS=$as_save_IFS
9774
9775fi
9776fi
9777AR=$ac_cv_prog_AR
9778if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +00009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009780$as_echo "$AR" >&6; }
9781else
cristy8b350f62009-11-15 23:12:43 +00009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009783$as_echo "no" >&6; }
9784fi
9785
9786
9787fi
9788if test -z "$ac_cv_prog_AR"; then
9789 ac_ct_AR=$AR
9790 # Extract the first word of "ar", so it can be a program name with args.
9791set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009794if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009795 $as_echo_n "(cached) " >&6
9796else
9797 if test -n "$ac_ct_AR"; then
9798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9799else
9800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9801for as_dir in $PATH
9802do
9803 IFS=$as_save_IFS
9804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9807 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +00009808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009809 break 2
9810 fi
9811done
cristy8b350f62009-11-15 23:12:43 +00009812 done
cristy3ed852e2009-09-05 21:47:34 +00009813IFS=$as_save_IFS
9814
9815fi
9816fi
9817ac_ct_AR=$ac_cv_prog_ac_ct_AR
9818if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +00009819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +00009820$as_echo "$ac_ct_AR" >&6; }
9821else
cristy8b350f62009-11-15 23:12:43 +00009822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009823$as_echo "no" >&6; }
9824fi
9825
9826 if test "x$ac_ct_AR" = x; then
9827 AR="false"
9828 else
9829 case $cross_compiling:$ac_tool_warned in
9830yes:)
cristy8b350f62009-11-15 23:12:43 +00009831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9833ac_tool_warned=yes ;;
9834esac
9835 AR=$ac_ct_AR
9836 fi
9837else
9838 AR="$ac_cv_prog_AR"
9839fi
9840
9841test -z "$AR" && AR=ar
9842test -z "$AR_FLAGS" && AR_FLAGS=cru
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854if test -n "$ac_tool_prefix"; then
9855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9856set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009858$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009859if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009860 $as_echo_n "(cached) " >&6
9861else
9862 if test -n "$STRIP"; then
9863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9864else
9865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866for as_dir in $PATH
9867do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00009873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009874 break 2
9875 fi
9876done
cristy8b350f62009-11-15 23:12:43 +00009877 done
cristy3ed852e2009-09-05 21:47:34 +00009878IFS=$as_save_IFS
9879
9880fi
9881fi
9882STRIP=$ac_cv_prog_STRIP
9883if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009885$as_echo "$STRIP" >&6; }
9886else
cristy8b350f62009-11-15 23:12:43 +00009887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009888$as_echo "no" >&6; }
9889fi
9890
9891
9892fi
9893if test -z "$ac_cv_prog_STRIP"; then
9894 ac_ct_STRIP=$STRIP
9895 # Extract the first word of "strip", so it can be a program name with args.
9896set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009898$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009899if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009900 $as_echo_n "(cached) " >&6
9901else
9902 if test -n "$ac_ct_STRIP"; then
9903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9904else
9905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906for as_dir in $PATH
9907do
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9912 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00009913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009914 break 2
9915 fi
9916done
cristy8b350f62009-11-15 23:12:43 +00009917 done
cristy3ed852e2009-09-05 21:47:34 +00009918IFS=$as_save_IFS
9919
9920fi
9921fi
9922ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9923if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00009924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009925$as_echo "$ac_ct_STRIP" >&6; }
9926else
cristy8b350f62009-11-15 23:12:43 +00009927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009928$as_echo "no" >&6; }
9929fi
9930
9931 if test "x$ac_ct_STRIP" = x; then
9932 STRIP=":"
9933 else
9934 case $cross_compiling:$ac_tool_warned in
9935yes:)
cristy8b350f62009-11-15 23:12:43 +00009936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9938ac_tool_warned=yes ;;
9939esac
9940 STRIP=$ac_ct_STRIP
9941 fi
9942else
9943 STRIP="$ac_cv_prog_STRIP"
9944fi
9945
9946test -z "$STRIP" && STRIP=:
9947
9948
9949
9950
9951
9952
9953if test -n "$ac_tool_prefix"; then
9954 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009957$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009958if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009959 $as_echo_n "(cached) " >&6
9960else
9961 if test -n "$RANLIB"; then
9962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9963else
9964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9965for as_dir in $PATH
9966do
9967 IFS=$as_save_IFS
9968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +00009972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009973 break 2
9974 fi
9975done
cristy8b350f62009-11-15 23:12:43 +00009976 done
cristy3ed852e2009-09-05 21:47:34 +00009977IFS=$as_save_IFS
9978
9979fi
9980fi
9981RANLIB=$ac_cv_prog_RANLIB
9982if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +00009983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +00009984$as_echo "$RANLIB" >&6; }
9985else
cristy8b350f62009-11-15 23:12:43 +00009986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009987$as_echo "no" >&6; }
9988fi
9989
9990
9991fi
9992if test -z "$ac_cv_prog_RANLIB"; then
9993 ac_ct_RANLIB=$RANLIB
9994 # Extract the first word of "ranlib", so it can be a program name with args.
9995set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009997$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009998if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009999 $as_echo_n "(cached) " >&6
10000else
10001 if test -n "$ac_ct_RANLIB"; then
10002 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10003else
10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005for as_dir in $PATH
10006do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010009 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010013 break 2
10014 fi
10015done
cristy8b350f62009-11-15 23:12:43 +000010016 done
cristy3ed852e2009-09-05 21:47:34 +000010017IFS=$as_save_IFS
10018
10019fi
10020fi
10021ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10022if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010024$as_echo "$ac_ct_RANLIB" >&6; }
10025else
cristy8b350f62009-11-15 23:12:43 +000010026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010027$as_echo "no" >&6; }
10028fi
10029
10030 if test "x$ac_ct_RANLIB" = x; then
10031 RANLIB=":"
10032 else
10033 case $cross_compiling:$ac_tool_warned in
10034yes:)
cristy8b350f62009-11-15 23:12:43 +000010035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037ac_tool_warned=yes ;;
10038esac
10039 RANLIB=$ac_ct_RANLIB
10040 fi
10041else
10042 RANLIB="$ac_cv_prog_RANLIB"
10043fi
10044
10045test -z "$RANLIB" && RANLIB=:
10046
10047
10048
10049
10050
10051
10052# Determine commands to create old-style static archives.
10053old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10054old_postinstall_cmds='chmod 644 $oldlib'
10055old_postuninstall_cmds=
10056
10057if test -n "$RANLIB"; then
10058 case $host_os in
10059 openbsd*)
10060 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10061 ;;
10062 *)
10063 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10064 ;;
10065 esac
10066 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10067fi
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102# If no C compiler was specified, use CC.
10103LTCC=${LTCC-"$CC"}
10104
10105# If no C compiler flags were specified, use CFLAGS.
10106LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10107
10108# Allow CC to be a program name with arguments.
10109compiler=$CC
10110
10111
10112# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010114$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010115if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010116 $as_echo_n "(cached) " >&6
10117else
10118
10119# These are sane defaults that work on at least a few old systems.
10120# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10121
10122# Character class describing NM global symbol codes.
10123symcode='[BCDEGRST]'
10124
10125# Regexp to match symbols that can be accessed directly from C.
10126sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10127
10128# Define system-specific variables.
10129case $host_os in
10130aix*)
10131 symcode='[BCDT]'
10132 ;;
10133cygwin* | mingw* | pw32* | cegcc*)
10134 symcode='[ABCDGISTW]'
10135 ;;
10136hpux*)
10137 if test "$host_cpu" = ia64; then
10138 symcode='[ABCDEGRST]'
10139 fi
10140 ;;
10141irix* | nonstopux*)
10142 symcode='[BCDEGRST]'
10143 ;;
10144osf*)
10145 symcode='[BCDEGQRST]'
10146 ;;
10147solaris*)
10148 symcode='[BDRT]'
10149 ;;
10150sco3.2v5*)
10151 symcode='[DT]'
10152 ;;
10153sysv4.2uw2*)
10154 symcode='[DT]'
10155 ;;
10156sysv5* | sco5v6* | unixware* | OpenUNIX*)
10157 symcode='[ABDT]'
10158 ;;
10159sysv4)
10160 symcode='[DFNSTU]'
10161 ;;
10162esac
10163
10164# If we're using GNU nm, then use its standard symbol codes.
10165case `$NM -V 2>&1` in
10166*GNU* | *'with BFD'*)
10167 symcode='[ABCDGIRSTW]' ;;
10168esac
10169
10170# Transform an extracted symbol line into a proper C declaration.
10171# Some systems (esp. on ia64) link data and code symbols differently,
10172# so use this general approach.
10173lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10174
10175# Transform an extracted symbol line into symbol name and symbol address
10176lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10177lt_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'"
10178
10179# Handle CRLF in mingw tool chain
10180opt_cr=
10181case $build_os in
10182mingw*)
10183 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10184 ;;
10185esac
10186
10187# Try without a prefix underscore, then with it.
10188for ac_symprfx in "" "_"; do
10189
10190 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10191 symxfrm="\\1 $ac_symprfx\\2 \\2"
10192
10193 # Write the raw and C identifiers.
10194 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10195 # Fake it for dumpbin and say T for any non-static function
10196 # and D for any global variable.
10197 # Also find C++ and __fastcall symbols from MSVC++,
10198 # which start with @ or ?.
10199 lt_cv_sys_global_symbol_pipe="$AWK '"\
10200" {last_section=section; section=\$ 3};"\
10201" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10202" \$ 0!~/External *\|/{next};"\
10203" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10204" {if(hide[section]) next};"\
10205" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10206" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10207" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10208" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10209" ' prfx=^$ac_symprfx"
10210 else
10211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10212 fi
10213
10214 # Check to see that the pipe works correctly.
10215 pipe_works=no
10216
10217 rm -f conftest*
10218 cat > conftest.$ac_ext <<_LT_EOF
10219#ifdef __cplusplus
10220extern "C" {
10221#endif
10222char nm_test_var;
10223void nm_test_func(void);
10224void nm_test_func(void){}
10225#ifdef __cplusplus
10226}
10227#endif
10228int main(){nm_test_var='a';nm_test_func();return(0);}
10229_LT_EOF
10230
cristy8b350f62009-11-15 23:12:43 +000010231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010232 (eval $ac_compile) 2>&5
10233 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10235 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010236 # Now try to grab the symbols.
10237 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010240 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10242 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010243 # Try sorting and uniquifying the output.
10244 if sort "$nlist" | uniq > "$nlist"T; then
10245 mv -f "$nlist"T "$nlist"
10246 else
10247 rm -f "$nlist"T
10248 fi
10249
10250 # Make sure that we snagged all the symbols we need.
10251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10253 cat <<_LT_EOF > conftest.$ac_ext
10254#ifdef __cplusplus
10255extern "C" {
10256#endif
10257
10258_LT_EOF
10259 # Now generate the symbol file.
10260 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10261
10262 cat <<_LT_EOF >> conftest.$ac_ext
10263
10264/* The mapping between symbol names and symbols. */
10265const struct {
10266 const char *name;
10267 void *address;
10268}
10269lt__PROGRAM__LTX_preloaded_symbols[] =
10270{
10271 { "@PROGRAM@", (void *) 0 },
10272_LT_EOF
10273 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10274 cat <<\_LT_EOF >> conftest.$ac_ext
10275 {0, (void *) 0}
10276};
10277
10278/* This works around a problem in FreeBSD linker */
10279#ifdef FREEBSD_WORKAROUND
10280static const void *lt_preloaded_setup() {
10281 return lt__PROGRAM__LTX_preloaded_symbols;
10282}
10283#endif
10284
10285#ifdef __cplusplus
10286}
10287#endif
10288_LT_EOF
10289 # Now try linking the two files.
10290 mv conftest.$ac_objext conftstm.$ac_objext
10291 lt_save_LIBS="$LIBS"
10292 lt_save_CFLAGS="$CFLAGS"
10293 LIBS="conftstm.$ac_objext"
10294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010296 (eval $ac_link) 2>&5
10297 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10299 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010300 pipe_works=yes
10301 fi
10302 LIBS="$lt_save_LIBS"
10303 CFLAGS="$lt_save_CFLAGS"
10304 else
10305 echo "cannot find nm_test_func in $nlist" >&5
10306 fi
10307 else
10308 echo "cannot find nm_test_var in $nlist" >&5
10309 fi
10310 else
10311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10312 fi
10313 else
10314 echo "$progname: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10316 fi
10317 rm -rf conftest* conftst*
10318
10319 # Do not use the global_symbol_pipe unless it works.
10320 if test "$pipe_works" = yes; then
10321 break
10322 else
10323 lt_cv_sys_global_symbol_pipe=
10324 fi
10325done
10326
10327fi
10328
10329if test -z "$lt_cv_sys_global_symbol_pipe"; then
10330 lt_cv_sys_global_symbol_to_cdecl=
10331fi
10332if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010334$as_echo "failed" >&6; }
10335else
cristy8b350f62009-11-15 23:12:43 +000010336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010337$as_echo "ok" >&6; }
10338fi
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010362if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010363 enableval=$enable_libtool_lock;
10364fi
10365
10366test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10367
10368# Some flags need to be propagated to the compiler or linker for good
10369# libtool support.
10370case $host in
10371ia64-*-hpux*)
10372 # Find out which ABI we are using.
10373 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010375 (eval $ac_compile) 2>&5
10376 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010379 case `/usr/bin/file conftest.$ac_objext` in
10380 *ELF-32*)
10381 HPUX_IA64_MODE="32"
10382 ;;
10383 *ELF-64*)
10384 HPUX_IA64_MODE="64"
10385 ;;
10386 esac
10387 fi
10388 rm -rf conftest*
10389 ;;
10390*-*-irix6*)
10391 # Find out which ABI we are using.
cristy837d6dc2010-02-27 01:16:57 +000010392 echo '#line 10392 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010394 (eval $ac_compile) 2>&5
10395 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10397 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010398 if test "$lt_cv_prog_gnu_ld" = yes; then
10399 case `/usr/bin/file conftest.$ac_objext` in
10400 *32-bit*)
10401 LD="${LD-ld} -melf32bsmip"
10402 ;;
10403 *N32*)
10404 LD="${LD-ld} -melf32bmipn32"
10405 ;;
10406 *64-bit*)
10407 LD="${LD-ld} -melf64bmip"
10408 ;;
10409 esac
10410 else
10411 case `/usr/bin/file conftest.$ac_objext` in
10412 *32-bit*)
10413 LD="${LD-ld} -32"
10414 ;;
10415 *N32*)
10416 LD="${LD-ld} -n32"
10417 ;;
10418 *64-bit*)
10419 LD="${LD-ld} -64"
10420 ;;
10421 esac
10422 fi
10423 fi
10424 rm -rf conftest*
10425 ;;
10426
10427x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10428s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10429 # Find out which ABI we are using.
10430 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010432 (eval $ac_compile) 2>&5
10433 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010436 case `/usr/bin/file conftest.o` in
10437 *32-bit*)
10438 case $host in
10439 x86_64-*kfreebsd*-gnu)
10440 LD="${LD-ld} -m elf_i386_fbsd"
10441 ;;
10442 x86_64-*linux*)
10443 LD="${LD-ld} -m elf_i386"
10444 ;;
10445 ppc64-*linux*|powerpc64-*linux*)
10446 LD="${LD-ld} -m elf32ppclinux"
10447 ;;
10448 s390x-*linux*)
10449 LD="${LD-ld} -m elf_s390"
10450 ;;
10451 sparc64-*linux*)
10452 LD="${LD-ld} -m elf32_sparc"
10453 ;;
10454 esac
10455 ;;
10456 *64-bit*)
10457 case $host in
10458 x86_64-*kfreebsd*-gnu)
10459 LD="${LD-ld} -m elf_x86_64_fbsd"
10460 ;;
10461 x86_64-*linux*)
10462 LD="${LD-ld} -m elf_x86_64"
10463 ;;
10464 ppc*-*linux*|powerpc*-*linux*)
10465 LD="${LD-ld} -m elf64ppc"
10466 ;;
10467 s390*-*linux*|s390*-*tpf*)
10468 LD="${LD-ld} -m elf64_s390"
10469 ;;
10470 sparc*-*linux*)
10471 LD="${LD-ld} -m elf64_sparc"
10472 ;;
10473 esac
10474 ;;
10475 esac
10476 fi
10477 rm -rf conftest*
10478 ;;
10479
10480*-*-sco3.2v5*)
10481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10482 SAVE_CFLAGS="$CFLAGS"
10483 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010485$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010486if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010487 $as_echo_n "(cached) " >&6
10488else
10489 ac_ext=c
10490ac_cpp='$CPP $CPPFLAGS'
10491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10493ac_compiler_gnu=$ac_cv_c_compiler_gnu
10494
cristy8b350f62009-11-15 23:12:43 +000010495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010496/* end confdefs.h. */
10497
10498int
10499main ()
10500{
10501
10502 ;
10503 return 0;
10504}
10505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010506if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010507 lt_cv_cc_needs_belf=yes
10508else
cristy8b350f62009-11-15 23:12:43 +000010509 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000010510fi
cristy8b350f62009-11-15 23:12:43 +000010511rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010513 ac_ext=c
10514ac_cpp='$CPP $CPPFLAGS'
10515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10517ac_compiler_gnu=$ac_cv_c_compiler_gnu
10518
10519fi
cristy8b350f62009-11-15 23:12:43 +000010520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010521$as_echo "$lt_cv_cc_needs_belf" >&6; }
10522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10524 CFLAGS="$SAVE_CFLAGS"
10525 fi
10526 ;;
10527sparc*-*solaris*)
10528 # Find out which ABI we are using.
10529 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010531 (eval $ac_compile) 2>&5
10532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10534 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010535 case `/usr/bin/file conftest.o` in
10536 *64-bit*)
10537 case $lt_cv_prog_gnu_ld in
10538 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10539 *)
10540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10541 LD="${LD-ld} -64"
10542 fi
10543 ;;
10544 esac
10545 ;;
10546 esac
10547 fi
10548 rm -rf conftest*
10549 ;;
10550esac
10551
10552need_locks="$enable_libtool_lock"
10553
10554
10555 case $host_os in
10556 rhapsody* | darwin*)
10557 if test -n "$ac_tool_prefix"; then
10558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10559set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010561$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010562if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010563 $as_echo_n "(cached) " >&6
10564else
10565 if test -n "$DSYMUTIL"; then
10566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10567else
10568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569for as_dir in $PATH
10570do
10571 IFS=$as_save_IFS
10572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010577 break 2
10578 fi
10579done
cristy8b350f62009-11-15 23:12:43 +000010580 done
cristy3ed852e2009-09-05 21:47:34 +000010581IFS=$as_save_IFS
10582
10583fi
10584fi
10585DSYMUTIL=$ac_cv_prog_DSYMUTIL
10586if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010588$as_echo "$DSYMUTIL" >&6; }
10589else
cristy8b350f62009-11-15 23:12:43 +000010590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010591$as_echo "no" >&6; }
10592fi
10593
10594
10595fi
10596if test -z "$ac_cv_prog_DSYMUTIL"; then
10597 ac_ct_DSYMUTIL=$DSYMUTIL
10598 # Extract the first word of "dsymutil", so it can be a program name with args.
10599set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010601$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010602if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010603 $as_echo_n "(cached) " >&6
10604else
10605 if test -n "$ac_ct_DSYMUTIL"; then
10606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10607else
10608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000010616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010617 break 2
10618 fi
10619done
cristy8b350f62009-11-15 23:12:43 +000010620 done
cristy3ed852e2009-09-05 21:47:34 +000010621IFS=$as_save_IFS
10622
10623fi
10624fi
10625ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10626if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000010627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010628$as_echo "$ac_ct_DSYMUTIL" >&6; }
10629else
cristy8b350f62009-11-15 23:12:43 +000010630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010631$as_echo "no" >&6; }
10632fi
10633
10634 if test "x$ac_ct_DSYMUTIL" = x; then
10635 DSYMUTIL=":"
10636 else
10637 case $cross_compiling:$ac_tool_warned in
10638yes:)
cristy8b350f62009-11-15 23:12:43 +000010639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10641ac_tool_warned=yes ;;
10642esac
10643 DSYMUTIL=$ac_ct_DSYMUTIL
10644 fi
10645else
10646 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10647fi
10648
10649 if test -n "$ac_tool_prefix"; then
10650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10651set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010653$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010654if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010655 $as_echo_n "(cached) " >&6
10656else
10657 if test -n "$NMEDIT"; then
10658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10659else
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000010668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010669 break 2
10670 fi
10671done
cristy8b350f62009-11-15 23:12:43 +000010672 done
cristy3ed852e2009-09-05 21:47:34 +000010673IFS=$as_save_IFS
10674
10675fi
10676fi
10677NMEDIT=$ac_cv_prog_NMEDIT
10678if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010680$as_echo "$NMEDIT" >&6; }
10681else
cristy8b350f62009-11-15 23:12:43 +000010682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010683$as_echo "no" >&6; }
10684fi
10685
10686
10687fi
10688if test -z "$ac_cv_prog_NMEDIT"; then
10689 ac_ct_NMEDIT=$NMEDIT
10690 # Extract the first word of "nmedit", so it can be a program name with args.
10691set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010693$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010694if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010695 $as_echo_n "(cached) " >&6
10696else
10697 if test -n "$ac_ct_NMEDIT"; then
10698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10699else
10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701for as_dir in $PATH
10702do
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000010708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010709 break 2
10710 fi
10711done
cristy8b350f62009-11-15 23:12:43 +000010712 done
cristy3ed852e2009-09-05 21:47:34 +000010713IFS=$as_save_IFS
10714
10715fi
10716fi
10717ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10718if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000010719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000010720$as_echo "$ac_ct_NMEDIT" >&6; }
10721else
cristy8b350f62009-11-15 23:12:43 +000010722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010723$as_echo "no" >&6; }
10724fi
10725
10726 if test "x$ac_ct_NMEDIT" = x; then
10727 NMEDIT=":"
10728 else
10729 case $cross_compiling:$ac_tool_warned in
10730yes:)
cristy8b350f62009-11-15 23:12:43 +000010731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10733ac_tool_warned=yes ;;
10734esac
10735 NMEDIT=$ac_ct_NMEDIT
10736 fi
10737else
10738 NMEDIT="$ac_cv_prog_NMEDIT"
10739fi
10740
10741 if test -n "$ac_tool_prefix"; then
10742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10743set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010745$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010746if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010747 $as_echo_n "(cached) " >&6
10748else
10749 if test -n "$LIPO"; then
10750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10751else
10752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753for as_dir in $PATH
10754do
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010757 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000010760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010761 break 2
10762 fi
10763done
cristy8b350f62009-11-15 23:12:43 +000010764 done
cristy3ed852e2009-09-05 21:47:34 +000010765IFS=$as_save_IFS
10766
10767fi
10768fi
10769LIPO=$ac_cv_prog_LIPO
10770if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010772$as_echo "$LIPO" >&6; }
10773else
cristy8b350f62009-11-15 23:12:43 +000010774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010775$as_echo "no" >&6; }
10776fi
10777
10778
10779fi
10780if test -z "$ac_cv_prog_LIPO"; then
10781 ac_ct_LIPO=$LIPO
10782 # Extract the first word of "lipo", so it can be a program name with args.
10783set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010785$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010786if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010787 $as_echo_n "(cached) " >&6
10788else
10789 if test -n "$ac_ct_LIPO"; then
10790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10791else
10792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793for as_dir in $PATH
10794do
10795 IFS=$as_save_IFS
10796 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010797 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000010800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010801 break 2
10802 fi
10803done
cristy8b350f62009-11-15 23:12:43 +000010804 done
cristy3ed852e2009-09-05 21:47:34 +000010805IFS=$as_save_IFS
10806
10807fi
10808fi
10809ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10810if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000010811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000010812$as_echo "$ac_ct_LIPO" >&6; }
10813else
cristy8b350f62009-11-15 23:12:43 +000010814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010815$as_echo "no" >&6; }
10816fi
10817
10818 if test "x$ac_ct_LIPO" = x; then
10819 LIPO=":"
10820 else
10821 case $cross_compiling:$ac_tool_warned in
10822yes:)
cristy8b350f62009-11-15 23:12:43 +000010823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10825ac_tool_warned=yes ;;
10826esac
10827 LIPO=$ac_ct_LIPO
10828 fi
10829else
10830 LIPO="$ac_cv_prog_LIPO"
10831fi
10832
10833 if test -n "$ac_tool_prefix"; then
10834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10835set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010837$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010838if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010839 $as_echo_n "(cached) " >&6
10840else
10841 if test -n "$OTOOL"; then
10842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000010852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010853 break 2
10854 fi
10855done
cristy8b350f62009-11-15 23:12:43 +000010856 done
cristy3ed852e2009-09-05 21:47:34 +000010857IFS=$as_save_IFS
10858
10859fi
10860fi
10861OTOOL=$ac_cv_prog_OTOOL
10862if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010864$as_echo "$OTOOL" >&6; }
10865else
cristy8b350f62009-11-15 23:12:43 +000010866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010867$as_echo "no" >&6; }
10868fi
10869
10870
10871fi
10872if test -z "$ac_cv_prog_OTOOL"; then
10873 ac_ct_OTOOL=$OTOOL
10874 # Extract the first word of "otool", so it can be a program name with args.
10875set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010877$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010878if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010879 $as_echo_n "(cached) " >&6
10880else
10881 if test -n "$ac_ct_OTOOL"; then
10882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10883else
10884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885for as_dir in $PATH
10886do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000010892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010893 break 2
10894 fi
10895done
cristy8b350f62009-11-15 23:12:43 +000010896 done
cristy3ed852e2009-09-05 21:47:34 +000010897IFS=$as_save_IFS
10898
10899fi
10900fi
10901ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10902if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000010903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000010904$as_echo "$ac_ct_OTOOL" >&6; }
10905else
cristy8b350f62009-11-15 23:12:43 +000010906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010907$as_echo "no" >&6; }
10908fi
10909
10910 if test "x$ac_ct_OTOOL" = x; then
10911 OTOOL=":"
10912 else
10913 case $cross_compiling:$ac_tool_warned in
10914yes:)
cristy8b350f62009-11-15 23:12:43 +000010915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10917ac_tool_warned=yes ;;
10918esac
10919 OTOOL=$ac_ct_OTOOL
10920 fi
10921else
10922 OTOOL="$ac_cv_prog_OTOOL"
10923fi
10924
10925 if test -n "$ac_tool_prefix"; then
10926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10927set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010929$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010930if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010931 $as_echo_n "(cached) " >&6
10932else
10933 if test -n "$OTOOL64"; then
10934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10935else
10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937for as_dir in $PATH
10938do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000010944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010945 break 2
10946 fi
10947done
cristy8b350f62009-11-15 23:12:43 +000010948 done
cristy3ed852e2009-09-05 21:47:34 +000010949IFS=$as_save_IFS
10950
10951fi
10952fi
10953OTOOL64=$ac_cv_prog_OTOOL64
10954if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010956$as_echo "$OTOOL64" >&6; }
10957else
cristy8b350f62009-11-15 23:12:43 +000010958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010959$as_echo "no" >&6; }
10960fi
10961
10962
10963fi
10964if test -z "$ac_cv_prog_OTOOL64"; then
10965 ac_ct_OTOOL64=$OTOOL64
10966 # Extract the first word of "otool64", so it can be a program name with args.
10967set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010969$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010970if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010971 $as_echo_n "(cached) " >&6
10972else
10973 if test -n "$ac_ct_OTOOL64"; then
10974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000010984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010985 break 2
10986 fi
10987done
cristy8b350f62009-11-15 23:12:43 +000010988 done
cristy3ed852e2009-09-05 21:47:34 +000010989IFS=$as_save_IFS
10990
10991fi
10992fi
10993ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10994if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000010995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996$as_echo "$ac_ct_OTOOL64" >&6; }
10997else
cristy8b350f62009-11-15 23:12:43 +000010998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010999$as_echo "no" >&6; }
11000fi
11001
11002 if test "x$ac_ct_OTOOL64" = x; then
11003 OTOOL64=":"
11004 else
11005 case $cross_compiling:$ac_tool_warned in
11006yes:)
cristy8b350f62009-11-15 23:12:43 +000011007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11009ac_tool_warned=yes ;;
11010esac
11011 OTOOL64=$ac_ct_OTOOL64
11012 fi
11013else
11014 OTOOL64="$ac_cv_prog_OTOOL64"
11015fi
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
cristy8b350f62009-11-15 23:12:43 +000011043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011044$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011045if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011046 $as_echo_n "(cached) " >&6
11047else
11048 lt_cv_apple_cc_single_mod=no
11049 if test -z "${LT_MULTI_MODULE}"; then
11050 # By default we will add the -single_module flag. You can override
11051 # by either setting the environment variable LT_MULTI_MODULE
11052 # non-empty at configure time, or by adding -multi_module to the
11053 # link flags.
11054 rm -rf libconftest.dylib*
11055 echo "int foo(void){return 1;}" > conftest.c
11056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11057-dynamiclib -Wl,-single_module conftest.c" >&5
11058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11060 _lt_result=$?
11061 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11062 lt_cv_apple_cc_single_mod=yes
11063 else
11064 cat conftest.err >&5
11065 fi
11066 rm -rf libconftest.dylib*
11067 rm -f conftest.*
11068 fi
11069fi
cristy8b350f62009-11-15 23:12:43 +000011070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011071$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011073$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011074if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011075 $as_echo_n "(cached) " >&6
11076else
11077 lt_cv_ld_exported_symbols_list=no
11078 save_LDFLAGS=$LDFLAGS
11079 echo "_main" > conftest.sym
11080 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011082/* end confdefs.h. */
11083
11084int
11085main ()
11086{
11087
11088 ;
11089 return 0;
11090}
11091_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011092if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011093 lt_cv_ld_exported_symbols_list=yes
11094else
cristy8b350f62009-11-15 23:12:43 +000011095 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011096fi
cristy8b350f62009-11-15 23:12:43 +000011097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011099 LDFLAGS="$save_LDFLAGS"
11100
11101fi
cristy8b350f62009-11-15 23:12:43 +000011102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011103$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11104 case $host_os in
11105 rhapsody* | darwin1.[012])
11106 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11107 darwin1.*)
11108 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11109 darwin*) # darwin 5.x on
11110 # if running on 10.5 or later, the deployment target defaults
11111 # to the OS version, if on x86, and 10.4, the deployment
11112 # target defaults to 10.4. Don't you love it?
11113 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11114 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11115 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11116 10.[012]*)
11117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11118 10.*)
11119 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11120 esac
11121 ;;
11122 esac
11123 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11124 _lt_dar_single_mod='$single_module'
11125 fi
11126 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11127 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11128 else
11129 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11130 fi
cristy18304f92009-11-22 15:48:26 +000011131 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011132 _lt_dsymutil='~$DSYMUTIL $lib || :'
11133 else
11134 _lt_dsymutil=
11135 fi
11136 ;;
11137 esac
11138
cristy3ed852e2009-09-05 21:47:34 +000011139for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011140do :
11141 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11142"
11143if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011144 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011145#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011146_ACEOF
11147
11148fi
11149
11150done
11151
11152
11153
cristy18304f92009-11-22 15:48:26 +000011154ac_ext=cpp
11155ac_cpp='$CXXCPP $CPPFLAGS'
11156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11159if test -z "$CXX"; then
11160 if test -n "$CCC"; then
11161 CXX=$CCC
11162 else
11163 if test -n "$ac_tool_prefix"; then
11164 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11165 do
11166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169$as_echo_n "checking for $ac_word... " >&6; }
11170if test "${ac_cv_prog_CXX+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172else
11173 if test -n "$CXX"; then
11174 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11175else
11176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $PATH
11178do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11186 fi
11187done
11188 done
11189IFS=$as_save_IFS
11190
11191fi
11192fi
11193CXX=$ac_cv_prog_CXX
11194if test -n "$CXX"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11196$as_echo "$CXX" >&6; }
11197else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199$as_echo "no" >&6; }
11200fi
11201
11202
11203 test -n "$CXX" && break
11204 done
11205fi
11206if test -z "$CXX"; then
11207 ac_ct_CXX=$CXX
11208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11209do
11210 # Extract the first word of "$ac_prog", so it can be a program name with args.
11211set dummy $ac_prog; ac_word=$2
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216else
11217 if test -n "$ac_ct_CXX"; then
11218 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11219else
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11227 ac_cv_prog_ac_ct_CXX="$ac_prog"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11229 break 2
11230 fi
11231done
11232 done
11233IFS=$as_save_IFS
11234
11235fi
11236fi
11237ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11238if test -n "$ac_ct_CXX"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11240$as_echo "$ac_ct_CXX" >&6; }
11241else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
11244fi
11245
11246
11247 test -n "$ac_ct_CXX" && break
11248done
11249
11250 if test "x$ac_ct_CXX" = x; then
11251 CXX="g++"
11252 else
11253 case $cross_compiling:$ac_tool_warned in
11254yes:)
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11257ac_tool_warned=yes ;;
11258esac
11259 CXX=$ac_ct_CXX
11260 fi
11261fi
11262
11263 fi
11264fi
11265# Provide some information about the compiler.
11266$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11267set X $ac_compile
11268ac_compiler=$2
11269for ac_option in --version -v -V -qversion; do
11270 { { ac_try="$ac_compiler $ac_option >&5"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11276$as_echo "$ac_try_echo"; } >&5
11277 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11278 ac_status=$?
11279 if test -s conftest.err; then
11280 sed '10a\
11281... rest of stderr output deleted ...
11282 10q' conftest.err >conftest.er1
11283 cat conftest.er1 >&5
11284 fi
11285 rm -f conftest.er1 conftest.err
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }
11288done
11289
11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11291$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11292if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11293 $as_echo_n "(cached) " >&6
11294else
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h. */
11297
11298int
11299main ()
11300{
11301#ifndef __GNUC__
11302 choke me
11303#endif
11304
11305 ;
11306 return 0;
11307}
11308_ACEOF
11309if ac_fn_cxx_try_compile "$LINENO"; then :
11310 ac_compiler_gnu=yes
11311else
11312 ac_compiler_gnu=no
11313fi
11314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11316
11317fi
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11319$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11320if test $ac_compiler_gnu = yes; then
11321 GXX=yes
11322else
11323 GXX=
11324fi
11325ac_test_CXXFLAGS=${CXXFLAGS+set}
11326ac_save_CXXFLAGS=$CXXFLAGS
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11328$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11329if test "${ac_cv_prog_cxx_g+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331else
11332 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11333 ac_cxx_werror_flag=yes
11334 ac_cv_prog_cxx_g=no
11335 CXXFLAGS="-g"
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h. */
11338
11339int
11340main ()
11341{
11342
11343 ;
11344 return 0;
11345}
11346_ACEOF
11347if ac_fn_cxx_try_compile "$LINENO"; then :
11348 ac_cv_prog_cxx_g=yes
11349else
11350 CXXFLAGS=""
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h. */
11353
11354int
11355main ()
11356{
11357
11358 ;
11359 return 0;
11360}
11361_ACEOF
11362if ac_fn_cxx_try_compile "$LINENO"; then :
11363
11364else
11365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11366 CXXFLAGS="-g"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368/* end confdefs.h. */
11369
11370int
11371main ()
11372{
11373
11374 ;
11375 return 0;
11376}
11377_ACEOF
11378if ac_fn_cxx_try_compile "$LINENO"; then :
11379 ac_cv_prog_cxx_g=yes
11380fi
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382fi
11383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384fi
11385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11387fi
11388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11389$as_echo "$ac_cv_prog_cxx_g" >&6; }
11390if test "$ac_test_CXXFLAGS" = set; then
11391 CXXFLAGS=$ac_save_CXXFLAGS
11392elif test $ac_cv_prog_cxx_g = yes; then
11393 if test "$GXX" = yes; then
11394 CXXFLAGS="-g -O2"
11395 else
11396 CXXFLAGS="-g"
11397 fi
11398else
11399 if test "$GXX" = yes; then
11400 CXXFLAGS="-O2"
11401 else
11402 CXXFLAGS=
11403 fi
11404fi
11405ac_ext=c
11406ac_cpp='$CPP $CPPFLAGS'
11407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11409ac_compiler_gnu=$ac_cv_c_compiler_gnu
11410
11411depcc="$CXX" am_compiler_list=
11412
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11414$as_echo_n "checking dependency style of $depcc... " >&6; }
11415if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11417else
11418 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11419 # We make a subdir and do the tests there. Otherwise we can end up
11420 # making bogus files that we don't know about and never remove. For
11421 # instance it was reported that on HP-UX the gcc test will end up
11422 # making a dummy file named `D' -- because `-MD' means `put the output
11423 # in D'.
11424 mkdir conftest.dir
11425 # Copy depcomp to subdir because otherwise we won't find it if we're
11426 # using a relative directory.
11427 cp "$am_depcomp" conftest.dir
11428 cd conftest.dir
11429 # We will build objects and dependencies in a subdirectory because
11430 # it helps to detect inapplicable dependency modes. For instance
11431 # both Tru64's cc and ICC support -MD to output dependencies as a
11432 # side effect of compilation, but ICC will put the dependencies in
11433 # the current directory while Tru64 will put them in the object
11434 # directory.
11435 mkdir sub
11436
11437 am_cv_CXX_dependencies_compiler_type=none
11438 if test "$am_compiler_list" = ""; then
11439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11440 fi
11441 am__universal=false
11442 case " $depcc " in #(
11443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11444 esac
11445
11446 for depmode in $am_compiler_list; do
11447 # Setup a source with many dependencies, because some compilers
11448 # like to wrap large dependency lists on column 80 (with \), and
11449 # we should not choose a depcomp mode which is confused by this.
11450 #
11451 # We need to recreate these files for each test, as the compiler may
11452 # overwrite some of them when testing with obscure command lines.
11453 # This happens at least with the AIX C compiler.
11454 : > sub/conftest.c
11455 for i in 1 2 3 4 5 6; do
11456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11458 # Solaris 8's {/usr,}/bin/sh.
11459 touch sub/conftst$i.h
11460 done
11461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11462
11463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11464 # mode. It turns out that the SunPro C++ compiler does not properly
11465 # handle `-M -o', and we need to detect this. Also, some Intel
11466 # versions had trouble with output in subdirs
11467 am__obj=sub/conftest.${OBJEXT-o}
11468 am__minus_obj="-o $am__obj"
11469 case $depmode in
11470 gcc)
11471 # This depmode causes a compiler race in universal mode.
11472 test "$am__universal" = false || continue
11473 ;;
11474 nosideeffect)
11475 # after this tag, mechanisms are not by side-effect, so they'll
11476 # only be used when explicitly requested
11477 if test "x$enable_dependency_tracking" = xyes; then
11478 continue
11479 else
11480 break
11481 fi
11482 ;;
11483 msvisualcpp | msvcmsys)
11484 # This compiler won't grok `-c -o', but also, the minuso test has
11485 # not run yet. These depmodes are late enough in the game, and
11486 # so weak that their functioning should not be impacted.
11487 am__obj=conftest.${OBJEXT-o}
11488 am__minus_obj=
11489 ;;
11490 none) break ;;
11491 esac
11492 if depmode=$depmode \
11493 source=sub/conftest.c object=$am__obj \
11494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11496 >/dev/null 2>conftest.err &&
11497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11501 # icc doesn't choke on unknown options, it will just issue warnings
11502 # or remarks (even with -Werror). So we grep stderr for any message
11503 # that says an option was ignored or not supported.
11504 # When given -MP, icc 7.0 and 7.1 complain thusly:
11505 # icc: Command line warning: ignoring option '-M'; no argument required
11506 # The diagnosis changed in icc 8.0:
11507 # icc: Command line remark: option '-MP' not supported
11508 if (grep 'ignoring option' conftest.err ||
11509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11510 am_cv_CXX_dependencies_compiler_type=$depmode
11511 break
11512 fi
11513 fi
11514 done
11515
11516 cd ..
11517 rm -rf conftest.dir
11518else
11519 am_cv_CXX_dependencies_compiler_type=none
11520fi
11521
11522fi
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11524$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11525CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11526
11527 if
11528 test "x$enable_dependency_tracking" != xno \
11529 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11530 am__fastdepCXX_TRUE=
11531 am__fastdepCXX_FALSE='#'
11532else
11533 am__fastdepCXX_TRUE='#'
11534 am__fastdepCXX_FALSE=
11535fi
11536
11537
11538if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11539 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11540 (test "X$CXX" != "Xg++"))) ; then
11541 ac_ext=cpp
11542ac_cpp='$CXXCPP $CPPFLAGS'
11543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11547$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11548if test -z "$CXXCPP"; then
11549 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551else
11552 # Double quotes because CXXCPP needs to be expanded
11553 for CXXCPP in "$CXX -E" "/lib/cpp"
11554 do
11555 ac_preproc_ok=false
11556for ac_cxx_preproc_warn_flag in '' yes
11557do
11558 # Use a header file that comes with gcc, so configuring glibc
11559 # with a fresh cross-compiler works.
11560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561 # <limits.h> exists even on freestanding compilers.
11562 # On the NeXT, cc -E runs the code through the compiler's parser,
11563 # not just through cpp. "Syntax error" is here to catch this case.
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h. */
11566#ifdef __STDC__
11567# include <limits.h>
11568#else
11569# include <assert.h>
11570#endif
11571 Syntax error
11572_ACEOF
11573if ac_fn_cxx_try_cpp "$LINENO"; then :
11574
11575else
11576 # Broken: fails on valid input.
11577continue
11578fi
11579rm -f conftest.err conftest.$ac_ext
11580
11581 # OK, works on sane cases. Now check whether nonexistent headers
11582 # can be detected and how.
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h. */
11585#include <ac_nonexistent.h>
11586_ACEOF
11587if ac_fn_cxx_try_cpp "$LINENO"; then :
11588 # Broken: success on invalid input.
11589continue
11590else
11591 # Passes both tests.
11592ac_preproc_ok=:
11593break
11594fi
11595rm -f conftest.err conftest.$ac_ext
11596
11597done
11598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11599rm -f conftest.err conftest.$ac_ext
11600if $ac_preproc_ok; then :
11601 break
11602fi
11603
11604 done
11605 ac_cv_prog_CXXCPP=$CXXCPP
11606
11607fi
11608 CXXCPP=$ac_cv_prog_CXXCPP
11609else
11610 ac_cv_prog_CXXCPP=$CXXCPP
11611fi
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11613$as_echo "$CXXCPP" >&6; }
11614ac_preproc_ok=false
11615for ac_cxx_preproc_warn_flag in '' yes
11616do
11617 # Use a header file that comes with gcc, so configuring glibc
11618 # with a fresh cross-compiler works.
11619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 # <limits.h> exists even on freestanding compilers.
11621 # On the NeXT, cc -E runs the code through the compiler's parser,
11622 # not just through cpp. "Syntax error" is here to catch this case.
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625#ifdef __STDC__
11626# include <limits.h>
11627#else
11628# include <assert.h>
11629#endif
11630 Syntax error
11631_ACEOF
11632if ac_fn_cxx_try_cpp "$LINENO"; then :
11633
11634else
11635 # Broken: fails on valid input.
11636continue
11637fi
11638rm -f conftest.err conftest.$ac_ext
11639
11640 # OK, works on sane cases. Now check whether nonexistent headers
11641 # can be detected and how.
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643/* end confdefs.h. */
11644#include <ac_nonexistent.h>
11645_ACEOF
11646if ac_fn_cxx_try_cpp "$LINENO"; then :
11647 # Broken: success on invalid input.
11648continue
11649else
11650 # Passes both tests.
11651ac_preproc_ok=:
11652break
11653fi
11654rm -f conftest.err conftest.$ac_ext
11655
11656done
11657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11658rm -f conftest.err conftest.$ac_ext
11659if $ac_preproc_ok; then :
11660
11661else
11662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11664_lt_caught_CXX_error=yes; }
11665fi
11666
11667ac_ext=c
11668ac_cpp='$CPP $CPPFLAGS'
11669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671ac_compiler_gnu=$ac_cv_c_compiler_gnu
11672
11673else
11674 _lt_caught_CXX_error=yes
11675fi
11676
11677
cristy3ed852e2009-09-05 21:47:34 +000011678
11679
11680
11681# Set options
11682enable_win32_dll=yes
11683
11684case $host in
cristy18304f92009-11-22 15:48:26 +000011685*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000011686 if test -n "$ac_tool_prefix"; then
11687 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11688set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011690$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011691if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011692 $as_echo_n "(cached) " >&6
11693else
11694 if test -n "$AS"; then
11695 ac_cv_prog_AS="$AS" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011702 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000011705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011706 break 2
11707 fi
11708done
cristy8b350f62009-11-15 23:12:43 +000011709 done
cristy3ed852e2009-09-05 21:47:34 +000011710IFS=$as_save_IFS
11711
11712fi
11713fi
11714AS=$ac_cv_prog_AS
11715if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000011716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011717$as_echo "$AS" >&6; }
11718else
cristy8b350f62009-11-15 23:12:43 +000011719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011720$as_echo "no" >&6; }
11721fi
11722
11723
11724fi
11725if test -z "$ac_cv_prog_AS"; then
11726 ac_ct_AS=$AS
11727 # Extract the first word of "as", so it can be a program name with args.
11728set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011730$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011731if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011732 $as_echo_n "(cached) " >&6
11733else
11734 if test -n "$ac_ct_AS"; then
11735 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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=.
cristy8b350f62009-11-15 23:12:43 +000011742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011743 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_AS="as"
cristy8b350f62009-11-15 23:12:43 +000011745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011746 break 2
11747 fi
11748done
cristy8b350f62009-11-15 23:12:43 +000011749 done
cristy3ed852e2009-09-05 21:47:34 +000011750IFS=$as_save_IFS
11751
11752fi
11753fi
11754ac_ct_AS=$ac_cv_prog_ac_ct_AS
11755if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000011756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000011757$as_echo "$ac_ct_AS" >&6; }
11758else
cristy8b350f62009-11-15 23:12:43 +000011759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011760$as_echo "no" >&6; }
11761fi
11762
11763 if test "x$ac_ct_AS" = x; then
11764 AS="false"
11765 else
11766 case $cross_compiling:$ac_tool_warned in
11767yes:)
cristy8b350f62009-11-15 23:12:43 +000011768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11770ac_tool_warned=yes ;;
11771esac
11772 AS=$ac_ct_AS
11773 fi
11774else
11775 AS="$ac_cv_prog_AS"
11776fi
11777
11778 if test -n "$ac_tool_prefix"; then
11779 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11780set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011783if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011784 $as_echo_n "(cached) " >&6
11785else
11786 if test -n "$DLLTOOL"; then
11787 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11788else
11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790for as_dir in $PATH
11791do
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11796 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000011797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011798 break 2
11799 fi
11800done
cristy8b350f62009-11-15 23:12:43 +000011801 done
cristy3ed852e2009-09-05 21:47:34 +000011802IFS=$as_save_IFS
11803
11804fi
11805fi
11806DLLTOOL=$ac_cv_prog_DLLTOOL
11807if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011809$as_echo "$DLLTOOL" >&6; }
11810else
cristy8b350f62009-11-15 23:12:43 +000011811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011812$as_echo "no" >&6; }
11813fi
11814
11815
11816fi
11817if test -z "$ac_cv_prog_DLLTOOL"; then
11818 ac_ct_DLLTOOL=$DLLTOOL
11819 # Extract the first word of "dlltool", so it can be a program name with args.
11820set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011822$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011823if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011824 $as_echo_n "(cached) " >&6
11825else
11826 if test -n "$ac_ct_DLLTOOL"; then
11827 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11828else
11829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000011837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011838 break 2
11839 fi
11840done
cristy8b350f62009-11-15 23:12:43 +000011841 done
cristy3ed852e2009-09-05 21:47:34 +000011842IFS=$as_save_IFS
11843
11844fi
11845fi
11846ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11847if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011849$as_echo "$ac_ct_DLLTOOL" >&6; }
11850else
cristy8b350f62009-11-15 23:12:43 +000011851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011852$as_echo "no" >&6; }
11853fi
11854
11855 if test "x$ac_ct_DLLTOOL" = x; then
11856 DLLTOOL="false"
11857 else
11858 case $cross_compiling:$ac_tool_warned in
11859yes:)
cristy8b350f62009-11-15 23:12:43 +000011860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11862ac_tool_warned=yes ;;
11863esac
11864 DLLTOOL=$ac_ct_DLLTOOL
11865 fi
11866else
11867 DLLTOOL="$ac_cv_prog_DLLTOOL"
11868fi
11869
11870 if test -n "$ac_tool_prefix"; then
11871 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11872set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011874$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011875if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011876 $as_echo_n "(cached) " >&6
11877else
11878 if test -n "$OBJDUMP"; then
11879 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11880else
11881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11882for as_dir in $PATH
11883do
11884 IFS=$as_save_IFS
11885 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011886 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11888 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000011889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011890 break 2
11891 fi
11892done
cristy8b350f62009-11-15 23:12:43 +000011893 done
cristy3ed852e2009-09-05 21:47:34 +000011894IFS=$as_save_IFS
11895
11896fi
11897fi
11898OBJDUMP=$ac_cv_prog_OBJDUMP
11899if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011901$as_echo "$OBJDUMP" >&6; }
11902else
cristy8b350f62009-11-15 23:12:43 +000011903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011904$as_echo "no" >&6; }
11905fi
11906
11907
11908fi
11909if test -z "$ac_cv_prog_OBJDUMP"; then
11910 ac_ct_OBJDUMP=$OBJDUMP
11911 # Extract the first word of "objdump", so it can be a program name with args.
11912set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011914$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011915if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011916 $as_echo_n "(cached) " >&6
11917else
11918 if test -n "$ac_ct_OBJDUMP"; then
11919 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11920else
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000011929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011930 break 2
11931 fi
11932done
cristy8b350f62009-11-15 23:12:43 +000011933 done
cristy3ed852e2009-09-05 21:47:34 +000011934IFS=$as_save_IFS
11935
11936fi
11937fi
11938ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11939if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000011940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011941$as_echo "$ac_ct_OBJDUMP" >&6; }
11942else
cristy8b350f62009-11-15 23:12:43 +000011943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011944$as_echo "no" >&6; }
11945fi
11946
11947 if test "x$ac_ct_OBJDUMP" = x; then
11948 OBJDUMP="false"
11949 else
11950 case $cross_compiling:$ac_tool_warned in
11951yes:)
cristy8b350f62009-11-15 23:12:43 +000011952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11954ac_tool_warned=yes ;;
11955esac
11956 OBJDUMP=$ac_ct_OBJDUMP
11957 fi
11958else
11959 OBJDUMP="$ac_cv_prog_OBJDUMP"
11960fi
11961
11962 ;;
11963esac
11964
11965test -z "$AS" && AS=as
11966
11967
11968
11969
11970
11971test -z "$DLLTOOL" && DLLTOOL=dlltool
11972
11973
11974
11975
11976
11977test -z "$OBJDUMP" && OBJDUMP=objdump
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000011988if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011989 enableval=$enable_shared; p=${PACKAGE-default}
11990 case $enableval in
11991 yes) enable_shared=yes ;;
11992 no) enable_shared=no ;;
11993 *)
11994 enable_shared=no
11995 # Look at the argument we got. We use all the common list separators.
11996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11997 for pkg in $enableval; do
11998 IFS="$lt_save_ifs"
11999 if test "X$pkg" = "X$p"; then
12000 enable_shared=yes
12001 fi
12002 done
12003 IFS="$lt_save_ifs"
12004 ;;
12005 esac
12006else
12007 enable_shared=yes
12008fi
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012019if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012020 enableval=$enable_static; p=${PACKAGE-default}
12021 case $enableval in
12022 yes) enable_static=yes ;;
12023 no) enable_static=no ;;
12024 *)
12025 enable_static=no
12026 # Look at the argument we got. We use all the common list separators.
12027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12028 for pkg in $enableval; do
12029 IFS="$lt_save_ifs"
12030 if test "X$pkg" = "X$p"; then
12031 enable_static=yes
12032 fi
12033 done
12034 IFS="$lt_save_ifs"
12035 ;;
12036 esac
12037else
12038 enable_static=yes
12039fi
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012051if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012052 withval=$with_pic; pic_mode="$withval"
12053else
12054 pic_mode=default
12055fi
12056
12057
12058test -z "$pic_mode" && pic_mode=default
12059
12060
12061
12062
12063
12064
12065
12066 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012067if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012068 enableval=$enable_fast_install; p=${PACKAGE-default}
12069 case $enableval in
12070 yes) enable_fast_install=yes ;;
12071 no) enable_fast_install=no ;;
12072 *)
12073 enable_fast_install=no
12074 # Look at the argument we got. We use all the common list separators.
12075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12076 for pkg in $enableval; do
12077 IFS="$lt_save_ifs"
12078 if test "X$pkg" = "X$p"; then
12079 enable_fast_install=yes
12080 fi
12081 done
12082 IFS="$lt_save_ifs"
12083 ;;
12084 esac
12085else
12086 enable_fast_install=yes
12087fi
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099# This can be used to rebuild libtool when needed
12100LIBTOOL_DEPS="$ltmain"
12101
12102# Always use our own libtool.
12103LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129test -z "$LN_S" && LN_S="ln -s"
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144if test -n "${ZSH_VERSION+set}" ; then
12145 setopt NO_GLOB_SUBST
12146fi
12147
cristy8b350f62009-11-15 23:12:43 +000012148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012149$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012150if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012151 $as_echo_n "(cached) " >&6
12152else
12153 rm -f .libs 2>/dev/null
12154mkdir .libs 2>/dev/null
12155if test -d .libs; then
12156 lt_cv_objdir=.libs
12157else
12158 # MS-DOS does not allow filenames that begin with a dot.
12159 lt_cv_objdir=_libs
12160fi
12161rmdir .libs 2>/dev/null
12162fi
cristy8b350f62009-11-15 23:12:43 +000012163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012164$as_echo "$lt_cv_objdir" >&6; }
12165objdir=$lt_cv_objdir
12166
12167
12168
12169
12170
12171cat >>confdefs.h <<_ACEOF
12172#define LT_OBJDIR "$lt_cv_objdir/"
12173_ACEOF
12174
12175
12176
12177
cristy18304f92009-11-22 15:48:26 +000012178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
cristy3ed852e2009-09-05 21:47:34 +000012191case $host_os in
12192aix3*)
12193 # AIX sometimes has problems with the GCC collect2 program. For some
12194 # reason, if we set the COLLECT_NAMES environment variable, the problems
12195 # vanish in a puff of smoke.
12196 if test "X${COLLECT_NAMES+set}" != Xset; then
12197 COLLECT_NAMES=
12198 export COLLECT_NAMES
12199 fi
12200 ;;
12201esac
12202
cristy18304f92009-11-22 15:48:26 +000012203# Sed substitution that helps us do robust quoting. It backslashifies
12204# metacharacters that are still active within double-quoted strings.
12205sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12206
12207# Same as above, but do not quote variable references.
12208double_quote_subst='s/\(["`\\]\)/\\\1/g'
12209
12210# Sed substitution to delay expansion of an escaped shell variable in a
12211# double_quote_subst'ed string.
12212delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12213
12214# Sed substitution to delay expansion of an escaped single quote.
12215delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12216
12217# Sed substitution to avoid accidental globbing in evaled expressions
12218no_glob_subst='s/\*/\\\*/g'
12219
cristy3ed852e2009-09-05 21:47:34 +000012220# Global variables:
12221ofile=libtool
12222can_build_shared=yes
12223
12224# All known linkers require a `.a' archive for static linking (except MSVC,
12225# which needs '.lib').
12226libext=a
12227
12228with_gnu_ld="$lt_cv_prog_gnu_ld"
12229
12230old_CC="$CC"
12231old_CFLAGS="$CFLAGS"
12232
12233# Set sane defaults for various variables
12234test -z "$CC" && CC=cc
12235test -z "$LTCC" && LTCC=$CC
12236test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12237test -z "$LD" && LD=ld
12238test -z "$ac_objext" && ac_objext=o
12239
12240for cc_temp in $compiler""; do
12241 case $cc_temp in
12242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12244 \-*) ;;
12245 *) break;;
12246 esac
12247done
cristy18304f92009-11-22 15:48:26 +000012248cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012249
12250
12251# Only perform the check for file, if the check method requires it
12252test -z "$MAGIC_CMD" && MAGIC_CMD=file
12253case $deplibs_check_method in
12254file_magic*)
12255 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012257$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012258if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012259 $as_echo_n "(cached) " >&6
12260else
12261 case $MAGIC_CMD in
12262[\\/*] | ?:[\\/]*)
12263 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12264 ;;
12265*)
12266 lt_save_MAGIC_CMD="$MAGIC_CMD"
12267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12269 for ac_dir in $ac_dummy; do
12270 IFS="$lt_save_ifs"
12271 test -z "$ac_dir" && ac_dir=.
12272 if test -f $ac_dir/${ac_tool_prefix}file; then
12273 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12274 if test -n "$file_magic_test_file"; then
12275 case $deplibs_check_method in
12276 "file_magic "*)
12277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12280 $EGREP "$file_magic_regex" > /dev/null; then
12281 :
12282 else
12283 cat <<_LT_EOF 1>&2
12284
12285*** Warning: the command libtool uses to detect shared libraries,
12286*** $file_magic_cmd, produces output that libtool cannot recognize.
12287*** The result is that libtool may fail to recognize shared libraries
12288*** as such. This will affect the creation of libtool libraries that
12289*** depend on shared libraries, but programs linked with such libtool
12290*** libraries will work regardless of this problem. Nevertheless, you
12291*** may want to report the problem to your system manager and/or to
12292*** bug-libtool@gnu.org
12293
12294_LT_EOF
12295 fi ;;
12296 esac
12297 fi
12298 break
12299 fi
12300 done
12301 IFS="$lt_save_ifs"
12302 MAGIC_CMD="$lt_save_MAGIC_CMD"
12303 ;;
12304esac
12305fi
12306
12307MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12308if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012310$as_echo "$MAGIC_CMD" >&6; }
12311else
cristy8b350f62009-11-15 23:12:43 +000012312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012313$as_echo "no" >&6; }
12314fi
12315
12316
12317
12318
12319
12320if test -z "$lt_cv_path_MAGIC_CMD"; then
12321 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012323$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012324if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012325 $as_echo_n "(cached) " >&6
12326else
12327 case $MAGIC_CMD in
12328[\\/*] | ?:[\\/]*)
12329 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12330 ;;
12331*)
12332 lt_save_MAGIC_CMD="$MAGIC_CMD"
12333 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12334 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12335 for ac_dir in $ac_dummy; do
12336 IFS="$lt_save_ifs"
12337 test -z "$ac_dir" && ac_dir=.
12338 if test -f $ac_dir/file; then
12339 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12340 if test -n "$file_magic_test_file"; then
12341 case $deplibs_check_method in
12342 "file_magic "*)
12343 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12344 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12345 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12346 $EGREP "$file_magic_regex" > /dev/null; then
12347 :
12348 else
12349 cat <<_LT_EOF 1>&2
12350
12351*** Warning: the command libtool uses to detect shared libraries,
12352*** $file_magic_cmd, produces output that libtool cannot recognize.
12353*** The result is that libtool may fail to recognize shared libraries
12354*** as such. This will affect the creation of libtool libraries that
12355*** depend on shared libraries, but programs linked with such libtool
12356*** libraries will work regardless of this problem. Nevertheless, you
12357*** may want to report the problem to your system manager and/or to
12358*** bug-libtool@gnu.org
12359
12360_LT_EOF
12361 fi ;;
12362 esac
12363 fi
12364 break
12365 fi
12366 done
12367 IFS="$lt_save_ifs"
12368 MAGIC_CMD="$lt_save_MAGIC_CMD"
12369 ;;
12370esac
12371fi
12372
12373MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12374if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012376$as_echo "$MAGIC_CMD" >&6; }
12377else
cristy8b350f62009-11-15 23:12:43 +000012378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012379$as_echo "no" >&6; }
12380fi
12381
12382
12383 else
12384 MAGIC_CMD=:
12385 fi
12386fi
12387
12388 fi
12389 ;;
12390esac
12391
12392# Use C for the default configuration in the libtool script
12393
12394lt_save_CC="$CC"
12395ac_ext=c
12396ac_cpp='$CPP $CPPFLAGS'
12397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399ac_compiler_gnu=$ac_cv_c_compiler_gnu
12400
12401
12402# Source file extension for C test sources.
12403ac_ext=c
12404
12405# Object file extension for compiled C test sources.
12406objext=o
12407objext=$objext
12408
12409# Code to be used in simple compile tests
12410lt_simple_compile_test_code="int some_variable = 0;"
12411
12412# Code to be used in simple link tests
12413lt_simple_link_test_code='int main(){return(0);}'
12414
12415
12416
12417
12418
12419
12420
12421# If no C compiler was specified, use CC.
12422LTCC=${LTCC-"$CC"}
12423
12424# If no C compiler flags were specified, use CFLAGS.
12425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12426
12427# Allow CC to be a program name with arguments.
12428compiler=$CC
12429
12430# Save the default compiler, since it gets overwritten when the other
12431# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12432compiler_DEFAULT=$CC
12433
12434# save warnings/boilerplate of simple test code
12435ac_outfile=conftest.$ac_objext
12436echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12437eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12438_lt_compiler_boilerplate=`cat conftest.err`
12439$RM conftest*
12440
12441ac_outfile=conftest.$ac_objext
12442echo "$lt_simple_link_test_code" >conftest.$ac_ext
12443eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12444_lt_linker_boilerplate=`cat conftest.err`
12445$RM -r conftest*
12446
12447
12448## CAVEAT EMPTOR:
12449## There is no encapsulation within the following macros, do not change
12450## the running order or otherwise move them around unless you know exactly
12451## what you are doing...
12452if test -n "$compiler"; then
12453
12454lt_prog_compiler_no_builtin_flag=
12455
12456if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012457 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012458
cristy8b350f62009-11-15 23:12:43 +000012459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012460$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012461if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012462 $as_echo_n "(cached) " >&6
12463else
12464 lt_cv_prog_compiler_rtti_exceptions=no
12465 ac_outfile=conftest.$ac_objext
12466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12467 lt_compiler_flag="-fno-rtti -fno-exceptions"
12468 # Insert the option either (1) after the last *FLAGS variable, or
12469 # (2) before a word containing "conftest.", or (3) at the end.
12470 # Note that $ac_compile itself does not contain backslashes and begins
12471 # with a dollar sign (not a hyphen), so the echo should work correctly.
12472 # The option is referenced via a variable to avoid confusing sed.
12473 lt_compile=`echo "$ac_compile" | $SED \
12474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12476 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000012477 (eval echo "\"\$as_me:12477: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012478 (eval "$lt_compile" 2>conftest.err)
12479 ac_status=$?
12480 cat conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000012481 echo "$as_me:12481: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012482 if (exit $ac_status) && test -s "$ac_outfile"; then
12483 # The compiler can only warn and ignore the option if not recognized
12484 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12488 lt_cv_prog_compiler_rtti_exceptions=yes
12489 fi
12490 fi
12491 $RM conftest*
12492
12493fi
cristy8b350f62009-11-15 23:12:43 +000012494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012495$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12496
12497if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12498 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12499else
12500 :
12501fi
12502
12503fi
12504
12505
12506
12507
12508
12509
12510 lt_prog_compiler_wl=
12511lt_prog_compiler_pic=
12512lt_prog_compiler_static=
12513
cristy8b350f62009-11-15 23:12:43 +000012514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012515$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12516
12517 if test "$GCC" = yes; then
12518 lt_prog_compiler_wl='-Wl,'
12519 lt_prog_compiler_static='-static'
12520
12521 case $host_os in
12522 aix*)
12523 # All AIX code is PIC.
12524 if test "$host_cpu" = ia64; then
12525 # AIX 5 now supports IA64 processor
12526 lt_prog_compiler_static='-Bstatic'
12527 fi
12528 ;;
12529
12530 amigaos*)
12531 case $host_cpu in
12532 powerpc)
12533 # see comment about AmigaOS4 .so support
12534 lt_prog_compiler_pic='-fPIC'
12535 ;;
12536 m68k)
12537 # FIXME: we need at least 68020 code to build shared libraries, but
12538 # adding the `-m68020' flag to GCC prevents building anything better,
12539 # like `-m68040'.
12540 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12541 ;;
12542 esac
12543 ;;
12544
12545 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12546 # PIC is the default for these OSes.
12547 ;;
12548
12549 mingw* | cygwin* | pw32* | os2* | cegcc*)
12550 # This hack is so that the source file can tell whether it is being
12551 # built for inclusion in a dll (and should export symbols for example).
12552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12553 # (--disable-auto-import) libraries
12554 lt_prog_compiler_pic='-DDLL_EXPORT'
12555 ;;
12556
12557 darwin* | rhapsody*)
12558 # PIC is the default on this platform
12559 # Common symbols not allowed in MH_DYLIB files
12560 lt_prog_compiler_pic='-fno-common'
12561 ;;
12562
12563 hpux*)
12564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12566 # sets the default TLS model and affects inlining.
12567 case $host_cpu in
12568 hppa*64*)
12569 # +Z the default
12570 ;;
12571 *)
12572 lt_prog_compiler_pic='-fPIC'
12573 ;;
12574 esac
12575 ;;
12576
12577 interix[3-9]*)
12578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12579 # Instead, we relocate shared libraries at runtime.
12580 ;;
12581
12582 msdosdjgpp*)
12583 # Just because we use GCC doesn't mean we suddenly get shared libraries
12584 # on systems that don't support them.
12585 lt_prog_compiler_can_build_shared=no
12586 enable_shared=no
12587 ;;
12588
12589 *nto* | *qnx*)
12590 # QNX uses GNU C++, but need to define -shared option too, otherwise
12591 # it will coredump.
12592 lt_prog_compiler_pic='-fPIC -shared'
12593 ;;
12594
12595 sysv4*MP*)
12596 if test -d /usr/nec; then
12597 lt_prog_compiler_pic=-Kconform_pic
12598 fi
12599 ;;
12600
12601 *)
12602 lt_prog_compiler_pic='-fPIC'
12603 ;;
12604 esac
12605 else
12606 # PORTME Check for flag to pass linker flags through the system compiler.
12607 case $host_os in
12608 aix*)
12609 lt_prog_compiler_wl='-Wl,'
12610 if test "$host_cpu" = ia64; then
12611 # AIX 5 now supports IA64 processor
12612 lt_prog_compiler_static='-Bstatic'
12613 else
12614 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12615 fi
12616 ;;
12617
12618 mingw* | cygwin* | pw32* | os2* | cegcc*)
12619 # This hack is so that the source file can tell whether it is being
12620 # built for inclusion in a dll (and should export symbols for example).
12621 lt_prog_compiler_pic='-DDLL_EXPORT'
12622 ;;
12623
12624 hpux9* | hpux10* | hpux11*)
12625 lt_prog_compiler_wl='-Wl,'
12626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12627 # not for PA HP-UX.
12628 case $host_cpu in
12629 hppa*64*|ia64*)
12630 # +Z the default
12631 ;;
12632 *)
12633 lt_prog_compiler_pic='+Z'
12634 ;;
12635 esac
12636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12637 lt_prog_compiler_static='${wl}-a ${wl}archive'
12638 ;;
12639
12640 irix5* | irix6* | nonstopux*)
12641 lt_prog_compiler_wl='-Wl,'
12642 # PIC (with -KPIC) is the default.
12643 lt_prog_compiler_static='-non_shared'
12644 ;;
12645
cristy18304f92009-11-22 15:48:26 +000012646 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000012647 case $cc_basename in
12648 # old Intel for x86_64 which still supported -KPIC.
12649 ecc*)
12650 lt_prog_compiler_wl='-Wl,'
12651 lt_prog_compiler_pic='-KPIC'
12652 lt_prog_compiler_static='-static'
12653 ;;
12654 # icc used to be incompatible with GCC.
12655 # ICC 10 doesn't accept -KPIC any more.
12656 icc* | ifort*)
12657 lt_prog_compiler_wl='-Wl,'
12658 lt_prog_compiler_pic='-fPIC'
12659 lt_prog_compiler_static='-static'
12660 ;;
12661 # Lahey Fortran 8.1.
12662 lf95*)
12663 lt_prog_compiler_wl='-Wl,'
12664 lt_prog_compiler_pic='--shared'
12665 lt_prog_compiler_static='--static'
12666 ;;
cristy18304f92009-11-22 15:48:26 +000012667 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000012668 # Portland Group compilers (*not* the Pentium gcc compiler,
12669 # which looks to be a dead project)
12670 lt_prog_compiler_wl='-Wl,'
12671 lt_prog_compiler_pic='-fpic'
12672 lt_prog_compiler_static='-Bstatic'
12673 ;;
12674 ccc*)
12675 lt_prog_compiler_wl='-Wl,'
12676 # All Alpha code is PIC.
12677 lt_prog_compiler_static='-non_shared'
12678 ;;
cristy18304f92009-11-22 15:48:26 +000012679 xl*)
12680 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000012681 lt_prog_compiler_wl='-Wl,'
12682 lt_prog_compiler_pic='-qpic'
12683 lt_prog_compiler_static='-qstaticlink'
12684 ;;
12685 *)
12686 case `$CC -V 2>&1 | sed 5q` in
12687 *Sun\ C*)
12688 # Sun C 5.9
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 lt_prog_compiler_wl='-Wl,'
12692 ;;
cristy18304f92009-11-22 15:48:26 +000012693 *Sun\ F*)
12694 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12695 lt_prog_compiler_pic='-KPIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 lt_prog_compiler_wl=''
12698 ;;
cristy3ed852e2009-09-05 21:47:34 +000012699 esac
12700 ;;
12701 esac
12702 ;;
12703
12704 newsos6)
12705 lt_prog_compiler_pic='-KPIC'
12706 lt_prog_compiler_static='-Bstatic'
12707 ;;
12708
12709 *nto* | *qnx*)
12710 # QNX uses GNU C++, but need to define -shared option too, otherwise
12711 # it will coredump.
12712 lt_prog_compiler_pic='-fPIC -shared'
12713 ;;
12714
12715 osf3* | osf4* | osf5*)
12716 lt_prog_compiler_wl='-Wl,'
12717 # All OSF/1 code is PIC.
12718 lt_prog_compiler_static='-non_shared'
12719 ;;
12720
12721 rdos*)
12722 lt_prog_compiler_static='-non_shared'
12723 ;;
12724
12725 solaris*)
12726 lt_prog_compiler_pic='-KPIC'
12727 lt_prog_compiler_static='-Bstatic'
12728 case $cc_basename in
12729 f77* | f90* | f95*)
12730 lt_prog_compiler_wl='-Qoption ld ';;
12731 *)
12732 lt_prog_compiler_wl='-Wl,';;
12733 esac
12734 ;;
12735
12736 sunos4*)
12737 lt_prog_compiler_wl='-Qoption ld '
12738 lt_prog_compiler_pic='-PIC'
12739 lt_prog_compiler_static='-Bstatic'
12740 ;;
12741
12742 sysv4 | sysv4.2uw2* | sysv4.3*)
12743 lt_prog_compiler_wl='-Wl,'
12744 lt_prog_compiler_pic='-KPIC'
12745 lt_prog_compiler_static='-Bstatic'
12746 ;;
12747
12748 sysv4*MP*)
12749 if test -d /usr/nec ;then
12750 lt_prog_compiler_pic='-Kconform_pic'
12751 lt_prog_compiler_static='-Bstatic'
12752 fi
12753 ;;
12754
12755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12756 lt_prog_compiler_wl='-Wl,'
12757 lt_prog_compiler_pic='-KPIC'
12758 lt_prog_compiler_static='-Bstatic'
12759 ;;
12760
12761 unicos*)
12762 lt_prog_compiler_wl='-Wl,'
12763 lt_prog_compiler_can_build_shared=no
12764 ;;
12765
12766 uts4*)
12767 lt_prog_compiler_pic='-pic'
12768 lt_prog_compiler_static='-Bstatic'
12769 ;;
12770
12771 *)
12772 lt_prog_compiler_can_build_shared=no
12773 ;;
12774 esac
12775 fi
12776
12777case $host_os in
12778 # For platforms which do not support PIC, -DPIC is meaningless:
12779 *djgpp*)
12780 lt_prog_compiler_pic=
12781 ;;
12782 *)
12783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12784 ;;
12785esac
cristy8b350f62009-11-15 23:12:43 +000012786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000012787$as_echo "$lt_prog_compiler_pic" >&6; }
12788
12789
12790
12791
12792
12793
12794#
12795# Check to make sure the PIC flag actually works.
12796#
12797if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000012798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012799$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012800if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012801 $as_echo_n "(cached) " >&6
12802else
12803 lt_cv_prog_compiler_pic_works=no
12804 ac_outfile=conftest.$ac_objext
12805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12807 # Insert the option either (1) after the last *FLAGS variable, or
12808 # (2) before a word containing "conftest.", or (3) at the end.
12809 # Note that $ac_compile itself does not contain backslashes and begins
12810 # with a dollar sign (not a hyphen), so the echo should work correctly.
12811 # The option is referenced via a variable to avoid confusing sed.
12812 lt_compile=`echo "$ac_compile" | $SED \
12813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12815 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000012816 (eval echo "\"\$as_me:12816: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012817 (eval "$lt_compile" 2>conftest.err)
12818 ac_status=$?
12819 cat conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000012820 echo "$as_me:12820: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012821 if (exit $ac_status) && test -s "$ac_outfile"; then
12822 # The compiler can only warn and ignore the option if not recognized
12823 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012824 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12827 lt_cv_prog_compiler_pic_works=yes
12828 fi
12829 fi
12830 $RM conftest*
12831
12832fi
cristy8b350f62009-11-15 23:12:43 +000012833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012834$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12835
12836if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12837 case $lt_prog_compiler_pic in
12838 "" | " "*) ;;
12839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12840 esac
12841else
12842 lt_prog_compiler_pic=
12843 lt_prog_compiler_can_build_shared=no
12844fi
12845
12846fi
12847
12848
12849
12850
12851
12852
12853#
12854# Check to make sure the static flag actually works.
12855#
12856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000012857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012859if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012860 $as_echo_n "(cached) " >&6
12861else
12862 lt_cv_prog_compiler_static_works=no
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867 # The linker can only warn and ignore the option if not recognized
12868 # So say no if there are warnings
12869 if test -s conftest.err; then
12870 # Append any errors to the config.log.
12871 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000012872 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874 if diff conftest.exp conftest.er2 >/dev/null; then
12875 lt_cv_prog_compiler_static_works=yes
12876 fi
12877 else
12878 lt_cv_prog_compiler_static_works=yes
12879 fi
12880 fi
12881 $RM -r conftest*
12882 LDFLAGS="$save_LDFLAGS"
12883
12884fi
cristy8b350f62009-11-15 23:12:43 +000012885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000012886$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12887
12888if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12889 :
12890else
12891 lt_prog_compiler_static=
12892fi
12893
12894
12895
12896
12897
12898
12899
cristy8b350f62009-11-15 23:12:43 +000012900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012902if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012903 $as_echo_n "(cached) " >&6
12904else
12905 lt_cv_prog_compiler_c_o=no
12906 $RM -r conftest 2>/dev/null
12907 mkdir conftest
12908 cd conftest
12909 mkdir out
12910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12911
12912 lt_compiler_flag="-o out/conftest2.$ac_objext"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 lt_compile=`echo "$ac_compile" | $SED \
12918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000012921 (eval echo "\"\$as_me:12921: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012922 (eval "$lt_compile" 2>out/conftest.err)
12923 ac_status=$?
12924 cat out/conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000012925 echo "$as_me:12925: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12927 then
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_c_o=yes
12934 fi
12935 fi
12936 chmod u+w . 2>&5
12937 $RM conftest*
12938 # SGI C++ compiler will create directory out/ii_files/ for
12939 # template instantiation
12940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12941 $RM out/* && rmdir out
12942 cd ..
12943 $RM -r conftest
12944 $RM conftest*
12945
12946fi
cristy8b350f62009-11-15 23:12:43 +000012947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000012948$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12949
12950
12951
12952
12953
12954
cristy8b350f62009-11-15 23:12:43 +000012955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012957if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012958 $as_echo_n "(cached) " >&6
12959else
12960 lt_cv_prog_compiler_c_o=no
12961 $RM -r conftest 2>/dev/null
12962 mkdir conftest
12963 cd conftest
12964 mkdir out
12965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12966
12967 lt_compiler_flag="-o out/conftest2.$ac_objext"
12968 # Insert the option either (1) after the last *FLAGS variable, or
12969 # (2) before a word containing "conftest.", or (3) at the end.
12970 # Note that $ac_compile itself does not contain backslashes and begins
12971 # with a dollar sign (not a hyphen), so the echo should work correctly.
12972 lt_compile=`echo "$ac_compile" | $SED \
12973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000012976 (eval echo "\"\$as_me:12976: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012977 (eval "$lt_compile" 2>out/conftest.err)
12978 ac_status=$?
12979 cat out/conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000012980 echo "$as_me:12980: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12982 then
12983 # The compiler can only warn and ignore the option if not recognized
12984 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000012985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000012986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12988 lt_cv_prog_compiler_c_o=yes
12989 fi
12990 fi
12991 chmod u+w . 2>&5
12992 $RM conftest*
12993 # SGI C++ compiler will create directory out/ii_files/ for
12994 # template instantiation
12995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12996 $RM out/* && rmdir out
12997 cd ..
12998 $RM -r conftest
12999 $RM conftest*
13000
13001fi
cristy8b350f62009-11-15 23:12:43 +000013002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013003$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13004
13005
13006
13007
13008hard_links="nottested"
13009if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13010 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013012$as_echo_n "checking if we can lock with hard links... " >&6; }
13013 hard_links=yes
13014 $RM conftest*
13015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13016 touch conftest.a
13017 ln conftest.a conftest.b 2>&5 || hard_links=no
13018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013020$as_echo "$hard_links" >&6; }
13021 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013022 { $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 +000013023$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13024 need_locks=warn
13025 fi
13026else
13027 need_locks=no
13028fi
13029
13030
13031
13032
13033
13034
cristy8b350f62009-11-15 23:12:43 +000013035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13037
13038 runpath_var=
13039 allow_undefined_flag=
13040 always_export_symbols=no
13041 archive_cmds=
13042 archive_expsym_cmds=
13043 compiler_needs_object=no
13044 enable_shared_with_static_runtimes=no
13045 export_dynamic_flag_spec=
13046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13047 hardcode_automatic=no
13048 hardcode_direct=no
13049 hardcode_direct_absolute=no
13050 hardcode_libdir_flag_spec=
13051 hardcode_libdir_flag_spec_ld=
13052 hardcode_libdir_separator=
13053 hardcode_minus_L=no
13054 hardcode_shlibpath_var=unsupported
13055 inherit_rpath=no
13056 link_all_deplibs=unknown
13057 module_cmds=
13058 module_expsym_cmds=
13059 old_archive_from_new_cmds=
13060 old_archive_from_expsyms_cmds=
13061 thread_safe_flag_spec=
13062 whole_archive_flag_spec=
13063 # include_expsyms should be a list of space-separated symbols to be *always*
13064 # included in the symbol list
13065 include_expsyms=
13066 # exclude_expsyms can be an extended regexp of symbols to exclude
13067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13069 # as well as any symbol that contains `d'.
13070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13072 # platforms (ab)use it in PIC code, but their linkers get confused if
13073 # the symbol is explicitly referenced. Since portable code cannot
13074 # rely on this symbol name, it's probably fine to never include it in
13075 # preloaded symbol tables.
13076 # Exclude shared library initialization/finalization symbols.
13077 extract_expsyms_cmds=
13078
13079 case $host_os in
13080 cygwin* | mingw* | pw32* | cegcc*)
13081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13082 # When not using gcc, we currently assume that we are using
13083 # Microsoft Visual C++.
13084 if test "$GCC" != yes; then
13085 with_gnu_ld=no
13086 fi
13087 ;;
13088 interix*)
13089 # we just hope/assume this is gcc and not c89 (= MSVC++)
13090 with_gnu_ld=yes
13091 ;;
13092 openbsd*)
13093 with_gnu_ld=no
13094 ;;
13095 esac
13096
13097 ld_shlibs=yes
13098 if test "$with_gnu_ld" = yes; then
13099 # If archive_cmds runs LD, not CC, wlarc should be empty
13100 wlarc='${wl}'
13101
13102 # Set some defaults for GNU ld with shared library support. These
13103 # are reset later if shared libraries are not supported. Putting them
13104 # here allows them to be overridden if necessary.
13105 runpath_var=LD_RUN_PATH
13106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13107 export_dynamic_flag_spec='${wl}--export-dynamic'
13108 # ancient GNU ld didn't support --whole-archive et. al.
13109 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13110 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13111 else
13112 whole_archive_flag_spec=
13113 fi
13114 supports_anon_versioning=no
13115 case `$LD -v 2>&1` in
13116 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13117 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13118 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13119 *\ 2.11.*) ;; # other 2.11 versions
13120 *) supports_anon_versioning=yes ;;
13121 esac
13122
13123 # See if GNU ld supports shared libraries.
13124 case $host_os in
13125 aix[3-9]*)
13126 # On AIX/PPC, the GNU linker is very broken
13127 if test "$host_cpu" != ia64; then
13128 ld_shlibs=no
13129 cat <<_LT_EOF 1>&2
13130
cristy18304f92009-11-22 15:48:26 +000013131*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013132*** to be unable to reliably create shared libraries on AIX.
13133*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013134*** really care for shared libraries, you may want to modify your PATH
13135*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013136
13137_LT_EOF
13138 fi
13139 ;;
13140
13141 amigaos*)
13142 case $host_cpu in
13143 powerpc)
13144 # see comment about AmigaOS4 .so support
13145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13146 archive_expsym_cmds=''
13147 ;;
13148 m68k)
13149 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)'
13150 hardcode_libdir_flag_spec='-L$libdir'
13151 hardcode_minus_L=yes
13152 ;;
13153 esac
13154 ;;
13155
13156 beos*)
13157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13158 allow_undefined_flag=unsupported
13159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13160 # support --undefined. This deserves some investigation. FIXME
13161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13162 else
13163 ld_shlibs=no
13164 fi
13165 ;;
13166
13167 cygwin* | mingw* | pw32* | cegcc*)
13168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13169 # as there is no search path for DLLs.
13170 hardcode_libdir_flag_spec='-L$libdir'
13171 allow_undefined_flag=unsupported
13172 always_export_symbols=no
13173 enable_shared_with_static_runtimes=yes
13174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13175
13176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13178 # If the export-symbols file already is a .def file (1st line
13179 # is EXPORTS), use it as is; otherwise, prepend...
13180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13181 cp $export_symbols $output_objdir/$soname.def;
13182 else
13183 echo EXPORTS > $output_objdir/$soname.def;
13184 cat $export_symbols >> $output_objdir/$soname.def;
13185 fi~
13186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13187 else
13188 ld_shlibs=no
13189 fi
13190 ;;
13191
13192 interix[3-9]*)
13193 hardcode_direct=no
13194 hardcode_shlibpath_var=no
13195 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13196 export_dynamic_flag_spec='${wl}-E'
13197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13198 # Instead, shared libraries are loaded at an image base (0x10000000 by
13199 # default) and relocated if they conflict, which is a slow very memory
13200 # consuming and fragmenting process. To avoid this, we pick a random,
13201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13203 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13204 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'
13205 ;;
13206
cristy18304f92009-11-22 15:48:26 +000013207 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013208 tmp_diet=no
13209 if test "$host_os" = linux-dietlibc; then
13210 case $cc_basename in
13211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13212 esac
13213 fi
13214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13215 && test "$tmp_diet" = no
13216 then
13217 tmp_addflag=
13218 tmp_sharedflag='-shared'
13219 case $cc_basename,$host_cpu in
13220 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013221 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 +000013222 tmp_addflag=' $pic_flag'
13223 ;;
cristy18304f92009-11-22 15:48:26 +000013224 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13225 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 +000013226 tmp_addflag=' $pic_flag -Mnomain' ;;
13227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13228 tmp_addflag=' -i_dynamic' ;;
13229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13230 tmp_addflag=' -i_dynamic -nofor_main' ;;
13231 ifc* | ifort*) # Intel Fortran compiler
13232 tmp_addflag=' -nofor_main' ;;
13233 lf95*) # Lahey Fortran 8.1
13234 whole_archive_flag_spec=
13235 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013236 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013237 tmp_sharedflag='-qmkshrobj'
13238 tmp_addflag= ;;
13239 esac
13240 case `$CC -V 2>&1 | sed 5q` in
13241 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013242 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 +000013243 compiler_needs_object=yes
13244 tmp_sharedflag='-G' ;;
13245 *Sun\ F*) # Sun Fortran 8.3
13246 tmp_sharedflag='-G' ;;
13247 esac
13248 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249
13250 if test "x$supports_anon_versioning" = xyes; then
13251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13253 echo "local: *; };" >> $output_objdir/$libname.ver~
13254 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13255 fi
13256
13257 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013258 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013259 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13260 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13261 hardcode_libdir_flag_spec=
13262 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13263 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13264 if test "x$supports_anon_versioning" = xyes; then
13265 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13267 echo "local: *; };" >> $output_objdir/$libname.ver~
13268 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13269 fi
13270 ;;
13271 esac
13272 else
13273 ld_shlibs=no
13274 fi
13275 ;;
13276
13277 netbsd*)
13278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13280 wlarc=
13281 else
13282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13284 fi
13285 ;;
13286
13287 solaris*)
13288 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13289 ld_shlibs=no
13290 cat <<_LT_EOF 1>&2
13291
13292*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13293*** create shared libraries on Solaris systems. Therefore, libtool
13294*** is disabling shared libraries support. We urge you to upgrade GNU
13295*** binutils to release 2.9.1 or newer. Another option is to modify
13296*** your PATH or compiler configuration so that the native linker is
13297*** used, and then restart.
13298
13299_LT_EOF
13300 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13303 else
13304 ld_shlibs=no
13305 fi
13306 ;;
13307
13308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13309 case `$LD -v 2>&1` in
13310 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13311 ld_shlibs=no
13312 cat <<_LT_EOF 1>&2
13313
13314*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13315*** reliably create shared libraries on SCO systems. Therefore, libtool
13316*** is disabling shared libraries support. We urge you to upgrade GNU
13317*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13318*** your PATH or compiler configuration so that the native linker is
13319*** used, and then restart.
13320
13321_LT_EOF
13322 ;;
13323 *)
13324 # For security reasons, it is highly recommended that you always
13325 # use absolute paths for naming shared libraries, and exclude the
13326 # DT_RUNPATH tag from executables and libraries. But doing so
13327 # requires that you compile everything twice, which is a pain.
13328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13332 else
13333 ld_shlibs=no
13334 fi
13335 ;;
13336 esac
13337 ;;
13338
13339 sunos4*)
13340 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13341 wlarc=
13342 hardcode_direct=yes
13343 hardcode_shlibpath_var=no
13344 ;;
13345
13346 *)
13347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13350 else
13351 ld_shlibs=no
13352 fi
13353 ;;
13354 esac
13355
13356 if test "$ld_shlibs" = no; then
13357 runpath_var=
13358 hardcode_libdir_flag_spec=
13359 export_dynamic_flag_spec=
13360 whole_archive_flag_spec=
13361 fi
13362 else
13363 # PORTME fill in a description of your system's linker (not GNU ld)
13364 case $host_os in
13365 aix3*)
13366 allow_undefined_flag=unsupported
13367 always_export_symbols=yes
13368 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'
13369 # Note: this linker hardcodes the directories in LIBPATH if there
13370 # are no directories specified by -L.
13371 hardcode_minus_L=yes
13372 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13373 # Neither direct hardcoding nor static linking is supported with a
13374 # broken collect2.
13375 hardcode_direct=unsupported
13376 fi
13377 ;;
13378
13379 aix[4-9]*)
13380 if test "$host_cpu" = ia64; then
13381 # On IA64, the linker does run time linking by default, so we don't
13382 # have to do anything special.
13383 aix_use_runtimelinking=no
13384 exp_sym_flag='-Bexport'
13385 no_entry_flag=""
13386 else
13387 # If we're using GNU nm, then we don't want the "-C" option.
13388 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013390 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 +000013391 else
13392 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'
13393 fi
13394 aix_use_runtimelinking=no
13395
13396 # Test if we are trying to use run time linking or normal
13397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13398 # need to do runtime linking.
13399 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13400 for ld_flag in $LDFLAGS; do
13401 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13402 aix_use_runtimelinking=yes
13403 break
13404 fi
13405 done
13406 ;;
13407 esac
13408
13409 exp_sym_flag='-bexport'
13410 no_entry_flag='-bnoentry'
13411 fi
13412
13413 # When large executables or shared objects are built, AIX ld can
13414 # have problems creating the table of contents. If linking a library
13415 # or program results in "error TOC overflow" add -mminimal-toc to
13416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13418
13419 archive_cmds=''
13420 hardcode_direct=yes
13421 hardcode_direct_absolute=yes
13422 hardcode_libdir_separator=':'
13423 link_all_deplibs=yes
13424 file_list_spec='${wl}-f,'
13425
13426 if test "$GCC" = yes; then
13427 case $host_os in aix4.[012]|aix4.[012].*)
13428 # We only want to do this on AIX 4.2 and lower, the check
13429 # below for broken collect2 doesn't work under 4.3+
13430 collect2name=`${CC} -print-prog-name=collect2`
13431 if test -f "$collect2name" &&
13432 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13433 then
13434 # We have reworked collect2
13435 :
13436 else
13437 # We have old collect2
13438 hardcode_direct=unsupported
13439 # It fails to find uninstalled libraries when the uninstalled
13440 # path is not listed in the libpath. Setting hardcode_minus_L
13441 # to unsupported forces relinking
13442 hardcode_minus_L=yes
13443 hardcode_libdir_flag_spec='-L$libdir'
13444 hardcode_libdir_separator=
13445 fi
13446 ;;
13447 esac
13448 shared_flag='-shared'
13449 if test "$aix_use_runtimelinking" = yes; then
13450 shared_flag="$shared_flag "'${wl}-G'
13451 fi
13452 else
13453 # not using gcc
13454 if test "$host_cpu" = ia64; then
13455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13456 # chokes on -Wl,-G. The following line is correct:
13457 shared_flag='-G'
13458 else
13459 if test "$aix_use_runtimelinking" = yes; then
13460 shared_flag='${wl}-G'
13461 else
13462 shared_flag='${wl}-bM:SRE'
13463 fi
13464 fi
13465 fi
13466
13467 export_dynamic_flag_spec='${wl}-bexpall'
13468 # It seems that -bexpall does not export symbols beginning with
13469 # underscore (_), so it is better to generate a list of symbols to export.
13470 always_export_symbols=yes
13471 if test "$aix_use_runtimelinking" = yes; then
13472 # Warning - without using the other runtime loading flags (-brtl),
13473 # -berok will link without error, but may produce a broken library.
13474 allow_undefined_flag='-berok'
13475 # Determine the default libpath from the value encoded in an
13476 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013478/* end confdefs.h. */
13479
13480int
13481main ()
13482{
13483
13484 ;
13485 return 0;
13486}
13487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013489
13490lt_aix_libpath_sed='
13491 /Import File Strings/,/^$/ {
13492 /^0/ {
13493 s/^0 *\(.*\)$/\1/
13494 p
13495 }
13496 }'
13497aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13498# Check for a 64-bit object if we didn't find anything.
13499if test -z "$aix_libpath"; then
13500 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13501fi
cristy3ed852e2009-09-05 21:47:34 +000013502fi
cristy8b350f62009-11-15 23:12:43 +000013503rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013505if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13506
13507 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000013508 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 +000013509 else
13510 if test "$host_cpu" = ia64; then
13511 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13512 allow_undefined_flag="-z nodefs"
13513 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"
13514 else
13515 # Determine the default libpath from the value encoded in an
13516 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013518/* end confdefs.h. */
13519
13520int
13521main ()
13522{
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013528if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000013529
13530lt_aix_libpath_sed='
13531 /Import File Strings/,/^$/ {
13532 /^0/ {
13533 s/^0 *\(.*\)$/\1/
13534 p
13535 }
13536 }'
13537aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13538# Check for a 64-bit object if we didn't find anything.
13539if test -z "$aix_libpath"; then
13540 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13541fi
cristy3ed852e2009-09-05 21:47:34 +000013542fi
cristy8b350f62009-11-15 23:12:43 +000013543rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013545if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13546
13547 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13548 # Warning - without using the other run time loading flags,
13549 # -berok will link without error, but may produce a broken library.
13550 no_undefined_flag=' ${wl}-bernotok'
13551 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000013552 # Exported symbols can be pulled into shared objects from archives
13553 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000013554 archive_cmds_need_lc=yes
13555 # This is similar to how AIX traditionally builds its shared libraries.
13556 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'
13557 fi
13558 fi
13559 ;;
13560
13561 amigaos*)
13562 case $host_cpu in
13563 powerpc)
13564 # see comment about AmigaOS4 .so support
13565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13566 archive_expsym_cmds=''
13567 ;;
13568 m68k)
13569 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)'
13570 hardcode_libdir_flag_spec='-L$libdir'
13571 hardcode_minus_L=yes
13572 ;;
13573 esac
13574 ;;
13575
13576 bsdi[45]*)
13577 export_dynamic_flag_spec=-rdynamic
13578 ;;
13579
13580 cygwin* | mingw* | pw32* | cegcc*)
13581 # When not using gcc, we currently assume that we are using
13582 # Microsoft Visual C++.
13583 # hardcode_libdir_flag_spec is actually meaningless, as there is
13584 # no search path for DLLs.
13585 hardcode_libdir_flag_spec=' '
13586 allow_undefined_flag=unsupported
13587 # Tell ltmain to make .lib files, not .a files.
13588 libext=lib
13589 # Tell ltmain to make .dll files, not .so files.
13590 shrext_cmds=".dll"
13591 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000013592 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000013593 # The linker will automatically build a .lib file if we build a DLL.
13594 old_archive_from_new_cmds='true'
13595 # FIXME: Should let the user specify the lib program.
13596 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13597 fix_srcfile_path='`cygpath -w "$srcfile"`'
13598 enable_shared_with_static_runtimes=yes
13599 ;;
13600
13601 darwin* | rhapsody*)
13602
13603
13604 archive_cmds_need_lc=no
13605 hardcode_direct=no
13606 hardcode_automatic=yes
13607 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000013608 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000013609 link_all_deplibs=yes
13610 allow_undefined_flag="$_lt_dar_allow_undefined"
13611 case $cc_basename in
13612 ifort*) _lt_dar_can_shared=yes ;;
13613 *) _lt_dar_can_shared=$GCC ;;
13614 esac
13615 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000013616 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000013617 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13618 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13619 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}"
13620 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}"
13621
13622 else
13623 ld_shlibs=no
13624 fi
13625
13626 ;;
13627
13628 dgux*)
13629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13630 hardcode_libdir_flag_spec='-L$libdir'
13631 hardcode_shlibpath_var=no
13632 ;;
13633
13634 freebsd1*)
13635 ld_shlibs=no
13636 ;;
13637
13638 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13639 # support. Future versions do this automatically, but an explicit c++rt0.o
13640 # does not break anything, and helps significantly (at the cost of a little
13641 # extra space).
13642 freebsd2.2*)
13643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13644 hardcode_libdir_flag_spec='-R$libdir'
13645 hardcode_direct=yes
13646 hardcode_shlibpath_var=no
13647 ;;
13648
13649 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13650 freebsd2*)
13651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_direct=yes
13653 hardcode_minus_L=yes
13654 hardcode_shlibpath_var=no
13655 ;;
13656
13657 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13658 freebsd* | dragonfly*)
13659 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13660 hardcode_libdir_flag_spec='-R$libdir'
13661 hardcode_direct=yes
13662 hardcode_shlibpath_var=no
13663 ;;
13664
13665 hpux9*)
13666 if test "$GCC" = yes; then
13667 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'
13668 else
13669 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'
13670 fi
13671 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13672 hardcode_libdir_separator=:
13673 hardcode_direct=yes
13674
13675 # hardcode_minus_L: Not really in the search PATH,
13676 # but as the default location of the library.
13677 hardcode_minus_L=yes
13678 export_dynamic_flag_spec='${wl}-E'
13679 ;;
13680
13681 hpux10*)
cristy18304f92009-11-22 15:48:26 +000013682 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013683 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13684 else
13685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13686 fi
13687 if test "$with_gnu_ld" = no; then
13688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13689 hardcode_libdir_flag_spec_ld='+b $libdir'
13690 hardcode_libdir_separator=:
13691 hardcode_direct=yes
13692 hardcode_direct_absolute=yes
13693 export_dynamic_flag_spec='${wl}-E'
13694 # hardcode_minus_L: Not really in the search PATH,
13695 # but as the default location of the library.
13696 hardcode_minus_L=yes
13697 fi
13698 ;;
13699
13700 hpux11*)
cristy18304f92009-11-22 15:48:26 +000013701 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000013702 case $host_cpu in
13703 hppa*64*)
13704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13705 ;;
13706 ia64*)
13707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13708 ;;
13709 *)
13710 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13711 ;;
13712 esac
13713 else
13714 case $host_cpu in
13715 hppa*64*)
13716 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13717 ;;
13718 ia64*)
13719 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13720 ;;
13721 *)
cristy18304f92009-11-22 15:48:26 +000013722 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 +000013723 ;;
13724 esac
13725 fi
13726 if test "$with_gnu_ld" = no; then
13727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13728 hardcode_libdir_separator=:
13729
13730 case $host_cpu in
13731 hppa*64*|ia64*)
13732 hardcode_direct=no
13733 hardcode_shlibpath_var=no
13734 ;;
13735 *)
13736 hardcode_direct=yes
13737 hardcode_direct_absolute=yes
13738 export_dynamic_flag_spec='${wl}-E'
13739
13740 # hardcode_minus_L: Not really in the search PATH,
13741 # but as the default location of the library.
13742 hardcode_minus_L=yes
13743 ;;
13744 esac
13745 fi
13746 ;;
13747
13748 irix5* | irix6* | nonstopux*)
13749 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000013750 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 +000013751 # Try to use the -exported_symbol ld option, if it does not
13752 # work, assume that -exports_file does not work either and
13753 # implicitly export all symbols.
13754 save_LDFLAGS="$LDFLAGS"
13755 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000013756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000013758int foo(void) {}
13759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000013760if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000013761 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 +000013762
cristy3ed852e2009-09-05 21:47:34 +000013763fi
cristy8b350f62009-11-15 23:12:43 +000013764rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013766 LDFLAGS="$save_LDFLAGS"
13767 else
cristy18304f92009-11-22 15:48:26 +000013768 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'
13769 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 +000013770 fi
13771 archive_cmds_need_lc='no'
13772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13773 hardcode_libdir_separator=:
13774 inherit_rpath=yes
13775 link_all_deplibs=yes
13776 ;;
13777
13778 netbsd*)
13779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13781 else
13782 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13783 fi
13784 hardcode_libdir_flag_spec='-R$libdir'
13785 hardcode_direct=yes
13786 hardcode_shlibpath_var=no
13787 ;;
13788
13789 newsos6)
13790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13791 hardcode_direct=yes
13792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13793 hardcode_libdir_separator=:
13794 hardcode_shlibpath_var=no
13795 ;;
13796
13797 *nto* | *qnx*)
13798 ;;
13799
13800 openbsd*)
13801 if test -f /usr/libexec/ld.so; then
13802 hardcode_direct=yes
13803 hardcode_shlibpath_var=no
13804 hardcode_direct_absolute=yes
13805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13806 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13807 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13809 export_dynamic_flag_spec='${wl}-E'
13810 else
13811 case $host_os in
13812 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13814 hardcode_libdir_flag_spec='-R$libdir'
13815 ;;
13816 *)
13817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13819 ;;
13820 esac
13821 fi
13822 else
13823 ld_shlibs=no
13824 fi
13825 ;;
13826
13827 os2*)
13828 hardcode_libdir_flag_spec='-L$libdir'
13829 hardcode_minus_L=yes
13830 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000013831 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 +000013832 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13833 ;;
13834
13835 osf3*)
13836 if test "$GCC" = yes; then
13837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013838 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 +000013839 else
13840 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013841 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 +000013842 fi
13843 archive_cmds_need_lc='no'
13844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13845 hardcode_libdir_separator=:
13846 ;;
13847
13848 osf4* | osf5*) # as osf3* with the addition of -msym flag
13849 if test "$GCC" = yes; then
13850 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000013851 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 +000013852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13853 else
13854 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000013855 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 +000013856 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000013857 $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 +000013858
13859 # Both c and cxx compiler support -rpath directly
13860 hardcode_libdir_flag_spec='-rpath $libdir'
13861 fi
13862 archive_cmds_need_lc='no'
13863 hardcode_libdir_separator=:
13864 ;;
13865
13866 solaris*)
13867 no_undefined_flag=' -z defs'
13868 if test "$GCC" = yes; then
13869 wlarc='${wl}'
13870 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13872 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13873 else
13874 case `$CC -V 2>&1` in
13875 *"Compilers 5.0"*)
13876 wlarc=''
13877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13880 ;;
13881 *)
13882 wlarc='${wl}'
13883 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13884 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13885 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13886 ;;
13887 esac
13888 fi
13889 hardcode_libdir_flag_spec='-R$libdir'
13890 hardcode_shlibpath_var=no
13891 case $host_os in
13892 solaris2.[0-5] | solaris2.[0-5].*) ;;
13893 *)
13894 # The compiler driver will combine and reorder linker options,
13895 # but understands `-z linker_flag'. GCC discards it without `$wl',
13896 # but is careful enough not to reorder.
13897 # Supported since Solaris 2.6 (maybe 2.5.1?)
13898 if test "$GCC" = yes; then
13899 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13900 else
13901 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13902 fi
13903 ;;
13904 esac
13905 link_all_deplibs=yes
13906 ;;
13907
13908 sunos4*)
13909 if test "x$host_vendor" = xsequent; then
13910 # Use $CC to link under sequent, because it throws in some extra .o
13911 # files that make .init and .fini sections work.
13912 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13913 else
13914 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13915 fi
13916 hardcode_libdir_flag_spec='-L$libdir'
13917 hardcode_direct=yes
13918 hardcode_minus_L=yes
13919 hardcode_shlibpath_var=no
13920 ;;
13921
13922 sysv4)
13923 case $host_vendor in
13924 sni)
13925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926 hardcode_direct=yes # is this really true???
13927 ;;
13928 siemens)
13929 ## LD is ld it makes a PLAMLIB
13930 ## CC just makes a GrossModule.
13931 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13932 reload_cmds='$CC -r -o $output$reload_objs'
13933 hardcode_direct=no
13934 ;;
13935 motorola)
13936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13937 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13938 ;;
13939 esac
13940 runpath_var='LD_RUN_PATH'
13941 hardcode_shlibpath_var=no
13942 ;;
13943
13944 sysv4.3*)
13945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946 hardcode_shlibpath_var=no
13947 export_dynamic_flag_spec='-Bexport'
13948 ;;
13949
13950 sysv4*MP*)
13951 if test -d /usr/nec; then
13952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13953 hardcode_shlibpath_var=no
13954 runpath_var=LD_RUN_PATH
13955 hardcode_runpath_var=yes
13956 ld_shlibs=yes
13957 fi
13958 ;;
13959
13960 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13961 no_undefined_flag='${wl}-z,text'
13962 archive_cmds_need_lc=no
13963 hardcode_shlibpath_var=no
13964 runpath_var='LD_RUN_PATH'
13965
13966 if test "$GCC" = yes; then
13967 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13968 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969 else
13970 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13971 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 fi
13973 ;;
13974
13975 sysv5* | sco3.2v5* | sco5v6*)
13976 # Note: We can NOT use -z defs as we might desire, because we do not
13977 # link with -lc, and that would cause any symbols used from libc to
13978 # always be unresolved, which means just about no library would
13979 # ever link correctly. If we're not using GNU ld we use -z text
13980 # though, which does catch some bad symbols but isn't as heavy-handed
13981 # as -z defs.
13982 no_undefined_flag='${wl}-z,text'
13983 allow_undefined_flag='${wl}-z,nodefs'
13984 archive_cmds_need_lc=no
13985 hardcode_shlibpath_var=no
13986 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13987 hardcode_libdir_separator=':'
13988 link_all_deplibs=yes
13989 export_dynamic_flag_spec='${wl}-Bexport'
13990 runpath_var='LD_RUN_PATH'
13991
13992 if test "$GCC" = yes; then
13993 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13995 else
13996 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13997 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13998 fi
13999 ;;
14000
14001 uts4*)
14002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003 hardcode_libdir_flag_spec='-L$libdir'
14004 hardcode_shlibpath_var=no
14005 ;;
14006
14007 *)
14008 ld_shlibs=no
14009 ;;
14010 esac
14011
14012 if test x$host_vendor = xsni; then
14013 case $host in
14014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14015 export_dynamic_flag_spec='${wl}-Blargedynsym'
14016 ;;
14017 esac
14018 fi
14019 fi
14020
cristy8b350f62009-11-15 23:12:43 +000014021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014022$as_echo "$ld_shlibs" >&6; }
14023test "$ld_shlibs" = no && can_build_shared=no
14024
14025with_gnu_ld=$with_gnu_ld
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041#
14042# Do we need to explicitly link libc?
14043#
14044case "x$archive_cmds_need_lc" in
14045x|xyes)
14046 # Assume -lc should be added
14047 archive_cmds_need_lc=yes
14048
14049 if test "$enable_shared" = yes && test "$GCC" = yes; then
14050 case $archive_cmds in
14051 *'~'*)
14052 # FIXME: we may have to deal with multi-command sequences.
14053 ;;
14054 '$CC '*)
14055 # Test whether the compiler implicitly links with -lc since on some
14056 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14057 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014059$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014060 $RM conftest*
14061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014062
cristy18304f92009-11-22 15:48:26 +000014063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014064 (eval $ac_compile) 2>&5
14065 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14067 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014068 soname=conftest
14069 lib=conftest
14070 libobjs=conftest.$ac_objext
14071 deplibs=
14072 wl=$lt_prog_compiler_wl
14073 pic_flag=$lt_prog_compiler_pic
14074 compiler_flags=-v
14075 linker_flags=-v
14076 verstring=
14077 output_objdir=.
14078 libname=conftest
14079 lt_save_allow_undefined_flag=$allow_undefined_flag
14080 allow_undefined_flag=
14081 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 +000014082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14083 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14085 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014086 then
14087 archive_cmds_need_lc=no
14088 else
14089 archive_cmds_need_lc=yes
14090 fi
14091 allow_undefined_flag=$lt_save_allow_undefined_flag
14092 else
14093 cat conftest.err 1>&5
14094 fi
14095 $RM conftest*
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14097$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014098 ;;
14099 esac
14100 fi
14101 ;;
14102esac
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
cristy8b350f62009-11-15 23:12:43 +000014260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014261$as_echo_n "checking dynamic linker characteristics... " >&6; }
14262
14263if test "$GCC" = yes; then
14264 case $host_os in
14265 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14266 *) lt_awk_arg="/^libraries:/" ;;
14267 esac
cristy18304f92009-11-22 15:48:26 +000014268 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14269 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014270 # if the path contains ";" then we assume it to be the separator
14271 # otherwise default to the standard path separator (i.e. ":") - it is
14272 # assumed that no part of a normal pathname contains ";" but that should
14273 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014274 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14275 else
14276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14277 fi
cristy3ed852e2009-09-05 21:47:34 +000014278 # Ok, now we have the path, separated by spaces, we can step through it
14279 # and add multilib dir if necessary.
14280 lt_tmp_lt_search_path_spec=
14281 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14282 for lt_sys_path in $lt_search_path_spec; do
14283 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14284 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14285 else
14286 test -d "$lt_sys_path" && \
14287 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14288 fi
14289 done
cristy18304f92009-11-22 15:48:26 +000014290 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014291BEGIN {RS=" "; FS="/|\n";} {
14292 lt_foo="";
14293 lt_count=0;
14294 for (lt_i = NF; lt_i > 0; lt_i--) {
14295 if ($lt_i != "" && $lt_i != ".") {
14296 if ($lt_i == "..") {
14297 lt_count++;
14298 } else {
14299 if (lt_count == 0) {
14300 lt_foo="/" $lt_i lt_foo;
14301 } else {
14302 lt_count--;
14303 }
14304 }
14305 }
14306 }
14307 if (lt_foo != "") { lt_freq[lt_foo]++; }
14308 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14309}'`
cristy18304f92009-11-22 15:48:26 +000014310 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014311else
14312 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14313fi
14314library_names_spec=
14315libname_spec='lib$name'
14316soname_spec=
14317shrext_cmds=".so"
14318postinstall_cmds=
14319postuninstall_cmds=
14320finish_cmds=
14321finish_eval=
14322shlibpath_var=
14323shlibpath_overrides_runpath=unknown
14324version_type=none
14325dynamic_linker="$host_os ld.so"
14326sys_lib_dlsearch_path_spec="/lib /usr/lib"
14327need_lib_prefix=unknown
14328hardcode_into_libs=no
14329
14330# when you set need_version to no, make sure it does not cause -set_version
14331# flags to be left without arguments
14332need_version=unknown
14333
14334case $host_os in
14335aix3*)
14336 version_type=linux
14337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14338 shlibpath_var=LIBPATH
14339
14340 # AIX 3 has no versioning support, so we append a major version to the name.
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 ;;
14343
14344aix[4-9]*)
14345 version_type=linux
14346 need_lib_prefix=no
14347 need_version=no
14348 hardcode_into_libs=yes
14349 if test "$host_cpu" = ia64; then
14350 # AIX 5 supports IA64
14351 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14352 shlibpath_var=LD_LIBRARY_PATH
14353 else
14354 # With GCC up to 2.95.x, collect2 would create an import file
14355 # for dependence libraries. The import file would start with
14356 # the line `#! .'. This would cause the generated library to
14357 # depend on `.', always an invalid library. This was fixed in
14358 # development snapshots of GCC prior to 3.0.
14359 case $host_os in
14360 aix4 | aix4.[01] | aix4.[01].*)
14361 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14362 echo ' yes '
14363 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14364 :
14365 else
14366 can_build_shared=no
14367 fi
14368 ;;
14369 esac
14370 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14371 # soname into executable. Probably we can add versioning support to
14372 # collect2, so additional links can be useful in future.
14373 if test "$aix_use_runtimelinking" = yes; then
14374 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14375 # instead of lib<name>.a to let people know that these are not
14376 # typical AIX shared libraries.
14377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14378 else
14379 # We preserve .a as extension for shared libraries through AIX4.2
14380 # and later when we are not doing run time linking.
14381 library_names_spec='${libname}${release}.a $libname.a'
14382 soname_spec='${libname}${release}${shared_ext}$major'
14383 fi
14384 shlibpath_var=LIBPATH
14385 fi
14386 ;;
14387
14388amigaos*)
14389 case $host_cpu in
14390 powerpc)
14391 # Since July 2007 AmigaOS4 officially supports .so libraries.
14392 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14394 ;;
14395 m68k)
14396 library_names_spec='$libname.ixlibrary $libname.a'
14397 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014398 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 +000014399 ;;
14400 esac
14401 ;;
14402
14403beos*)
14404 library_names_spec='${libname}${shared_ext}'
14405 dynamic_linker="$host_os ld.so"
14406 shlibpath_var=LIBRARY_PATH
14407 ;;
14408
14409bsdi[45]*)
14410 version_type=linux
14411 need_version=no
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14418 # the default ld.so.conf also contains /usr/contrib/lib and
14419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14420 # libtool to hard-code these into programs
14421 ;;
14422
14423cygwin* | mingw* | pw32* | cegcc*)
14424 version_type=windows
14425 shrext_cmds=".dll"
14426 need_version=no
14427 need_lib_prefix=no
14428
14429 case $GCC,$host_os in
14430 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14431 library_names_spec='$libname.dll.a'
14432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14433 postinstall_cmds='base_file=`basename \${file}`~
14434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14435 dldir=$destdir/`dirname \$dlpath`~
14436 test -d \$dldir || mkdir -p \$dldir~
14437 $install_prog $dir/$dlname \$dldir/$dlname~
14438 chmod a+x \$dldir/$dlname~
14439 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14440 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14441 fi'
14442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14443 dlpath=$dir/\$dldll~
14444 $RM \$dlpath'
14445 shlibpath_overrides_runpath=yes
14446
14447 case $host_os in
14448 cygwin*)
14449 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14450 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014451 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014452 ;;
14453 mingw* | cegcc*)
14454 # MinGW DLLs use traditional 'lib' prefix
14455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014456 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14457 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14458 # It is most probably a Windows format PATH printed by
14459 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14460 # path with ; separators, and with drive letters. We can handle the
14461 # drive letters (cygwin fileutils understands them), so leave them,
14462 # especially as we might pass files found there to a mingw objdump,
14463 # which wouldn't understand a cygwinified path. Ahh.
14464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14465 else
14466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14467 fi
cristy3ed852e2009-09-05 21:47:34 +000014468 ;;
14469 pw32*)
14470 # pw32 DLLs use 'pw' prefix rather than 'lib'
14471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14472 ;;
14473 esac
14474 ;;
14475
14476 *)
14477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14478 ;;
14479 esac
14480 dynamic_linker='Win32 ld.exe'
14481 # FIXME: first we should search . and the directory the executable is in
14482 shlibpath_var=PATH
14483 ;;
14484
14485darwin* | rhapsody*)
14486 dynamic_linker="$host_os dyld"
14487 version_type=darwin
14488 need_lib_prefix=no
14489 need_version=no
14490 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14491 soname_spec='${libname}${release}${major}$shared_ext'
14492 shlibpath_overrides_runpath=yes
14493 shlibpath_var=DYLD_LIBRARY_PATH
14494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14495
14496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14498 ;;
14499
14500dgux*)
14501 version_type=linux
14502 need_lib_prefix=no
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 ;;
14508
14509freebsd1*)
14510 dynamic_linker=no
14511 ;;
14512
14513freebsd* | dragonfly*)
14514 # DragonFly does not have aout. When/if they implement a new
14515 # versioning mechanism, adjust this.
14516 if test -x /usr/bin/objformat; then
14517 objformat=`/usr/bin/objformat`
14518 else
14519 case $host_os in
14520 freebsd[123]*) objformat=aout ;;
14521 *) objformat=elf ;;
14522 esac
14523 fi
14524 version_type=freebsd-$objformat
14525 case $version_type in
14526 freebsd-elf*)
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14528 need_version=no
14529 need_lib_prefix=no
14530 ;;
14531 freebsd-*)
14532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14533 need_version=yes
14534 ;;
14535 esac
14536 shlibpath_var=LD_LIBRARY_PATH
14537 case $host_os in
14538 freebsd2*)
14539 shlibpath_overrides_runpath=yes
14540 ;;
14541 freebsd3.[01]* | freebsdelf3.[01]*)
14542 shlibpath_overrides_runpath=yes
14543 hardcode_into_libs=yes
14544 ;;
14545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14547 shlibpath_overrides_runpath=no
14548 hardcode_into_libs=yes
14549 ;;
14550 *) # from 4.6 on, and DragonFly
14551 shlibpath_overrides_runpath=yes
14552 hardcode_into_libs=yes
14553 ;;
14554 esac
14555 ;;
14556
14557gnu*)
14558 version_type=linux
14559 need_lib_prefix=no
14560 need_version=no
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14564 hardcode_into_libs=yes
14565 ;;
14566
14567hpux9* | hpux10* | hpux11*)
14568 # Give a soname corresponding to the major version so that dld.sl refuses to
14569 # link against other versions.
14570 version_type=sunos
14571 need_lib_prefix=no
14572 need_version=no
14573 case $host_cpu in
14574 ia64*)
14575 shrext_cmds='.so'
14576 hardcode_into_libs=yes
14577 dynamic_linker="$host_os dld.so"
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 if test "X$HPUX_IA64_MODE" = X32; then
14583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14584 else
14585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14586 fi
14587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14588 ;;
14589 hppa*64*)
14590 shrext_cmds='.sl'
14591 hardcode_into_libs=yes
14592 dynamic_linker="$host_os dld.sl"
14593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14599 ;;
14600 *)
14601 shrext_cmds='.sl'
14602 dynamic_linker="$host_os dld.sl"
14603 shlibpath_var=SHLIB_PATH
14604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 ;;
14608 esac
cristy18304f92009-11-22 15:48:26 +000014609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000014610 postinstall_cmds='chmod 555 $lib'
14611 ;;
14612
14613interix[3-9]*)
14614 version_type=linux
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14620 shlibpath_var=LD_LIBRARY_PATH
14621 shlibpath_overrides_runpath=no
14622 hardcode_into_libs=yes
14623 ;;
14624
14625irix5* | irix6* | nonstopux*)
14626 case $host_os in
14627 nonstopux*) version_type=nonstopux ;;
14628 *)
14629 if test "$lt_cv_prog_gnu_ld" = yes; then
14630 version_type=linux
14631 else
14632 version_type=irix
14633 fi ;;
14634 esac
14635 need_lib_prefix=no
14636 need_version=no
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14639 case $host_os in
14640 irix5* | nonstopux*)
14641 libsuff= shlibsuff=
14642 ;;
14643 *)
14644 case $LD in # libtool.m4 will add one of these switches to LD
14645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14646 libsuff= shlibsuff= libmagic=32-bit;;
14647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14648 libsuff=32 shlibsuff=N32 libmagic=N32;;
14649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14651 *) libsuff= shlibsuff= libmagic=never-match;;
14652 esac
14653 ;;
14654 esac
14655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14656 shlibpath_overrides_runpath=no
14657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14659 hardcode_into_libs=yes
14660 ;;
14661
14662# No shared lib support for Linux oldld, aout, or coff.
14663linux*oldld* | linux*aout* | linux*coff*)
14664 dynamic_linker=no
14665 ;;
14666
14667# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000014668linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000014669 version_type=linux
14670 need_lib_prefix=no
14671 need_version=no
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 shlibpath_overrides_runpath=no
14677 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000014678 save_LDFLAGS=$LDFLAGS
14679 save_libdir=$libdir
14680 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14681 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014683/* end confdefs.h. */
14684
14685int
14686main ()
14687{
14688
14689 ;
14690 return 0;
14691}
14692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014693if ac_fn_c_try_link "$LINENO"; then :
14694 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000014695 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000014696fi
cristy3ed852e2009-09-05 21:47:34 +000014697fi
cristy8b350f62009-11-15 23:12:43 +000014698rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000014700 LDFLAGS=$save_LDFLAGS
14701 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000014702
14703 # This implies no fast_install, which is unacceptable.
14704 # Some rework will be needed to allow for fast_install
14705 # before this can be enabled.
14706 hardcode_into_libs=yes
14707
cristy679ed8e2009-12-05 02:37:41 +000014708 # Add ABI-specific directories to the system library path.
14709 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14710
cristy3ed852e2009-09-05 21:47:34 +000014711 # Append ld.so.conf contents to the search path
14712 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000014713 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 +000014714 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000014715 fi
14716
14717 # We used to test for /lib/ld.so.1 and disable shared libraries on
14718 # powerpc, because MkLinux only supported shared libraries with the
14719 # GNU dynamic linker. Since this was broken with cross compilers,
14720 # most powerpc-linux boxes support dynamic linking these days and
14721 # people can always --disable-shared, the test was removed, and we
14722 # assume the GNU/Linux dynamic linker is in use.
14723 dynamic_linker='GNU/Linux ld.so'
14724 ;;
14725
14726netbsd*)
14727 version_type=sunos
14728 need_lib_prefix=no
14729 need_version=no
14730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14733 dynamic_linker='NetBSD (a.out) ld.so'
14734 else
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 dynamic_linker='NetBSD ld.elf_so'
14738 fi
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14742 ;;
14743
14744newsos6)
14745 version_type=linux
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 shlibpath_overrides_runpath=yes
14749 ;;
14750
14751*nto* | *qnx*)
14752 version_type=qnx
14753 need_lib_prefix=no
14754 need_version=no
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 shlibpath_var=LD_LIBRARY_PATH
14758 shlibpath_overrides_runpath=no
14759 hardcode_into_libs=yes
14760 dynamic_linker='ldqnx.so'
14761 ;;
14762
14763openbsd*)
14764 version_type=sunos
14765 sys_lib_dlsearch_path_spec="/usr/lib"
14766 need_lib_prefix=no
14767 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14768 case $host_os in
14769 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14770 *) need_version=no ;;
14771 esac
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14774 shlibpath_var=LD_LIBRARY_PATH
14775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14776 case $host_os in
14777 openbsd2.[89] | openbsd2.[89].*)
14778 shlibpath_overrides_runpath=no
14779 ;;
14780 *)
14781 shlibpath_overrides_runpath=yes
14782 ;;
14783 esac
14784 else
14785 shlibpath_overrides_runpath=yes
14786 fi
14787 ;;
14788
14789os2*)
14790 libname_spec='$name'
14791 shrext_cmds=".dll"
14792 need_lib_prefix=no
14793 library_names_spec='$libname${shared_ext} $libname.a'
14794 dynamic_linker='OS/2 ld.exe'
14795 shlibpath_var=LIBPATH
14796 ;;
14797
14798osf3* | osf4* | osf5*)
14799 version_type=osf
14800 need_lib_prefix=no
14801 need_version=no
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14806 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14807 ;;
14808
14809rdos*)
14810 dynamic_linker=no
14811 ;;
14812
14813solaris*)
14814 version_type=linux
14815 need_lib_prefix=no
14816 need_version=no
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818 soname_spec='${libname}${release}${shared_ext}$major'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 hardcode_into_libs=yes
14822 # ldd complains unless libraries are executable
14823 postinstall_cmds='chmod +x $lib'
14824 ;;
14825
14826sunos4*)
14827 version_type=sunos
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 if test "$with_gnu_ld" = yes; then
14833 need_lib_prefix=no
14834 fi
14835 need_version=yes
14836 ;;
14837
14838sysv4 | sysv4.3*)
14839 version_type=linux
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841 soname_spec='${libname}${release}${shared_ext}$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 case $host_vendor in
14844 sni)
14845 shlibpath_overrides_runpath=no
14846 need_lib_prefix=no
14847 runpath_var=LD_RUN_PATH
14848 ;;
14849 siemens)
14850 need_lib_prefix=no
14851 ;;
14852 motorola)
14853 need_lib_prefix=no
14854 need_version=no
14855 shlibpath_overrides_runpath=no
14856 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14857 ;;
14858 esac
14859 ;;
14860
14861sysv4*MP*)
14862 if test -d /usr/nec ;then
14863 version_type=linux
14864 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14865 soname_spec='$libname${shared_ext}.$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 fi
14868 ;;
14869
14870sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14871 version_type=freebsd-elf
14872 need_lib_prefix=no
14873 need_version=no
14874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14875 soname_spec='${libname}${release}${shared_ext}$major'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 shlibpath_overrides_runpath=yes
14878 hardcode_into_libs=yes
14879 if test "$with_gnu_ld" = yes; then
14880 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14881 else
14882 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14883 case $host_os in
14884 sco3.2v5*)
14885 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14886 ;;
14887 esac
14888 fi
14889 sys_lib_dlsearch_path_spec='/usr/lib'
14890 ;;
14891
14892tpf*)
14893 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 shlibpath_var=LD_LIBRARY_PATH
14899 shlibpath_overrides_runpath=no
14900 hardcode_into_libs=yes
14901 ;;
14902
14903uts4*)
14904 version_type=linux
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 ;;
14909
14910*)
14911 dynamic_linker=no
14912 ;;
14913esac
cristy8b350f62009-11-15 23:12:43 +000014914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000014915$as_echo "$dynamic_linker" >&6; }
14916test "$dynamic_linker" = no && can_build_shared=no
14917
14918variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14919if test "$GCC" = yes; then
14920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14921fi
14922
14923if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14925fi
14926if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14928fi
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
cristy8b350f62009-11-15 23:12:43 +000015016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015017$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15018hardcode_action=
15019if test -n "$hardcode_libdir_flag_spec" ||
15020 test -n "$runpath_var" ||
15021 test "X$hardcode_automatic" = "Xyes" ; then
15022
15023 # We can hardcode non-existent directories.
15024 if test "$hardcode_direct" != no &&
15025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15026 # have to relink, otherwise we might link with an installed library
15027 # when we should be linking with a yet-to-be-installed one
15028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15029 test "$hardcode_minus_L" != no; then
15030 # Linking always hardcodes the temporary library directory.
15031 hardcode_action=relink
15032 else
15033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15034 hardcode_action=immediate
15035 fi
15036else
15037 # We cannot hardcode anything, or else we can only hardcode existing
15038 # directories.
15039 hardcode_action=unsupported
15040fi
cristy8b350f62009-11-15 23:12:43 +000015041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015042$as_echo "$hardcode_action" >&6; }
15043
15044if test "$hardcode_action" = relink ||
15045 test "$inherit_rpath" = yes; then
15046 # Fast installation is not supported
15047 enable_fast_install=no
15048elif test "$shlibpath_overrides_runpath" = yes ||
15049 test "$enable_shared" = no; then
15050 # Fast installation is not necessary
15051 enable_fast_install=needless
15052fi
15053
15054
15055
15056
15057
15058
15059 if test "x$enable_dlopen" != xyes; then
15060 enable_dlopen=unknown
15061 enable_dlopen_self=unknown
15062 enable_dlopen_self_static=unknown
15063else
15064 lt_cv_dlopen=no
15065 lt_cv_dlopen_libs=
15066
15067 case $host_os in
15068 beos*)
15069 lt_cv_dlopen="load_add_on"
15070 lt_cv_dlopen_libs=
15071 lt_cv_dlopen_self=yes
15072 ;;
15073
15074 mingw* | pw32* | cegcc*)
15075 lt_cv_dlopen="LoadLibrary"
15076 lt_cv_dlopen_libs=
15077 ;;
15078
15079 cygwin*)
15080 lt_cv_dlopen="dlopen"
15081 lt_cv_dlopen_libs=
15082 ;;
15083
15084 darwin*)
15085 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015087$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015088if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015089 $as_echo_n "(cached) " >&6
15090else
15091 ac_check_lib_save_LIBS=$LIBS
15092LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015094/* end confdefs.h. */
15095
15096/* Override any GCC internal prototype to avoid an error.
15097 Use char because int might match the return type of a GCC
15098 builtin and then its argument prototype would still apply. */
15099#ifdef __cplusplus
15100extern "C"
15101#endif
15102char dlopen ();
15103int
15104main ()
15105{
15106return dlopen ();
15107 ;
15108 return 0;
15109}
15110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015112 ac_cv_lib_dl_dlopen=yes
15113else
cristy8b350f62009-11-15 23:12:43 +000015114 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015115fi
cristy8b350f62009-11-15 23:12:43 +000015116rm -f core conftest.err conftest.$ac_objext \
15117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015118LIBS=$ac_check_lib_save_LIBS
15119fi
cristy8b350f62009-11-15 23:12:43 +000015120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015121$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015122if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15124else
15125
15126 lt_cv_dlopen="dyld"
15127 lt_cv_dlopen_libs=
15128 lt_cv_dlopen_self=yes
15129
15130fi
15131
15132 ;;
15133
15134 *)
cristy8b350f62009-11-15 23:12:43 +000015135 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15136if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015137 lt_cv_dlopen="shl_load"
15138else
cristy8b350f62009-11-15 23:12:43 +000015139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015140$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015141if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015142 $as_echo_n "(cached) " >&6
15143else
15144 ac_check_lib_save_LIBS=$LIBS
15145LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015147/* end confdefs.h. */
15148
15149/* Override any GCC internal prototype to avoid an error.
15150 Use char because int might match the return type of a GCC
15151 builtin and then its argument prototype would still apply. */
15152#ifdef __cplusplus
15153extern "C"
15154#endif
15155char shl_load ();
15156int
15157main ()
15158{
15159return shl_load ();
15160 ;
15161 return 0;
15162}
15163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015165 ac_cv_lib_dld_shl_load=yes
15166else
cristy8b350f62009-11-15 23:12:43 +000015167 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015168fi
cristy8b350f62009-11-15 23:12:43 +000015169rm -f core conftest.err conftest.$ac_objext \
15170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015171LIBS=$ac_check_lib_save_LIBS
15172fi
cristy8b350f62009-11-15 23:12:43 +000015173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015174$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015175if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015176 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15177else
cristy8b350f62009-11-15 23:12:43 +000015178 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15179if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015180 lt_cv_dlopen="dlopen"
15181else
cristy8b350f62009-11-15 23:12:43 +000015182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015183$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015184if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015185 $as_echo_n "(cached) " >&6
15186else
15187 ac_check_lib_save_LIBS=$LIBS
15188LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015190/* end confdefs.h. */
15191
15192/* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15195#ifdef __cplusplus
15196extern "C"
15197#endif
15198char dlopen ();
15199int
15200main ()
15201{
15202return dlopen ();
15203 ;
15204 return 0;
15205}
15206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015207if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015208 ac_cv_lib_dl_dlopen=yes
15209else
cristy8b350f62009-11-15 23:12:43 +000015210 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015211fi
cristy8b350f62009-11-15 23:12:43 +000015212rm -f core conftest.err conftest.$ac_objext \
15213 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015214LIBS=$ac_check_lib_save_LIBS
15215fi
cristy8b350f62009-11-15 23:12:43 +000015216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015217$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015218if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15220else
cristy8b350f62009-11-15 23:12:43 +000015221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015222$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015223if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015224 $as_echo_n "(cached) " >&6
15225else
15226 ac_check_lib_save_LIBS=$LIBS
15227LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015229/* end confdefs.h. */
15230
15231/* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15234#ifdef __cplusplus
15235extern "C"
15236#endif
15237char dlopen ();
15238int
15239main ()
15240{
15241return dlopen ();
15242 ;
15243 return 0;
15244}
15245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015247 ac_cv_lib_svld_dlopen=yes
15248else
cristy8b350f62009-11-15 23:12:43 +000015249 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015250fi
cristy8b350f62009-11-15 23:12:43 +000015251rm -f core conftest.err conftest.$ac_objext \
15252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015253LIBS=$ac_check_lib_save_LIBS
15254fi
cristy8b350f62009-11-15 23:12:43 +000015255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015256$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015257if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15259else
cristy8b350f62009-11-15 23:12:43 +000015260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015261$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015262if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015263 $as_echo_n "(cached) " >&6
15264else
15265 ac_check_lib_save_LIBS=$LIBS
15266LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015268/* end confdefs.h. */
15269
15270/* Override any GCC internal prototype to avoid an error.
15271 Use char because int might match the return type of a GCC
15272 builtin and then its argument prototype would still apply. */
15273#ifdef __cplusplus
15274extern "C"
15275#endif
15276char dld_link ();
15277int
15278main ()
15279{
15280return dld_link ();
15281 ;
15282 return 0;
15283}
15284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015286 ac_cv_lib_dld_dld_link=yes
15287else
cristy8b350f62009-11-15 23:12:43 +000015288 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015289fi
cristy8b350f62009-11-15 23:12:43 +000015290rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015292LIBS=$ac_check_lib_save_LIBS
15293fi
cristy8b350f62009-11-15 23:12:43 +000015294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015295$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015296if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015297 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15298fi
15299
15300
15301fi
15302
15303
15304fi
15305
15306
15307fi
15308
15309
15310fi
15311
15312
15313fi
15314
15315 ;;
15316 esac
15317
15318 if test "x$lt_cv_dlopen" != xno; then
15319 enable_dlopen=yes
15320 else
15321 enable_dlopen=no
15322 fi
15323
15324 case $lt_cv_dlopen in
15325 dlopen)
15326 save_CPPFLAGS="$CPPFLAGS"
15327 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15328
15329 save_LDFLAGS="$LDFLAGS"
15330 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15331
15332 save_LIBS="$LIBS"
15333 LIBS="$lt_cv_dlopen_libs $LIBS"
15334
cristy8b350f62009-11-15 23:12:43 +000015335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015336$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015337if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015338 $as_echo_n "(cached) " >&6
15339else
15340 if test "$cross_compiling" = yes; then :
15341 lt_cv_dlopen_self=cross
15342else
15343 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15344 lt_status=$lt_dlunknown
15345 cat > conftest.$ac_ext <<_LT_EOF
cristy837d6dc2010-02-27 01:16:57 +000015346#line 15346 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015347#include "confdefs.h"
15348
15349#if HAVE_DLFCN_H
15350#include <dlfcn.h>
15351#endif
15352
15353#include <stdio.h>
15354
15355#ifdef RTLD_GLOBAL
15356# define LT_DLGLOBAL RTLD_GLOBAL
15357#else
15358# ifdef DL_GLOBAL
15359# define LT_DLGLOBAL DL_GLOBAL
15360# else
15361# define LT_DLGLOBAL 0
15362# endif
15363#endif
15364
15365/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15366 find out it does not work in some platform. */
15367#ifndef LT_DLLAZY_OR_NOW
15368# ifdef RTLD_LAZY
15369# define LT_DLLAZY_OR_NOW RTLD_LAZY
15370# else
15371# ifdef DL_LAZY
15372# define LT_DLLAZY_OR_NOW DL_LAZY
15373# else
15374# ifdef RTLD_NOW
15375# define LT_DLLAZY_OR_NOW RTLD_NOW
15376# else
15377# ifdef DL_NOW
15378# define LT_DLLAZY_OR_NOW DL_NOW
15379# else
15380# define LT_DLLAZY_OR_NOW 0
15381# endif
15382# endif
15383# endif
15384# endif
15385#endif
15386
cristy18304f92009-11-22 15:48:26 +000015387void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015388int main ()
15389{
15390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15391 int status = $lt_dlunknown;
15392
15393 if (self)
15394 {
15395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015397 /* dlclose (self); */
15398 }
15399 else
15400 puts (dlerror ());
15401
15402 return status;
15403}
15404_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015406 (eval $ac_link) 2>&5
15407 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15409 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015410 (./conftest; exit; ) >&5 2>/dev/null
15411 lt_status=$?
15412 case x$lt_status in
15413 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15414 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15415 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15416 esac
15417 else :
15418 # compilation failed
15419 lt_cv_dlopen_self=no
15420 fi
15421fi
15422rm -fr conftest*
15423
15424
15425fi
cristy8b350f62009-11-15 23:12:43 +000015426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015427$as_echo "$lt_cv_dlopen_self" >&6; }
15428
15429 if test "x$lt_cv_dlopen_self" = xyes; then
15430 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015432$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015433if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015434 $as_echo_n "(cached) " >&6
15435else
15436 if test "$cross_compiling" = yes; then :
15437 lt_cv_dlopen_self_static=cross
15438else
15439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15440 lt_status=$lt_dlunknown
15441 cat > conftest.$ac_ext <<_LT_EOF
cristy837d6dc2010-02-27 01:16:57 +000015442#line 15442 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015443#include "confdefs.h"
15444
15445#if HAVE_DLFCN_H
15446#include <dlfcn.h>
15447#endif
15448
15449#include <stdio.h>
15450
15451#ifdef RTLD_GLOBAL
15452# define LT_DLGLOBAL RTLD_GLOBAL
15453#else
15454# ifdef DL_GLOBAL
15455# define LT_DLGLOBAL DL_GLOBAL
15456# else
15457# define LT_DLGLOBAL 0
15458# endif
15459#endif
15460
15461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15462 find out it does not work in some platform. */
15463#ifndef LT_DLLAZY_OR_NOW
15464# ifdef RTLD_LAZY
15465# define LT_DLLAZY_OR_NOW RTLD_LAZY
15466# else
15467# ifdef DL_LAZY
15468# define LT_DLLAZY_OR_NOW DL_LAZY
15469# else
15470# ifdef RTLD_NOW
15471# define LT_DLLAZY_OR_NOW RTLD_NOW
15472# else
15473# ifdef DL_NOW
15474# define LT_DLLAZY_OR_NOW DL_NOW
15475# else
15476# define LT_DLLAZY_OR_NOW 0
15477# endif
15478# endif
15479# endif
15480# endif
15481#endif
15482
cristy18304f92009-11-22 15:48:26 +000015483void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015484int main ()
15485{
15486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15487 int status = $lt_dlunknown;
15488
15489 if (self)
15490 {
15491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015492 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015493 /* dlclose (self); */
15494 }
15495 else
15496 puts (dlerror ());
15497
15498 return status;
15499}
15500_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015502 (eval $ac_link) 2>&5
15503 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015506 (./conftest; exit; ) >&5 2>/dev/null
15507 lt_status=$?
15508 case x$lt_status in
15509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15511 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15512 esac
15513 else :
15514 # compilation failed
15515 lt_cv_dlopen_self_static=no
15516 fi
15517fi
15518rm -fr conftest*
15519
15520
15521fi
cristy8b350f62009-11-15 23:12:43 +000015522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015523$as_echo "$lt_cv_dlopen_self_static" >&6; }
15524 fi
15525
15526 CPPFLAGS="$save_CPPFLAGS"
15527 LDFLAGS="$save_LDFLAGS"
15528 LIBS="$save_LIBS"
15529 ;;
15530 esac
15531
15532 case $lt_cv_dlopen_self in
15533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15534 *) enable_dlopen_self=unknown ;;
15535 esac
15536
15537 case $lt_cv_dlopen_self_static in
15538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15539 *) enable_dlopen_self_static=unknown ;;
15540 esac
15541fi
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559striplib=
15560old_striplib=
cristy8b350f62009-11-15 23:12:43 +000015561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000015562$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15563if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000015566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015567$as_echo "yes" >&6; }
15568else
15569# FIXME - insert some real tests, host_os isn't really good enough
15570 case $host_os in
15571 darwin*)
15572 if test -n "$STRIP" ; then
15573 striplib="$STRIP -x"
15574 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000015575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000015576$as_echo "yes" >&6; }
15577 else
cristy8b350f62009-11-15 23:12:43 +000015578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015579$as_echo "no" >&6; }
15580 fi
15581 ;;
15582 *)
cristy8b350f62009-11-15 23:12:43 +000015583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015584$as_echo "no" >&6; }
15585 ;;
15586 esac
15587fi
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000015601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015602$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015604$as_echo "$can_build_shared" >&6; }
15605
cristy8b350f62009-11-15 23:12:43 +000015606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015607$as_echo_n "checking whether to build shared libraries... " >&6; }
15608 test "$can_build_shared" = "no" && enable_shared=no
15609
15610 # On AIX, shared libraries and static libraries use the same namespace, and
15611 # are all built from PIC.
15612 case $host_os in
15613 aix3*)
15614 test "$enable_shared" = yes && enable_static=no
15615 if test -n "$RANLIB"; then
15616 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15617 postinstall_cmds='$RANLIB $lib'
15618 fi
15619 ;;
15620
15621 aix[4-9]*)
15622 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15623 test "$enable_shared" = yes && enable_static=no
15624 fi
15625 ;;
15626 esac
cristy8b350f62009-11-15 23:12:43 +000015627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000015628$as_echo "$enable_shared" >&6; }
15629
cristy8b350f62009-11-15 23:12:43 +000015630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015631$as_echo_n "checking whether to build static libraries... " >&6; }
15632 # Make sure either enable_shared or enable_static is yes.
15633 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000015634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000015635$as_echo "$enable_static" >&6; }
15636
15637
15638
15639
15640fi
15641ac_ext=c
15642ac_cpp='$CPP $CPPFLAGS'
15643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15645ac_compiler_gnu=$ac_cv_c_compiler_gnu
15646
15647CC="$lt_save_CC"
15648
15649
15650ac_ext=cpp
15651ac_cpp='$CXXCPP $CPPFLAGS'
15652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15655
15656archive_cmds_need_lc_CXX=no
15657allow_undefined_flag_CXX=
15658always_export_symbols_CXX=no
15659archive_expsym_cmds_CXX=
15660compiler_needs_object_CXX=no
15661export_dynamic_flag_spec_CXX=
15662hardcode_direct_CXX=no
15663hardcode_direct_absolute_CXX=no
15664hardcode_libdir_flag_spec_CXX=
15665hardcode_libdir_flag_spec_ld_CXX=
15666hardcode_libdir_separator_CXX=
15667hardcode_minus_L_CXX=no
15668hardcode_shlibpath_var_CXX=unsupported
15669hardcode_automatic_CXX=no
15670inherit_rpath_CXX=no
15671module_cmds_CXX=
15672module_expsym_cmds_CXX=
15673link_all_deplibs_CXX=unknown
15674old_archive_cmds_CXX=$old_archive_cmds
15675no_undefined_flag_CXX=
15676whole_archive_flag_spec_CXX=
15677enable_shared_with_static_runtimes_CXX=no
15678
15679# Source file extension for C++ test sources.
15680ac_ext=cpp
15681
15682# Object file extension for compiled C++ test sources.
15683objext=o
15684objext_CXX=$objext
15685
15686# No sense in running all these tests if we already determined that
15687# the CXX compiler isn't working. Some variables (like enable_shared)
15688# are currently assumed to apply to all compilers on this platform,
15689# and will be corrupted by setting them based on a non-working compiler.
15690if test "$_lt_caught_CXX_error" != yes; then
15691 # Code to be used in simple compile tests
15692 lt_simple_compile_test_code="int some_variable = 0;"
15693
15694 # Code to be used in simple link tests
15695 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15696
15697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15698
15699
15700
15701
15702
15703
15704# If no C compiler was specified, use CC.
15705LTCC=${LTCC-"$CC"}
15706
15707# If no C compiler flags were specified, use CFLAGS.
15708LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15709
15710# Allow CC to be a program name with arguments.
15711compiler=$CC
15712
15713
15714 # save warnings/boilerplate of simple test code
15715 ac_outfile=conftest.$ac_objext
15716echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15717eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15718_lt_compiler_boilerplate=`cat conftest.err`
15719$RM conftest*
15720
15721 ac_outfile=conftest.$ac_objext
15722echo "$lt_simple_link_test_code" >conftest.$ac_ext
15723eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15724_lt_linker_boilerplate=`cat conftest.err`
15725$RM -r conftest*
15726
15727
15728 # Allow CC to be a program name with arguments.
15729 lt_save_CC=$CC
15730 lt_save_LD=$LD
15731 lt_save_GCC=$GCC
15732 GCC=$GXX
15733 lt_save_with_gnu_ld=$with_gnu_ld
15734 lt_save_path_LD=$lt_cv_path_LD
15735 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15736 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15737 else
15738 $as_unset lt_cv_prog_gnu_ld
15739 fi
15740 if test -n "${lt_cv_path_LDCXX+set}"; then
15741 lt_cv_path_LD=$lt_cv_path_LDCXX
15742 else
15743 $as_unset lt_cv_path_LD
15744 fi
15745 test -z "${LDCXX+set}" || LD=$LDCXX
15746 CC=${CXX-"c++"}
15747 compiler=$CC
15748 compiler_CXX=$CC
15749 for cc_temp in $compiler""; do
15750 case $cc_temp in
15751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15753 \-*) ;;
15754 *) break;;
15755 esac
15756done
cristy18304f92009-11-22 15:48:26 +000015757cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000015758
15759
15760 if test -n "$compiler"; then
15761 # We don't want -fno-exception when compiling C++ code, so set the
15762 # no_builtin_flag separately
15763 if test "$GXX" = yes; then
15764 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15765 else
15766 lt_prog_compiler_no_builtin_flag_CXX=
15767 fi
15768
15769 if test "$GXX" = yes; then
15770 # Set up default GNU C++ configuration
15771
15772
15773
15774# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000015775if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015776 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15777else
15778 with_gnu_ld=no
15779fi
15780
15781ac_prog=ld
15782if test "$GCC" = yes; then
15783 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000015784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000015785$as_echo_n "checking for ld used by $CC... " >&6; }
15786 case $host in
15787 *-*-mingw*)
15788 # gcc leaves a trailing carriage return which upsets mingw
15789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15790 *)
15791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15792 esac
15793 case $ac_prog in
15794 # Accept absolute paths.
15795 [\\/]* | ?:[\\/]*)
15796 re_direlt='/[^/][^/]*/\.\./'
15797 # Canonicalize the pathname of ld
15798 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15799 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15800 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15801 done
15802 test -z "$LD" && LD="$ac_prog"
15803 ;;
15804 "")
15805 # If it fails, then pretend we aren't using GCC.
15806 ac_prog=ld
15807 ;;
15808 *)
15809 # If it is relative, then search for the first ld in PATH.
15810 with_gnu_ld=unknown
15811 ;;
15812 esac
15813elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000015814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015815$as_echo_n "checking for GNU ld... " >&6; }
15816else
cristy8b350f62009-11-15 23:12:43 +000015817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015818$as_echo_n "checking for non-GNU ld... " >&6; }
15819fi
cristy8b350f62009-11-15 23:12:43 +000015820if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015821 $as_echo_n "(cached) " >&6
15822else
15823 if test -z "$LD"; then
15824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15825 for ac_dir in $PATH; do
15826 IFS="$lt_save_ifs"
15827 test -z "$ac_dir" && ac_dir=.
15828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15829 lt_cv_path_LD="$ac_dir/$ac_prog"
15830 # Check to see if the program is GNU ld. I'd rather use --version,
15831 # but apparently some variants of GNU ld only accept -v.
15832 # Break only if it was the GNU/non-GNU ld that we prefer.
15833 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15834 *GNU* | *'with BFD'*)
15835 test "$with_gnu_ld" != no && break
15836 ;;
15837 *)
15838 test "$with_gnu_ld" != yes && break
15839 ;;
15840 esac
15841 fi
15842 done
15843 IFS="$lt_save_ifs"
15844else
15845 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15846fi
15847fi
15848
15849LD="$lt_cv_path_LD"
15850if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000015851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000015852$as_echo "$LD" >&6; }
15853else
cristy8b350f62009-11-15 23:12:43 +000015854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000015855$as_echo "no" >&6; }
15856fi
cristy8b350f62009-11-15 23:12:43 +000015857test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015859$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015860if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015861 $as_echo_n "(cached) " >&6
15862else
15863 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15864case `$LD -v 2>&1 </dev/null` in
15865*GNU* | *'with BFD'*)
15866 lt_cv_prog_gnu_ld=yes
15867 ;;
15868*)
15869 lt_cv_prog_gnu_ld=no
15870 ;;
15871esac
15872fi
cristy8b350f62009-11-15 23:12:43 +000015873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015874$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15875with_gnu_ld=$lt_cv_prog_gnu_ld
15876
15877
15878
15879
15880
15881
15882
15883 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15884 # archiving commands below assume that GNU ld is being used.
15885 if test "$with_gnu_ld" = yes; then
15886 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15887 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'
15888
15889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15891
15892 # If archive_cmds runs LD, not CC, wlarc should be empty
15893 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15894 # investigate it a little bit more. (MM)
15895 wlarc='${wl}'
15896
15897 # ancient GNU ld didn't support --whole-archive et. al.
15898 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15899 $GREP 'no-whole-archive' > /dev/null; then
15900 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15901 else
15902 whole_archive_flag_spec_CXX=
15903 fi
15904 else
15905 with_gnu_ld=no
15906 wlarc=
15907
15908 # A generic and very simple default shared library creation
15909 # command for GNU C++ for the case where it uses the native
15910 # linker, instead of GNU ld. If possible, this setting should
15911 # overridden to take advantage of the native linker features on
15912 # the platform it is being used on.
15913 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15914 fi
15915
15916 # Commands to make compiler produce verbose output that lists
15917 # what "hidden" libraries, object files and flags are used when
15918 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000015919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000015920
15921 else
15922 GXX=no
15923 with_gnu_ld=no
15924 wlarc=
15925 fi
15926
15927 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000015928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000015929$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15930 ld_shlibs_CXX=yes
15931 case $host_os in
15932 aix3*)
15933 # FIXME: insert proper C++ library support
15934 ld_shlibs_CXX=no
15935 ;;
15936 aix[4-9]*)
15937 if test "$host_cpu" = ia64; then
15938 # On IA64, the linker does run time linking by default, so we don't
15939 # have to do anything special.
15940 aix_use_runtimelinking=no
15941 exp_sym_flag='-Bexport'
15942 no_entry_flag=""
15943 else
15944 aix_use_runtimelinking=no
15945
15946 # Test if we are trying to use run time linking or normal
15947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15948 # need to do runtime linking.
15949 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15950 for ld_flag in $LDFLAGS; do
15951 case $ld_flag in
15952 *-brtl*)
15953 aix_use_runtimelinking=yes
15954 break
15955 ;;
15956 esac
15957 done
15958 ;;
15959 esac
15960
15961 exp_sym_flag='-bexport'
15962 no_entry_flag='-bnoentry'
15963 fi
15964
15965 # When large executables or shared objects are built, AIX ld can
15966 # have problems creating the table of contents. If linking a library
15967 # or program results in "error TOC overflow" add -mminimal-toc to
15968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15970
15971 archive_cmds_CXX=''
15972 hardcode_direct_CXX=yes
15973 hardcode_direct_absolute_CXX=yes
15974 hardcode_libdir_separator_CXX=':'
15975 link_all_deplibs_CXX=yes
15976 file_list_spec_CXX='${wl}-f,'
15977
15978 if test "$GXX" = yes; then
15979 case $host_os in aix4.[012]|aix4.[012].*)
15980 # We only want to do this on AIX 4.2 and lower, the check
15981 # below for broken collect2 doesn't work under 4.3+
15982 collect2name=`${CC} -print-prog-name=collect2`
15983 if test -f "$collect2name" &&
15984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15985 then
15986 # We have reworked collect2
15987 :
15988 else
15989 # We have old collect2
15990 hardcode_direct_CXX=unsupported
15991 # It fails to find uninstalled libraries when the uninstalled
15992 # path is not listed in the libpath. Setting hardcode_minus_L
15993 # to unsupported forces relinking
15994 hardcode_minus_L_CXX=yes
15995 hardcode_libdir_flag_spec_CXX='-L$libdir'
15996 hardcode_libdir_separator_CXX=
15997 fi
15998 esac
15999 shared_flag='-shared'
16000 if test "$aix_use_runtimelinking" = yes; then
16001 shared_flag="$shared_flag "'${wl}-G'
16002 fi
16003 else
16004 # not using gcc
16005 if test "$host_cpu" = ia64; then
16006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16007 # chokes on -Wl,-G. The following line is correct:
16008 shared_flag='-G'
16009 else
16010 if test "$aix_use_runtimelinking" = yes; then
16011 shared_flag='${wl}-G'
16012 else
16013 shared_flag='${wl}-bM:SRE'
16014 fi
16015 fi
16016 fi
16017
16018 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16019 # It seems that -bexpall does not export symbols beginning with
16020 # underscore (_), so it is better to generate a list of symbols to
16021 # export.
16022 always_export_symbols_CXX=yes
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # Warning - without using the other runtime loading flags (-brtl),
16025 # -berok will link without error, but may produce a broken library.
16026 allow_undefined_flag_CXX='-berok'
16027 # Determine the default libpath from the value encoded in an empty
16028 # executable.
cristy8b350f62009-11-15 23:12:43 +000016029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016030/* end confdefs.h. */
16031
16032int
16033main ()
16034{
16035
16036 ;
16037 return 0;
16038}
16039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016040if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016041
16042lt_aix_libpath_sed='
16043 /Import File Strings/,/^$/ {
16044 /^0/ {
16045 s/^0 *\(.*\)$/\1/
16046 p
16047 }
16048 }'
16049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16050# Check for a 64-bit object if we didn't find anything.
16051if test -z "$aix_libpath"; then
16052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16053fi
cristy3ed852e2009-09-05 21:47:34 +000016054fi
cristy8b350f62009-11-15 23:12:43 +000016055rm -f core conftest.err conftest.$ac_objext \
16056 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16058
16059 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16060
cristy18304f92009-11-22 15:48:26 +000016061 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 +000016062 else
16063 if test "$host_cpu" = ia64; then
16064 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16065 allow_undefined_flag_CXX="-z nodefs"
16066 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"
16067 else
16068 # Determine the default libpath from the value encoded in an
16069 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016071/* end confdefs.h. */
16072
16073int
16074main ()
16075{
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016081if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016082
16083lt_aix_libpath_sed='
16084 /Import File Strings/,/^$/ {
16085 /^0/ {
16086 s/^0 *\(.*\)$/\1/
16087 p
16088 }
16089 }'
16090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16091# Check for a 64-bit object if we didn't find anything.
16092if test -z "$aix_libpath"; then
16093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16094fi
cristy3ed852e2009-09-05 21:47:34 +000016095fi
cristy8b350f62009-11-15 23:12:43 +000016096rm -f core conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16099
16100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16101 # Warning - without using the other run time loading flags,
16102 # -berok will link without error, but may produce a broken library.
16103 no_undefined_flag_CXX=' ${wl}-bernotok'
16104 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016105 # Exported symbols can be pulled into shared objects from archives
16106 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016107 archive_cmds_need_lc_CXX=yes
16108 # This is similar to how AIX traditionally builds its shared
16109 # libraries.
16110 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'
16111 fi
16112 fi
16113 ;;
16114
16115 beos*)
16116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16117 allow_undefined_flag_CXX=unsupported
16118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16119 # support --undefined. This deserves some investigation. FIXME
16120 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16121 else
16122 ld_shlibs_CXX=no
16123 fi
16124 ;;
16125
16126 chorus*)
16127 case $cc_basename in
16128 *)
16129 # FIXME: insert proper C++ library support
16130 ld_shlibs_CXX=no
16131 ;;
16132 esac
16133 ;;
16134
16135 cygwin* | mingw* | pw32* | cegcc*)
16136 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16137 # as there is no search path for DLLs.
16138 hardcode_libdir_flag_spec_CXX='-L$libdir'
16139 allow_undefined_flag_CXX=unsupported
16140 always_export_symbols_CXX=no
16141 enable_shared_with_static_runtimes_CXX=yes
16142
16143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16144 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'
16145 # If the export-symbols file already is a .def file (1st line
16146 # is EXPORTS), use it as is; otherwise, prepend...
16147 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16148 cp $export_symbols $output_objdir/$soname.def;
16149 else
16150 echo EXPORTS > $output_objdir/$soname.def;
16151 cat $export_symbols >> $output_objdir/$soname.def;
16152 fi~
16153 $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'
16154 else
16155 ld_shlibs_CXX=no
16156 fi
16157 ;;
16158 darwin* | rhapsody*)
16159
16160
16161 archive_cmds_need_lc_CXX=no
16162 hardcode_direct_CXX=no
16163 hardcode_automatic_CXX=yes
16164 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016165 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016166 link_all_deplibs_CXX=yes
16167 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16168 case $cc_basename in
16169 ifort*) _lt_dar_can_shared=yes ;;
16170 *) _lt_dar_can_shared=$GCC ;;
16171 esac
16172 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016173 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016174 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}"
16175 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16176 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}"
16177 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}"
16178 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16179 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}"
16180 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}"
16181 fi
16182
16183 else
16184 ld_shlibs_CXX=no
16185 fi
16186
16187 ;;
16188
16189 dgux*)
16190 case $cc_basename in
16191 ec++*)
16192 # FIXME: insert proper C++ library support
16193 ld_shlibs_CXX=no
16194 ;;
16195 ghcx*)
16196 # Green Hills C++ Compiler
16197 # FIXME: insert proper C++ library support
16198 ld_shlibs_CXX=no
16199 ;;
16200 *)
16201 # FIXME: insert proper C++ library support
16202 ld_shlibs_CXX=no
16203 ;;
16204 esac
16205 ;;
16206
16207 freebsd[12]*)
16208 # C++ shared libraries reported to be fairly broken before
16209 # switch to ELF
16210 ld_shlibs_CXX=no
16211 ;;
16212
16213 freebsd-elf*)
16214 archive_cmds_need_lc_CXX=no
16215 ;;
16216
16217 freebsd* | dragonfly*)
16218 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16219 # conventions
16220 ld_shlibs_CXX=yes
16221 ;;
16222
16223 gnu*)
16224 ;;
16225
16226 hpux9*)
16227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16228 hardcode_libdir_separator_CXX=:
16229 export_dynamic_flag_spec_CXX='${wl}-E'
16230 hardcode_direct_CXX=yes
16231 hardcode_minus_L_CXX=yes # Not in the search PATH,
16232 # but as the default
16233 # location of the library.
16234
16235 case $cc_basename in
16236 CC*)
16237 # FIXME: insert proper C++ library support
16238 ld_shlibs_CXX=no
16239 ;;
16240 aCC*)
16241 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'
16242 # Commands to make compiler produce verbose output that lists
16243 # what "hidden" libraries, object files and flags are used when
16244 # linking a shared library.
16245 #
16246 # There doesn't appear to be a way to prevent this compiler from
16247 # explicitly linking system object files so we need to strip them
16248 # from the output so that they don't get included in the library
16249 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016250 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 +000016251 ;;
16252 *)
16253 if test "$GXX" = yes; then
16254 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'
16255 else
16256 # FIXME: insert proper C++ library support
16257 ld_shlibs_CXX=no
16258 fi
16259 ;;
16260 esac
16261 ;;
16262
16263 hpux10*|hpux11*)
16264 if test $with_gnu_ld = no; then
16265 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16266 hardcode_libdir_separator_CXX=:
16267
16268 case $host_cpu in
16269 hppa*64*|ia64*)
16270 ;;
16271 *)
16272 export_dynamic_flag_spec_CXX='${wl}-E'
16273 ;;
16274 esac
16275 fi
16276 case $host_cpu in
16277 hppa*64*|ia64*)
16278 hardcode_direct_CXX=no
16279 hardcode_shlibpath_var_CXX=no
16280 ;;
16281 *)
16282 hardcode_direct_CXX=yes
16283 hardcode_direct_absolute_CXX=yes
16284 hardcode_minus_L_CXX=yes # Not in the search PATH,
16285 # but as the default
16286 # location of the library.
16287 ;;
16288 esac
16289
16290 case $cc_basename in
16291 CC*)
16292 # FIXME: insert proper C++ library support
16293 ld_shlibs_CXX=no
16294 ;;
16295 aCC*)
16296 case $host_cpu in
16297 hppa*64*)
16298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16299 ;;
16300 ia64*)
16301 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16302 ;;
16303 *)
16304 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16305 ;;
16306 esac
16307 # Commands to make compiler produce verbose output that lists
16308 # what "hidden" libraries, object files and flags are used when
16309 # linking a shared library.
16310 #
16311 # There doesn't appear to be a way to prevent this compiler from
16312 # explicitly linking system object files so we need to strip them
16313 # from the output so that they don't get included in the library
16314 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016315 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 +000016316 ;;
16317 *)
16318 if test "$GXX" = yes; then
16319 if test $with_gnu_ld = no; then
16320 case $host_cpu in
16321 hppa*64*)
16322 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16323 ;;
16324 ia64*)
16325 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16326 ;;
16327 *)
16328 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'
16329 ;;
16330 esac
16331 fi
16332 else
16333 # FIXME: insert proper C++ library support
16334 ld_shlibs_CXX=no
16335 fi
16336 ;;
16337 esac
16338 ;;
16339
16340 interix[3-9]*)
16341 hardcode_direct_CXX=no
16342 hardcode_shlibpath_var_CXX=no
16343 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16344 export_dynamic_flag_spec_CXX='${wl}-E'
16345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16346 # Instead, shared libraries are loaded at an image base (0x10000000 by
16347 # default) and relocated if they conflict, which is a slow very memory
16348 # consuming and fragmenting process. To avoid this, we pick a random,
16349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16351 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'
16352 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'
16353 ;;
16354 irix5* | irix6*)
16355 case $cc_basename in
16356 CC*)
16357 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016358 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 +000016359
16360 # Archives containing C++ object files must be created using
16361 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16362 # necessary to make sure instantiated templates are included
16363 # in the archive.
16364 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16365 ;;
16366 *)
16367 if test "$GXX" = yes; then
16368 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016369 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 +000016370 else
cristy18304f92009-11-22 15:48:26 +000016371 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 +000016372 fi
16373 fi
16374 link_all_deplibs_CXX=yes
16375 ;;
16376 esac
16377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16378 hardcode_libdir_separator_CXX=:
16379 inherit_rpath_CXX=yes
16380 ;;
16381
cristy18304f92009-11-22 15:48:26 +000016382 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016383 case $cc_basename in
16384 KCC*)
16385 # Kuck and Associates, Inc. (KAI) C++ Compiler
16386
16387 # KCC will only create a shared library if the output file
16388 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16389 # to its proper name (with version) after linking.
16390 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'
16391 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'
16392 # Commands to make compiler produce verbose output that lists
16393 # what "hidden" libraries, object files and flags are used when
16394 # linking a shared library.
16395 #
16396 # There doesn't appear to be a way to prevent this compiler from
16397 # explicitly linking system object files so we need to strip them
16398 # from the output so that they don't get included in the library
16399 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016400 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 +000016401
16402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16404
16405 # Archives containing C++ object files must be created using
16406 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16407 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16408 ;;
16409 icpc* | ecpc* )
16410 # Intel C++
16411 with_gnu_ld=yes
16412 # version 8.0 and above of icpc choke on multiply defined symbols
16413 # if we add $predep_objects and $postdep_objects, however 7.1 and
16414 # earlier do not add the objects themselves.
16415 case `$CC -V 2>&1` in
16416 *"Version 7."*)
16417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16418 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'
16419 ;;
16420 *) # Version 8.0 or newer
16421 tmp_idyn=
16422 case $host_cpu in
16423 ia64*) tmp_idyn=' -i_dynamic';;
16424 esac
16425 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16426 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'
16427 ;;
16428 esac
16429 archive_cmds_need_lc_CXX=no
16430 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16432 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16433 ;;
16434 pgCC* | pgcpp*)
16435 # Portland Group C++ compiler
16436 case `$CC -V` in
16437 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16438 prelink_cmds_CXX='tpldir=Template.dir~
16439 rm -rf $tpldir~
16440 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16441 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16442 old_archive_cmds_CXX='tpldir=Template.dir~
16443 rm -rf $tpldir~
16444 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16445 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16446 $RANLIB $oldlib'
16447 archive_cmds_CXX='tpldir=Template.dir~
16448 rm -rf $tpldir~
16449 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16450 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16451 archive_expsym_cmds_CXX='tpldir=Template.dir~
16452 rm -rf $tpldir~
16453 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16454 $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'
16455 ;;
16456 *) # Version 6 will use weak symbols
16457 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16458 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'
16459 ;;
16460 esac
16461
16462 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016464 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 +000016465 ;;
16466 cxx*)
16467 # Compaq C++
16468 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16469 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'
16470
16471 runpath_var=LD_RUN_PATH
16472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16473 hardcode_libdir_separator_CXX=:
16474
16475 # Commands to make compiler produce verbose output that lists
16476 # what "hidden" libraries, object files and flags are used when
16477 # linking a shared library.
16478 #
16479 # There doesn't appear to be a way to prevent this compiler from
16480 # explicitly linking system object files so we need to strip them
16481 # from the output so that they don't get included in the library
16482 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016483 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 +000016484 ;;
cristy18304f92009-11-22 15:48:26 +000016485 xl*)
cristy3ed852e2009-09-05 21:47:34 +000016486 # IBM XL 8.0 on PPC, with GNU ld
16487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16489 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16490 if test "x$supports_anon_versioning" = xyes; then
16491 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16493 echo "local: *; };" >> $output_objdir/$libname.ver~
16494 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16495 fi
16496 ;;
16497 *)
16498 case `$CC -V 2>&1 | sed 5q` in
16499 *Sun\ C*)
16500 # Sun C++ 5.9
16501 no_undefined_flag_CXX=' -zdefs'
16502 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16503 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'
16504 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000016505 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 +000016506 compiler_needs_object_CXX=yes
16507
16508 # Not sure whether something based on
16509 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16510 # would be better.
cristy18304f92009-11-22 15:48:26 +000016511 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016512
16513 # Archives containing C++ object files must be created using
16514 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16515 # necessary to make sure instantiated templates are included
16516 # in the archive.
16517 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16518 ;;
16519 esac
16520 ;;
16521 esac
16522 ;;
16523
16524 lynxos*)
16525 # FIXME: insert proper C++ library support
16526 ld_shlibs_CXX=no
16527 ;;
16528
16529 m88k*)
16530 # FIXME: insert proper C++ library support
16531 ld_shlibs_CXX=no
16532 ;;
16533
16534 mvs*)
16535 case $cc_basename in
16536 cxx*)
16537 # FIXME: insert proper C++ library support
16538 ld_shlibs_CXX=no
16539 ;;
16540 *)
16541 # FIXME: insert proper C++ library support
16542 ld_shlibs_CXX=no
16543 ;;
16544 esac
16545 ;;
16546
16547 netbsd*)
16548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16549 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16550 wlarc=
16551 hardcode_libdir_flag_spec_CXX='-R$libdir'
16552 hardcode_direct_CXX=yes
16553 hardcode_shlibpath_var_CXX=no
16554 fi
16555 # Workaround some broken pre-1.5 toolchains
16556 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16557 ;;
16558
16559 *nto* | *qnx*)
16560 ld_shlibs_CXX=yes
16561 ;;
16562
16563 openbsd2*)
16564 # C++ shared libraries are fairly broken
16565 ld_shlibs_CXX=no
16566 ;;
16567
16568 openbsd*)
16569 if test -f /usr/libexec/ld.so; then
16570 hardcode_direct_CXX=yes
16571 hardcode_shlibpath_var_CXX=no
16572 hardcode_direct_absolute_CXX=yes
16573 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16576 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16577 export_dynamic_flag_spec_CXX='${wl}-E'
16578 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16579 fi
cristy18304f92009-11-22 15:48:26 +000016580 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016581 else
16582 ld_shlibs_CXX=no
16583 fi
16584 ;;
16585
16586 osf3* | osf4* | osf5*)
16587 case $cc_basename in
16588 KCC*)
16589 # Kuck and Associates, Inc. (KAI) C++ Compiler
16590
16591 # KCC will only create a shared library if the output file
16592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16593 # to its proper name (with version) after linking.
16594 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'
16595
16596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16597 hardcode_libdir_separator_CXX=:
16598
16599 # Archives containing C++ object files must be created using
16600 # the KAI C++ compiler.
16601 case $host in
16602 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16603 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16604 esac
16605 ;;
16606 RCC*)
16607 # Rational C++ 2.4.1
16608 # FIXME: insert proper C++ library support
16609 ld_shlibs_CXX=no
16610 ;;
16611 cxx*)
16612 case $host in
16613 osf3*)
16614 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000016615 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 +000016616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16617 ;;
16618 *)
16619 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000016620 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 +000016621 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16622 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000016623 $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 +000016624 $RM $lib.exp'
16625 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16626 ;;
16627 esac
16628
16629 hardcode_libdir_separator_CXX=:
16630
16631 # Commands to make compiler produce verbose output that lists
16632 # what "hidden" libraries, object files and flags are used when
16633 # linking a shared library.
16634 #
16635 # There doesn't appear to be a way to prevent this compiler from
16636 # explicitly linking system object files so we need to strip them
16637 # from the output so that they don't get included in the library
16638 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016639 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 +000016640 ;;
16641 *)
16642 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16643 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16644 case $host in
16645 osf3*)
cristy18304f92009-11-22 15:48:26 +000016646 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 +000016647 ;;
16648 *)
cristy18304f92009-11-22 15:48:26 +000016649 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 +000016650 ;;
16651 esac
16652
16653 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16654 hardcode_libdir_separator_CXX=:
16655
16656 # Commands to make compiler produce verbose output that lists
16657 # what "hidden" libraries, object files and flags are used when
16658 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016660
16661 else
16662 # FIXME: insert proper C++ library support
16663 ld_shlibs_CXX=no
16664 fi
16665 ;;
16666 esac
16667 ;;
16668
16669 psos*)
16670 # FIXME: insert proper C++ library support
16671 ld_shlibs_CXX=no
16672 ;;
16673
16674 sunos4*)
16675 case $cc_basename in
16676 CC*)
16677 # Sun C++ 4.x
16678 # FIXME: insert proper C++ library support
16679 ld_shlibs_CXX=no
16680 ;;
16681 lcc*)
16682 # Lucid
16683 # FIXME: insert proper C++ library support
16684 ld_shlibs_CXX=no
16685 ;;
16686 *)
16687 # FIXME: insert proper C++ library support
16688 ld_shlibs_CXX=no
16689 ;;
16690 esac
16691 ;;
16692
16693 solaris*)
16694 case $cc_basename in
16695 CC*)
16696 # Sun C++ 4.2, 5.x and Centerline C++
16697 archive_cmds_need_lc_CXX=yes
16698 no_undefined_flag_CXX=' -zdefs'
16699 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16701 $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'
16702
16703 hardcode_libdir_flag_spec_CXX='-R$libdir'
16704 hardcode_shlibpath_var_CXX=no
16705 case $host_os in
16706 solaris2.[0-5] | solaris2.[0-5].*) ;;
16707 *)
16708 # The compiler driver will combine and reorder linker options,
16709 # but understands `-z linker_flag'.
16710 # Supported since Solaris 2.6 (maybe 2.5.1?)
16711 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16712 ;;
16713 esac
16714 link_all_deplibs_CXX=yes
16715
cristy18304f92009-11-22 15:48:26 +000016716 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000016717
16718 # Archives containing C++ object files must be created using
16719 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16720 # necessary to make sure instantiated templates are included
16721 # in the archive.
16722 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16723 ;;
16724 gcx*)
16725 # Green Hills C++ Compiler
16726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16727
16728 # The C++ compiler must be used to create the archive.
16729 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16730 ;;
16731 *)
16732 # GNU C++ compiler with Solaris linker
16733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16734 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16735 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16736 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16737 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16738 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16739
16740 # Commands to make compiler produce verbose output that lists
16741 # what "hidden" libraries, object files and flags are used when
16742 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016744 else
16745 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16746 # platform.
16747 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16748 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16749 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16750
16751 # Commands to make compiler produce verbose output that lists
16752 # what "hidden" libraries, object files and flags are used when
16753 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016754 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016755 fi
16756
16757 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16758 case $host_os in
16759 solaris2.[0-5] | solaris2.[0-5].*) ;;
16760 *)
16761 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16762 ;;
16763 esac
16764 fi
16765 ;;
16766 esac
16767 ;;
16768
16769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16770 no_undefined_flag_CXX='${wl}-z,text'
16771 archive_cmds_need_lc_CXX=no
16772 hardcode_shlibpath_var_CXX=no
16773 runpath_var='LD_RUN_PATH'
16774
16775 case $cc_basename in
16776 CC*)
16777 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16779 ;;
16780 *)
16781 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16782 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 ;;
16784 esac
16785 ;;
16786
16787 sysv5* | sco3.2v5* | sco5v6*)
16788 # Note: We can NOT use -z defs as we might desire, because we do not
16789 # link with -lc, and that would cause any symbols used from libc to
16790 # always be unresolved, which means just about no library would
16791 # ever link correctly. If we're not using GNU ld we use -z text
16792 # though, which does catch some bad symbols but isn't as heavy-handed
16793 # as -z defs.
16794 no_undefined_flag_CXX='${wl}-z,text'
16795 allow_undefined_flag_CXX='${wl}-z,nodefs'
16796 archive_cmds_need_lc_CXX=no
16797 hardcode_shlibpath_var_CXX=no
16798 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16799 hardcode_libdir_separator_CXX=':'
16800 link_all_deplibs_CXX=yes
16801 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16802 runpath_var='LD_RUN_PATH'
16803
16804 case $cc_basename in
16805 CC*)
16806 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16808 ;;
16809 *)
16810 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16811 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812 ;;
16813 esac
16814 ;;
16815
16816 tandem*)
16817 case $cc_basename in
16818 NCC*)
16819 # NonStop-UX NCC 3.20
16820 # FIXME: insert proper C++ library support
16821 ld_shlibs_CXX=no
16822 ;;
16823 *)
16824 # FIXME: insert proper C++ library support
16825 ld_shlibs_CXX=no
16826 ;;
16827 esac
16828 ;;
16829
16830 vxworks*)
16831 # FIXME: insert proper C++ library support
16832 ld_shlibs_CXX=no
16833 ;;
16834
16835 *)
16836 # FIXME: insert proper C++ library support
16837 ld_shlibs_CXX=no
16838 ;;
16839 esac
16840
cristy8b350f62009-11-15 23:12:43 +000016841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000016842$as_echo "$ld_shlibs_CXX" >&6; }
16843 test "$ld_shlibs_CXX" = no && can_build_shared=no
16844
16845 GCC_CXX="$GXX"
16846 LD_CXX="$LD"
16847
16848 ## CAVEAT EMPTOR:
16849 ## There is no encapsulation within the following macros, do not change
16850 ## the running order or otherwise move them around unless you know exactly
16851 ## what you are doing...
16852 # Dependencies to place before and after the object being linked:
16853predep_objects_CXX=
16854postdep_objects_CXX=
16855predeps_CXX=
16856postdeps_CXX=
16857compiler_lib_search_path_CXX=
16858
16859cat > conftest.$ac_ext <<_LT_EOF
16860class Foo
16861{
16862public:
16863 Foo (void) { a = 0; }
16864private:
16865 int a;
16866};
16867_LT_EOF
16868
cristy8b350f62009-11-15 23:12:43 +000016869if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016870 (eval $ac_compile) 2>&5
16871 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000016874 # Parse the compiler output and extract the necessary
16875 # objects, libraries and library flags.
16876
16877 # Sentinel used to keep track of whether or not we are before
16878 # the conftest object file.
16879 pre_test_object_deps_done=no
16880
16881 for p in `eval "$output_verbose_link_cmd"`; do
16882 case $p in
16883
16884 -L* | -R* | -l*)
16885 # Some compilers place space between "-{L,R}" and the path.
16886 # Remove the space.
16887 if test $p = "-L" ||
16888 test $p = "-R"; then
16889 prev=$p
16890 continue
16891 else
16892 prev=
16893 fi
16894
16895 if test "$pre_test_object_deps_done" = no; then
16896 case $p in
16897 -L* | -R*)
16898 # Internal compiler library paths should come after those
16899 # provided the user. The postdeps already come after the
16900 # user supplied libs so there is no need to process them.
16901 if test -z "$compiler_lib_search_path_CXX"; then
16902 compiler_lib_search_path_CXX="${prev}${p}"
16903 else
16904 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16905 fi
16906 ;;
16907 # The "-l" case would never come before the object being
16908 # linked, so don't bother handling this case.
16909 esac
16910 else
16911 if test -z "$postdeps_CXX"; then
16912 postdeps_CXX="${prev}${p}"
16913 else
16914 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16915 fi
16916 fi
16917 ;;
16918
16919 *.$objext)
16920 # This assumes that the test object file only shows up
16921 # once in the compiler output.
16922 if test "$p" = "conftest.$objext"; then
16923 pre_test_object_deps_done=yes
16924 continue
16925 fi
16926
16927 if test "$pre_test_object_deps_done" = no; then
16928 if test -z "$predep_objects_CXX"; then
16929 predep_objects_CXX="$p"
16930 else
16931 predep_objects_CXX="$predep_objects_CXX $p"
16932 fi
16933 else
16934 if test -z "$postdep_objects_CXX"; then
16935 postdep_objects_CXX="$p"
16936 else
16937 postdep_objects_CXX="$postdep_objects_CXX $p"
16938 fi
16939 fi
16940 ;;
16941
16942 *) ;; # Ignore the rest.
16943
16944 esac
16945 done
16946
16947 # Clean up.
16948 rm -f a.out a.exe
16949else
16950 echo "libtool.m4: error: problem compiling CXX test program"
16951fi
16952
16953$RM -f confest.$objext
16954
16955# PORTME: override above test on systems where it is broken
16956case $host_os in
16957interix[3-9]*)
16958 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16959 # hack all around it, let's just trust "g++" to DTRT.
16960 predep_objects_CXX=
16961 postdep_objects_CXX=
16962 postdeps_CXX=
16963 ;;
16964
16965linux*)
16966 case `$CC -V 2>&1 | sed 5q` in
16967 *Sun\ C*)
16968 # Sun C++ 5.9
16969
16970 # The more standards-conforming stlport4 library is
16971 # incompatible with the Cstd library. Avoid specifying
16972 # it if it's in CXXFLAGS. Ignore libCrun as
16973 # -library=stlport4 depends on it.
16974 case " $CXX $CXXFLAGS " in
16975 *" -library=stlport4 "*)
16976 solaris_use_stlport4=yes
16977 ;;
16978 esac
16979
16980 if test "$solaris_use_stlport4" != yes; then
16981 postdeps_CXX='-library=Cstd -library=Crun'
16982 fi
16983 ;;
16984 esac
16985 ;;
16986
16987solaris*)
16988 case $cc_basename in
16989 CC*)
16990 # The more standards-conforming stlport4 library is
16991 # incompatible with the Cstd library. Avoid specifying
16992 # it if it's in CXXFLAGS. Ignore libCrun as
16993 # -library=stlport4 depends on it.
16994 case " $CXX $CXXFLAGS " in
16995 *" -library=stlport4 "*)
16996 solaris_use_stlport4=yes
16997 ;;
16998 esac
16999
17000 # Adding this requires a known-good setup of shared libraries for
17001 # Sun compiler versions before 5.6, else PIC objects from an old
17002 # archive will be linked into the output, leading to subtle bugs.
17003 if test "$solaris_use_stlport4" != yes; then
17004 postdeps_CXX='-library=Cstd -library=Crun'
17005 fi
17006 ;;
17007 esac
17008 ;;
17009esac
17010
17011
17012case " $postdeps_CXX " in
17013*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17014esac
17015 compiler_lib_search_dirs_CXX=
17016if test -n "${compiler_lib_search_path_CXX}"; then
17017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17018fi
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050 lt_prog_compiler_wl_CXX=
17051lt_prog_compiler_pic_CXX=
17052lt_prog_compiler_static_CXX=
17053
cristy8b350f62009-11-15 23:12:43 +000017054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017055$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17056
17057 # C++ specific cases for pic, static, wl, etc.
17058 if test "$GXX" = yes; then
17059 lt_prog_compiler_wl_CXX='-Wl,'
17060 lt_prog_compiler_static_CXX='-static'
17061
17062 case $host_os in
17063 aix*)
17064 # All AIX code is PIC.
17065 if test "$host_cpu" = ia64; then
17066 # AIX 5 now supports IA64 processor
17067 lt_prog_compiler_static_CXX='-Bstatic'
17068 fi
17069 ;;
17070
17071 amigaos*)
17072 case $host_cpu in
17073 powerpc)
17074 # see comment about AmigaOS4 .so support
17075 lt_prog_compiler_pic_CXX='-fPIC'
17076 ;;
17077 m68k)
17078 # FIXME: we need at least 68020 code to build shared libraries, but
17079 # adding the `-m68020' flag to GCC prevents building anything better,
17080 # like `-m68040'.
17081 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17082 ;;
17083 esac
17084 ;;
17085
17086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17087 # PIC is the default for these OSes.
17088 ;;
17089 mingw* | cygwin* | os2* | pw32* | cegcc*)
17090 # This hack is so that the source file can tell whether it is being
17091 # built for inclusion in a dll (and should export symbols for example).
17092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17093 # (--disable-auto-import) libraries
17094 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17095 ;;
17096 darwin* | rhapsody*)
17097 # PIC is the default on this platform
17098 # Common symbols not allowed in MH_DYLIB files
17099 lt_prog_compiler_pic_CXX='-fno-common'
17100 ;;
17101 *djgpp*)
17102 # DJGPP does not support shared libraries at all
17103 lt_prog_compiler_pic_CXX=
17104 ;;
17105 interix[3-9]*)
17106 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17107 # Instead, we relocate shared libraries at runtime.
17108 ;;
17109 sysv4*MP*)
17110 if test -d /usr/nec; then
17111 lt_prog_compiler_pic_CXX=-Kconform_pic
17112 fi
17113 ;;
17114 hpux*)
17115 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17116 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17117 # sets the default TLS model and affects inlining.
17118 case $host_cpu in
17119 hppa*64*)
17120 ;;
17121 *)
17122 lt_prog_compiler_pic_CXX='-fPIC'
17123 ;;
17124 esac
17125 ;;
17126 *qnx* | *nto*)
17127 # QNX uses GNU C++, but need to define -shared option too, otherwise
17128 # it will coredump.
17129 lt_prog_compiler_pic_CXX='-fPIC -shared'
17130 ;;
17131 *)
17132 lt_prog_compiler_pic_CXX='-fPIC'
17133 ;;
17134 esac
17135 else
17136 case $host_os in
17137 aix[4-9]*)
17138 # All AIX code is PIC.
17139 if test "$host_cpu" = ia64; then
17140 # AIX 5 now supports IA64 processor
17141 lt_prog_compiler_static_CXX='-Bstatic'
17142 else
17143 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17144 fi
17145 ;;
17146 chorus*)
17147 case $cc_basename in
17148 cxch68*)
17149 # Green Hills C++ Compiler
17150 # _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"
17151 ;;
17152 esac
17153 ;;
17154 dgux*)
17155 case $cc_basename in
17156 ec++*)
17157 lt_prog_compiler_pic_CXX='-KPIC'
17158 ;;
17159 ghcx*)
17160 # Green Hills C++ Compiler
17161 lt_prog_compiler_pic_CXX='-pic'
17162 ;;
17163 *)
17164 ;;
17165 esac
17166 ;;
17167 freebsd* | dragonfly*)
17168 # FreeBSD uses GNU C++
17169 ;;
17170 hpux9* | hpux10* | hpux11*)
17171 case $cc_basename in
17172 CC*)
17173 lt_prog_compiler_wl_CXX='-Wl,'
17174 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17175 if test "$host_cpu" != ia64; then
17176 lt_prog_compiler_pic_CXX='+Z'
17177 fi
17178 ;;
17179 aCC*)
17180 lt_prog_compiler_wl_CXX='-Wl,'
17181 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17182 case $host_cpu in
17183 hppa*64*|ia64*)
17184 # +Z the default
17185 ;;
17186 *)
17187 lt_prog_compiler_pic_CXX='+Z'
17188 ;;
17189 esac
17190 ;;
17191 *)
17192 ;;
17193 esac
17194 ;;
17195 interix*)
17196 # This is c89, which is MS Visual C++ (no shared libs)
17197 # Anyone wants to do a port?
17198 ;;
17199 irix5* | irix6* | nonstopux*)
17200 case $cc_basename in
17201 CC*)
17202 lt_prog_compiler_wl_CXX='-Wl,'
17203 lt_prog_compiler_static_CXX='-non_shared'
17204 # CC pic flag -KPIC is the default.
17205 ;;
17206 *)
17207 ;;
17208 esac
17209 ;;
cristy18304f92009-11-22 15:48:26 +000017210 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017211 case $cc_basename in
17212 KCC*)
17213 # KAI C++ Compiler
17214 lt_prog_compiler_wl_CXX='--backend -Wl,'
17215 lt_prog_compiler_pic_CXX='-fPIC'
17216 ;;
17217 ecpc* )
17218 # old Intel C++ for x86_64 which still supported -KPIC.
17219 lt_prog_compiler_wl_CXX='-Wl,'
17220 lt_prog_compiler_pic_CXX='-KPIC'
17221 lt_prog_compiler_static_CXX='-static'
17222 ;;
17223 icpc* )
17224 # Intel C++, used to be incompatible with GCC.
17225 # ICC 10 doesn't accept -KPIC any more.
17226 lt_prog_compiler_wl_CXX='-Wl,'
17227 lt_prog_compiler_pic_CXX='-fPIC'
17228 lt_prog_compiler_static_CXX='-static'
17229 ;;
17230 pgCC* | pgcpp*)
17231 # Portland Group C++ compiler
17232 lt_prog_compiler_wl_CXX='-Wl,'
17233 lt_prog_compiler_pic_CXX='-fpic'
17234 lt_prog_compiler_static_CXX='-Bstatic'
17235 ;;
17236 cxx*)
17237 # Compaq C++
17238 # Make sure the PIC flag is empty. It appears that all Alpha
17239 # Linux and Compaq Tru64 Unix objects are PIC.
17240 lt_prog_compiler_pic_CXX=
17241 lt_prog_compiler_static_CXX='-non_shared'
17242 ;;
cristy18304f92009-11-22 15:48:26 +000017243 xlc* | xlC*)
17244 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017245 lt_prog_compiler_wl_CXX='-Wl,'
17246 lt_prog_compiler_pic_CXX='-qpic'
17247 lt_prog_compiler_static_CXX='-qstaticlink'
17248 ;;
17249 *)
17250 case `$CC -V 2>&1 | sed 5q` in
17251 *Sun\ C*)
17252 # Sun C++ 5.9
17253 lt_prog_compiler_pic_CXX='-KPIC'
17254 lt_prog_compiler_static_CXX='-Bstatic'
17255 lt_prog_compiler_wl_CXX='-Qoption ld '
17256 ;;
17257 esac
17258 ;;
17259 esac
17260 ;;
17261 lynxos*)
17262 ;;
17263 m88k*)
17264 ;;
17265 mvs*)
17266 case $cc_basename in
17267 cxx*)
17268 lt_prog_compiler_pic_CXX='-W c,exportall'
17269 ;;
17270 *)
17271 ;;
17272 esac
17273 ;;
17274 netbsd*)
17275 ;;
17276 *qnx* | *nto*)
17277 # QNX uses GNU C++, but need to define -shared option too, otherwise
17278 # it will coredump.
17279 lt_prog_compiler_pic_CXX='-fPIC -shared'
17280 ;;
17281 osf3* | osf4* | osf5*)
17282 case $cc_basename in
17283 KCC*)
17284 lt_prog_compiler_wl_CXX='--backend -Wl,'
17285 ;;
17286 RCC*)
17287 # Rational C++ 2.4.1
17288 lt_prog_compiler_pic_CXX='-pic'
17289 ;;
17290 cxx*)
17291 # Digital/Compaq C++
17292 lt_prog_compiler_wl_CXX='-Wl,'
17293 # Make sure the PIC flag is empty. It appears that all Alpha
17294 # Linux and Compaq Tru64 Unix objects are PIC.
17295 lt_prog_compiler_pic_CXX=
17296 lt_prog_compiler_static_CXX='-non_shared'
17297 ;;
17298 *)
17299 ;;
17300 esac
17301 ;;
17302 psos*)
17303 ;;
17304 solaris*)
17305 case $cc_basename in
17306 CC*)
17307 # Sun C++ 4.2, 5.x and Centerline C++
17308 lt_prog_compiler_pic_CXX='-KPIC'
17309 lt_prog_compiler_static_CXX='-Bstatic'
17310 lt_prog_compiler_wl_CXX='-Qoption ld '
17311 ;;
17312 gcx*)
17313 # Green Hills C++ Compiler
17314 lt_prog_compiler_pic_CXX='-PIC'
17315 ;;
17316 *)
17317 ;;
17318 esac
17319 ;;
17320 sunos4*)
17321 case $cc_basename in
17322 CC*)
17323 # Sun C++ 4.x
17324 lt_prog_compiler_pic_CXX='-pic'
17325 lt_prog_compiler_static_CXX='-Bstatic'
17326 ;;
17327 lcc*)
17328 # Lucid
17329 lt_prog_compiler_pic_CXX='-pic'
17330 ;;
17331 *)
17332 ;;
17333 esac
17334 ;;
17335 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17336 case $cc_basename in
17337 CC*)
17338 lt_prog_compiler_wl_CXX='-Wl,'
17339 lt_prog_compiler_pic_CXX='-KPIC'
17340 lt_prog_compiler_static_CXX='-Bstatic'
17341 ;;
17342 esac
17343 ;;
17344 tandem*)
17345 case $cc_basename in
17346 NCC*)
17347 # NonStop-UX NCC 3.20
17348 lt_prog_compiler_pic_CXX='-KPIC'
17349 ;;
17350 *)
17351 ;;
17352 esac
17353 ;;
17354 vxworks*)
17355 ;;
17356 *)
17357 lt_prog_compiler_can_build_shared_CXX=no
17358 ;;
17359 esac
17360 fi
17361
17362case $host_os in
17363 # For platforms which do not support PIC, -DPIC is meaningless:
17364 *djgpp*)
17365 lt_prog_compiler_pic_CXX=
17366 ;;
17367 *)
17368 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17369 ;;
17370esac
cristy8b350f62009-11-15 23:12:43 +000017371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017372$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17373
17374
17375
17376#
17377# Check to make sure the PIC flag actually works.
17378#
17379if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017380 { $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 +000017381$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017382if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017383 $as_echo_n "(cached) " >&6
17384else
17385 lt_cv_prog_compiler_pic_works_CXX=no
17386 ac_outfile=conftest.$ac_objext
17387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17389 # Insert the option either (1) after the last *FLAGS variable, or
17390 # (2) before a word containing "conftest.", or (3) at the end.
17391 # Note that $ac_compile itself does not contain backslashes and begins
17392 # with a dollar sign (not a hyphen), so the echo should work correctly.
17393 # The option is referenced via a variable to avoid confusing sed.
17394 lt_compile=`echo "$ac_compile" | $SED \
17395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17397 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000017398 (eval echo "\"\$as_me:17398: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017399 (eval "$lt_compile" 2>conftest.err)
17400 ac_status=$?
17401 cat conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000017402 echo "$as_me:17402: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017403 if (exit $ac_status) && test -s "$ac_outfile"; then
17404 # The compiler can only warn and ignore the option if not recognized
17405 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017406 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17409 lt_cv_prog_compiler_pic_works_CXX=yes
17410 fi
17411 fi
17412 $RM conftest*
17413
17414fi
cristy8b350f62009-11-15 23:12:43 +000017415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017416$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17417
17418if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17419 case $lt_prog_compiler_pic_CXX in
17420 "" | " "*) ;;
17421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17422 esac
17423else
17424 lt_prog_compiler_pic_CXX=
17425 lt_prog_compiler_can_build_shared_CXX=no
17426fi
17427
17428fi
17429
17430
17431
17432#
17433# Check to make sure the static flag actually works.
17434#
17435wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017437$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017438if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017439 $as_echo_n "(cached) " >&6
17440else
17441 lt_cv_prog_compiler_static_works_CXX=no
17442 save_LDFLAGS="$LDFLAGS"
17443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17446 # The linker can only warn and ignore the option if not recognized
17447 # So say no if there are warnings
17448 if test -s conftest.err; then
17449 # Append any errors to the config.log.
17450 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017451 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17453 if diff conftest.exp conftest.er2 >/dev/null; then
17454 lt_cv_prog_compiler_static_works_CXX=yes
17455 fi
17456 else
17457 lt_cv_prog_compiler_static_works_CXX=yes
17458 fi
17459 fi
17460 $RM -r conftest*
17461 LDFLAGS="$save_LDFLAGS"
17462
17463fi
cristy8b350f62009-11-15 23:12:43 +000017464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017465$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17466
17467if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17468 :
17469else
17470 lt_prog_compiler_static_CXX=
17471fi
17472
17473
17474
17475
cristy8b350f62009-11-15 23:12:43 +000017476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017478if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017479 $as_echo_n "(cached) " >&6
17480else
17481 lt_cv_prog_compiler_c_o_CXX=no
17482 $RM -r conftest 2>/dev/null
17483 mkdir conftest
17484 cd conftest
17485 mkdir out
17486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17487
17488 lt_compiler_flag="-o out/conftest2.$ac_objext"
17489 # Insert the option either (1) after the last *FLAGS variable, or
17490 # (2) before a word containing "conftest.", or (3) at the end.
17491 # Note that $ac_compile itself does not contain backslashes and begins
17492 # with a dollar sign (not a hyphen), so the echo should work correctly.
17493 lt_compile=`echo "$ac_compile" | $SED \
17494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17496 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000017497 (eval echo "\"\$as_me:17497: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017498 (eval "$lt_compile" 2>out/conftest.err)
17499 ac_status=$?
17500 cat out/conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000017501 echo "$as_me:17501: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17503 then
17504 # The compiler can only warn and ignore the option if not recognized
17505 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017506 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17509 lt_cv_prog_compiler_c_o_CXX=yes
17510 fi
17511 fi
17512 chmod u+w . 2>&5
17513 $RM conftest*
17514 # SGI C++ compiler will create directory out/ii_files/ for
17515 # template instantiation
17516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17517 $RM out/* && rmdir out
17518 cd ..
17519 $RM -r conftest
17520 $RM conftest*
17521
17522fi
cristy8b350f62009-11-15 23:12:43 +000017523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017524$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17525
17526
17527
cristy8b350f62009-11-15 23:12:43 +000017528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017529$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017530if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017531 $as_echo_n "(cached) " >&6
17532else
17533 lt_cv_prog_compiler_c_o_CXX=no
17534 $RM -r conftest 2>/dev/null
17535 mkdir conftest
17536 cd conftest
17537 mkdir out
17538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17539
17540 lt_compiler_flag="-o out/conftest2.$ac_objext"
17541 # Insert the option either (1) after the last *FLAGS variable, or
17542 # (2) before a word containing "conftest.", or (3) at the end.
17543 # Note that $ac_compile itself does not contain backslashes and begins
17544 # with a dollar sign (not a hyphen), so the echo should work correctly.
17545 lt_compile=`echo "$ac_compile" | $SED \
17546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17548 -e 's:$: $lt_compiler_flag:'`
cristy837d6dc2010-02-27 01:16:57 +000017549 (eval echo "\"\$as_me:17549: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017550 (eval "$lt_compile" 2>out/conftest.err)
17551 ac_status=$?
17552 cat out/conftest.err >&5
cristy837d6dc2010-02-27 01:16:57 +000017553 echo "$as_me:17553: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17555 then
17556 # The compiler can only warn and ignore the option if not recognized
17557 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000017558 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17561 lt_cv_prog_compiler_c_o_CXX=yes
17562 fi
17563 fi
17564 chmod u+w . 2>&5
17565 $RM conftest*
17566 # SGI C++ compiler will create directory out/ii_files/ for
17567 # template instantiation
17568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17569 $RM out/* && rmdir out
17570 cd ..
17571 $RM -r conftest
17572 $RM conftest*
17573
17574fi
cristy8b350f62009-11-15 23:12:43 +000017575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017576$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17577
17578
17579
17580
17581hard_links="nottested"
17582if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17583 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000017584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017585$as_echo_n "checking if we can lock with hard links... " >&6; }
17586 hard_links=yes
17587 $RM conftest*
17588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17589 touch conftest.a
17590 ln conftest.a conftest.b 2>&5 || hard_links=no
17591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000017592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000017593$as_echo "$hard_links" >&6; }
17594 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000017595 { $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 +000017596$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17597 need_locks=warn
17598 fi
17599else
17600 need_locks=no
17601fi
17602
17603
17604
cristy8b350f62009-11-15 23:12:43 +000017605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000017606$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17607
17608 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17609 case $host_os in
17610 aix[4-9]*)
17611 # If we're using GNU nm, then we don't want the "-C" option.
17612 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17613 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000017614 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 +000017615 else
17616 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'
17617 fi
17618 ;;
17619 pw32*)
17620 export_symbols_cmds_CXX="$ltdll_cmds"
17621 ;;
17622 cygwin* | mingw* | cegcc*)
17623 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'
17624 ;;
17625 *)
17626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17627 ;;
17628 esac
17629 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17630
cristy8b350f62009-11-15 23:12:43 +000017631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017632$as_echo "$ld_shlibs_CXX" >&6; }
17633test "$ld_shlibs_CXX" = no && can_build_shared=no
17634
17635with_gnu_ld_CXX=$with_gnu_ld
17636
17637
17638
17639
17640
17641
17642#
17643# Do we need to explicitly link libc?
17644#
17645case "x$archive_cmds_need_lc_CXX" in
17646x|xyes)
17647 # Assume -lc should be added
17648 archive_cmds_need_lc_CXX=yes
17649
17650 if test "$enable_shared" = yes && test "$GCC" = yes; then
17651 case $archive_cmds_CXX in
17652 *'~'*)
17653 # FIXME: we may have to deal with multi-command sequences.
17654 ;;
17655 '$CC '*)
17656 # Test whether the compiler implicitly links with -lc since on some
17657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17658 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000017659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000017660$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000017661 $RM conftest*
17662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000017663
cristy18304f92009-11-22 15:48:26 +000017664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017665 (eval $ac_compile) 2>&5
17666 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17668 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000017669 soname=conftest
17670 lib=conftest
17671 libobjs=conftest.$ac_objext
17672 deplibs=
17673 wl=$lt_prog_compiler_wl_CXX
17674 pic_flag=$lt_prog_compiler_pic_CXX
17675 compiler_flags=-v
17676 linker_flags=-v
17677 verstring=
17678 output_objdir=.
17679 libname=conftest
17680 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17681 allow_undefined_flag_CXX=
17682 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 +000017683 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17684 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17686 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000017687 then
17688 archive_cmds_need_lc_CXX=no
17689 else
17690 archive_cmds_need_lc_CXX=yes
17691 fi
17692 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17693 else
17694 cat conftest.err 1>&5
17695 fi
17696 $RM conftest*
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17698$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000017699 ;;
17700 esac
17701 fi
17702 ;;
17703esac
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
cristy8b350f62009-11-15 23:12:43 +000017768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000017769$as_echo_n "checking dynamic linker characteristics... " >&6; }
17770
17771library_names_spec=
17772libname_spec='lib$name'
17773soname_spec=
17774shrext_cmds=".so"
17775postinstall_cmds=
17776postuninstall_cmds=
17777finish_cmds=
17778finish_eval=
17779shlibpath_var=
17780shlibpath_overrides_runpath=unknown
17781version_type=none
17782dynamic_linker="$host_os ld.so"
17783sys_lib_dlsearch_path_spec="/lib /usr/lib"
17784need_lib_prefix=unknown
17785hardcode_into_libs=no
17786
17787# when you set need_version to no, make sure it does not cause -set_version
17788# flags to be left without arguments
17789need_version=unknown
17790
17791case $host_os in
17792aix3*)
17793 version_type=linux
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17795 shlibpath_var=LIBPATH
17796
17797 # AIX 3 has no versioning support, so we append a major version to the name.
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 ;;
17800
17801aix[4-9]*)
17802 version_type=linux
17803 need_lib_prefix=no
17804 need_version=no
17805 hardcode_into_libs=yes
17806 if test "$host_cpu" = ia64; then
17807 # AIX 5 supports IA64
17808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17809 shlibpath_var=LD_LIBRARY_PATH
17810 else
17811 # With GCC up to 2.95.x, collect2 would create an import file
17812 # for dependence libraries. The import file would start with
17813 # the line `#! .'. This would cause the generated library to
17814 # depend on `.', always an invalid library. This was fixed in
17815 # development snapshots of GCC prior to 3.0.
17816 case $host_os in
17817 aix4 | aix4.[01] | aix4.[01].*)
17818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17819 echo ' yes '
17820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17821 :
17822 else
17823 can_build_shared=no
17824 fi
17825 ;;
17826 esac
17827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17828 # soname into executable. Probably we can add versioning support to
17829 # collect2, so additional links can be useful in future.
17830 if test "$aix_use_runtimelinking" = yes; then
17831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17832 # instead of lib<name>.a to let people know that these are not
17833 # typical AIX shared libraries.
17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17835 else
17836 # We preserve .a as extension for shared libraries through AIX4.2
17837 # and later when we are not doing run time linking.
17838 library_names_spec='${libname}${release}.a $libname.a'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 fi
17841 shlibpath_var=LIBPATH
17842 fi
17843 ;;
17844
17845amigaos*)
17846 case $host_cpu in
17847 powerpc)
17848 # Since July 2007 AmigaOS4 officially supports .so libraries.
17849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851 ;;
17852 m68k)
17853 library_names_spec='$libname.ixlibrary $libname.a'
17854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000017855 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 +000017856 ;;
17857 esac
17858 ;;
17859
17860beos*)
17861 library_names_spec='${libname}${shared_ext}'
17862 dynamic_linker="$host_os ld.so"
17863 shlibpath_var=LIBRARY_PATH
17864 ;;
17865
17866bsdi[45]*)
17867 version_type=linux
17868 need_version=no
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17872 shlibpath_var=LD_LIBRARY_PATH
17873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17875 # the default ld.so.conf also contains /usr/contrib/lib and
17876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17877 # libtool to hard-code these into programs
17878 ;;
17879
17880cygwin* | mingw* | pw32* | cegcc*)
17881 version_type=windows
17882 shrext_cmds=".dll"
17883 need_version=no
17884 need_lib_prefix=no
17885
17886 case $GCC,$host_os in
17887 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17888 library_names_spec='$libname.dll.a'
17889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17890 postinstall_cmds='base_file=`basename \${file}`~
17891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17892 dldir=$destdir/`dirname \$dlpath`~
17893 test -d \$dldir || mkdir -p \$dldir~
17894 $install_prog $dir/$dlname \$dldir/$dlname~
17895 chmod a+x \$dldir/$dlname~
17896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17898 fi'
17899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900 dlpath=$dir/\$dldll~
17901 $RM \$dlpath'
17902 shlibpath_overrides_runpath=yes
17903
17904 case $host_os in
17905 cygwin*)
17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017908 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000017909 ;;
17910 mingw* | cegcc*)
17911 # MinGW DLLs use traditional 'lib' prefix
17912 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000017913 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17915 # It is most probably a Windows format PATH printed by
17916 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17917 # path with ; separators, and with drive letters. We can handle the
17918 # drive letters (cygwin fileutils understands them), so leave them,
17919 # especially as we might pass files found there to a mingw objdump,
17920 # which wouldn't understand a cygwinified path. Ahh.
17921 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17922 else
17923 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17924 fi
cristy3ed852e2009-09-05 21:47:34 +000017925 ;;
17926 pw32*)
17927 # pw32 DLLs use 'pw' prefix rather than 'lib'
17928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17929 ;;
17930 esac
17931 ;;
17932
17933 *)
17934 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17935 ;;
17936 esac
17937 dynamic_linker='Win32 ld.exe'
17938 # FIXME: first we should search . and the directory the executable is in
17939 shlibpath_var=PATH
17940 ;;
17941
17942darwin* | rhapsody*)
17943 dynamic_linker="$host_os dyld"
17944 version_type=darwin
17945 need_lib_prefix=no
17946 need_version=no
17947 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17948 soname_spec='${libname}${release}${major}$shared_ext'
17949 shlibpath_overrides_runpath=yes
17950 shlibpath_var=DYLD_LIBRARY_PATH
17951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17952
17953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17954 ;;
17955
17956dgux*)
17957 version_type=linux
17958 need_lib_prefix=no
17959 need_version=no
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 ;;
17964
17965freebsd1*)
17966 dynamic_linker=no
17967 ;;
17968
17969freebsd* | dragonfly*)
17970 # DragonFly does not have aout. When/if they implement a new
17971 # versioning mechanism, adjust this.
17972 if test -x /usr/bin/objformat; then
17973 objformat=`/usr/bin/objformat`
17974 else
17975 case $host_os in
17976 freebsd[123]*) objformat=aout ;;
17977 *) objformat=elf ;;
17978 esac
17979 fi
17980 version_type=freebsd-$objformat
17981 case $version_type in
17982 freebsd-elf*)
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17984 need_version=no
17985 need_lib_prefix=no
17986 ;;
17987 freebsd-*)
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17989 need_version=yes
17990 ;;
17991 esac
17992 shlibpath_var=LD_LIBRARY_PATH
17993 case $host_os in
17994 freebsd2*)
17995 shlibpath_overrides_runpath=yes
17996 ;;
17997 freebsd3.[01]* | freebsdelf3.[01]*)
17998 shlibpath_overrides_runpath=yes
17999 hardcode_into_libs=yes
18000 ;;
18001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18003 shlibpath_overrides_runpath=no
18004 hardcode_into_libs=yes
18005 ;;
18006 *) # from 4.6 on, and DragonFly
18007 shlibpath_overrides_runpath=yes
18008 hardcode_into_libs=yes
18009 ;;
18010 esac
18011 ;;
18012
18013gnu*)
18014 version_type=linux
18015 need_lib_prefix=no
18016 need_version=no
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 hardcode_into_libs=yes
18021 ;;
18022
18023hpux9* | hpux10* | hpux11*)
18024 # Give a soname corresponding to the major version so that dld.sl refuses to
18025 # link against other versions.
18026 version_type=sunos
18027 need_lib_prefix=no
18028 need_version=no
18029 case $host_cpu in
18030 ia64*)
18031 shrext_cmds='.so'
18032 hardcode_into_libs=yes
18033 dynamic_linker="$host_os dld.so"
18034 shlibpath_var=LD_LIBRARY_PATH
18035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 if test "X$HPUX_IA64_MODE" = X32; then
18039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18040 else
18041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18042 fi
18043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18044 ;;
18045 hppa*64*)
18046 shrext_cmds='.sl'
18047 hardcode_into_libs=yes
18048 dynamic_linker="$host_os dld.sl"
18049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18055 ;;
18056 *)
18057 shrext_cmds='.sl'
18058 dynamic_linker="$host_os dld.sl"
18059 shlibpath_var=SHLIB_PATH
18060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 ;;
18064 esac
cristy18304f92009-11-22 15:48:26 +000018065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018066 postinstall_cmds='chmod 555 $lib'
18067 ;;
18068
18069interix[3-9]*)
18070 version_type=linux
18071 need_lib_prefix=no
18072 need_version=no
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18074 soname_spec='${libname}${release}${shared_ext}$major'
18075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18076 shlibpath_var=LD_LIBRARY_PATH
18077 shlibpath_overrides_runpath=no
18078 hardcode_into_libs=yes
18079 ;;
18080
18081irix5* | irix6* | nonstopux*)
18082 case $host_os in
18083 nonstopux*) version_type=nonstopux ;;
18084 *)
18085 if test "$lt_cv_prog_gnu_ld" = yes; then
18086 version_type=linux
18087 else
18088 version_type=irix
18089 fi ;;
18090 esac
18091 need_lib_prefix=no
18092 need_version=no
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18095 case $host_os in
18096 irix5* | nonstopux*)
18097 libsuff= shlibsuff=
18098 ;;
18099 *)
18100 case $LD in # libtool.m4 will add one of these switches to LD
18101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18102 libsuff= shlibsuff= libmagic=32-bit;;
18103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18104 libsuff=32 shlibsuff=N32 libmagic=N32;;
18105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18107 *) libsuff= shlibsuff= libmagic=never-match;;
18108 esac
18109 ;;
18110 esac
18111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18112 shlibpath_overrides_runpath=no
18113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18115 hardcode_into_libs=yes
18116 ;;
18117
18118# No shared lib support for Linux oldld, aout, or coff.
18119linux*oldld* | linux*aout* | linux*coff*)
18120 dynamic_linker=no
18121 ;;
18122
18123# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018124linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018125 version_type=linux
18126 need_lib_prefix=no
18127 need_version=no
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 soname_spec='${libname}${release}${shared_ext}$major'
18130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18131 shlibpath_var=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath=no
18133 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018134 save_LDFLAGS=$LDFLAGS
18135 save_libdir=$libdir
18136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018139/* end confdefs.h. */
18140
18141int
18142main ()
18143{
18144
18145 ;
18146 return 0;
18147}
18148_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018149if ac_fn_cxx_try_link "$LINENO"; then :
18150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018151 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018152fi
cristy3ed852e2009-09-05 21:47:34 +000018153fi
cristy8b350f62009-11-15 23:12:43 +000018154rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018156 LDFLAGS=$save_LDFLAGS
18157 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018158
18159 # This implies no fast_install, which is unacceptable.
18160 # Some rework will be needed to allow for fast_install
18161 # before this can be enabled.
18162 hardcode_into_libs=yes
18163
cristy679ed8e2009-12-05 02:37:41 +000018164 # Add ABI-specific directories to the system library path.
18165 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18166
cristy3ed852e2009-09-05 21:47:34 +000018167 # Append ld.so.conf contents to the search path
18168 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018169 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 +000018170 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018171 fi
18172
18173 # We used to test for /lib/ld.so.1 and disable shared libraries on
18174 # powerpc, because MkLinux only supported shared libraries with the
18175 # GNU dynamic linker. Since this was broken with cross compilers,
18176 # most powerpc-linux boxes support dynamic linking these days and
18177 # people can always --disable-shared, the test was removed, and we
18178 # assume the GNU/Linux dynamic linker is in use.
18179 dynamic_linker='GNU/Linux ld.so'
18180 ;;
18181
18182netbsd*)
18183 version_type=sunos
18184 need_lib_prefix=no
18185 need_version=no
18186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18189 dynamic_linker='NetBSD (a.out) ld.so'
18190 else
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 dynamic_linker='NetBSD ld.elf_so'
18194 fi
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=yes
18197 hardcode_into_libs=yes
18198 ;;
18199
18200newsos6)
18201 version_type=linux
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18203 shlibpath_var=LD_LIBRARY_PATH
18204 shlibpath_overrides_runpath=yes
18205 ;;
18206
18207*nto* | *qnx*)
18208 version_type=qnx
18209 need_lib_prefix=no
18210 need_version=no
18211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 shlibpath_var=LD_LIBRARY_PATH
18214 shlibpath_overrides_runpath=no
18215 hardcode_into_libs=yes
18216 dynamic_linker='ldqnx.so'
18217 ;;
18218
18219openbsd*)
18220 version_type=sunos
18221 sys_lib_dlsearch_path_spec="/usr/lib"
18222 need_lib_prefix=no
18223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18224 case $host_os in
18225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18226 *) need_version=no ;;
18227 esac
18228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18230 shlibpath_var=LD_LIBRARY_PATH
18231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18232 case $host_os in
18233 openbsd2.[89] | openbsd2.[89].*)
18234 shlibpath_overrides_runpath=no
18235 ;;
18236 *)
18237 shlibpath_overrides_runpath=yes
18238 ;;
18239 esac
18240 else
18241 shlibpath_overrides_runpath=yes
18242 fi
18243 ;;
18244
18245os2*)
18246 libname_spec='$name'
18247 shrext_cmds=".dll"
18248 need_lib_prefix=no
18249 library_names_spec='$libname${shared_ext} $libname.a'
18250 dynamic_linker='OS/2 ld.exe'
18251 shlibpath_var=LIBPATH
18252 ;;
18253
18254osf3* | osf4* | osf5*)
18255 version_type=osf
18256 need_lib_prefix=no
18257 need_version=no
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18263 ;;
18264
18265rdos*)
18266 dynamic_linker=no
18267 ;;
18268
18269solaris*)
18270 version_type=linux
18271 need_lib_prefix=no
18272 need_version=no
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18274 soname_spec='${libname}${release}${shared_ext}$major'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath=yes
18277 hardcode_into_libs=yes
18278 # ldd complains unless libraries are executable
18279 postinstall_cmds='chmod +x $lib'
18280 ;;
18281
18282sunos4*)
18283 version_type=sunos
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 if test "$with_gnu_ld" = yes; then
18289 need_lib_prefix=no
18290 fi
18291 need_version=yes
18292 ;;
18293
18294sysv4 | sysv4.3*)
18295 version_type=linux
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18297 soname_spec='${libname}${release}${shared_ext}$major'
18298 shlibpath_var=LD_LIBRARY_PATH
18299 case $host_vendor in
18300 sni)
18301 shlibpath_overrides_runpath=no
18302 need_lib_prefix=no
18303 runpath_var=LD_RUN_PATH
18304 ;;
18305 siemens)
18306 need_lib_prefix=no
18307 ;;
18308 motorola)
18309 need_lib_prefix=no
18310 need_version=no
18311 shlibpath_overrides_runpath=no
18312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18313 ;;
18314 esac
18315 ;;
18316
18317sysv4*MP*)
18318 if test -d /usr/nec ;then
18319 version_type=linux
18320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18321 soname_spec='$libname${shared_ext}.$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 fi
18324 ;;
18325
18326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18327 version_type=freebsd-elf
18328 need_lib_prefix=no
18329 need_version=no
18330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18331 soname_spec='${libname}${release}${shared_ext}$major'
18332 shlibpath_var=LD_LIBRARY_PATH
18333 shlibpath_overrides_runpath=yes
18334 hardcode_into_libs=yes
18335 if test "$with_gnu_ld" = yes; then
18336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18337 else
18338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18339 case $host_os in
18340 sco3.2v5*)
18341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18342 ;;
18343 esac
18344 fi
18345 sys_lib_dlsearch_path_spec='/usr/lib'
18346 ;;
18347
18348tpf*)
18349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18350 version_type=linux
18351 need_lib_prefix=no
18352 need_version=no
18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 shlibpath_overrides_runpath=no
18356 hardcode_into_libs=yes
18357 ;;
18358
18359uts4*)
18360 version_type=linux
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 ;;
18365
18366*)
18367 dynamic_linker=no
18368 ;;
18369esac
cristy8b350f62009-11-15 23:12:43 +000018370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018371$as_echo "$dynamic_linker" >&6; }
18372test "$dynamic_linker" = no && can_build_shared=no
18373
18374variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18375if test "$GCC" = yes; then
18376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18377fi
18378
18379if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18380 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18381fi
18382if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18383 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18384fi
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
cristy8b350f62009-11-15 23:12:43 +000018421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018422$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18423hardcode_action_CXX=
18424if test -n "$hardcode_libdir_flag_spec_CXX" ||
18425 test -n "$runpath_var_CXX" ||
18426 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18427
18428 # We can hardcode non-existent directories.
18429 if test "$hardcode_direct_CXX" != no &&
18430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18431 # have to relink, otherwise we might link with an installed library
18432 # when we should be linking with a yet-to-be-installed one
18433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18434 test "$hardcode_minus_L_CXX" != no; then
18435 # Linking always hardcodes the temporary library directory.
18436 hardcode_action_CXX=relink
18437 else
18438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18439 hardcode_action_CXX=immediate
18440 fi
18441else
18442 # We cannot hardcode anything, or else we can only hardcode existing
18443 # directories.
18444 hardcode_action_CXX=unsupported
18445fi
cristy8b350f62009-11-15 23:12:43 +000018446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018447$as_echo "$hardcode_action_CXX" >&6; }
18448
18449if test "$hardcode_action_CXX" = relink ||
18450 test "$inherit_rpath_CXX" = yes; then
18451 # Fast installation is not supported
18452 enable_fast_install=no
18453elif test "$shlibpath_overrides_runpath" = yes ||
18454 test "$enable_shared" = no; then
18455 # Fast installation is not necessary
18456 enable_fast_install=needless
18457fi
18458
18459
18460
18461
18462
18463
18464
18465 fi # test -n "$compiler"
18466
18467 CC=$lt_save_CC
18468 LDCXX=$LD
18469 LD=$lt_save_LD
18470 GCC=$lt_save_GCC
18471 with_gnu_ld=$lt_save_with_gnu_ld
18472 lt_cv_path_LDCXX=$lt_cv_path_LD
18473 lt_cv_path_LD=$lt_save_path_LD
18474 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18475 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18476fi # test "$_lt_caught_CXX_error" != yes
18477
18478ac_ext=c
18479ac_cpp='$CPP $CPPFLAGS'
18480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496 ac_config_commands="$ac_config_commands libtool"
18497
18498
18499
18500
18501# Only expand once:
18502
18503
18504
18505
18506
18507# Configure libltdl
18508
18509
18510
18511
18512
18513
18514
cristy18304f92009-11-22 15:48:26 +000018515
cristy8b350f62009-11-15 23:12:43 +000018516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000018517$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018518if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018519 $as_echo_n "(cached) " >&6
18520else
18521
18522module=yes
18523eval libltdl_cv_shlibext=$shrext_cmds
18524
18525fi
cristy8b350f62009-11-15 23:12:43 +000018526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018527$as_echo "$libltdl_cv_shlibext" >&6; }
18528if test -n "$libltdl_cv_shlibext"; then
18529
18530cat >>confdefs.h <<_ACEOF
18531#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18532_ACEOF
18533
18534fi
18535
cristy8b350f62009-11-15 23:12:43 +000018536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018537$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018538if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018539 $as_echo_n "(cached) " >&6
18540else
18541 lt_cv_module_path_var="$shlibpath_var"
18542fi
cristy8b350f62009-11-15 23:12:43 +000018543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000018544$as_echo "$lt_cv_module_path_var" >&6; }
18545if test -n "$lt_cv_module_path_var"; then
18546
18547cat >>confdefs.h <<_ACEOF
18548#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18549_ACEOF
18550
18551fi
18552
cristy8b350f62009-11-15 23:12:43 +000018553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018554$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018555if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018556 $as_echo_n "(cached) " >&6
18557else
18558 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18559fi
cristy8b350f62009-11-15 23:12:43 +000018560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000018561$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18562if test -n "$lt_cv_sys_dlsearch_path"; then
18563 sys_dlsearch_path=
18564 for dir in $lt_cv_sys_dlsearch_path; do
18565 if test -z "$sys_dlsearch_path"; then
18566 sys_dlsearch_path="$dir"
18567 else
18568 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18569 fi
18570 done
18571
18572cat >>confdefs.h <<_ACEOF
18573#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18574_ACEOF
18575
18576fi
18577
18578
18579LT_DLLOADERS=
18580
18581
18582ac_ext=c
18583ac_cpp='$CPP $CPPFLAGS'
18584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18586ac_compiler_gnu=$ac_cv_c_compiler_gnu
18587
18588
18589LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000018590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018591$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018592if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018593 $as_echo_n "(cached) " >&6
18594else
18595 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000018596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018597/* end confdefs.h. */
18598
18599/* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18602#ifdef __cplusplus
18603extern "C"
18604#endif
18605char dlopen ();
18606int
18607main ()
18608{
18609return dlopen ();
18610 ;
18611 return 0;
18612}
18613_ACEOF
18614for ac_lib in '' dl; do
18615 if test -z "$ac_lib"; then
18616 ac_res="none required"
18617 else
18618 ac_res=-l$ac_lib
18619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18620 fi
cristy8b350f62009-11-15 23:12:43 +000018621 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018622 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000018623fi
cristy8b350f62009-11-15 23:12:43 +000018624rm -f core conftest.err conftest.$ac_objext \
18625 conftest$ac_exeext
18626 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018627 break
18628fi
18629done
cristy8b350f62009-11-15 23:12:43 +000018630if test "${ac_cv_search_dlopen+set}" = set; then :
18631
cristy3ed852e2009-09-05 21:47:34 +000018632else
18633 ac_cv_search_dlopen=no
18634fi
18635rm conftest.$ac_ext
18636LIBS=$ac_func_search_save_LIBS
18637fi
cristy8b350f62009-11-15 23:12:43 +000018638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018639$as_echo "$ac_cv_search_dlopen" >&6; }
18640ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000018641if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000018642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18643
cristy8b350f62009-11-15 23:12:43 +000018644$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018645
18646 if test "$ac_cv_search_dlopen" != "none required" ; then
18647 LIBADD_DLOPEN="-ldl"
18648 fi
18649 libltdl_cv_lib_dl_dlopen="yes"
18650 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18651else
cristy8b350f62009-11-15 23:12:43 +000018652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018653/* end confdefs.h. */
18654#if HAVE_DLFCN_H
18655# include <dlfcn.h>
18656#endif
18657
18658int
18659main ()
18660{
18661dlopen(0, 0);
18662 ;
18663 return 0;
18664}
18665_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018666if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018667
cristy8b350f62009-11-15 23:12:43 +000018668$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018669
18670 libltdl_cv_func_dlopen="yes"
18671 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18672else
cristy8b350f62009-11-15 23:12:43 +000018673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018674$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018675if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018676 $as_echo_n "(cached) " >&6
18677else
18678 ac_check_lib_save_LIBS=$LIBS
18679LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018681/* end confdefs.h. */
18682
18683/* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18686#ifdef __cplusplus
18687extern "C"
18688#endif
18689char dlopen ();
18690int
18691main ()
18692{
18693return dlopen ();
18694 ;
18695 return 0;
18696}
18697_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018698if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018699 ac_cv_lib_svld_dlopen=yes
18700else
cristy8b350f62009-11-15 23:12:43 +000018701 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000018702fi
cristy8b350f62009-11-15 23:12:43 +000018703rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018705LIBS=$ac_check_lib_save_LIBS
18706fi
cristy8b350f62009-11-15 23:12:43 +000018707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000018708$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018709if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018710
cristy8b350f62009-11-15 23:12:43 +000018711$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018712
18713 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18714 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18715fi
18716
18717fi
cristy8b350f62009-11-15 23:12:43 +000018718rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018720fi
18721
18722if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18723then
18724 lt_save_LIBS="$LIBS"
18725 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000018726 for ac_func in dlerror
18727do :
18728 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18729if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018730 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018731#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000018732_ACEOF
18733
18734fi
18735done
18736
18737 LIBS="$lt_save_LIBS"
18738fi
18739
18740
18741LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000018742ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18743if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018744
cristy8b350f62009-11-15 23:12:43 +000018745$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018746
18747 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18748else
cristy8b350f62009-11-15 23:12:43 +000018749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018750$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018751if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018752 $as_echo_n "(cached) " >&6
18753else
18754 ac_check_lib_save_LIBS=$LIBS
18755LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018757/* end confdefs.h. */
18758
18759/* Override any GCC internal prototype to avoid an error.
18760 Use char because int might match the return type of a GCC
18761 builtin and then its argument prototype would still apply. */
18762#ifdef __cplusplus
18763extern "C"
18764#endif
18765char shl_load ();
18766int
18767main ()
18768{
18769return shl_load ();
18770 ;
18771 return 0;
18772}
18773_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018774if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018775 ac_cv_lib_dld_shl_load=yes
18776else
cristy8b350f62009-11-15 23:12:43 +000018777 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000018778fi
cristy8b350f62009-11-15 23:12:43 +000018779rm -f core conftest.err conftest.$ac_objext \
18780 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018781LIBS=$ac_check_lib_save_LIBS
18782fi
cristy8b350f62009-11-15 23:12:43 +000018783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000018784$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018785if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018786
cristy8b350f62009-11-15 23:12:43 +000018787$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018788
18789 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18790 LIBADD_SHL_LOAD="-ldld"
18791fi
18792
18793fi
18794
18795
18796
18797case $host_os in
18798darwin[1567].*)
18799# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000018800 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18801if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018802
cristy8b350f62009-11-15 23:12:43 +000018803$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018804
18805 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18806fi
18807
18808 ;;
18809beos*)
18810 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18811 ;;
18812cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000018813 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18814"
18815if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18816 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000018817else
cristy8b350f62009-11-15 23:12:43 +000018818 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000018819fi
18820
cristy3ed852e2009-09-05 21:47:34 +000018821cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018822#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000018823_ACEOF
18824
cristy3ed852e2009-09-05 21:47:34 +000018825 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18826 ;;
18827esac
18828
cristy8b350f62009-11-15 23:12:43 +000018829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000018830$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018831if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018832 $as_echo_n "(cached) " >&6
18833else
18834 ac_check_lib_save_LIBS=$LIBS
18835LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000018836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018837/* end confdefs.h. */
18838
18839/* Override any GCC internal prototype to avoid an error.
18840 Use char because int might match the return type of a GCC
18841 builtin and then its argument prototype would still apply. */
18842#ifdef __cplusplus
18843extern "C"
18844#endif
18845char dld_link ();
18846int
18847main ()
18848{
18849return dld_link ();
18850 ;
18851 return 0;
18852}
18853_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018854if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000018855 ac_cv_lib_dld_dld_link=yes
18856else
cristy8b350f62009-11-15 23:12:43 +000018857 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000018858fi
cristy8b350f62009-11-15 23:12:43 +000018859rm -f core conftest.err conftest.$ac_objext \
18860 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018861LIBS=$ac_check_lib_save_LIBS
18862fi
cristy8b350f62009-11-15 23:12:43 +000018863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000018864$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000018865if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000018866
cristy8b350f62009-11-15 23:12:43 +000018867$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018868
18869 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18870fi
18871
18872
18873
18874
18875LT_DLPREOPEN=
18876if test -n "$LT_DLLOADERS"
18877then
18878 for lt_loader in $LT_DLLOADERS; do
18879 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18880 done
18881
cristy8b350f62009-11-15 23:12:43 +000018882$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000018883
18884fi
18885
18886
18887LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18888
18889
18890ac_ext=c
18891ac_cpp='$CPP $CPPFLAGS'
18892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896
cristy8b350f62009-11-15 23:12:43 +000018897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000018898$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018899if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018900 $as_echo_n "(cached) " >&6
18901else
18902 lt_cv_sys_symbol_underscore=no
18903 cat > conftest.$ac_ext <<_LT_EOF
18904void nm_test_func(){}
18905int main(){nm_test_func;return 0;}
18906_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000018907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018908 (eval $ac_compile) 2>&5
18909 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18911 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000018912 # Now try to grab the symbols.
18913 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000018914 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 +000018915 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18916 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18918 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000018919 # See whether the symbols have a leading underscore.
18920 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18921 lt_cv_sys_symbol_underscore=yes
18922 else
18923 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18924 :
18925 else
18926 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18927 fi
18928 fi
18929 else
18930 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18931 fi
18932 else
18933 echo "configure: failed program was:" >&5
18934 cat conftest.c >&5
18935 fi
18936 rm -rf conftest*
18937
18938fi
cristy8b350f62009-11-15 23:12:43 +000018939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000018940$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18941 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18942
18943
18944if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18945 if test x"$libltdl_cv_func_dlopen" = xyes ||
18946 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000018947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000018948$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018949if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018950 $as_echo_n "(cached) " >&6
18951else
18952 libltdl_cv_need_uscore=unknown
18953 save_LIBS="$LIBS"
18954 LIBS="$LIBS $LIBADD_DLOPEN"
18955 if test "$cross_compiling" = yes; then :
18956 libltdl_cv_need_uscore=cross
18957else
18958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18959 lt_status=$lt_dlunknown
18960 cat > conftest.$ac_ext <<_LT_EOF
cristy837d6dc2010-02-27 01:16:57 +000018961#line 18961 "configure"
cristy3ed852e2009-09-05 21:47:34 +000018962#include "confdefs.h"
18963
18964#if HAVE_DLFCN_H
18965#include <dlfcn.h>
18966#endif
18967
18968#include <stdio.h>
18969
18970#ifdef RTLD_GLOBAL
18971# define LT_DLGLOBAL RTLD_GLOBAL
18972#else
18973# ifdef DL_GLOBAL
18974# define LT_DLGLOBAL DL_GLOBAL
18975# else
18976# define LT_DLGLOBAL 0
18977# endif
18978#endif
18979
18980/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18981 find out it does not work in some platform. */
18982#ifndef LT_DLLAZY_OR_NOW
18983# ifdef RTLD_LAZY
18984# define LT_DLLAZY_OR_NOW RTLD_LAZY
18985# else
18986# ifdef DL_LAZY
18987# define LT_DLLAZY_OR_NOW DL_LAZY
18988# else
18989# ifdef RTLD_NOW
18990# define LT_DLLAZY_OR_NOW RTLD_NOW
18991# else
18992# ifdef DL_NOW
18993# define LT_DLLAZY_OR_NOW DL_NOW
18994# else
18995# define LT_DLLAZY_OR_NOW 0
18996# endif
18997# endif
18998# endif
18999# endif
19000#endif
19001
cristy18304f92009-11-22 15:48:26 +000019002void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019003int main ()
19004{
19005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19006 int status = $lt_dlunknown;
19007
19008 if (self)
19009 {
19010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019011 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019012 /* dlclose (self); */
19013 }
19014 else
19015 puts (dlerror ());
19016
19017 return status;
19018}
19019_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019021 (eval $ac_link) 2>&5
19022 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019025 (./conftest; exit; ) >&5 2>/dev/null
19026 lt_status=$?
19027 case x$lt_status in
19028 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19029 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19030 x$lt_dlunknown|x*) ;;
19031 esac
19032 else :
19033 # compilation failed
19034
19035 fi
19036fi
19037rm -fr conftest*
19038
19039 LIBS="$save_LIBS"
19040
19041fi
cristy8b350f62009-11-15 23:12:43 +000019042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019043$as_echo "$libltdl_cv_need_uscore" >&6; }
19044 fi
19045fi
19046
19047if test x"$libltdl_cv_need_uscore" = xyes; then
19048
cristy8b350f62009-11-15 23:12:43 +000019049$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019050
19051fi
19052
cristy8b350f62009-11-15 23:12:43 +000019053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019054$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019055if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019056 $as_echo_n "(cached) " >&6
19057else
19058 # PORTME does your system automatically load deplibs for dlopen?
19059 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19060 # For now, we just catch OSes we know something about -- in the
19061 # future, we'll try test this programmatically.
19062 lt_cv_sys_dlopen_deplibs=unknown
19063 case $host_os in
19064 aix3*|aix4.1.*|aix4.2.*)
19065 # Unknown whether this is true for these versions of AIX, but
19066 # we want this `case' here to explicitly catch those versions.
19067 lt_cv_sys_dlopen_deplibs=unknown
19068 ;;
19069 aix[4-9]*)
19070 lt_cv_sys_dlopen_deplibs=yes
19071 ;;
19072 amigaos*)
19073 case $host_cpu in
19074 powerpc)
19075 lt_cv_sys_dlopen_deplibs=no
19076 ;;
19077 esac
19078 ;;
19079 darwin*)
19080 # Assuming the user has installed a libdl from somewhere, this is true
19081 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19082 lt_cv_sys_dlopen_deplibs=yes
19083 ;;
19084 freebsd* | dragonfly*)
19085 lt_cv_sys_dlopen_deplibs=yes
19086 ;;
cristy18304f92009-11-22 15:48:26 +000019087 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019088 # GNU and its variants, using gnu ld.so (Glibc)
19089 lt_cv_sys_dlopen_deplibs=yes
19090 ;;
19091 hpux10*|hpux11*)
19092 lt_cv_sys_dlopen_deplibs=yes
19093 ;;
19094 interix*)
19095 lt_cv_sys_dlopen_deplibs=yes
19096 ;;
19097 irix[12345]*|irix6.[01]*)
19098 # Catch all versions of IRIX before 6.2, and indicate that we don't
19099 # know how it worked for any of those versions.
19100 lt_cv_sys_dlopen_deplibs=unknown
19101 ;;
19102 irix*)
19103 # The case above catches anything before 6.2, and it's known that
19104 # at 6.2 and later dlopen does load deplibs.
19105 lt_cv_sys_dlopen_deplibs=yes
19106 ;;
19107 netbsd*)
19108 lt_cv_sys_dlopen_deplibs=yes
19109 ;;
19110 openbsd*)
19111 lt_cv_sys_dlopen_deplibs=yes
19112 ;;
19113 osf[1234]*)
19114 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19115 # it did *not* use an RPATH in a shared library to find objects the
19116 # library depends on, so we explicitly say `no'.
19117 lt_cv_sys_dlopen_deplibs=no
19118 ;;
19119 osf5.0|osf5.0a|osf5.1)
19120 # dlopen *does* load deplibs and with the right loader patch applied
19121 # it even uses RPATH in a shared library to search for shared objects
19122 # that the library depends on, but there's no easy way to know if that
19123 # patch is installed. Since this is the case, all we can really
19124 # say is unknown -- it depends on the patch being installed. If
19125 # it is, this changes to `yes'. Without it, it would be `no'.
19126 lt_cv_sys_dlopen_deplibs=unknown
19127 ;;
19128 osf*)
19129 # the two cases above should catch all versions of osf <= 5.1. Read
19130 # the comments above for what we know about them.
19131 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19132 # is used to find them so we can finally say `yes'.
19133 lt_cv_sys_dlopen_deplibs=yes
19134 ;;
19135 qnx*)
19136 lt_cv_sys_dlopen_deplibs=yes
19137 ;;
19138 solaris*)
19139 lt_cv_sys_dlopen_deplibs=yes
19140 ;;
19141 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19142 libltdl_cv_sys_dlopen_deplibs=yes
19143 ;;
19144 esac
19145
19146fi
cristy8b350f62009-11-15 23:12:43 +000019147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019148$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19149if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19150
cristy8b350f62009-11-15 23:12:43 +000019151$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019152
19153fi
19154
19155:
19156
cristy3ed852e2009-09-05 21:47:34 +000019157for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019158do :
19159 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19160"
19161if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019162 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019163#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019164_ACEOF
19165
19166fi
19167
19168done
19169
19170
cristy8b350f62009-11-15 23:12:43 +000019171ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019172# include <argz.h>
19173#endif
cristy8b350f62009-11-15 23:12:43 +000019174"
19175if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019176
19177cat >>confdefs.h <<_ACEOF
19178#define HAVE_ERROR_T 1
19179_ACEOF
19180
19181
19182else
19183
cristy8b350f62009-11-15 23:12:43 +000019184$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019185
19186
cristy8b350f62009-11-15 23:12:43 +000019187$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019188
19189fi
19190
19191
19192ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019193for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19194 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019195do :
19196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19197ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19198eval as_val=\$$as_ac_var
19199 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019200 cat >>confdefs.h <<_ACEOF
19201#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19202_ACEOF
19203
19204else
19205 ARGZ_H=argz.h;
19206
19207 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19208
19209fi
19210done
19211
19212
cristy8b350f62009-11-15 23:12:43 +000019213if test -z "$ARGZ_H"; then :
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019215$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019216if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019217 $as_echo_n "(cached) " >&6
19218else
19219 case $host_os in #(
19220 *cygwin*)
19221 lt_cv_sys_argz_works=no
19222 if test "$cross_compiling" != no; then
19223 lt_cv_sys_argz_works="guessing no"
19224 else
19225 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19226 save_IFS=$IFS
19227 IFS=-.
19228 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19229 IFS=$save_IFS
19230 lt_os_major=${2-0}
19231 lt_os_minor=${3-0}
19232 lt_os_micro=${4-0}
19233 if test "$lt_os_major" -gt 1 \
19234 || { test "$lt_os_major" -eq 1 \
19235 && { test "$lt_os_minor" -gt 5 \
19236 || { test "$lt_os_minor" -eq 5 \
19237 && test "$lt_os_micro" -gt 24; }; }; }; then
19238 lt_cv_sys_argz_works=yes
19239 fi
19240 fi
19241 ;; #(
19242 *) lt_cv_sys_argz_works=yes ;;
19243 esac
19244fi
cristy8b350f62009-11-15 23:12:43 +000019245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019246$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019247 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019248
cristy8b350f62009-11-15 23:12:43 +000019249$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019250
19251else
19252 ARGZ_H=argz.h
19253
19254
19255 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19256
19257fi
cristy3ed852e2009-09-05 21:47:34 +000019258fi
19259
19260
19261
cristy8b350f62009-11-15 23:12:43 +000019262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019263$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019264if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019265 $as_echo_n "(cached) " >&6
19266else
19267 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19268 libltdl_cv_preloaded_symbols=yes
19269 else
19270 libltdl_cv_preloaded_symbols=no
19271 fi
19272
19273fi
cristy8b350f62009-11-15 23:12:43 +000019274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019275$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19276if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19277
cristy8b350f62009-11-15 23:12:43 +000019278$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019279
19280fi
19281
19282# Set options
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019295if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019296 withval=$with_included_ltdl;
19297fi
19298
19299
19300if test "x$with_included_ltdl" != xyes; then
19301 # We are not being forced to use the included libltdl sources, so
19302 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019303 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019304
cristy8b350f62009-11-15 23:12:43 +000019305"
19306if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19307 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 +000019308 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019309"
19310if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019312$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019313if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019314 $as_echo_n "(cached) " >&6
19315else
19316 ac_check_lib_save_LIBS=$LIBS
19317LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019319/* end confdefs.h. */
19320
19321/* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324#ifdef __cplusplus
19325extern "C"
19326#endif
19327char lt_dladvise_preload ();
19328int
19329main ()
19330{
19331return lt_dladvise_preload ();
19332 ;
19333 return 0;
19334}
19335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019336if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019337 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19338else
cristy8b350f62009-11-15 23:12:43 +000019339 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019340fi
cristy8b350f62009-11-15 23:12:43 +000019341rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019343LIBS=$ac_check_lib_save_LIBS
19344fi
cristy8b350f62009-11-15 23:12:43 +000019345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019346$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019347if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019348 with_included_ltdl=no
19349else
19350 with_included_ltdl=yes
19351fi
19352
19353else
19354 with_included_ltdl=yes
19355fi
19356
19357else
19358 with_included_ltdl=yes
19359fi
19360
19361
19362fi
19363
19364
19365
19366
19367# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019368if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019369 withval=$with_ltdl_include;
19370fi
19371
19372
19373if test -n "$with_ltdl_include"; then
19374 if test -f "$with_ltdl_include/ltdl.h"; then :
19375 else
cristy8b350f62009-11-15 23:12:43 +000019376 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019377 fi
19378else
19379 with_ltdl_include=no
19380fi
19381
19382
19383# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019384if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019385 withval=$with_ltdl_lib;
19386fi
19387
19388
19389if test -n "$with_ltdl_lib"; then
19390 if test -f "$with_ltdl_lib/libltdl.la"; then :
19391 else
cristy8b350f62009-11-15 23:12:43 +000019392 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019393 fi
19394else
19395 with_ltdl_lib=no
19396fi
19397
19398case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19399 ,yes,no,no,)
19400 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019401 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019402 "") enable_ltdl_convenience=yes
19403 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19404esac
19405LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19406LTDLDEPS=$LIBLTDL
19407LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19408
19409
19410
19411
19412
19413# For backwards non-gettext consistent compatibility...
19414INCLTDL="$LTDLINCL"
19415
19416
19417 ;;
19418 ,no,no,no,)
19419 # If the included ltdl is not to be used, then use the
19420 # preinstalled libltdl we found.
19421
cristy8b350f62009-11-15 23:12:43 +000019422$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019423
19424 LIBLTDL=-lltdl
19425 LTDLDEPS=
19426 LTDLINCL=
19427 ;;
19428 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019429 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019430 ;;
19431 *) with_included_ltdl=no
19432 LIBLTDL="-L$with_ltdl_lib -lltdl"
19433 LTDLDEPS=
19434 LTDLINCL="-I$with_ltdl_include"
19435 ;;
19436esac
19437INCLTDL="$LTDLINCL"
19438
19439# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019441$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019443$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019445$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019447$as_echo "$LIBLTDL" >&6; }
19448
19449
19450
19451# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019452if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019453 enableval=$enable_ltdl_install;
19454fi
19455
19456
19457case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19458 *yes*) ;;
19459 *) enable_ltdl_convenience=yes ;;
19460esac
19461
19462 if test x"${enable_ltdl_install-no}" != xno; then
19463 INSTALL_LTDL_TRUE=
19464 INSTALL_LTDL_FALSE='#'
19465else
19466 INSTALL_LTDL_TRUE='#'
19467 INSTALL_LTDL_FALSE=
19468fi
19469
19470 if test x"${enable_ltdl_convenience-no}" != xno; then
19471 CONVENIENCE_LTDL_TRUE=
19472 CONVENIENCE_LTDL_FALSE='#'
19473else
19474 CONVENIENCE_LTDL_TRUE='#'
19475 CONVENIENCE_LTDL_FALSE=
19476fi
19477
19478
19479
19480
19481
19482
cristy18304f92009-11-22 15:48:26 +000019483
cristy3ed852e2009-09-05 21:47:34 +000019484# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19485# the user used. This is so that ltdl.h can pick up the parent projects
19486# config.h file, The first file in AC_CONFIG_HEADERS must contain the
19487# definitions required by ltdl.c.
19488# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19489
19490
19491
cristy3ed852e2009-09-05 21:47:34 +000019492for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000019493do :
19494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19495ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19496"
19497eval as_val=\$$as_ac_Header
19498 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019499 cat >>confdefs.h <<_ACEOF
19500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19501_ACEOF
19502
19503fi
19504
19505done
19506
19507
cristy3ed852e2009-09-05 21:47:34 +000019508for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000019509do :
19510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19512eval as_val=\$$as_ac_var
19513 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019514 cat >>confdefs.h <<_ACEOF
19515#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19516_ACEOF
19517
19518else
19519
19520
19521 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19522
19523fi
19524done
19525
cristy3ed852e2009-09-05 21:47:34 +000019526for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000019527do :
19528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19530eval as_val=\$$as_ac_var
19531 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019532 cat >>confdefs.h <<_ACEOF
19533#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19534_ACEOF
19535
19536else
19537
19538
19539 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19540
19541fi
19542done
19543
19544
19545
19546cat >>confdefs.h <<_ACEOF
19547#define LT_LIBEXT "$libext"
19548_ACEOF
19549
19550
19551name=ltdl
19552LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19553
19554
19555
19556
19557
19558
19559
19560
19561# Only expand once:
19562
19563
19564
19565# Check to see if building shared libraries
19566libtool_build_shared_libs='no'
19567if test "$enable_shared" = 'yes'; then
19568 libtool_build_shared_libs='yes'
19569fi
19570
19571# Check to see if building static libraries
19572libtool_build_static_libs='no'
19573if test "$enable_static" = 'yes'; then
19574 libtool_build_static_libs='yes'
19575fi
19576
cristyfa112112010-01-04 17:48:07 +000019577 if test "${libtool_build_shared_libs}" = 'yes'; then
19578 WITH_SHARED_LIBS_TRUE=
19579 WITH_SHARED_LIBS_FALSE='#'
19580else
19581 WITH_SHARED_LIBS_TRUE='#'
19582 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000019583fi
19584
19585#
19586# Enable support for building loadable modules
19587#
19588
19589# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000019590if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019591 withval=$with_modules; with_modules=$withval
19592else
cristy5a1cefd2010-01-06 20:42:35 +000019593 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000019594fi
19595
19596
19597# Only allow building loadable modules if we are building shared libraries
19598if test "$with_modules" != 'no' ; then
19599 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000019600 { $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 +000019601$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19602 with_modules='no'
19603 fi
19604fi
19605if test "$with_modules" != 'no'; then
19606
cristy8b350f62009-11-15 23:12:43 +000019607$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019608
19609fi
19610 if test "$with_modules" != 'no'; then
19611 WITH_MODULES_TRUE=
19612 WITH_MODULES_FALSE='#'
19613else
19614 WITH_MODULES_TRUE='#'
19615 WITH_MODULES_FALSE=
19616fi
19617
19618
19619# Enable building/use of libltdl if we are building shared libraries regardless
19620# of whether modules are built or not.
19621with_ltdl='no'
19622if test "$libtool_build_shared_libs" != 'no'; then
19623 with_ltdl='yes'
19624fi
19625
19626 if test "$with_ltdl" != 'no'; then
19627 WITH_LTDL_TRUE=
19628 WITH_LTDL_FALSE='#'
19629else
19630 WITH_LTDL_TRUE='#'
19631 WITH_LTDL_FALSE=
19632fi
19633
19634if test "$with_ltdl" != 'no'; then
19635
cristy8b350f62009-11-15 23:12:43 +000019636$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019637
19638
19639 # Set DLLDFLAGS
19640 if test X"$enable_shared" = Xyes; then
19641 DLLDFLAGS=-export-dynamic
19642
19643 fi
19644fi
19645
19646# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000019647# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000019648# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000019649if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019650 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19651else
19652 enable_delegate_build='no'
19653fi
19654
19655
19656# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000019657if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019658 enableval=$enable_deprecated; enable_deprecated=$enableval
19659else
19660 enable_deprecated='no'
19661fi
19662
19663
19664if test "$enable_deprecated" = 'yes'; then
19665
cristy8b350f62009-11-15 23:12:43 +000019666$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019667
19668else
19669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19670fi
19671
19672# Build a version of ImageMagick which operates uninstalled.
19673# Used to build distributions located via MAGICK_HOME / executable path
19674# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000019675if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019676 enableval=$enable_installed; enable_installed=$enableval
19677else
19678 enable_installed='yes'
19679fi
19680
19681
19682if test "$enable_installed" = 'yes'; then
19683
cristy8b350f62009-11-15 23:12:43 +000019684$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019685
19686else
19687 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19688fi
19689
19690# Permit enciphering and deciphering image pixels.
19691# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000019692if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019693 enableval=$enable_cipher; enable_cipher=$enableval
19694else
19695 enable_cipher='yes'
19696fi
19697
19698
19699if test "$enable_cipher" = 'yes'; then
19700
cristy8b350f62009-11-15 23:12:43 +000019701$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019702
19703fi
19704
19705# Build an embeddable version of ImageMagick.
19706# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000019707if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019708 enableval=$enable_embeddable; enable_embeddable=$enableval
19709else
19710 enable_embeddable='no'
19711fi
19712
19713
19714if test "$enable_embeddable" = 'yes'; then
19715
cristy8b350f62009-11-15 23:12:43 +000019716$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019717
19718fi
19719
19720# Build a high dynamic range version of ImageMagick.
19721# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000019722if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019723 enableval=$enable_hdri; enable_hdri=$enableval
19724else
19725 enable_hdri='no'
19726fi
19727
19728
19729MAGICK_HDRI=""
19730if test "$enable_hdri" = 'yes'; then
19731 MAGICK_HDRI="HDRI"
19732
cristy8b350f62009-11-15 23:12:43 +000019733$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019734
19735fi
19736
cristy3ed852e2009-09-05 21:47:34 +000019737# Build a version of ImageMagick with assert statements.
19738# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000019739if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019740 enableval=$enable_assert; enable_assert=$enableval
19741else
19742 enable_assert='yes'
19743fi
19744
19745
19746if test "$enable_assert" = 'no'; then
19747
cristy8b350f62009-11-15 23:12:43 +000019748$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019749
19750fi
19751
19752# Add configure option --enable-maintainer-mode which enables dependency
19753# checking and generation useful to package maintainers. This is made an
19754# option to avoid confusing end users.
19755
cristy8b350f62009-11-15 23:12:43 +000019756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000019757$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19758 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000019759if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019760 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19761else
19762 USE_MAINTAINER_MODE=no
19763fi
19764
cristy8b350f62009-11-15 23:12:43 +000019765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000019766$as_echo "$USE_MAINTAINER_MODE" >&6; }
19767 if test $USE_MAINTAINER_MODE = yes; then
19768 MAINTAINER_MODE_TRUE=
19769 MAINTAINER_MODE_FALSE='#'
19770else
19771 MAINTAINER_MODE_TRUE='#'
19772 MAINTAINER_MODE_FALSE=
19773fi
19774
19775 MAINT=$MAINTAINER_MODE_TRUE
19776
19777
19778
19779
19780# Enable ccmalloc memory debugging support
19781# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000019782if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019783 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19784else
19785 enable_ccmalloc='no'
19786fi
19787
19788
19789# Enable Electric Fence memory debugging support
19790# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000019791if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019792 enableval=$enable_efence; enable_efence=$enableval
19793else
19794 enable_efence='no'
19795fi
19796
19797
19798# Enable prof-based profiling support
19799# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000019800if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019801 enableval=$enable_prof; enable_prof=$enableval
19802else
19803 enable_prof='no'
19804fi
19805
19806
19807# Enable gprof-based profiling support
19808# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000019809if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019810 enableval=$enable_gprof; enable_gprof=$enableval
19811else
19812 enable_gprof='no'
19813fi
19814
19815
19816# Enable gcov-based profiling support
19817# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000019818if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019819 enableval=$enable_gcov; enable_gcov=$enableval
19820else
19821 enable_gcov='no'
19822fi
19823
19824
19825enable_profiling='no'
19826if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19827 enable_profiling='yes'
19828 if test "$libtool_build_shared_libs" = 'yes'; then
19829 echo "Warning: Can not profile code using shared libraries"
19830 fi
19831fi
19832
19833# Magick API method prefix
19834
19835# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000019836if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019837 withval=$with_method_prefix; with_method_prefix=$enableval
19838else
19839 with_method_prefix=''
19840fi
19841
19842
19843if test "$with_method_prefix" != ''; then
19844
19845cat >>confdefs.h <<_ACEOF
19846#define NAMESPACE_PREFIX $with_method_prefix
19847_ACEOF
19848
19849fi
19850
19851# Number of bits in a Quantum
19852
19853# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000019854if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019855 withval=$with_quantum_depth; with_quantum_depth=$withval
19856else
19857 with_quantum_depth=16
19858fi
19859
19860
19861if test "$with_quantum_depth" != '8'; then
19862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19863fi
19864
19865case "${with_quantum_depth}" in
19866 8 ) ;;
19867 16 ) ;;
19868 32 ) ;;
19869 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000019870 * ) { as_fn_set_status 16
19871as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000019872esac
19873QUANTUM_DEPTH="$with_quantum_depth"
19874
19875cat >>confdefs.h <<_ACEOF
19876#define QUANTUM_DEPTH $QUANTUM_DEPTH
19877_ACEOF
19878
19879
19880# Set pixel cache threshold
19881
19882# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000019883if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019884 withval=$with_cache; with_cache=$withval
19885else
19886 with_cache=''
19887fi
19888
19889
19890if test "$with_cache" != ''; then
19891
19892cat >>confdefs.h <<_ACEOF
19893#define PixelCacheThreshold $with_cache
19894_ACEOF
19895
19896 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19897fi
19898
19899# Disable/Enable support for full delegate paths
19900
19901# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000019902if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019903 withval=$with_frozenpaths; with_frozenpaths=$withval
19904else
19905 with_frozenpaths='no'
19906fi
19907
19908
19909# Enable build/install of Magick++
19910
19911# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000019912if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019913 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19914else
19915 with_magick_plus_plus='yes'
19916fi
19917
19918
19919# Disable build/install of PerlMagick.
19920
19921# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000019922if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019923 withval=$with_perl; with_perl=$withval
19924else
19925 with_perl=$libtool_build_shared_libs
19926fi
19927
19928
19929# Options to pass when configuring PerlMagick
19930
19931# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000019932if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000019933 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000019934fi
19935
19936
cristy3ed852e2009-09-05 21:47:34 +000019937
19938# Enable umem, object-caching memory allocation library.
19939
19940# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000019941if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019942 withval=$with_umem; with_umem=$withval
19943else
19944 with_umem='no'
19945fi
19946
19947if test "$with_umem" != 'yes' ; then
19948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19949fi
19950
19951#
19952# Specify path to shared libstdc++ if not in normal location
19953#
19954
19955# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000019956if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019957 withval=$with_libstdc; with_libstdc=$withval
19958else
19959 with_libstdc=''
19960fi
19961
19962
19963if test "$with_libstdc" != ''; then
19964 if test -d "$with_libstdc"; then
19965 LIBSTDCLDFLAGS="-L$with_libstdc"
19966 fi
19967fi
19968
19969
19970# Does gcc required -traditional?
19971if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000019972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000019973$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019974if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019975 $as_echo_n "(cached) " >&6
19976else
19977 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000019978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019979/* end confdefs.h. */
19980#include <sgtty.h>
19981Autoconf TIOCGETP
19982_ACEOF
19983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019984 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000019985 ac_cv_prog_gcc_traditional=yes
19986else
19987 ac_cv_prog_gcc_traditional=no
19988fi
19989rm -f conftest*
19990
19991
19992 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000019993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019994/* end confdefs.h. */
19995#include <termio.h>
19996Autoconf TCGETA
19997_ACEOF
19998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000019999 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020000 ac_cv_prog_gcc_traditional=yes
20001fi
20002rm -f conftest*
20003
20004 fi
20005fi
cristy8b350f62009-11-15 23:12:43 +000020006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020007$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20008 if test $ac_cv_prog_gcc_traditional = yes; then
20009 CC="$CC -traditional"
20010 fi
20011fi
20012
20013
20014########
20015#
20016# Set defines required to build DLLs and modules using MinGW
20017#
20018########
20019# These options are set for multi-thread DLL module build
20020# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20021# module: _DLL
20022# executable/Magick++: _DLL _MAGICKMOD_
20023MODULE_EXTRA_CPPFLAGS=''
20024LIBRARY_EXTRA_CPPFLAGS=''
20025if test "${native_win32_build}" = 'yes'; then
20026 if test "${libtool_build_shared_libs}" = 'yes'; then
20027 CPPFLAGS="$CPPFLAGS -D_DLL"
20028 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20029 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20030 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20031 if test "$with_modules" = 'yes'; then
20032 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20033 else
20034 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20035 fi
20036 else
20037 CPPFLAGS="$CPPFLAGS -D_LIB"
20038 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20039 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20040 fi
20041 if test "$with_threads" = 'yes'; then
20042 CPPFLAGS="$CPPFLAGS -D_MT"
20043 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20044 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20045 fi
20046fi
20047
20048
20049
20050# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020052$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020053if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020054 $as_echo_n "(cached) " >&6
20055else
cristy8b350f62009-11-15 23:12:43 +000020056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020057/* end confdefs.h. */
20058#include <stdlib.h>
20059#include <stdarg.h>
20060#include <string.h>
20061#include <float.h>
20062
20063int
20064main ()
20065{
20066
20067 ;
20068 return 0;
20069}
20070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020071if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020072 ac_cv_header_stdc=yes
20073else
cristy8b350f62009-11-15 23:12:43 +000020074 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020075fi
cristy3ed852e2009-09-05 21:47:34 +000020076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077
20078if test $ac_cv_header_stdc = yes; then
20079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020081/* end confdefs.h. */
20082#include <string.h>
20083
20084_ACEOF
20085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020086 $EGREP "memchr" >/dev/null 2>&1; then :
20087
cristy3ed852e2009-09-05 21:47:34 +000020088else
20089 ac_cv_header_stdc=no
20090fi
20091rm -f conftest*
20092
20093fi
20094
20095if test $ac_cv_header_stdc = yes; then
20096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020098/* end confdefs.h. */
20099#include <stdlib.h>
20100
20101_ACEOF
20102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020103 $EGREP "free" >/dev/null 2>&1; then :
20104
cristy3ed852e2009-09-05 21:47:34 +000020105else
20106 ac_cv_header_stdc=no
20107fi
20108rm -f conftest*
20109
20110fi
20111
20112if test $ac_cv_header_stdc = yes; then
20113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020114 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020115 :
20116else
cristy8b350f62009-11-15 23:12:43 +000020117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020118/* end confdefs.h. */
20119#include <ctype.h>
20120#include <stdlib.h>
20121#if ((' ' & 0x0FF) == 0x020)
20122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20124#else
20125# define ISLOWER(c) \
20126 (('a' <= (c) && (c) <= 'i') \
20127 || ('j' <= (c) && (c) <= 'r') \
20128 || ('s' <= (c) && (c) <= 'z'))
20129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20130#endif
20131
20132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20133int
20134main ()
20135{
20136 int i;
20137 for (i = 0; i < 256; i++)
20138 if (XOR (islower (i), ISLOWER (i))
20139 || toupper (i) != TOUPPER (i))
20140 return 2;
20141 return 0;
20142}
20143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020144if ac_fn_c_try_run "$LINENO"; then :
20145
cristy3ed852e2009-09-05 21:47:34 +000020146else
cristy8b350f62009-11-15 23:12:43 +000020147 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020148fi
cristy8b350f62009-11-15 23:12:43 +000020149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20150 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020151fi
20152
cristy3ed852e2009-09-05 21:47:34 +000020153fi
20154fi
cristy8b350f62009-11-15 23:12:43 +000020155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020156$as_echo "$ac_cv_header_stdc" >&6; }
20157if test $ac_cv_header_stdc = yes; then
20158
cristy8b350f62009-11-15 23:12:43 +000020159$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020160
20161fi
20162
20163if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020164 { $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 +000020165 header files. Compilation cannot proceed. Please install the ANSI C
20166 headers and rerun this script." >&5
20167$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20168 header files. Compilation cannot proceed. Please install the ANSI C
20169 headers and rerun this script." >&2;};
20170fi
cristya0b81c32010-01-22 02:54:33 +000020171
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20173$as_echo_n "checking whether to enable assertions... " >&6; }
20174 # Check whether --enable-assert was given.
20175if test "${enable_assert+set}" = set; then :
20176 enableval=$enable_assert; ac_enable_assert=$enableval
20177 if test "x$enableval" = xno; then :
20178
20179$as_echo "#define NDEBUG 1" >>confdefs.h
20180
20181elif test "x$enableval" != xyes; then :
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20183$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20184 ac_enable_assert=yes
20185fi
20186else
20187 ac_enable_assert=yes
20188fi
20189
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20191$as_echo "$ac_enable_assert" >&6; }
20192
cristy3ed852e2009-09-05 21:47:34 +000020193ac_header_dirent=no
20194for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20195 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020197$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020199 $as_echo_n "(cached) " >&6
20200else
cristy8b350f62009-11-15 23:12:43 +000020201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020202/* end confdefs.h. */
20203#include <sys/types.h>
20204#include <$ac_hdr>
20205
20206int
20207main ()
20208{
20209if ((DIR *) 0)
20210return 0;
20211 ;
20212 return 0;
20213}
20214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020215if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020216 eval "$as_ac_Header=yes"
20217else
cristy8b350f62009-11-15 23:12:43 +000020218 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020219fi
cristy3ed852e2009-09-05 21:47:34 +000020220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221fi
cristy8b350f62009-11-15 23:12:43 +000020222eval ac_res=\$$as_ac_Header
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020224$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020225eval as_val=\$$as_ac_Header
20226 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020227 cat >>confdefs.h <<_ACEOF
20228#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20229_ACEOF
20230
20231ac_header_dirent=$ac_hdr; break
20232fi
20233
20234done
20235# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20236if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020238$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020239if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020240 $as_echo_n "(cached) " >&6
20241else
20242 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020244/* end confdefs.h. */
20245
20246/* Override any GCC internal prototype to avoid an error.
20247 Use char because int might match the return type of a GCC
20248 builtin and then its argument prototype would still apply. */
20249#ifdef __cplusplus
20250extern "C"
20251#endif
20252char opendir ();
20253int
20254main ()
20255{
20256return opendir ();
20257 ;
20258 return 0;
20259}
20260_ACEOF
20261for ac_lib in '' dir; do
20262 if test -z "$ac_lib"; then
20263 ac_res="none required"
20264 else
20265 ac_res=-l$ac_lib
20266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20267 fi
cristy8b350f62009-11-15 23:12:43 +000020268 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020269 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020270fi
cristy8b350f62009-11-15 23:12:43 +000020271rm -f core conftest.err conftest.$ac_objext \
20272 conftest$ac_exeext
20273 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020274 break
20275fi
20276done
cristy8b350f62009-11-15 23:12:43 +000020277if test "${ac_cv_search_opendir+set}" = set; then :
20278
cristy3ed852e2009-09-05 21:47:34 +000020279else
20280 ac_cv_search_opendir=no
20281fi
20282rm conftest.$ac_ext
20283LIBS=$ac_func_search_save_LIBS
20284fi
cristy8b350f62009-11-15 23:12:43 +000020285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020286$as_echo "$ac_cv_search_opendir" >&6; }
20287ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020288if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20290
20291fi
20292
20293else
cristy8b350f62009-11-15 23:12:43 +000020294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020295$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020296if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020297 $as_echo_n "(cached) " >&6
20298else
20299 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020301/* end confdefs.h. */
20302
20303/* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20306#ifdef __cplusplus
20307extern "C"
20308#endif
20309char opendir ();
20310int
20311main ()
20312{
20313return opendir ();
20314 ;
20315 return 0;
20316}
20317_ACEOF
20318for ac_lib in '' x; do
20319 if test -z "$ac_lib"; then
20320 ac_res="none required"
20321 else
20322 ac_res=-l$ac_lib
20323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20324 fi
cristy8b350f62009-11-15 23:12:43 +000020325 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020326 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020327fi
cristy8b350f62009-11-15 23:12:43 +000020328rm -f core conftest.err conftest.$ac_objext \
20329 conftest$ac_exeext
20330 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020331 break
20332fi
20333done
cristy8b350f62009-11-15 23:12:43 +000020334if test "${ac_cv_search_opendir+set}" = set; then :
20335
cristy3ed852e2009-09-05 21:47:34 +000020336else
20337 ac_cv_search_opendir=no
20338fi
20339rm conftest.$ac_ext
20340LIBS=$ac_func_search_save_LIBS
20341fi
cristy8b350f62009-11-15 23:12:43 +000020342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020343$as_echo "$ac_cv_search_opendir" >&6; }
20344ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020345if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20347
20348fi
20349
20350fi
20351
20352
20353# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020354for 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 +000020355do :
20356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20357ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20358eval as_val=\$$as_ac_Header
20359 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020360 cat >>confdefs.h <<_ACEOF
20361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20362_ACEOF
20363
20364fi
20365
20366done
20367
20368
20369########
20370#
20371# Checks for typedefs, structures, and compiler characteristics.
20372#
20373########
20374
cristy8b350f62009-11-15 23:12:43 +000020375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020376$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020377if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020378 $as_echo_n "(cached) " >&6
20379else
cristy8b350f62009-11-15 23:12:43 +000020380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020381/* end confdefs.h. */
20382
20383#include <stdbool.h>
20384#ifndef bool
20385 "error: bool is not defined"
20386#endif
20387#ifndef false
20388 "error: false is not defined"
20389#endif
20390#if false
20391 "error: false is not 0"
20392#endif
20393#ifndef true
20394 "error: true is not defined"
20395#endif
20396#if true != 1
20397 "error: true is not 1"
20398#endif
20399#ifndef __bool_true_false_are_defined
20400 "error: __bool_true_false_are_defined is not defined"
20401#endif
20402
20403 struct s { _Bool s: 1; _Bool t; } s;
20404
20405 char a[true == 1 ? 1 : -1];
20406 char b[false == 0 ? 1 : -1];
20407 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20408 char d[(bool) 0.5 == true ? 1 : -1];
20409 bool e = &s;
20410 char f[(_Bool) 0.0 == false ? 1 : -1];
20411 char g[true];
20412 char h[sizeof (_Bool)];
20413 char i[sizeof s.t];
20414 enum { j = false, k = true, l = false * true, m = true * 256 };
20415 /* The following fails for
20416 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20417 _Bool n[m];
20418 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20419 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20420# if defined __xlc__ || defined __GNUC__
20421 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20422 reported by James Lemley on 2005-10-05; see
20423 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20424 This test is not quite right, since xlc is allowed to
20425 reject this program, as the initializer for xlcbug is
20426 not one of the forms that C requires support for.
20427 However, doing the test right would require a runtime
20428 test, and that would make cross-compilation harder.
20429 Let us hope that IBM fixes the xlc bug, and also adds
20430 support for this kind of constant expression. In the
20431 meantime, this test will reject xlc, which is OK, since
20432 our stdbool.h substitute should suffice. We also test
20433 this with GCC, where it should work, to detect more
20434 quickly whether someone messes up the test in the
20435 future. */
20436 char digs[] = "0123456789";
20437 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20438# endif
20439 /* Catch a bug in an HP-UX C compiler. See
20440 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20441 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20442 */
20443 _Bool q = true;
20444 _Bool *pq = &q;
20445
20446int
20447main ()
20448{
20449
20450 *pq |= q;
20451 *pq |= ! q;
20452 /* Refer to every declared value, to avoid compiler optimizations. */
20453 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20454 + !m + !n + !o + !p + !q + !pq);
20455
20456 ;
20457 return 0;
20458}
20459_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020460if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020461 ac_cv_header_stdbool_h=yes
20462else
cristy8b350f62009-11-15 23:12:43 +000020463 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020464fi
cristy3ed852e2009-09-05 21:47:34 +000020465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466fi
cristy8b350f62009-11-15 23:12:43 +000020467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020468$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020469ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20470if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020471
20472cat >>confdefs.h <<_ACEOF
20473#define HAVE__BOOL 1
20474_ACEOF
20475
20476
20477fi
20478
20479if test $ac_cv_header_stdbool_h = yes; then
20480
cristy8b350f62009-11-15 23:12:43 +000020481$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020482
20483fi
20484
cristy8b350f62009-11-15 23:12:43 +000020485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020486$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020487if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020488 $as_echo_n "(cached) " >&6
20489else
cristy8b350f62009-11-15 23:12:43 +000020490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020491/* end confdefs.h. */
20492
20493int
20494main ()
20495{
20496
20497volatile int x;
20498int * volatile y = (int *) 0;
20499return !x && !y;
20500 ;
20501 return 0;
20502}
20503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020504if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020505 ac_cv_c_volatile=yes
20506else
cristy8b350f62009-11-15 23:12:43 +000020507 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000020508fi
cristy3ed852e2009-09-05 21:47:34 +000020509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20510fi
cristy8b350f62009-11-15 23:12:43 +000020511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000020512$as_echo "$ac_cv_c_volatile" >&6; }
20513if test $ac_cv_c_volatile = no; then
20514
cristy8b350f62009-11-15 23:12:43 +000020515$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020516
20517fi
20518
cristy8b350f62009-11-15 23:12:43 +000020519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000020520$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020521if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020522 $as_echo_n "(cached) " >&6
20523else
cristy8b350f62009-11-15 23:12:43 +000020524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020525/* end confdefs.h. */
20526#define x(y) #y
20527
20528char *s = x(teststring);
20529_ACEOF
20530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020531 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020532 ac_cv_c_stringize=no
20533else
20534 ac_cv_c_stringize=yes
20535fi
20536rm -f conftest*
20537
20538fi
cristy8b350f62009-11-15 23:12:43 +000020539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000020540$as_echo "$ac_cv_c_stringize" >&6; }
20541if test $ac_cv_c_stringize = yes; then
20542
cristy8b350f62009-11-15 23:12:43 +000020543$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020544
20545fi
20546
cristy8b350f62009-11-15 23:12:43 +000020547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020548$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020549if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020550 $as_echo_n "(cached) " >&6
20551else
cristy8b350f62009-11-15 23:12:43 +000020552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020553/* end confdefs.h. */
20554#include <sys/types.h>
20555#include <sys/stat.h>
20556
20557#if defined S_ISBLK && defined S_IFDIR
20558extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20559#endif
20560
20561#if defined S_ISBLK && defined S_IFCHR
20562extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20563#endif
20564
20565#if defined S_ISLNK && defined S_IFREG
20566extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20567#endif
20568
20569#if defined S_ISSOCK && defined S_IFREG
20570extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20571#endif
20572
20573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020574if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020575 ac_cv_header_stat_broken=no
20576else
cristy8b350f62009-11-15 23:12:43 +000020577 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000020578fi
cristy3ed852e2009-09-05 21:47:34 +000020579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580fi
cristy8b350f62009-11-15 23:12:43 +000020581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000020582$as_echo "$ac_cv_header_stat_broken" >&6; }
20583if test $ac_cv_header_stat_broken = yes; then
20584
cristy8b350f62009-11-15 23:12:43 +000020585$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020586
20587fi
20588
cristy8b350f62009-11-15 23:12:43 +000020589{ $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 +000020590$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020591if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020592 $as_echo_n "(cached) " >&6
20593else
cristy8b350f62009-11-15 23:12:43 +000020594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020595/* end confdefs.h. */
20596#include <sys/types.h>
20597#include <sys/time.h>
20598#include <time.h>
20599
20600int
20601main ()
20602{
20603if ((struct tm *) 0)
20604return 0;
20605 ;
20606 return 0;
20607}
20608_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020609if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020610 ac_cv_header_time=yes
20611else
cristy8b350f62009-11-15 23:12:43 +000020612 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000020613fi
cristy3ed852e2009-09-05 21:47:34 +000020614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615fi
cristy8b350f62009-11-15 23:12:43 +000020616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000020617$as_echo "$ac_cv_header_time" >&6; }
20618if test $ac_cv_header_time = yes; then
20619
cristy8b350f62009-11-15 23:12:43 +000020620$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020621
20622fi
20623
cristy8b350f62009-11-15 23:12:43 +000020624{ $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 +000020625$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020626if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020627 $as_echo_n "(cached) " >&6
20628else
cristy8b350f62009-11-15 23:12:43 +000020629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020630/* end confdefs.h. */
20631#include <sys/types.h>
20632#include <time.h>
20633
20634int
20635main ()
20636{
20637struct tm tm;
20638 int *p = &tm.tm_sec;
20639 return !p;
20640 ;
20641 return 0;
20642}
20643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020645 ac_cv_struct_tm=time.h
20646else
cristy8b350f62009-11-15 23:12:43 +000020647 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000020648fi
cristy3ed852e2009-09-05 21:47:34 +000020649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650fi
cristy8b350f62009-11-15 23:12:43 +000020651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000020652$as_echo "$ac_cv_struct_tm" >&6; }
20653if test $ac_cv_struct_tm = sys/time.h; then
20654
cristy8b350f62009-11-15 23:12:43 +000020655$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020656
20657fi
20658
cristy8b350f62009-11-15 23:12:43 +000020659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000020660$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020661if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020662 $as_echo_n "(cached) " >&6
20663else
20664 echo '#! /bin/cat
20665exit 69
20666' >conftest
20667chmod u+x conftest
20668(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20669if test $? -ne 69; then
20670 ac_cv_sys_interpreter=yes
20671else
20672 ac_cv_sys_interpreter=no
20673fi
20674rm -f conftest
20675fi
cristy8b350f62009-11-15 23:12:43 +000020676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000020677$as_echo "$ac_cv_sys_interpreter" >&6; }
20678interpval=$ac_cv_sys_interpreter
20679
20680
cristy3ed852e2009-09-05 21:47:34 +000020681# If the C compiler supports the keyword inline, do nothing. Otherwise
20682# define inline to __inline__ or __inline if it accepts one of those,
20683# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000020684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020685$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020686if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020687 $as_echo_n "(cached) " >&6
20688else
20689 ac_cv_c_inline=no
20690for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000020691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020692/* end confdefs.h. */
20693#ifndef __cplusplus
20694typedef int foo_t;
20695static $ac_kw foo_t static_foo () {return 0; }
20696$ac_kw foo_t foo () {return 0; }
20697#endif
20698
20699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020700if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020701 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020702fi
cristy3ed852e2009-09-05 21:47:34 +000020703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20704 test "$ac_cv_c_inline" != no && break
20705done
20706
20707fi
cristy8b350f62009-11-15 23:12:43 +000020708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000020709$as_echo "$ac_cv_c_inline" >&6; }
20710
cristy3ed852e2009-09-05 21:47:34 +000020711case $ac_cv_c_inline in
20712 inline | yes) ;;
20713 *)
20714 case $ac_cv_c_inline in
20715 no) ac_val=;;
20716 *) ac_val=$ac_cv_c_inline;;
20717 esac
20718 cat >>confdefs.h <<_ACEOF
20719#ifndef __cplusplus
20720#define inline $ac_val
20721#endif
20722_ACEOF
20723 ;;
20724esac
20725
20726
20727# If the C compiler supports the keyword restrict, do nothing. Otherwise
20728# define restrict to __restrict__ or __restrict if it accepts one of those,
20729# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000020730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000020731$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020732if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020733 $as_echo_n "(cached) " >&6
20734else
20735 ac_cv_c_restrict=no
20736 # The order here caters to the fact that C++ does not require restrict.
20737 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000020738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020739/* end confdefs.h. */
20740typedef int * int_ptr;
20741 int foo (int_ptr $ac_kw ip) {
20742 return ip[0];
20743 }
20744int
20745main ()
20746{
20747int s[1];
20748 int * $ac_kw t = s;
20749 t[0] = 0;
20750 return foo(t)
20751 ;
20752 return 0;
20753}
20754_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020755if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020756 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000020757fi
cristy3ed852e2009-09-05 21:47:34 +000020758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 test "$ac_cv_c_restrict" != no && break
20760 done
20761
20762fi
cristy8b350f62009-11-15 23:12:43 +000020763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000020764$as_echo "$ac_cv_c_restrict" >&6; }
20765
cristy3ed852e2009-09-05 21:47:34 +000020766 case $ac_cv_c_restrict in
20767 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000020768 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020769 ;;
20770 *) cat >>confdefs.h <<_ACEOF
20771#define restrict $ac_cv_c_restrict
20772_ACEOF
20773 ;;
20774 esac
20775
20776
20777# If words are stored with the most significant byte first (like
20778# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000020779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020780$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020781if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020782 $as_echo_n "(cached) " >&6
20783else
20784 ac_cv_c_bigendian=unknown
20785 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000020786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020787/* end confdefs.h. */
20788#ifndef __APPLE_CC__
20789 not a universal capable compiler
20790 #endif
20791 typedef int dummy;
20792
20793_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020794if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020795
20796 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000020797 # there are at least two -arch flags with different values.
20798 ac_arch=
20799 ac_prev=
20800 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20801 if test -n "$ac_prev"; then
20802 case $ac_word in
20803 i?86 | x86_64 | ppc | ppc64)
20804 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20805 ac_arch=$ac_word
20806 else
20807 ac_cv_c_bigendian=universal
20808 break
20809 fi
20810 ;;
20811 esac
20812 ac_prev=
20813 elif test "x$ac_word" = "x-arch"; then
20814 ac_prev=arch
20815 fi
20816 done
cristy3ed852e2009-09-05 21:47:34 +000020817fi
cristy3ed852e2009-09-05 21:47:34 +000020818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819 if test $ac_cv_c_bigendian = unknown; then
20820 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000020821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020822/* end confdefs.h. */
20823#include <sys/types.h>
20824 #include <sys/param.h>
20825
20826int
20827main ()
20828{
20829#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20830 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20831 && LITTLE_ENDIAN)
20832 bogus endian macros
20833 #endif
20834
20835 ;
20836 return 0;
20837}
20838_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020839if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020840 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020842/* end confdefs.h. */
20843#include <sys/types.h>
20844 #include <sys/param.h>
20845
20846int
20847main ()
20848{
20849#if BYTE_ORDER != BIG_ENDIAN
20850 not big endian
20851 #endif
20852
20853 ;
20854 return 0;
20855}
20856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020857if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020858 ac_cv_c_bigendian=yes
20859else
cristy8b350f62009-11-15 23:12:43 +000020860 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020861fi
cristy3ed852e2009-09-05 21:47:34 +000020862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020863fi
cristy3ed852e2009-09-05 21:47:34 +000020864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 if test $ac_cv_c_bigendian = unknown; then
20867 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000020868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020869/* end confdefs.h. */
20870#include <limits.h>
20871
20872int
20873main ()
20874{
20875#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20876 bogus endian macros
20877 #endif
20878
20879 ;
20880 return 0;
20881}
20882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020884 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000020885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020886/* end confdefs.h. */
20887#include <limits.h>
20888
20889int
20890main ()
20891{
20892#ifndef _BIG_ENDIAN
20893 not big endian
20894 #endif
20895
20896 ;
20897 return 0;
20898}
20899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020900if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020901 ac_cv_c_bigendian=yes
20902else
cristy8b350f62009-11-15 23:12:43 +000020903 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000020904fi
cristy3ed852e2009-09-05 21:47:34 +000020905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020906fi
cristy3ed852e2009-09-05 21:47:34 +000020907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 fi
20909 if test $ac_cv_c_bigendian = unknown; then
20910 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000020911 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020912 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000020913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020914/* end confdefs.h. */
20915short int ascii_mm[] =
20916 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20917 short int ascii_ii[] =
20918 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20919 int use_ascii (int i) {
20920 return ascii_mm[i] + ascii_ii[i];
20921 }
20922 short int ebcdic_ii[] =
20923 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20924 short int ebcdic_mm[] =
20925 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20926 int use_ebcdic (int i) {
20927 return ebcdic_mm[i] + ebcdic_ii[i];
20928 }
20929 extern int foo;
20930
20931int
20932main ()
20933{
20934return use_ascii (foo) == use_ebcdic (foo);
20935 ;
20936 return 0;
20937}
20938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020939if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020940 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20941 ac_cv_c_bigendian=yes
20942 fi
20943 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20944 if test "$ac_cv_c_bigendian" = unknown; then
20945 ac_cv_c_bigendian=no
20946 else
20947 # finding both strings is unlikely to happen, but who knows?
20948 ac_cv_c_bigendian=unknown
20949 fi
20950 fi
cristy3ed852e2009-09-05 21:47:34 +000020951fi
cristy3ed852e2009-09-05 21:47:34 +000020952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953else
cristy8b350f62009-11-15 23:12:43 +000020954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020955/* end confdefs.h. */
20956$ac_includes_default
20957int
20958main ()
20959{
20960
20961 /* Are we little or big endian? From Harbison&Steele. */
20962 union
20963 {
20964 long int l;
20965 char c[sizeof (long int)];
20966 } u;
20967 u.l = 1;
20968 return u.c[sizeof (long int) - 1] == 1;
20969
20970 ;
20971 return 0;
20972}
20973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020974if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020975 ac_cv_c_bigendian=no
20976else
cristy8b350f62009-11-15 23:12:43 +000020977 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000020978fi
cristy8b350f62009-11-15 23:12:43 +000020979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20980 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020981fi
20982
cristy3ed852e2009-09-05 21:47:34 +000020983 fi
20984fi
cristy8b350f62009-11-15 23:12:43 +000020985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000020986$as_echo "$ac_cv_c_bigendian" >&6; }
20987 case $ac_cv_c_bigendian in #(
20988 yes)
cristy8b350f62009-11-15 23:12:43 +000020989 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020990;; #(
20991 no)
20992 ;; #(
20993 universal)
20994
cristy8b350f62009-11-15 23:12:43 +000020995$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020996
20997 ;; #(
20998 *)
cristy8b350f62009-11-15 23:12:43 +000020999 as_fn_error "unknown endianness
21000 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021001 esac
21002
21003
21004# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021005ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21006if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021007
cristy3ed852e2009-09-05 21:47:34 +000021008else
21009
21010cat >>confdefs.h <<_ACEOF
21011#define mode_t int
21012_ACEOF
21013
21014fi
21015
21016
21017# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021018ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21019if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021020
cristy3ed852e2009-09-05 21:47:34 +000021021else
21022
21023cat >>confdefs.h <<_ACEOF
21024#define off_t long int
21025_ACEOF
21026
21027fi
21028
21029
21030# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021031ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21032if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021033
cristy3ed852e2009-09-05 21:47:34 +000021034else
21035
21036cat >>confdefs.h <<_ACEOF
21037#define pid_t int
21038_ACEOF
21039
21040fi
21041
21042
21043# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021044ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21045if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021046
cristy3ed852e2009-09-05 21:47:34 +000021047else
21048
21049cat >>confdefs.h <<_ACEOF
21050#define size_t unsigned int
21051_ACEOF
21052
21053fi
21054
21055
21056# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021057ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21058if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021059
cristy3ed852e2009-09-05 21:47:34 +000021060else
21061
21062cat >>confdefs.h <<_ACEOF
21063#define ssize_t int
21064_ACEOF
21065
21066fi
21067
21068
21069# If the C compiler supports a working long double type with more range
21070# or precision than the double type, define HAVE_LONG_DOUBLE.
21071
cristy8b350f62009-11-15 23:12:43 +000021072 { $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 +000021073$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021074if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021075 $as_echo_n "(cached) " >&6
21076else
cristy8b350f62009-11-15 23:12:43 +000021077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021078/* end confdefs.h. */
21079#include <float.h>
21080 long double const a[] =
21081 {
21082 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21083 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21084 };
21085 long double
21086 f (long double x)
21087 {
21088 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21089 + (x ? f (x) : 'c'));
21090 }
21091
21092int
21093main ()
21094{
21095static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21096 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21097 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21098 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21099 && (int) LDBL_EPSILON == 0
21100 )];
21101test_array [0] = 0
21102
21103 ;
21104 return 0;
21105}
21106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021107if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021108 ac_cv_type_long_double_wider=yes
21109else
cristy8b350f62009-11-15 23:12:43 +000021110 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021111fi
cristy3ed852e2009-09-05 21:47:34 +000021112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113fi
cristy8b350f62009-11-15 23:12:43 +000021114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021115$as_echo "$ac_cv_type_long_double_wider" >&6; }
21116 if test $ac_cv_type_long_double_wider = yes; then
21117
cristy8b350f62009-11-15 23:12:43 +000021118$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021119
21120 fi
21121
21122
21123# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21124# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021126$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021127if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021128 $as_echo_n "(cached) " >&6
21129else
cristy8b350f62009-11-15 23:12:43 +000021130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021131/* end confdefs.h. */
21132$ac_includes_default
21133int
21134main ()
21135{
21136static int test_array [1 - 2 * !(((char) -1) < 0)];
21137test_array [0] = 0
21138
21139 ;
21140 return 0;
21141}
21142_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021143if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 ac_cv_c_char_unsigned=no
21145else
cristy8b350f62009-11-15 23:12:43 +000021146 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021147fi
cristy3ed852e2009-09-05 21:47:34 +000021148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21149fi
cristy8b350f62009-11-15 23:12:43 +000021150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021151$as_echo "$ac_cv_c_char_unsigned" >&6; }
21152if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021153 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021154
21155fi
21156
21157
21158# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21159# The cast to long int works around a bug in the HP C Compiler
21160# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21161# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21162# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021164$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021165if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021166 $as_echo_n "(cached) " >&6
21167else
cristy8b350f62009-11-15 23:12:43 +000021168 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 +000021169
cristy3ed852e2009-09-05 21:47:34 +000021170else
cristy8b350f62009-11-15 23:12:43 +000021171 if test "$ac_cv_type_signed_short" = yes; then
21172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021174{ as_fn_set_status 77
21175as_fn_error "cannot compute sizeof (signed short)
21176See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021177 else
21178 ac_cv_sizeof_signed_short=0
21179 fi
21180fi
cristy8b350f62009-11-15 23:12:43 +000021181
cristy3ed852e2009-09-05 21:47:34 +000021182fi
cristy8b350f62009-11-15 23:12:43 +000021183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021184$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21185
21186
21187
21188cat >>confdefs.h <<_ACEOF
21189#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21190_ACEOF
21191
21192
21193
21194# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21195# The cast to long int works around a bug in the HP C Compiler
21196# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21197# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21198# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021200$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021201if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021202 $as_echo_n "(cached) " >&6
21203else
cristy8b350f62009-11-15 23:12:43 +000021204 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 +000021205
cristy3ed852e2009-09-05 21:47:34 +000021206else
cristy8b350f62009-11-15 23:12:43 +000021207 if test "$ac_cv_type_unsigned_short" = yes; then
21208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021210{ as_fn_set_status 77
21211as_fn_error "cannot compute sizeof (unsigned short)
21212See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021213 else
21214 ac_cv_sizeof_unsigned_short=0
21215 fi
21216fi
cristy8b350f62009-11-15 23:12:43 +000021217
cristy3ed852e2009-09-05 21:47:34 +000021218fi
cristy8b350f62009-11-15 23:12:43 +000021219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021220$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21221
21222
21223
21224cat >>confdefs.h <<_ACEOF
21225#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21226_ACEOF
21227
21228
21229
21230# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21231# The cast to long int works around a bug in the HP C Compiler
21232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021236$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021237if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021238 $as_echo_n "(cached) " >&6
21239else
cristy8b350f62009-11-15 23:12:43 +000021240 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 +000021241
cristy3ed852e2009-09-05 21:47:34 +000021242else
cristy8b350f62009-11-15 23:12:43 +000021243 if test "$ac_cv_type_signed_int" = yes; then
21244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021246{ as_fn_set_status 77
21247as_fn_error "cannot compute sizeof (signed int)
21248See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021249 else
21250 ac_cv_sizeof_signed_int=0
21251 fi
21252fi
cristy8b350f62009-11-15 23:12:43 +000021253
cristy3ed852e2009-09-05 21:47:34 +000021254fi
cristy8b350f62009-11-15 23:12:43 +000021255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021256$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21257
21258
21259
21260cat >>confdefs.h <<_ACEOF
21261#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21262_ACEOF
21263
21264
21265
21266# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21267# The cast to long int works around a bug in the HP C Compiler
21268# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21269# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21270# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021272$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021273if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021274 $as_echo_n "(cached) " >&6
21275else
cristy8b350f62009-11-15 23:12:43 +000021276 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 +000021277
cristy3ed852e2009-09-05 21:47:34 +000021278else
cristy8b350f62009-11-15 23:12:43 +000021279 if test "$ac_cv_type_unsigned_int" = yes; then
21280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021282{ as_fn_set_status 77
21283as_fn_error "cannot compute sizeof (unsigned int)
21284See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021285 else
21286 ac_cv_sizeof_unsigned_int=0
21287 fi
21288fi
cristy8b350f62009-11-15 23:12:43 +000021289
cristy3ed852e2009-09-05 21:47:34 +000021290fi
cristy8b350f62009-11-15 23:12:43 +000021291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021292$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21293
21294
21295
21296cat >>confdefs.h <<_ACEOF
21297#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21298_ACEOF
21299
21300
21301
21302# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21303# The cast to long int works around a bug in the HP C Compiler
21304# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21305# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21306# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021308$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021309if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021310 $as_echo_n "(cached) " >&6
21311else
cristy8b350f62009-11-15 23:12:43 +000021312 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 +000021313
cristy3ed852e2009-09-05 21:47:34 +000021314else
cristy8b350f62009-11-15 23:12:43 +000021315 if test "$ac_cv_type_signed_long" = yes; then
21316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021318{ as_fn_set_status 77
21319as_fn_error "cannot compute sizeof (signed long)
21320See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021321 else
21322 ac_cv_sizeof_signed_long=0
21323 fi
21324fi
cristy8b350f62009-11-15 23:12:43 +000021325
cristy3ed852e2009-09-05 21:47:34 +000021326fi
cristy8b350f62009-11-15 23:12:43 +000021327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021328$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21329
21330
21331
21332cat >>confdefs.h <<_ACEOF
21333#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21334_ACEOF
21335
21336
21337
21338# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21339# The cast to long int works around a bug in the HP C Compiler
21340# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21341# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21342# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021344$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021345if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021346 $as_echo_n "(cached) " >&6
21347else
cristy8b350f62009-11-15 23:12:43 +000021348 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 +000021349
cristy3ed852e2009-09-05 21:47:34 +000021350else
cristy8b350f62009-11-15 23:12:43 +000021351 if test "$ac_cv_type_unsigned_long" = yes; then
21352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021354{ as_fn_set_status 77
21355as_fn_error "cannot compute sizeof (unsigned long)
21356See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021357 else
21358 ac_cv_sizeof_unsigned_long=0
21359 fi
21360fi
cristy8b350f62009-11-15 23:12:43 +000021361
cristy3ed852e2009-09-05 21:47:34 +000021362fi
cristy8b350f62009-11-15 23:12:43 +000021363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021364$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21365
21366
21367
21368cat >>confdefs.h <<_ACEOF
21369#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21370_ACEOF
21371
21372
21373
21374# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21375# 'signed long long' is not supported then the value defined is zero.
21376# The cast to long int works around a bug in the HP C Compiler
21377# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21378# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21379# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021381$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021382if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021383 $as_echo_n "(cached) " >&6
21384else
cristy8b350f62009-11-15 23:12:43 +000021385 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 +000021386
cristy3ed852e2009-09-05 21:47:34 +000021387else
cristy8b350f62009-11-15 23:12:43 +000021388 if test "$ac_cv_type_signed_long_long" = yes; then
21389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021391{ as_fn_set_status 77
21392as_fn_error "cannot compute sizeof (signed long long)
21393See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021394 else
21395 ac_cv_sizeof_signed_long_long=0
21396 fi
21397fi
cristy8b350f62009-11-15 23:12:43 +000021398
cristy3ed852e2009-09-05 21:47:34 +000021399fi
cristy8b350f62009-11-15 23:12:43 +000021400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021401$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21402
21403
21404
21405cat >>confdefs.h <<_ACEOF
21406#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21407_ACEOF
21408
21409
21410
21411# Obtain size of a 'unsigned long long' and define as
21412# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21413# supported then the value defined is zero.
21414# The cast to long int works around a bug in the HP C Compiler
21415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21417# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021419$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021420if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021421 $as_echo_n "(cached) " >&6
21422else
cristy8b350f62009-11-15 23:12:43 +000021423 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 +000021424
cristy3ed852e2009-09-05 21:47:34 +000021425else
cristy8b350f62009-11-15 23:12:43 +000021426 if test "$ac_cv_type_unsigned_long_long" = yes; then
21427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021429{ as_fn_set_status 77
21430as_fn_error "cannot compute sizeof (unsigned long long)
21431See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021432 else
21433 ac_cv_sizeof_unsigned_long_long=0
21434 fi
21435fi
cristy8b350f62009-11-15 23:12:43 +000021436
cristy3ed852e2009-09-05 21:47:34 +000021437fi
cristy8b350f62009-11-15 23:12:43 +000021438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021439$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21440
21441
21442
21443cat >>confdefs.h <<_ACEOF
21444#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21445_ACEOF
21446
21447
21448
21449# Obtain size of off_t and define as SIZEOF_OFF_T
21450# The cast to long int works around a bug in the HP C Compiler
21451# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21452# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21453# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021455$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021456if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021457 $as_echo_n "(cached) " >&6
21458else
cristy8b350f62009-11-15 23:12:43 +000021459 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 +000021460
cristy3ed852e2009-09-05 21:47:34 +000021461else
cristy8b350f62009-11-15 23:12:43 +000021462 if test "$ac_cv_type_off_t" = yes; then
21463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021465{ as_fn_set_status 77
21466as_fn_error "cannot compute sizeof (off_t)
21467See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021468 else
21469 ac_cv_sizeof_off_t=0
21470 fi
21471fi
cristy8b350f62009-11-15 23:12:43 +000021472
cristy3ed852e2009-09-05 21:47:34 +000021473fi
cristy8b350f62009-11-15 23:12:43 +000021474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021475$as_echo "$ac_cv_sizeof_off_t" >&6; }
21476
21477
21478
21479cat >>confdefs.h <<_ACEOF
21480#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21481_ACEOF
21482
21483
21484
21485# Obtain size of size_t and define as SIZEOF_SIZE_T
21486# The cast to long int works around a bug in the HP C Compiler
21487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21489# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021492if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 $as_echo_n "(cached) " >&6
21494else
cristy8b350f62009-11-15 23:12:43 +000021495 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 +000021496
cristy3ed852e2009-09-05 21:47:34 +000021497else
cristy8b350f62009-11-15 23:12:43 +000021498 if test "$ac_cv_type_size_t" = yes; then
21499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021501{ as_fn_set_status 77
21502as_fn_error "cannot compute sizeof (size_t)
21503See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021504 else
21505 ac_cv_sizeof_size_t=0
21506 fi
21507fi
cristy8b350f62009-11-15 23:12:43 +000021508
cristy3ed852e2009-09-05 21:47:34 +000021509fi
cristy8b350f62009-11-15 23:12:43 +000021510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000021511$as_echo "$ac_cv_sizeof_size_t" >&6; }
21512
21513
21514
21515cat >>confdefs.h <<_ACEOF
21516#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21517_ACEOF
21518
21519
21520
21521# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21522# The cast to long int works around a bug in the HP C Compiler
21523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21525# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000021527$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021528if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021529 $as_echo_n "(cached) " >&6
21530else
cristy8b350f62009-11-15 23:12:43 +000021531 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 +000021532
cristy3ed852e2009-09-05 21:47:34 +000021533else
cristy8b350f62009-11-15 23:12:43 +000021534 if test "$ac_cv_type_unsigned_intp" = yes; then
21535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021537{ as_fn_set_status 77
21538as_fn_error "cannot compute sizeof (unsigned int*)
21539See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021540 else
21541 ac_cv_sizeof_unsigned_intp=0
21542 fi
21543fi
cristy8b350f62009-11-15 23:12:43 +000021544
cristy3ed852e2009-09-05 21:47:34 +000021545fi
cristy8b350f62009-11-15 23:12:43 +000021546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000021547$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21548
21549
21550
21551cat >>confdefs.h <<_ACEOF
21552#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21553_ACEOF
21554
21555
21556
21557#
21558# Compute sized types for current CPU and compiler options.
21559#
21560
cristy8b350f62009-11-15 23:12:43 +000021561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021562$as_echo_n "checking for signed 8-bit type... " >&6; }
21563INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000021564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021565$as_echo "$INT8_T" >&6; }
21566
21567
cristy8b350f62009-11-15 23:12:43 +000021568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021569$as_echo_n "checking for unsigned 8-bit type... " >&6; }
21570UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000021571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021572$as_echo "$UINT8_T" >&6; }
21573
21574
cristy8b350f62009-11-15 23:12:43 +000021575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021576$as_echo_n "checking for signed 16-bit type... " >&6; }
21577INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000021578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021579$as_echo "$INT16_T" >&6; }
21580
21581
cristy8b350f62009-11-15 23:12:43 +000021582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021583$as_echo_n "checking for unsigned 16-bit type... " >&6; }
21584UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000021585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021586$as_echo "$UINT16_T" >&6; }
21587
21588
cristy8b350f62009-11-15 23:12:43 +000021589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021590$as_echo_n "checking for signed 32-bit type... " >&6; }
21591INT32_T='none'
21592if test $ac_cv_sizeof_signed_int -eq 4; then
21593 INT32_T='signed int'
21594elif test $ac_cv_sizeof_signed_long -eq 4; then
21595 INT32_T='signed long'
21596fi
cristy8b350f62009-11-15 23:12:43 +000021597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021598$as_echo "$INT32_T" >&6; }
21599
21600
cristy8b350f62009-11-15 23:12:43 +000021601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021602$as_echo_n "checking for unsigned 32-bit type... " >&6; }
21603UINT32_T='none'
21604if test $ac_cv_sizeof_unsigned_int -eq 4; then
21605 UINT32_T='unsigned int'
21606elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21607 UINT32_T='unsigned long'
21608fi
cristy8b350f62009-11-15 23:12:43 +000021609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021610$as_echo "$UINT32_T" >&6; }
21611
21612
cristy8b350f62009-11-15 23:12:43 +000021613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021614$as_echo_n "checking for signed 64-bit type... " >&6; }
21615INT64_T='none'
21616if test $ac_cv_sizeof_signed_long -eq 8; then
21617 INT64_T='signed long'
21618elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21619 INT64_T='signed long long'
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo "$INT64_T" >&6; }
21623
21624
cristy8b350f62009-11-15 23:12:43 +000021625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021626$as_echo_n "checking for unsigned 64-bit type... " >&6; }
21627UINT64_T='none'
21628if test $ac_cv_sizeof_unsigned_long -eq 8; then
21629 UINT64_T='unsigned long'
21630elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21631 UINT64_T='unsigned long long'
21632fi
cristy8b350f62009-11-15 23:12:43 +000021633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021634$as_echo "$UINT64_T" >&6; }
21635
21636
cristy8b350f62009-11-15 23:12:43 +000021637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021638$as_echo_n "checking for unsigned maximum type... " >&6; }
21639UINTMAX_T='none'
21640if test "$UINT64_T" != 'none'; then
21641 UINTMAX_T=$UINT64_T
21642elif test "$UINT32_T" != 'none'; then
21643 UINTMAX_T=$UINT32_T
21644fi
cristy8b350f62009-11-15 23:12:43 +000021645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021646$as_echo "$UINTMAX_T" >&6; }
21647
21648
cristy8b350f62009-11-15 23:12:43 +000021649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000021650$as_echo_n "checking for pointer difference type... " >&6; }
21651UINTPTR_T='none'
21652if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21653 UINTPTR_T='unsigned long'
21654elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21655 UINTPTR_T='unsigned long long'
21656fi
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo "$UINTPTR_T" >&6; }
21659
21660
cristy8b350f62009-11-15 23:12:43 +000021661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021662$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021664/* end confdefs.h. */
21665
21666int
21667main ()
21668{
21669{ const char *func = __func__; return(func != 0 ? 0 : 1); }
21670 ;
21671 return 0;
21672}
21673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021674if ac_fn_c_try_compile "$LINENO"; then :
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021676$as_echo "yes" >&6; }
21677else
cristy8b350f62009-11-15 23:12:43 +000021678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021679$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021683/* end confdefs.h. */
21684
21685int
21686main ()
21687{
21688{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21689 ;
21690 return 0;
21691}
21692_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021693if ac_fn_c_try_compile "$LINENO"; then :
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000021695$as_echo "yes" >&6; }
21696
cristy8b350f62009-11-15 23:12:43 +000021697$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021698
21699else
cristy8b350f62009-11-15 23:12:43 +000021700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000021701$as_echo "no" >&6; }
21702
cristy8b350f62009-11-15 23:12:43 +000021703$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021704
21705fi
cristy3ed852e2009-09-05 21:47:34 +000021706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707fi
cristy3ed852e2009-09-05 21:47:34 +000021708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709
21710########
21711#
21712# Check for functions
21713#
21714########
cristy3ed852e2009-09-05 21:47:34 +000021715for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000021716do :
21717 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21718ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21719eval as_val=\$$as_ac_Header
21720 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021721 cat >>confdefs.h <<_ACEOF
21722#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21723_ACEOF
21724
21725fi
21726
21727done
21728
cristy3ed852e2009-09-05 21:47:34 +000021729for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021730do :
21731 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21732if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021733 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021734#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021735_ACEOF
21736
21737fi
21738done
21739
cristy8b350f62009-11-15 23:12:43 +000021740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000021741$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021742if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021743 $as_echo_n "(cached) " >&6
21744else
cristy8b350f62009-11-15 23:12:43 +000021745 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021746 magick_cv_func_mmap_fileio=no
21747else
cristy8b350f62009-11-15 23:12:43 +000021748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021749/* end confdefs.h. */
21750$ac_includes_default
21751/* malloc might have been renamed as rpl_malloc. */
21752#undef malloc
21753
21754/*
21755 This test is derived from GNU Autoconf's similar macro.
21756 The purpose of this test is to verify that files may be memory
21757 mapped, and that memory mapping and file I/O are coherent.
21758
21759 The test creates a test file, memory maps the file, updates
21760 the file using the memory map, and then reads the file using
21761 file I/O to verify that the file contains the updates.
21762*/
21763
21764#include <fcntl.h>
21765#include <sys/mman.h>
21766
21767#if !STDC_HEADERS && !HAVE_STDLIB_H
21768char *malloc ();
21769#endif
21770
21771/* This mess was copied from the GNU getpagesize.h. */
21772#if !HAVE_GETPAGESIZE
21773/* Assume that all systems that can run configure have sys/param.h. */
21774# if !HAVE_SYS_PARAM_H
21775# define HAVE_SYS_PARAM_H 1
21776# endif
21777
21778# ifdef _SC_PAGESIZE
21779# define getpagesize() sysconf(_SC_PAGESIZE)
21780# else /* no _SC_PAGESIZE */
21781# if HAVE_SYS_PARAM_H
21782# include <sys/param.h>
21783# ifdef EXEC_PAGESIZE
21784# define getpagesize() EXEC_PAGESIZE
21785# else /* no EXEC_PAGESIZE */
21786# ifdef NBPG
21787# define getpagesize() NBPG * CLSIZE
21788# ifndef CLSIZE
21789# define CLSIZE 1
21790# endif /* no CLSIZE */
21791# else /* no NBPG */
21792# ifdef NBPC
21793# define getpagesize() NBPC
21794# else /* no NBPC */
21795# ifdef PAGESIZE
21796# define getpagesize() PAGESIZE
21797# endif /* PAGESIZE */
21798# endif /* no NBPC */
21799# endif /* no NBPG */
21800# endif /* no EXEC_PAGESIZE */
21801# else /* no HAVE_SYS_PARAM_H */
21802# define getpagesize() 8192 /* punt totally */
21803# endif /* no HAVE_SYS_PARAM_H */
21804# endif /* no _SC_PAGESIZE */
21805
21806#endif /* no HAVE_GETPAGESIZE */
21807
21808int
21809main ()
21810{
21811 char *data, *data2, *data3;
21812 int i, pagesize;
21813 int fd;
21814
21815 pagesize = getpagesize ();
21816
21817 /* First, make a file with some known garbage in it. */
21818 data = (char *) malloc (pagesize);
21819 if (!data)
21820 exit (1);
21821 for (i = 0; i < pagesize; ++i)
21822 *(data + i) = rand ();
21823 umask (0);
21824 fd = creat ("conftest.mmap", 0600);
21825 if (fd < 0)
21826 exit (1);
21827 if (write (fd, data, pagesize) != pagesize)
21828 exit (1);
21829 close (fd);
21830
21831 /* Mmap the file as read/write/shared and verify that we see the
21832 same garbage. */
21833 fd = open ("conftest.mmap", O_RDWR);
21834 if (fd < 0)
21835 exit (1);
21836 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21837 if (data2 == 0)
21838 exit (1);
21839 for (i = 0; i < pagesize; ++i)
21840 if (*(data + i) != *(data2 + i))
21841 exit (1);
21842
21843 /* Finally, make sure that changes to the mapped area
21844 percolate back to the file as seen by read(). */
21845 for (i = 0; i < pagesize; ++i)
21846 *(data2 + i) = *(data2 + i) + 1;
21847 data3 = (char *) malloc (pagesize);
21848 if (!data3)
21849 exit (1);
21850 if (read (fd, data3, pagesize) != pagesize)
21851 exit (1);
21852 for (i = 0; i < pagesize; ++i)
21853 if (*(data2 + i) != *(data3 + i))
21854 exit (1);
21855 close (fd);
21856 exit (0);
21857}
21858_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021859if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 magick_cv_func_mmap_fileio=yes
21861else
cristy8b350f62009-11-15 23:12:43 +000021862 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000021863fi
cristy8b350f62009-11-15 23:12:43 +000021864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21865 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021866fi
21867
cristy3ed852e2009-09-05 21:47:34 +000021868fi
cristy8b350f62009-11-15 23:12:43 +000021869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000021870$as_echo "$magick_cv_func_mmap_fileio" >&6; }
21871if test $magick_cv_func_mmap_fileio = yes; then
21872
cristy8b350f62009-11-15 23:12:43 +000021873$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021874
21875fi
21876rm -f conftest.mmap
21877
cristy8b350f62009-11-15 23:12:43 +000021878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021879$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021880if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 $as_echo_n "(cached) " >&6
21882else
cristy8b350f62009-11-15 23:12:43 +000021883 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021884 ac_cv_func_closedir_void=yes
21885else
cristy8b350f62009-11-15 23:12:43 +000021886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021887/* end confdefs.h. */
21888$ac_includes_default
21889#include <$ac_header_dirent>
21890#ifndef __cplusplus
21891int closedir ();
21892#endif
21893
21894int
21895main ()
21896{
21897return closedir (opendir (".")) != 0;
21898 ;
21899 return 0;
21900}
21901_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021902if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021903 ac_cv_func_closedir_void=no
21904else
cristy8b350f62009-11-15 23:12:43 +000021905 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000021906fi
cristy8b350f62009-11-15 23:12:43 +000021907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21908 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021909fi
21910
cristy3ed852e2009-09-05 21:47:34 +000021911fi
cristy8b350f62009-11-15 23:12:43 +000021912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000021913$as_echo "$ac_cv_func_closedir_void" >&6; }
21914if test $ac_cv_func_closedir_void = yes; then
21915
cristy8b350f62009-11-15 23:12:43 +000021916$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021917
21918fi
21919
cristycd4c5312009-11-22 01:19:08 +000021920
21921
21922
21923 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000021924do :
21925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000021926ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21927"
cristy8b350f62009-11-15 23:12:43 +000021928eval as_val=\$$as_ac_Header
21929 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021930 cat >>confdefs.h <<_ACEOF
21931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21932_ACEOF
21933
21934fi
21935
21936done
21937
cristycd4c5312009-11-22 01:19:08 +000021938
21939
21940
21941
21942
21943
21944
cristy3ed852e2009-09-05 21:47:34 +000021945for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000021946do :
21947 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21948if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021949 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021950#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000021951_ACEOF
21952
21953fi
21954done
21955
cristy8b350f62009-11-15 23:12:43 +000021956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000021957$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021958if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021959 $as_echo_n "(cached) " >&6
21960else
cristy8b350f62009-11-15 23:12:43 +000021961 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 ac_cv_func_mmap_fixed_mapped=no
21963else
cristy8b350f62009-11-15 23:12:43 +000021964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021965/* end confdefs.h. */
21966$ac_includes_default
21967/* malloc might have been renamed as rpl_malloc. */
21968#undef malloc
21969
21970/* Thanks to Mike Haertel and Jim Avera for this test.
21971 Here is a matrix of mmap possibilities:
21972 mmap private not fixed
21973 mmap private fixed at somewhere currently unmapped
21974 mmap private fixed at somewhere already mapped
21975 mmap shared not fixed
21976 mmap shared fixed at somewhere currently unmapped
21977 mmap shared fixed at somewhere already mapped
21978 For private mappings, we should verify that changes cannot be read()
21979 back from the file, nor mmap's back from the file at a different
21980 address. (There have been systems where private was not correctly
21981 implemented like the infamous i386 svr4.0, and systems where the
21982 VM page cache was not coherent with the file system buffer cache
21983 like early versions of FreeBSD and possibly contemporary NetBSD.)
21984 For shared mappings, we should conversely verify that changes get
21985 propagated back to all the places they're supposed to be.
21986
21987 Grep wants private fixed already mapped.
21988 The main things grep needs to know about mmap are:
21989 * does it exist and is it safe to write into the mmap'd area
21990 * how to use it (BSD variants) */
21991
21992#include <fcntl.h>
21993#include <sys/mman.h>
21994
21995#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21996char *malloc ();
21997#endif
21998
21999/* This mess was copied from the GNU getpagesize.h. */
22000#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022001# ifdef _SC_PAGESIZE
22002# define getpagesize() sysconf(_SC_PAGESIZE)
22003# else /* no _SC_PAGESIZE */
22004# ifdef HAVE_SYS_PARAM_H
22005# include <sys/param.h>
22006# ifdef EXEC_PAGESIZE
22007# define getpagesize() EXEC_PAGESIZE
22008# else /* no EXEC_PAGESIZE */
22009# ifdef NBPG
22010# define getpagesize() NBPG * CLSIZE
22011# ifndef CLSIZE
22012# define CLSIZE 1
22013# endif /* no CLSIZE */
22014# else /* no NBPG */
22015# ifdef NBPC
22016# define getpagesize() NBPC
22017# else /* no NBPC */
22018# ifdef PAGESIZE
22019# define getpagesize() PAGESIZE
22020# endif /* PAGESIZE */
22021# endif /* no NBPC */
22022# endif /* no NBPG */
22023# endif /* no EXEC_PAGESIZE */
22024# else /* no HAVE_SYS_PARAM_H */
22025# define getpagesize() 8192 /* punt totally */
22026# endif /* no HAVE_SYS_PARAM_H */
22027# endif /* no _SC_PAGESIZE */
22028
22029#endif /* no HAVE_GETPAGESIZE */
22030
22031int
22032main ()
22033{
22034 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022035 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022036 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022037 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022038
22039 pagesize = getpagesize ();
22040
22041 /* First, make a file with some known garbage in it. */
22042 data = (char *) malloc (pagesize);
22043 if (!data)
22044 return 1;
22045 for (i = 0; i < pagesize; ++i)
22046 *(data + i) = rand ();
22047 umask (0);
22048 fd = creat ("conftest.mmap", 0600);
22049 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022050 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022051 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022052 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022053 close (fd);
22054
cristycd4c5312009-11-22 01:19:08 +000022055 /* Next, check that the tail of a page is zero-filled. File must have
22056 non-zero length, otherwise we risk SIGBUS for entire page. */
22057 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22058 if (fd2 < 0)
22059 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022060 cdata2 = "";
22061 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022062 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022063 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022064 if (data2 == MAP_FAILED)
22065 return 6;
22066 for (i = 0; i < pagesize; ++i)
22067 if (*(data2 + i))
22068 return 7;
22069 close (fd2);
22070 if (munmap (data2, pagesize))
22071 return 8;
22072
cristy3ed852e2009-09-05 21:47:34 +000022073 /* Next, try to mmap the file at a fixed address which already has
22074 something else allocated at it. If we can, also make sure that
22075 we see the same garbage. */
22076 fd = open ("conftest.mmap", O_RDWR);
22077 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022078 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22080 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022081 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022082 for (i = 0; i < pagesize; ++i)
22083 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022084 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022085
22086 /* Finally, make sure that changes to the mapped area do not
22087 percolate back to the file as seen by read(). (This is a bug on
22088 some variants of i386 svr4.0.) */
22089 for (i = 0; i < pagesize; ++i)
22090 *(data2 + i) = *(data2 + i) + 1;
22091 data3 = (char *) malloc (pagesize);
22092 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022093 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022094 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022095 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022096 for (i = 0; i < pagesize; ++i)
22097 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022098 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022099 close (fd);
22100 return 0;
22101}
22102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022103if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022104 ac_cv_func_mmap_fixed_mapped=yes
22105else
cristy8b350f62009-11-15 23:12:43 +000022106 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022107fi
cristy8b350f62009-11-15 23:12:43 +000022108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22109 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022110fi
22111
cristy3ed852e2009-09-05 21:47:34 +000022112fi
cristy8b350f62009-11-15 23:12:43 +000022113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022114$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22115if test $ac_cv_func_mmap_fixed_mapped = yes; then
22116
cristy8b350f62009-11-15 23:12:43 +000022117$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022118
22119fi
cristycd4c5312009-11-22 01:19:08 +000022120rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022121
cristy3ed852e2009-09-05 21:47:34 +000022122for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022123do :
22124 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22125if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022126 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022127#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022128_ACEOF
22129
22130fi
22131
22132done
22133
cristy3ed852e2009-09-05 21:47:34 +000022134for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022135do :
22136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22138eval as_val=\$$as_ac_var
22139 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022140 cat >>confdefs.h <<_ACEOF
22141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22142_ACEOF
22143
22144fi
22145done
22146
22147if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022149$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022150if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022151 $as_echo_n "(cached) " >&6
22152else
cristy8b350f62009-11-15 23:12:43 +000022153 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022154 ac_cv_func_fork_works=cross
22155else
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158$ac_includes_default
22159int
22160main ()
22161{
22162
22163 /* By Ruediger Kuhlmann. */
22164 return fork () < 0;
22165
22166 ;
22167 return 0;
22168}
22169_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022170if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022171 ac_cv_func_fork_works=yes
22172else
cristy8b350f62009-11-15 23:12:43 +000022173 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022174fi
cristy8b350f62009-11-15 23:12:43 +000022175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22176 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022177fi
22178
cristy3ed852e2009-09-05 21:47:34 +000022179fi
cristy8b350f62009-11-15 23:12:43 +000022180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022181$as_echo "$ac_cv_func_fork_works" >&6; }
22182
22183else
22184 ac_cv_func_fork_works=$ac_cv_func_fork
22185fi
22186if test "x$ac_cv_func_fork_works" = xcross; then
22187 case $host in
22188 *-*-amigaos* | *-*-msdosdjgpp*)
22189 # Override, as these systems have only a dummy fork() stub
22190 ac_cv_func_fork_works=no
22191 ;;
22192 *)
22193 ac_cv_func_fork_works=yes
22194 ;;
22195 esac
cristy8b350f62009-11-15 23:12:43 +000022196 { $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 +000022197$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22198fi
22199ac_cv_func_vfork_works=$ac_cv_func_vfork
22200if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022202$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022203if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022204 $as_echo_n "(cached) " >&6
22205else
cristy8b350f62009-11-15 23:12:43 +000022206 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022207 ac_cv_func_vfork_works=cross
22208else
cristy8b350f62009-11-15 23:12:43 +000022209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022210/* end confdefs.h. */
22211/* Thanks to Paul Eggert for this test. */
22212$ac_includes_default
22213#include <sys/wait.h>
22214#ifdef HAVE_VFORK_H
22215# include <vfork.h>
22216#endif
22217/* On some sparc systems, changes by the child to local and incoming
22218 argument registers are propagated back to the parent. The compiler
22219 is told about this with #include <vfork.h>, but some compilers
22220 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22221 static variable whose address is put into a register that is
22222 clobbered by the vfork. */
22223static void
22224#ifdef __cplusplus
22225sparc_address_test (int arg)
22226# else
22227sparc_address_test (arg) int arg;
22228#endif
22229{
22230 static pid_t child;
22231 if (!child) {
22232 child = vfork ();
22233 if (child < 0) {
22234 perror ("vfork");
22235 _exit(2);
22236 }
22237 if (!child) {
22238 arg = getpid();
22239 write(-1, "", 0);
22240 _exit (arg);
22241 }
22242 }
22243}
22244
22245int
22246main ()
22247{
22248 pid_t parent = getpid ();
22249 pid_t child;
22250
22251 sparc_address_test (0);
22252
22253 child = vfork ();
22254
22255 if (child == 0) {
22256 /* Here is another test for sparc vfork register problems. This
22257 test uses lots of local variables, at least as many local
22258 variables as main has allocated so far including compiler
22259 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22260 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22261 reuse the register of parent for one of the local variables,
22262 since it will think that parent can't possibly be used any more
22263 in this routine. Assigning to the local variable will thus
22264 munge parent in the parent process. */
22265 pid_t
22266 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22267 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22268 /* Convince the compiler that p..p7 are live; otherwise, it might
22269 use the same hardware register for all 8 local variables. */
22270 if (p != p1 || p != p2 || p != p3 || p != p4
22271 || p != p5 || p != p6 || p != p7)
22272 _exit(1);
22273
22274 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22275 from child file descriptors. If the child closes a descriptor
22276 before it execs or exits, this munges the parent's descriptor
22277 as well. Test for this by closing stdout in the child. */
22278 _exit(close(fileno(stdout)) != 0);
22279 } else {
22280 int status;
22281 struct stat st;
22282
22283 while (wait(&status) != child)
22284 ;
22285 return (
22286 /* Was there some problem with vforking? */
22287 child < 0
22288
22289 /* Did the child fail? (This shouldn't happen.) */
22290 || status
22291
22292 /* Did the vfork/compiler bug occur? */
22293 || parent != getpid()
22294
22295 /* Did the file descriptor bug occur? */
22296 || fstat(fileno(stdout), &st) != 0
22297 );
22298 }
22299}
22300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022301if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 ac_cv_func_vfork_works=yes
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022305fi
cristy8b350f62009-11-15 23:12:43 +000022306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22307 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022308fi
22309
cristy3ed852e2009-09-05 21:47:34 +000022310fi
cristy8b350f62009-11-15 23:12:43 +000022311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022312$as_echo "$ac_cv_func_vfork_works" >&6; }
22313
22314fi;
22315if test "x$ac_cv_func_fork_works" = xcross; then
22316 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022317 { $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 +000022318$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22319fi
22320
22321if test "x$ac_cv_func_vfork_works" = xyes; then
22322
cristy8b350f62009-11-15 23:12:43 +000022323$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022324
22325else
22326
cristy8b350f62009-11-15 23:12:43 +000022327$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022328
22329fi
22330if test "x$ac_cv_func_fork_works" = xyes; then
22331
cristy8b350f62009-11-15 23:12:43 +000022332$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022333
22334fi
22335
cristy8b350f62009-11-15 23:12:43 +000022336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022337$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022338if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022339 $as_echo_n "(cached) " >&6
22340else
cristy8b350f62009-11-15 23:12:43 +000022341 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022342 ac_cv_func_memcmp_working=no
22343else
cristy8b350f62009-11-15 23:12:43 +000022344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022345/* end confdefs.h. */
22346$ac_includes_default
22347int
22348main ()
22349{
22350
22351 /* Some versions of memcmp are not 8-bit clean. */
22352 char c0 = '\100', c1 = '\200', c2 = '\201';
22353 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22354 return 1;
22355
22356 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22357 or more and with at least one buffer not starting on a 4-byte boundary.
22358 William Lewis provided this test program. */
22359 {
22360 char foo[21];
22361 char bar[21];
22362 int i;
22363 for (i = 0; i < 4; i++)
22364 {
22365 char *a = foo + i;
22366 char *b = bar + i;
22367 strcpy (a, "--------01111111");
22368 strcpy (b, "--------10000000");
22369 if (memcmp (a, b, 16) >= 0)
22370 return 1;
22371 }
22372 return 0;
22373 }
22374
22375 ;
22376 return 0;
22377}
22378_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022379if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 ac_cv_func_memcmp_working=yes
22381else
cristy8b350f62009-11-15 23:12:43 +000022382 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000022383fi
cristy8b350f62009-11-15 23:12:43 +000022384rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22385 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022386fi
22387
cristy3ed852e2009-09-05 21:47:34 +000022388fi
cristy8b350f62009-11-15 23:12:43 +000022389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000022390$as_echo "$ac_cv_func_memcmp_working" >&6; }
22391test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22392 *" memcmp.$ac_objext "* ) ;;
22393 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22394 ;;
22395esac
22396
22397
cristy3ed852e2009-09-05 21:47:34 +000022398for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000022399do :
22400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22401ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22402eval as_val=\$$as_ac_Header
22403 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 cat >>confdefs.h <<_ACEOF
22405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22406_ACEOF
22407
22408fi
22409
22410done
22411
cristy8b350f62009-11-15 23:12:43 +000022412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000022413$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022414if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022415 $as_echo_n "(cached) " >&6
22416else
22417 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22418 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22419 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000022420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022421/* end confdefs.h. */
22422$ac_includes_default
22423#ifdef HAVE_SYS_SELECT_H
22424# include <sys/select.h>
22425#endif
22426#ifdef HAVE_SYS_SOCKET_H
22427# include <sys/socket.h>
22428#endif
22429
22430int
22431main ()
22432{
22433extern int select ($ac_arg1,
22434 $ac_arg234, $ac_arg234, $ac_arg234,
22435 $ac_arg5);
22436 ;
22437 return 0;
22438}
22439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022440if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022441 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000022442fi
cristy3ed852e2009-09-05 21:47:34 +000022443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 done
22445 done
22446done
22447# Provide a safe default value.
22448: ${ac_cv_func_select_args='int,int *,struct timeval *'}
22449
22450fi
cristy8b350f62009-11-15 23:12:43 +000022451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000022452$as_echo "$ac_cv_func_select_args" >&6; }
22453ac_save_IFS=$IFS; IFS=','
22454set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22455IFS=$ac_save_IFS
22456shift
22457
22458cat >>confdefs.h <<_ACEOF
22459#define SELECT_TYPE_ARG1 $1
22460_ACEOF
22461
22462
22463cat >>confdefs.h <<_ACEOF
22464#define SELECT_TYPE_ARG234 ($2)
22465_ACEOF
22466
22467
22468cat >>confdefs.h <<_ACEOF
22469#define SELECT_TYPE_ARG5 ($3)
22470_ACEOF
22471
22472rm -f conftest*
22473
cristy8b350f62009-11-15 23:12:43 +000022474if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022475 $as_echo_n "(cached) " >&6
22476else
22477 ac_cv_func_setvbuf_reversed=no
22478fi
22479
22480
cristy8b350f62009-11-15 23:12:43 +000022481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000022482$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022483if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022484 $as_echo_n "(cached) " >&6
22485else
cristy8b350f62009-11-15 23:12:43 +000022486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022487/* end confdefs.h. */
22488#include <sys/types.h>
22489#include <signal.h>
22490
22491int
22492main ()
22493{
22494return *(signal (0, 0)) (0) == 1;
22495 ;
22496 return 0;
22497}
22498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022500 ac_cv_type_signal=int
22501else
cristy8b350f62009-11-15 23:12:43 +000022502 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000022503fi
cristy3ed852e2009-09-05 21:47:34 +000022504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505fi
cristy8b350f62009-11-15 23:12:43 +000022506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000022507$as_echo "$ac_cv_type_signal" >&6; }
22508
22509cat >>confdefs.h <<_ACEOF
22510#define RETSIGTYPE $ac_cv_type_signal
22511_ACEOF
22512
22513
cristy8b350f62009-11-15 23:12:43 +000022514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022515$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022516if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022517 $as_echo_n "(cached) " >&6
22518else
cristy8b350f62009-11-15 23:12:43 +000022519 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 ac_cv_func_strtod=no
22521else
cristy8b350f62009-11-15 23:12:43 +000022522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022523/* end confdefs.h. */
22524
22525$ac_includes_default
22526#ifndef strtod
22527double strtod ();
22528#endif
22529int
22530main()
22531{
22532 {
22533 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22534 char *string = " +69";
22535 char *term;
22536 double value;
22537 value = strtod (string, &term);
22538 if (value != 69 || term != (string + 4))
22539 return 1;
22540 }
22541
22542 {
22543 /* Under Solaris 2.4, strtod returns the wrong value for the
22544 terminating character under some conditions. */
22545 char *string = "NaN";
22546 char *term;
22547 strtod (string, &term);
22548 if (term != string && *(term - 1) == 0)
22549 return 1;
22550 }
22551 return 0;
22552}
22553
22554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022555if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022556 ac_cv_func_strtod=yes
22557else
cristy8b350f62009-11-15 23:12:43 +000022558 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000022559fi
cristy8b350f62009-11-15 23:12:43 +000022560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22561 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022562fi
22563
cristy3ed852e2009-09-05 21:47:34 +000022564fi
cristy8b350f62009-11-15 23:12:43 +000022565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000022566$as_echo "$ac_cv_func_strtod" >&6; }
22567if test $ac_cv_func_strtod = no; then
22568 case " $LIBOBJS " in
22569 *" strtod.$ac_objext "* ) ;;
22570 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22571 ;;
22572esac
22573
cristy8b350f62009-11-15 23:12:43 +000022574ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22575if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022576
cristy3ed852e2009-09-05 21:47:34 +000022577fi
22578
cristy3ed852e2009-09-05 21:47:34 +000022579if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022581$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022582if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022583 $as_echo_n "(cached) " >&6
22584else
22585 ac_check_lib_save_LIBS=$LIBS
22586LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000022587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022588/* end confdefs.h. */
22589
22590/* Override any GCC internal prototype to avoid an error.
22591 Use char because int might match the return type of a GCC
22592 builtin and then its argument prototype would still apply. */
22593#ifdef __cplusplus
22594extern "C"
22595#endif
22596char pow ();
22597int
22598main ()
22599{
22600return pow ();
22601 ;
22602 return 0;
22603}
22604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 ac_cv_lib_m_pow=yes
22607else
cristy8b350f62009-11-15 23:12:43 +000022608 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000022609fi
cristy8b350f62009-11-15 23:12:43 +000022610rm -f core conftest.err conftest.$ac_objext \
22611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022612LIBS=$ac_check_lib_save_LIBS
22613fi
cristy8b350f62009-11-15 23:12:43 +000022614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022615$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022616if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022617 POW_LIB=-lm
22618else
cristy8b350f62009-11-15 23:12:43 +000022619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000022620$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22621fi
22622
22623fi
22624
22625fi
22626
cristy3ed852e2009-09-05 21:47:34 +000022627for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000022628do :
22629 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22630if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022632#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000022633_ACEOF
22634
cristy8b350f62009-11-15 23:12:43 +000022635ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22636if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022637
cristy8b350f62009-11-15 23:12:43 +000022638$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022639
22640fi
22641
22642fi
22643done
22644
22645
22646
cristy161b9262010-03-20 19:34:32 +000022647#
22648# Find math library
22649#
22650MATH_LIBS=''
22651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22652$as_echo_n "checking for sqrt in -lm... " >&6; }
22653if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22655else
22656 ac_check_lib_save_LIBS=$LIBS
22657LIBS="-lm $LIBS"
22658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22659/* end confdefs.h. */
22660
22661/* Override any GCC internal prototype to avoid an error.
22662 Use char because int might match the return type of a GCC
22663 builtin and then its argument prototype would still apply. */
22664#ifdef __cplusplus
22665extern "C"
22666#endif
22667char sqrt ();
22668int
22669main ()
22670{
22671return sqrt ();
22672 ;
22673 return 0;
22674}
22675_ACEOF
22676if ac_fn_c_try_link "$LINENO"; then :
22677 ac_cv_lib_m_sqrt=yes
22678else
22679 ac_cv_lib_m_sqrt=no
22680fi
22681rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22683LIBS=$ac_check_lib_save_LIBS
22684fi
22685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22686$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22687if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22688 MATH_LIBS="-lm"
22689fi
22690
22691LIBS="$MATH_LIBS $LIBS"
22692
22693
cristy56ed31c2010-03-22 00:46:21 +000022694for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000022695do :
22696 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22697ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22698eval as_val=\$$as_ac_var
22699 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022700 cat >>confdefs.h <<_ACEOF
22701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22702_ACEOF
22703
22704fi
22705done
22706
22707
cristye43a45e2009-09-28 14:49:00 +000022708#
22709# Check for clock_gettime().
22710#
cristy8b350f62009-11-15 23:12:43 +000022711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022712$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022713if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022714 $as_echo_n "(cached) " >&6
22715else
22716 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022718/* end confdefs.h. */
22719
22720/* Override any GCC internal prototype to avoid an error.
22721 Use char because int might match the return type of a GCC
22722 builtin and then its argument prototype would still apply. */
22723#ifdef __cplusplus
22724extern "C"
22725#endif
22726char clock_gettime ();
22727int
22728main ()
22729{
22730return clock_gettime ();
22731 ;
22732 return 0;
22733}
22734_ACEOF
22735for ac_lib in '' rt; do
22736 if test -z "$ac_lib"; then
22737 ac_res="none required"
22738 else
22739 ac_res=-l$ac_lib
22740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22741 fi
cristy8b350f62009-11-15 23:12:43 +000022742 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022743 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000022744fi
cristy8b350f62009-11-15 23:12:43 +000022745rm -f core conftest.err conftest.$ac_objext \
22746 conftest$ac_exeext
22747 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000022748 break
22749fi
22750done
cristy8b350f62009-11-15 23:12:43 +000022751if test "${ac_cv_search_clock_gettime+set}" = set; then :
22752
cristye43a45e2009-09-28 14:49:00 +000022753else
22754 ac_cv_search_clock_gettime=no
22755fi
22756rm conftest.$ac_ext
22757LIBS=$ac_func_search_save_LIBS
22758fi
cristy8b350f62009-11-15 23:12:43 +000022759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000022760$as_echo "$ac_cv_search_clock_gettime" >&6; }
22761ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000022762if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000022763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22764
22765
cristy8b350f62009-11-15 23:12:43 +000022766$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022767
cristy8b350f62009-11-15 23:12:43 +000022768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000022769$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000022771/* end confdefs.h. */
22772#include <time.h>
22773int
22774main ()
22775{
22776clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000022777 ;
22778 return 0;
22779}
22780_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022781if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000022782
cristy8b350f62009-11-15 23:12:43 +000022783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000022784$as_echo "yes" >&6; }
22785
cristy8b350f62009-11-15 23:12:43 +000022786$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000022787
22788
22789else
cristy8b350f62009-11-15 23:12:43 +000022790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000022791$as_echo "no" >&6; }
22792
22793fi
cristye43a45e2009-09-28 14:49:00 +000022794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22795
22796else
22797
cristy8b350f62009-11-15 23:12:43 +000022798 for ac_func in gettimeofday ftime
22799do :
22800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22801ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22802eval as_val=\$$as_ac_var
22803 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000022804 cat >>confdefs.h <<_ACEOF
22805#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22806_ACEOF
22807 break
22808fi
22809done
22810
22811
22812
22813fi
22814
22815
cristy3ed852e2009-09-05 21:47:34 +000022816########
22817#
22818# Check for function prototypes
22819#
22820########
22821
cristy8b350f62009-11-15 23:12:43 +000022822ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000022823#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022824"
22825if test "x$ac_cv_have_decl_pread" = x""yes; then :
22826 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022827else
cristy8b350f62009-11-15 23:12:43 +000022828 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022829fi
22830
cristy3ed852e2009-09-05 21:47:34 +000022831cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022832#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022833_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022834ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000022835#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000022836"
22837if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22838 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022839else
cristy8b350f62009-11-15 23:12:43 +000022840 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022841fi
22842
cristy3ed852e2009-09-05 21:47:34 +000022843cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022844#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022845_ACEOF
22846
22847
cristy8b350f62009-11-15 23:12:43 +000022848ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000022849#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000022850"
22851if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22852 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022853else
cristy8b350f62009-11-15 23:12:43 +000022854 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022855fi
22856
cristy3ed852e2009-09-05 21:47:34 +000022857cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022858#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022859_ACEOF
22860
22861
cristy8b350f62009-11-15 23:12:43 +000022862ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000022863#include <stdio.h>
22864#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000022865"
22866if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22867 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000022868else
cristy8b350f62009-11-15 23:12:43 +000022869 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000022870fi
22871
cristy3ed852e2009-09-05 21:47:34 +000022872cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022873#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000022874_ACEOF
22875
22876
cristy3ed852e2009-09-05 21:47:34 +000022877########
22878#
22879# C++ Support Tests (For Magick++)
22880#
22881########
22882have_magick_plus_plus='no'
22883if test "$with_magick_plus_plus" = 'yes'; then
22884 OLIBS="$LIBS"
22885 LIBS=''
22886 ac_ext=cpp
22887ac_cpp='$CXXCPP $CPPFLAGS'
22888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22891
22892
22893 # Full set of headers used...
22894 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22895 # functional iomanip iosfwd iostream iterator list string strstream utility
22896 ac_ext=cpp
22897ac_cpp='$CXXCPP $CPPFLAGS'
22898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22901
22902 ac_ext=cpp
22903ac_cpp='$CXXCPP $CPPFLAGS'
22904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22907if test -z "$CXX"; then
22908 if test -n "$CCC"; then
22909 CXX=$CCC
22910 else
22911 if test -n "$ac_tool_prefix"; then
22912 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22913 do
22914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022917$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022918if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022919 $as_echo_n "(cached) " >&6
22920else
22921 if test -n "$CXX"; then
22922 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22923else
22924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22925for as_dir in $PATH
22926do
22927 IFS=$as_save_IFS
22928 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022929 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22931 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022933 break 2
22934 fi
22935done
cristy8b350f62009-11-15 23:12:43 +000022936 done
cristy3ed852e2009-09-05 21:47:34 +000022937IFS=$as_save_IFS
22938
22939fi
22940fi
22941CXX=$ac_cv_prog_CXX
22942if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944$as_echo "$CXX" >&6; }
22945else
cristy8b350f62009-11-15 23:12:43 +000022946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022947$as_echo "no" >&6; }
22948fi
22949
22950
22951 test -n "$CXX" && break
22952 done
22953fi
22954if test -z "$CXX"; then
22955 ac_ct_CXX=$CXX
22956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22957do
22958 # Extract the first word of "$ac_prog", so it can be a program name with args.
22959set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000022960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000022961$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022962if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022963 $as_echo_n "(cached) " >&6
22964else
22965 if test -n "$ac_ct_CXX"; then
22966 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22967else
22968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22969for as_dir in $PATH
22970do
22971 IFS=$as_save_IFS
22972 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000022973 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000022974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22975 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000022976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000022977 break 2
22978 fi
22979done
cristy8b350f62009-11-15 23:12:43 +000022980 done
cristy3ed852e2009-09-05 21:47:34 +000022981IFS=$as_save_IFS
22982
22983fi
22984fi
22985ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22986if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000022987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000022988$as_echo "$ac_ct_CXX" >&6; }
22989else
cristy8b350f62009-11-15 23:12:43 +000022990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022991$as_echo "no" >&6; }
22992fi
22993
22994
22995 test -n "$ac_ct_CXX" && break
22996done
22997
22998 if test "x$ac_ct_CXX" = x; then
22999 CXX="g++"
23000 else
23001 case $cross_compiling:$ac_tool_warned in
23002yes:)
cristy8b350f62009-11-15 23:12:43 +000023003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23005ac_tool_warned=yes ;;
23006esac
23007 CXX=$ac_ct_CXX
23008 fi
23009fi
23010
23011 fi
23012fi
23013# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023014$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023015set X $ac_compile
23016ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023017for ac_option in --version -v -V -qversion; do
23018 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023019case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23022esac
cristy8b350f62009-11-15 23:12:43 +000023023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23024$as_echo "$ac_try_echo"; } >&5
23025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023026 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023027 if test -s conftest.err; then
23028 sed '10a\
23029... rest of stderr output deleted ...
23030 10q' conftest.err >conftest.er1
23031 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023032 fi
cristycd4c5312009-11-22 01:19:08 +000023033 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23035 test $ac_status = 0; }
23036done
cristy3ed852e2009-09-05 21:47:34 +000023037
cristy8b350f62009-11-15 23:12:43 +000023038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023039$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023040if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023041 $as_echo_n "(cached) " >&6
23042else
cristy8b350f62009-11-15 23:12:43 +000023043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023044/* end confdefs.h. */
23045
23046int
23047main ()
23048{
23049#ifndef __GNUC__
23050 choke me
23051#endif
23052
23053 ;
23054 return 0;
23055}
23056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023057if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023058 ac_compiler_gnu=yes
23059else
cristy8b350f62009-11-15 23:12:43 +000023060 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023061fi
cristy3ed852e2009-09-05 21:47:34 +000023062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23064
23065fi
cristy8b350f62009-11-15 23:12:43 +000023066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023067$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23068if test $ac_compiler_gnu = yes; then
23069 GXX=yes
23070else
23071 GXX=
23072fi
23073ac_test_CXXFLAGS=${CXXFLAGS+set}
23074ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023076$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023077if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023078 $as_echo_n "(cached) " >&6
23079else
23080 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23081 ac_cxx_werror_flag=yes
23082 ac_cv_prog_cxx_g=no
23083 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023085/* end confdefs.h. */
23086
23087int
23088main ()
23089{
23090
23091 ;
23092 return 0;
23093}
23094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023095if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023096 ac_cv_prog_cxx_g=yes
23097else
cristy8b350f62009-11-15 23:12:43 +000023098 CXXFLAGS=""
23099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023100/* end confdefs.h. */
23101
23102int
23103main ()
23104{
23105
23106 ;
23107 return 0;
23108}
23109_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023110if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023111
cristy8b350f62009-11-15 23:12:43 +000023112else
23113 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023114 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023116/* end confdefs.h. */
23117
23118int
23119main ()
23120{
23121
23122 ;
23123 return 0;
23124}
23125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023126if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023128fi
cristy3ed852e2009-09-05 21:47:34 +000023129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130fi
cristy3ed852e2009-09-05 21:47:34 +000023131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23132fi
cristy3ed852e2009-09-05 21:47:34 +000023133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23135fi
cristy8b350f62009-11-15 23:12:43 +000023136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023137$as_echo "$ac_cv_prog_cxx_g" >&6; }
23138if test "$ac_test_CXXFLAGS" = set; then
23139 CXXFLAGS=$ac_save_CXXFLAGS
23140elif test $ac_cv_prog_cxx_g = yes; then
23141 if test "$GXX" = yes; then
23142 CXXFLAGS="-g -O2"
23143 else
23144 CXXFLAGS="-g"
23145 fi
23146else
23147 if test "$GXX" = yes; then
23148 CXXFLAGS="-O2"
23149 else
23150 CXXFLAGS=
23151 fi
23152fi
23153ac_ext=cpp
23154ac_cpp='$CXXCPP $CPPFLAGS'
23155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23158
23159depcc="$CXX" am_compiler_list=
23160
cristy8b350f62009-11-15 23:12:43 +000023161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023162$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023163if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023164 $as_echo_n "(cached) " >&6
23165else
23166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23167 # We make a subdir and do the tests there. Otherwise we can end up
23168 # making bogus files that we don't know about and never remove. For
23169 # instance it was reported that on HP-UX the gcc test will end up
23170 # making a dummy file named `D' -- because `-MD' means `put the output
23171 # in D'.
23172 mkdir conftest.dir
23173 # Copy depcomp to subdir because otherwise we won't find it if we're
23174 # using a relative directory.
23175 cp "$am_depcomp" conftest.dir
23176 cd conftest.dir
23177 # We will build objects and dependencies in a subdirectory because
23178 # it helps to detect inapplicable dependency modes. For instance
23179 # both Tru64's cc and ICC support -MD to output dependencies as a
23180 # side effect of compilation, but ICC will put the dependencies in
23181 # the current directory while Tru64 will put them in the object
23182 # directory.
23183 mkdir sub
23184
23185 am_cv_CXX_dependencies_compiler_type=none
23186 if test "$am_compiler_list" = ""; then
23187 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23188 fi
23189 am__universal=false
23190 case " $depcc " in #(
23191 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23192 esac
23193
23194 for depmode in $am_compiler_list; do
23195 # Setup a source with many dependencies, because some compilers
23196 # like to wrap large dependency lists on column 80 (with \), and
23197 # we should not choose a depcomp mode which is confused by this.
23198 #
23199 # We need to recreate these files for each test, as the compiler may
23200 # overwrite some of them when testing with obscure command lines.
23201 # This happens at least with the AIX C compiler.
23202 : > sub/conftest.c
23203 for i in 1 2 3 4 5 6; do
23204 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23205 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23206 # Solaris 8's {/usr,}/bin/sh.
23207 touch sub/conftst$i.h
23208 done
23209 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23210
23211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23212 # mode. It turns out that the SunPro C++ compiler does not properly
23213 # handle `-M -o', and we need to detect this. Also, some Intel
23214 # versions had trouble with output in subdirs
23215 am__obj=sub/conftest.${OBJEXT-o}
23216 am__minus_obj="-o $am__obj"
23217 case $depmode in
23218 gcc)
23219 # This depmode causes a compiler race in universal mode.
23220 test "$am__universal" = false || continue
23221 ;;
23222 nosideeffect)
23223 # after this tag, mechanisms are not by side-effect, so they'll
23224 # only be used when explicitly requested
23225 if test "x$enable_dependency_tracking" = xyes; then
23226 continue
23227 else
23228 break
23229 fi
23230 ;;
23231 msvisualcpp | msvcmsys)
23232 # This compiler won't grok `-c -o', but also, the minuso test has
23233 # not run yet. These depmodes are late enough in the game, and
23234 # so weak that their functioning should not be impacted.
23235 am__obj=conftest.${OBJEXT-o}
23236 am__minus_obj=
23237 ;;
23238 none) break ;;
23239 esac
23240 if depmode=$depmode \
23241 source=sub/conftest.c object=$am__obj \
23242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23243 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23244 >/dev/null 2>conftest.err &&
23245 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23246 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23247 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23248 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23249 # icc doesn't choke on unknown options, it will just issue warnings
23250 # or remarks (even with -Werror). So we grep stderr for any message
23251 # that says an option was ignored or not supported.
23252 # When given -MP, icc 7.0 and 7.1 complain thusly:
23253 # icc: Command line warning: ignoring option '-M'; no argument required
23254 # The diagnosis changed in icc 8.0:
23255 # icc: Command line remark: option '-MP' not supported
23256 if (grep 'ignoring option' conftest.err ||
23257 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23258 am_cv_CXX_dependencies_compiler_type=$depmode
23259 break
23260 fi
23261 fi
23262 done
23263
23264 cd ..
23265 rm -rf conftest.dir
23266else
23267 am_cv_CXX_dependencies_compiler_type=none
23268fi
23269
23270fi
cristy8b350f62009-11-15 23:12:43 +000023271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023272$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23273CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23274
23275 if
23276 test "x$enable_dependency_tracking" != xno \
23277 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23278 am__fastdepCXX_TRUE=
23279 am__fastdepCXX_FALSE='#'
23280else
23281 am__fastdepCXX_TRUE='#'
23282 am__fastdepCXX_FALSE=
23283fi
23284
23285
cristy8b350f62009-11-15 23:12:43 +000023286 { $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 +000023287$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023288if test "${ac_cv_cxx_have_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023289 $as_echo_n "(cached) " >&6
23290else
23291
23292 ac_ext=cpp
23293ac_cpp='$CXXCPP $CPPFLAGS'
23294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23297
cristy8b350f62009-11-15 23:12:43 +000023298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023299/* end confdefs.h. */
23300
23301int f(int x){return 1;}
23302int f(char x){return 1;}
23303int f(bool x){return 1;}
23304
23305int
23306main ()
23307{
23308bool b = true; return f(b);
23309 ;
23310 return 0;
23311}
23312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023313if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023314 ac_cv_cxx_have_bool=yes
23315else
cristy8b350f62009-11-15 23:12:43 +000023316 ac_cv_cxx_have_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023317fi
cristy3ed852e2009-09-05 21:47:34 +000023318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23319 ac_ext=cpp
23320ac_cpp='$CXXCPP $CPPFLAGS'
23321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324
23325
23326fi
cristy8b350f62009-11-15 23:12:43 +000023327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
cristy3ed852e2009-09-05 21:47:34 +000023328$as_echo "$ac_cv_cxx_have_bool" >&6; }
23329if test "$ac_cv_cxx_have_bool" = yes; then
23330
cristy8b350f62009-11-15 23:12:43 +000023331$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023332
23333fi
23334
cristy8b350f62009-11-15 23:12:43 +000023335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023336$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023337if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023338 $as_echo_n "(cached) " >&6
23339else
23340
23341 ac_ext=cpp
23342ac_cpp='$CXXCPP $CPPFLAGS'
23343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23346
cristy8b350f62009-11-15 23:12:43 +000023347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023348/* end confdefs.h. */
23349namespace Outer { namespace Inner { int i = 0; }}
23350int
23351main ()
23352{
23353using namespace Outer::Inner; return i;
23354 ;
23355 return 0;
23356}
23357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023358if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023359 ac_cv_cxx_have_namespaces=yes
23360else
cristy8b350f62009-11-15 23:12:43 +000023361 ac_cv_cxx_have_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023362fi
cristy3ed852e2009-09-05 21:47:34 +000023363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 ac_ext=cpp
23365ac_cpp='$CXXCPP $CPPFLAGS'
23366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23369
23370
23371fi
cristy8b350f62009-11-15 23:12:43 +000023372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023373$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23374if test "$ac_cv_cxx_have_namespaces" = yes; then
23375
cristy8b350f62009-11-15 23:12:43 +000023376$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023377
23378fi
23379
cristy8b350f62009-11-15 23:12:43 +000023380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023381$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023382if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023383 $as_echo_n "(cached) " >&6
23384else
23385
23386 ac_ext=cpp
23387ac_cpp='$CXXCPP $CPPFLAGS'
23388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23391
cristy8b350f62009-11-15 23:12:43 +000023392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023393/* end confdefs.h. */
23394#include <iostream>
23395 std::istream& is = std::cin;
23396
23397int
23398main ()
23399{
23400return 0;
23401 ;
23402 return 0;
23403}
23404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023405if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023406 ac_cv_cxx_have_std_namespace=yes
23407else
cristy8b350f62009-11-15 23:12:43 +000023408 ac_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000023409fi
cristy3ed852e2009-09-05 21:47:34 +000023410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 ac_ext=cpp
23412ac_cpp='$CXXCPP $CPPFLAGS'
23413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23416
23417
23418fi
cristy8b350f62009-11-15 23:12:43 +000023419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
cristy3ed852e2009-09-05 21:47:34 +000023420$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23421if test "$ac_cv_cxx_have_std_namespace" = yes; then
23422
cristy8b350f62009-11-15 23:12:43 +000023423$as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023424
23425fi
23426
cristy8b350f62009-11-15 23:12:43 +000023427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000023428$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023429if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023430 $as_echo_n "(cached) " >&6
23431else
23432
23433
23434 ac_ext=cpp
23435ac_cpp='$CXXCPP $CPPFLAGS'
23436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23439
cristy8b350f62009-11-15 23:12:43 +000023440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023441/* end confdefs.h. */
23442#include <iostream>
23443#include <map>
23444#include <iomanip>
23445#include <cmath>
23446#ifdef HAVE_NAMESPACES
23447using namespace std;
23448#endif
23449int
23450main ()
23451{
23452return 0;
23453 ;
23454 return 0;
23455}
23456_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023457if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023458 ac_cv_cxx_have_std_libs=yes
23459else
cristy8b350f62009-11-15 23:12:43 +000023460 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000023461fi
cristy3ed852e2009-09-05 21:47:34 +000023462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23463 ac_ext=cpp
23464ac_cpp='$CXXCPP $CPPFLAGS'
23465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23468
23469
23470fi
cristy8b350f62009-11-15 23:12:43 +000023471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000023472$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23473if test "$ac_cv_cxx_have_std_libs" = yes; then
23474
cristy8b350f62009-11-15 23:12:43 +000023475$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023476
23477fi
23478
cristy8b350f62009-11-15 23:12:43 +000023479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000023480$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023481if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023482 $as_echo_n "(cached) " >&6
23483else
23484
23485 ac_ext=cpp
23486ac_cpp='$CXXCPP $CPPFLAGS'
23487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23490
cristy8b350f62009-11-15 23:12:43 +000023491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023492/* end confdefs.h. */
23493const wchar_t* s=L"wide string";
23494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023495if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023496 ac_cv_cxx_have_lstring=yes
23497else
cristy8b350f62009-11-15 23:12:43 +000023498 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000023499fi
cristy3ed852e2009-09-05 21:47:34 +000023500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 ac_ext=cpp
23502ac_cpp='$CXXCPP $CPPFLAGS'
23503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23506
23507
23508fi
cristy8b350f62009-11-15 23:12:43 +000023509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000023510$as_echo "$ac_cv_cxx_have_lstring" >&6; }
23511if test "$ac_cv_cxx_have_lstring" = yes; then
23512
cristy8b350f62009-11-15 23:12:43 +000023513$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023514
23515fi
23516
23517
23518 OPENMP_CXXFLAGS=
23519 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000023520if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023521 enableval=$enable_openmp;
23522fi
23523
23524 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000023525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23526$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023527if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023528 $as_echo_n "(cached) " >&6
23529else
cristy8b350f62009-11-15 23:12:43 +000023530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23531/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023532
23533#ifndef _OPENMP
23534 choke me
23535#endif
23536#include <omp.h>
23537int main () { return omp_get_num_threads (); }
23538
23539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023540if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023541 ac_cv_prog_cxx_openmp='none needed'
23542else
cristy8b350f62009-11-15 23:12:43 +000023543 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000023544 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23545 ac_save_CXXFLAGS=$CXXFLAGS
23546 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000023547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23548/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000023549
23550#ifndef _OPENMP
23551 choke me
23552#endif
23553#include <omp.h>
23554int main () { return omp_get_num_threads (); }
23555
23556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023557if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023558 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000023559fi
cristy8b350f62009-11-15 23:12:43 +000023560rm -f core conftest.err conftest.$ac_objext \
23561 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023562 CXXFLAGS=$ac_save_CXXFLAGS
23563 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23564 break
23565 fi
23566 done
23567fi
cristy8b350f62009-11-15 23:12:43 +000023568rm -f core conftest.err conftest.$ac_objext \
23569 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023570fi
cristy8b350f62009-11-15 23:12:43 +000023571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023572$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23573 case $ac_cv_prog_cxx_openmp in #(
23574 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000023575 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000023576 *)
cristy8b350f62009-11-15 23:12:43 +000023577 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000023578 esac
23579 fi
23580
23581
23582 ac_ext=c
23583ac_cpp='$CPP $CPPFLAGS'
23584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586ac_compiler_gnu=$ac_cv_c_compiler_gnu
23587
23588
cristy8b350f62009-11-15 23:12:43 +000023589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000023590$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23591 if \
23592 test $ac_cv_cxx_have_bool = 'yes' && \
23593 test $ac_cv_cxx_have_lstring = 'yes' && \
23594 test $ac_cv_cxx_have_namespaces = 'yes' && \
23595 test $ac_cv_cxx_have_std_libs = 'yes' && \
23596 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23597 have_magick_plus_plus='yes'
23598 else
23599 have_magick_plus_plus='no (failed tests)'
23600 fi
cristy8b350f62009-11-15 23:12:43 +000023601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602$as_echo "$have_magick_plus_plus" >&6; }
23603 LIBS="$OLIBS"
23604fi
23605 if test "$have_magick_plus_plus" = 'yes'; then
23606 WITH_MAGICK_PLUS_PLUS_TRUE=
23607 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23608else
23609 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23610 WITH_MAGICK_PLUS_PLUS_FALSE=
23611fi
23612
23613
23614# Only check for delegate libraries in subdirectories if requested.
23615if test "$enable_delegate_build" != 'no'; then
23616 # Check for delegate sub-directories and add -I & -L options as required.
23617 # This presumes that delegates are installed as detailed in the ImageMagick
23618 # README. If delegates are installed in a standard location where the
23619 # compiler will automatically find them then these options should not be
23620 # required.
23621
23622 #
23623 # Most delegates have includes in the same directory as the library, but not all...
23624 #
23625 # Includes
cristy5850e4b2010-01-08 14:28:24 +000023626 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 +000023627 if test -d "$builddir/$dir"; then
23628 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23629 else
23630 if test -d "$srcdirfull/$dir"; then
23631 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23632 fi
23633 fi
23634 done
23635
23636 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000023637 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 +000023638 if test -d "$builddir/$dir/.libs"; then
23639 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23640 else
23641 if test -d "$srcdirfull/$dir/.libs"; then
23642 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23643 fi
23644 fi
23645 if test -d "$builddir/$dir"; then
23646 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23647 else
23648 if test -d "$srcdirfull/$dir"; then
23649 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23650 fi
23651 fi
23652 done
23653fi
23654
23655# Assume that delegate headers reside under same directory as ImageMagick
23656# installation prefix.
23657MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23658
23659#
23660# Find the X11 RGB database
23661#
cristy8b350f62009-11-15 23:12:43 +000023662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000023663$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023664if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023665 $as_echo_n "(cached) " >&6
23666else
23667 # Look for the header file in a standard set of common directories.
23668# Check X11 before X11Rn because it is often a symlink to the current release.
23669 for ac_dir in \
23670 /lib/usr/lib/X11 \
23671 /usr/X11/lib \
23672 /usr/X11R4/lib \
23673 /usr/X11R5/lib \
23674 /usr/X11R6/lib \
23675 /usr/X11R7/lib \
23676 /usr/X386/lib \
23677 /usr/XFree86/lib/X11 \
23678 /usr/athena/lib \
23679 /usr/lib \
23680 /usr/lib/X11 \
23681 /usr/lib/X11R4 \
23682 /usr/lib/X11R5 \
23683 /usr/lib/X11R6 \
23684 /usr/lib/X11R7 \
23685 /usr/local/X11/lib \
23686 /usr/local/X11R4/lib \
23687 /usr/local/X11R5/lib \
23688 /usr/local/X11R6/lib \
23689 /usr/local/lib \
23690 /usr/local/lib/X11 \
23691 /usr/local/lib/X11R4 \
23692 /usr/local/lib/X11R5 \
23693 /usr/local/lib/X11R6 \
23694 /usr/local/lib/X11R7 \
23695 /usr/local/x11r5/lib \
23696 /usr/lpp/Xamples/lib \
23697 /usr/openwin/lib \
23698 /usr/openwin/share/lib \
23699 /usr/unsupported/lib \
23700 /usr/x386/lib \
23701 ; do
23702 if test -f "$ac_dir/X11/rgb.txt"; then
23703 im_cv_x_configure="$ac_dir/X11/"
23704 break
23705 elif test -f "$ac_dir/rgb.txt"; then
23706 im_cv_x_configure="$ac_dir/"
23707 break
23708 fi
23709
23710 done
23711fi
cristy8b350f62009-11-15 23:12:43 +000023712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000023713$as_echo "$im_cv_x_configure" >&6; }
23714X11_CONFIGURE_PATH="$im_cv_x_configure"
23715case "${build_os}" in
23716 mingw* )
23717 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23718 ;;
23719esac
23720
23721cat >>confdefs.h <<_ACEOF
23722#define X11_CONFIGURE_PATH "$X11ConfigurePath"
23723_ACEOF
23724
23725
23726#
23727# Find OpenMP library
23728#
23729GOMP_LIBS=''
23730if test "$enable_openmp" != 'no'; then
23731 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000023732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023733$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023734if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023735 $as_echo_n "(cached) " >&6
23736else
23737 ac_check_lib_save_LIBS=$LIBS
23738LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023740/* end confdefs.h. */
23741
23742/* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23745#ifdef __cplusplus
23746extern "C"
23747#endif
23748char GOMP_parallel_start ();
23749int
23750main ()
23751{
23752return GOMP_parallel_start ();
23753 ;
23754 return 0;
23755}
23756_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023757if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023758 ac_cv_lib_gomp_GOMP_parallel_start=yes
23759else
cristy8b350f62009-11-15 23:12:43 +000023760 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000023761fi
cristy8b350f62009-11-15 23:12:43 +000023762rm -f core conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023764LIBS=$ac_check_lib_save_LIBS
23765fi
cristy8b350f62009-11-15 23:12:43 +000023766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000023767$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023768if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023769 GOMP_LIBS="-lgomp"
23770fi
23771 # gcc
23772 else
cristy8b350f62009-11-15 23:12:43 +000023773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000023774$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023775if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023776 $as_echo_n "(cached) " >&6
23777else
23778 ac_check_lib_save_LIBS=$LIBS
23779LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023781/* end confdefs.h. */
23782
23783/* Override any GCC internal prototype to avoid an error.
23784 Use char because int might match the return type of a GCC
23785 builtin and then its argument prototype would still apply. */
23786#ifdef __cplusplus
23787extern "C"
23788#endif
23789char sunw_mp_register_warn ();
23790int
23791main ()
23792{
23793return sunw_mp_register_warn ();
23794 ;
23795 return 0;
23796}
23797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023799 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23800else
cristy8b350f62009-11-15 23:12:43 +000023801 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000023802fi
cristy8b350f62009-11-15 23:12:43 +000023803rm -f core conftest.err conftest.$ac_objext \
23804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023805LIBS=$ac_check_lib_save_LIBS
23806fi
cristy8b350f62009-11-15 23:12:43 +000023807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000023808$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023809if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023810 GOMP_LIBS="-lmtsk"
23811fi
23812 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000023813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023814$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023815if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023816 $as_echo_n "(cached) " >&6
23817else
23818 ac_check_lib_save_LIBS=$LIBS
23819LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023821/* end confdefs.h. */
23822
23823/* Override any GCC internal prototype to avoid an error.
23824 Use char because int might match the return type of a GCC
23825 builtin and then its argument prototype would still apply. */
23826#ifdef __cplusplus
23827extern "C"
23828#endif
23829char _xlsmpFlush ();
23830int
23831main ()
23832{
23833return _xlsmpFlush ();
23834 ;
23835 return 0;
23836}
23837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023838if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023839 ac_cv_lib_xlsmp__xlsmpFlush=yes
23840else
cristy8b350f62009-11-15 23:12:43 +000023841 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000023842fi
cristy8b350f62009-11-15 23:12:43 +000023843rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023845LIBS=$ac_check_lib_save_LIBS
23846fi
cristy8b350f62009-11-15 23:12:43 +000023847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023849if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023850 GOMP_LIBS="-lxlsmp"
23851fi
23852 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000023853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023854$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023855if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023856 $as_echo_n "(cached) " >&6
23857else
23858 ac_check_lib_save_LIBS=$LIBS
23859LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023861/* end confdefs.h. */
23862
23863/* Override any GCC internal prototype to avoid an error.
23864 Use char because int might match the return type of a GCC
23865 builtin and then its argument prototype would still apply. */
23866#ifdef __cplusplus
23867extern "C"
23868#endif
23869char mp_destroy ();
23870int
23871main ()
23872{
23873return mp_destroy ();
23874 ;
23875 return 0;
23876}
23877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023878if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023879 ac_cv_lib_mp_mp_destroy=yes
23880else
cristy8b350f62009-11-15 23:12:43 +000023881 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000023882fi
cristy8b350f62009-11-15 23:12:43 +000023883rm -f core conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023885LIBS=$ac_check_lib_save_LIBS
23886fi
cristy8b350f62009-11-15 23:12:43 +000023887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000023888$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023889if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023890 GOMP_LIBS="-lmp"
23891fi
23892 # SGI IRIX 6.5 MIPSpro C/C++
23893 fi
23894 LIBS="$GOMP_LIBS $LIBS"
23895fi
23896
23897
23898#
23899# Find Posix threads library
23900#
23901THREAD_LIBS=''
23902if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23903
23904 if test "x$PTHREAD_LIBS" = "x"; then
23905 case "${host_cpu}-${host_os}" in
23906 *-freebsd*)
23907
23908
23909
23910ac_ext=c
23911ac_cpp='$CPP $CPPFLAGS'
23912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914ac_compiler_gnu=$ac_cv_c_compiler_gnu
23915
23916magick_pthread_lib_ok=no
23917
23918LIB=-lc_r
23919save_LIBS="$LIBS"
23920LIBS="$LIBS $LIB"
23921
cristy8b350f62009-11-15 23:12:43 +000023922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023923$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023925/* end confdefs.h. */
23926#include <pthread.h>
23927int
23928main ()
23929{
23930 pthread_t th;
23931 pthread_join(th, 0);
23932 pthread_attr_init(0);
23933 pthread_cleanup_push(0, 0);
23934 pthread_create(0,0,0,0);
23935 pthread_cleanup_pop(0);
23936 ;
23937 return 0;
23938}
23939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023940if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023941 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000023942fi
cristy8b350f62009-11-15 23:12:43 +000023943rm -f core conftest.err conftest.$ac_objext \
23944 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023945
cristy8b350f62009-11-15 23:12:43 +000023946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000023947$as_echo "${magick_pthread_lib_ok}" >&6; }
23948if test "$magick_pthread_lib_ok" = yes
23949then
23950 PTHREAD_LIBS=-lc_r
23951 :
23952else
23953
23954 :
23955fi
23956
23957LIBS="$save_LIBS"
23958
23959ac_ext=c
23960ac_cpp='$CPP $CPPFLAGS'
23961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23963ac_compiler_gnu=$ac_cv_c_compiler_gnu
23964
23965 ;;
23966 esac
23967 fi
23968
23969 for lib in pthread pthreads; do
23970 if test "x$PTHREAD_LIBS" = "x"; then
23971
23972
23973
23974ac_ext=c
23975ac_cpp='$CPP $CPPFLAGS'
23976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23978ac_compiler_gnu=$ac_cv_c_compiler_gnu
23979
23980magick_pthread_lib_ok=no
23981
23982LIB=-l$lib
23983save_LIBS="$LIBS"
23984LIBS="$LIBS $LIB"
23985
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023989/* end confdefs.h. */
23990#include <pthread.h>
23991int
23992main ()
23993{
23994 pthread_t th;
23995 pthread_join(th, 0);
23996 pthread_attr_init(0);
23997 pthread_cleanup_push(0, 0);
23998 pthread_create(0,0,0,0);
23999 pthread_cleanup_pop(0);
24000 ;
24001 return 0;
24002}
24003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024005 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024006fi
cristy8b350f62009-11-15 23:12:43 +000024007rm -f core conftest.err conftest.$ac_objext \
24008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024009
cristy8b350f62009-11-15 23:12:43 +000024010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024011$as_echo "${magick_pthread_lib_ok}" >&6; }
24012if test "$magick_pthread_lib_ok" = yes
24013then
24014 PTHREAD_LIBS=-l$lib
24015 :
24016else
24017
24018 :
24019fi
24020
24021LIBS="$save_LIBS"
24022
24023ac_ext=c
24024ac_cpp='$CPP $CPPFLAGS'
24025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027ac_compiler_gnu=$ac_cv_c_compiler_gnu
24028
24029
24030 fi
24031 done
24032
24033 THREAD_LIBS="$PTHREAD_LIBS"
24034 LIBS="$LIBS $THREAD_LIBS"
24035fi
24036
24037
24038#
24039# Check for umem.
24040#
24041have_umem='no'
24042UMEM_LIBS=''
24043if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024045$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024047$as_echo "" >&6; }
24048 failed=0
24049 passed=0
cristy8b350f62009-11-15 23:12:43 +000024050 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24051if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024052 passed=`expr $passed + 1`
24053else
24054 failed=`expr $failed + 1`
24055fi
24056
24057
cristy8b350f62009-11-15 23:12:43 +000024058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024060if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 $as_echo_n "(cached) " >&6
24062else
24063 ac_check_lib_save_LIBS=$LIBS
24064LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024066/* end confdefs.h. */
24067
24068/* Override any GCC internal prototype to avoid an error.
24069 Use char because int might match the return type of a GCC
24070 builtin and then its argument prototype would still apply. */
24071#ifdef __cplusplus
24072extern "C"
24073#endif
24074char umem_alloc ();
24075int
24076main ()
24077{
24078return umem_alloc ();
24079 ;
24080 return 0;
24081}
24082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024083if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024084 ac_cv_lib_umem_umem_alloc=yes
24085else
cristy8b350f62009-11-15 23:12:43 +000024086 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024087fi
cristy8b350f62009-11-15 23:12:43 +000024088rm -f core conftest.err conftest.$ac_objext \
24089 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024090LIBS=$ac_check_lib_save_LIBS
24091fi
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024094if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024095 passed=`expr $passed + 1`
24096else
24097 failed=`expr $failed + 1`
24098fi
24099
cristy8b350f62009-11-15 23:12:43 +000024100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024101$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024102if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024103 $as_echo_n "(cached) " >&6
24104else
24105 ac_check_lib_save_LIBS=$LIBS
24106LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024108/* end confdefs.h. */
24109
24110/* Override any GCC internal prototype to avoid an error.
24111 Use char because int might match the return type of a GCC
24112 builtin and then its argument prototype would still apply. */
24113#ifdef __cplusplus
24114extern "C"
24115#endif
24116char umem_free ();
24117int
24118main ()
24119{
24120return umem_free ();
24121 ;
24122 return 0;
24123}
24124_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024125if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024126 ac_cv_lib_umem_umem_free=yes
24127else
cristy8b350f62009-11-15 23:12:43 +000024128 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024129fi
cristy8b350f62009-11-15 23:12:43 +000024130rm -f core conftest.err conftest.$ac_objext \
24131 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024132LIBS=$ac_check_lib_save_LIBS
24133fi
cristy8b350f62009-11-15 23:12:43 +000024134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024135$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024136if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024137 passed=`expr $passed + 1`
24138else
24139 failed=`expr $failed + 1`
24140fi
24141
cristy8b350f62009-11-15 23:12:43 +000024142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024143$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24144 if test $passed -gt 0; then
24145 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024147$as_echo "no -- some components failed test" >&6; }
24148 have_umem='no (failed tests)'
24149 else
24150 UMEM_LIBS='-lumem'
24151 LIBS="$UMEM_LIBS $LIBS"
24152
cristy8b350f62009-11-15 23:12:43 +000024153$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024154
cristy8b350f62009-11-15 23:12:43 +000024155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024156$as_echo "yes" >&6; }
24157 have_umem='yes'
24158 fi
24159 else
cristy8b350f62009-11-15 23:12:43 +000024160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024161$as_echo "no" >&6; }
24162 fi
24163fi
24164 if test "$have_umem" = 'yes'; then
24165 HasUMEM_TRUE=
24166 HasUMEM_FALSE='#'
24167else
24168 HasUMEM_TRUE='#'
24169 HasUMEM_FALSE=
24170fi
24171
24172
24173
24174#
24175# Add support for ccmalloc memory debugging library if requested
24176#
24177have_ccmalloc='no'
24178CCMALLOC_LIBS=''
24179if test "$enable_ccmalloc" = 'yes'; then
24180 # Extract the first word of "ccmalloc", so it can be a program name with args.
24181set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024183$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024184if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024185 $as_echo_n "(cached) " >&6
24186else
24187 case $CCMALLOCDelegate in
24188 [\\/]* | ?:[\\/]*)
24189 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24190 ;;
24191 *)
24192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193for as_dir in $PATH
24194do
24195 IFS=$as_save_IFS
24196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24199 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024201 break 2
24202 fi
24203done
cristy8b350f62009-11-15 23:12:43 +000024204 done
cristy3ed852e2009-09-05 21:47:34 +000024205IFS=$as_save_IFS
24206
24207 ;;
24208esac
24209fi
24210CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24211if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo "$CCMALLOCDelegate" >&6; }
24214else
cristy8b350f62009-11-15 23:12:43 +000024215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo "no" >&6; }
24217fi
24218
24219
24220 if test -n "$CCMALLOCDelegate"; then
24221 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24222 OLIBS="$LIBS"
24223 # Assume that gcc is used with ccmalloc.
24224 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024226$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024227if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024228 $as_echo_n "(cached) " >&6
24229else
24230 ac_check_lib_save_LIBS=$LIBS
24231LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024233/* end confdefs.h. */
24234
24235/* Override any GCC internal prototype to avoid an error.
24236 Use char because int might match the return type of a GCC
24237 builtin and then its argument prototype would still apply. */
24238#ifdef __cplusplus
24239extern "C"
24240#endif
24241char ccmalloc_malloc ();
24242int
24243main ()
24244{
24245return ccmalloc_malloc ();
24246 ;
24247 return 0;
24248}
24249_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024250if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024251 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24252else
cristy8b350f62009-11-15 23:12:43 +000024253 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024254fi
cristy8b350f62009-11-15 23:12:43 +000024255rm -f core conftest.err conftest.$ac_objext \
24256 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024257LIBS=$ac_check_lib_save_LIBS
24258fi
cristy8b350f62009-11-15 23:12:43 +000024259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024260$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024261if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024262 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24263fi
24264
24265 if test -n "$CCMALLOC_LIBS"; then
24266 LIBS="$OLIBS"
24267 LIBS="$LIBS $CCMALLOC_LIBS"
24268 have_ccmalloc='yes'
24269 else
24270 LIBS="$OLIBS"
24271 fi
24272 fi
24273fi
24274
24275#
24276# Add support for efence memory debugging library if requested
24277#
24278if test "$enable_efence" = 'yes'; then
24279 EFENCE_LIBS='-lefence'
24280 LIBS="$EFENCE_LIBS $LIBS"
24281fi
24282
cristy3ed852e2009-09-05 21:47:34 +000024283
24284#
24285# Check for BZLIB
24286#
24287
24288
24289# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024290if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024291 withval=$with_bzlib; with_bzlib=$withval
24292else
24293 with_bzlib='yes'
24294fi
24295
24296
24297if test "$with_bzlib" != 'yes'; then
24298 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24299fi
24300
24301have_bzlib='no'
24302if test "$with_bzlib" != 'no'; then
24303 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024309$as_echo "" >&6; }
24310 failed=0
24311 passed=0
24312 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024313 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24314if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024315 passed=`expr $passed + 1`
24316else
24317 failed=`expr $failed + 1`
24318fi
24319
24320
cristy8b350f62009-11-15 23:12:43 +000024321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024322$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024323if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024324 $as_echo_n "(cached) " >&6
24325else
24326 ac_check_lib_save_LIBS=$LIBS
24327LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024329/* end confdefs.h. */
24330
24331/* Override any GCC internal prototype to avoid an error.
24332 Use char because int might match the return type of a GCC
24333 builtin and then its argument prototype would still apply. */
24334#ifdef __cplusplus
24335extern "C"
24336#endif
24337char BZ2_bzDecompress ();
24338int
24339main ()
24340{
24341return BZ2_bzDecompress ();
24342 ;
24343 return 0;
24344}
24345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024347 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24348else
cristy8b350f62009-11-15 23:12:43 +000024349 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024350fi
cristy8b350f62009-11-15 23:12:43 +000024351rm -f core conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024353LIBS=$ac_check_lib_save_LIBS
24354fi
cristy8b350f62009-11-15 23:12:43 +000024355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024356$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024357if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024358 found_libbz=`expr $found_libbz + 1`
24359fi
24360
24361 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024363$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024364if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024365 $as_echo_n "(cached) " >&6
24366else
24367 ac_check_lib_save_LIBS=$LIBS
24368LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024370/* end confdefs.h. */
24371
24372/* Override any GCC internal prototype to avoid an error.
24373 Use char because int might match the return type of a GCC
24374 builtin and then its argument prototype would still apply. */
24375#ifdef __cplusplus
24376extern "C"
24377#endif
24378char _imp__BZ2_decompress ();
24379int
24380main ()
24381{
24382return _imp__BZ2_decompress ();
24383 ;
24384 return 0;
24385}
24386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024387if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024388 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24389else
cristy8b350f62009-11-15 23:12:43 +000024390 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000024391fi
cristy8b350f62009-11-15 23:12:43 +000024392rm -f core conftest.err conftest.$ac_objext \
24393 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024394LIBS=$ac_check_lib_save_LIBS
24395fi
cristy8b350f62009-11-15 23:12:43 +000024396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024397$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024398if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024399 found_libbz=`expr $found_libbz + 1`
24400fi
24401
24402 fi
24403 if test $found_libbz -gt 0; then
24404 passed=`expr $passed + 1`
24405 else
24406 failed=`expr $failed + 1`
24407 fi
cristy8b350f62009-11-15 23:12:43 +000024408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo_n "checking if BZLIB package is complete... " >&6; }
24410 if test $passed -gt 0; then
24411 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024413$as_echo "no -- some components failed test" >&6; }
24414 have_bzlib='no (failed tests)'
24415 else
24416 BZLIB_LIBS='-lbz2'
24417 LIBS="$BZLIB_LIBS $LIBS"
24418
cristy8b350f62009-11-15 23:12:43 +000024419$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024420
cristy8b350f62009-11-15 23:12:43 +000024421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024422$as_echo "yes" >&6; }
24423 have_bzlib='yes'
24424 fi
24425 else
cristy8b350f62009-11-15 23:12:43 +000024426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024427$as_echo "no" >&6; }
24428 fi
24429fi
24430 if test "$have_bzlib" = 'yes'; then
24431 BZLIB_DELEGATE_TRUE=
24432 BZLIB_DELEGATE_FALSE='#'
24433else
24434 BZLIB_DELEGATE_TRUE='#'
24435 BZLIB_DELEGATE_FALSE=
24436fi
24437
24438
24439
24440#
24441# Find the X11 include and library directories.
24442#
24443IPC_LIBS=''
24444X11_LIBS=''
24445XEXT_LIBS=''
24446XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000024448$as_echo_n "checking for X... " >&6; }
24449
24450
24451# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000024452if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024453 withval=$with_x;
24454fi
24455
24456# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24457if test "x$with_x" = xno; then
24458 # The user explicitly disabled X.
24459 have_x=disabled
24460else
24461 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000024462 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24463 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000024464 $as_echo_n "(cached) " >&6
24465else
24466 # One or both of the vars are not set, and there is no cached value.
24467ac_x_includes=no ac_x_libraries=no
24468rm -f -r conftest.dir
24469if mkdir conftest.dir; then
24470 cd conftest.dir
24471 cat >Imakefile <<'_ACEOF'
24472incroot:
24473 @echo incroot='${INCROOT}'
24474usrlibdir:
24475 @echo usrlibdir='${USRLIBDIR}'
24476libdir:
24477 @echo libdir='${LIBDIR}'
24478_ACEOF
24479 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24481 for ac_var in incroot usrlibdir libdir; do
24482 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24483 done
24484 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24485 for ac_extension in a so sl dylib la dll; do
24486 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24487 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24488 ac_im_usrlibdir=$ac_im_libdir; break
24489 fi
24490 done
24491 # Screen out bogus values from the imake configuration. They are
24492 # bogus both because they are the default anyway, and because
24493 # using them would break gcc on systems where it needs fixed includes.
24494 case $ac_im_incroot in
24495 /usr/include) ac_x_includes= ;;
24496 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24497 esac
24498 case $ac_im_usrlibdir in
24499 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24500 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24501 esac
24502 fi
24503 cd ..
24504 rm -f -r conftest.dir
24505fi
24506
24507# Standard set of common directories for X headers.
24508# Check X11 before X11Rn because it is often a symlink to the current release.
24509ac_x_header_dirs='
24510/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000024511/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024512/usr/X11R6/include
24513/usr/X11R5/include
24514/usr/X11R4/include
24515
24516/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000024517/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024518/usr/include/X11R6
24519/usr/include/X11R5
24520/usr/include/X11R4
24521
24522/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000024523/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000024524/usr/local/X11R6/include
24525/usr/local/X11R5/include
24526/usr/local/X11R4/include
24527
24528/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000024529/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000024530/usr/local/include/X11R6
24531/usr/local/include/X11R5
24532/usr/local/include/X11R4
24533
24534/usr/X386/include
24535/usr/x386/include
24536/usr/XFree86/include/X11
24537
24538/usr/include
24539/usr/local/include
24540/usr/unsupported/include
24541/usr/athena/include
24542/usr/local/x11r5/include
24543/usr/lpp/Xamples/include
24544
24545/usr/openwin/include
24546/usr/openwin/share/include'
24547
24548if test "$ac_x_includes" = no; then
24549 # Guess where to find include files, by looking for Xlib.h.
24550 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000024551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024552/* end confdefs.h. */
24553#include <X11/Xlib.h>
24554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024555if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024556 # We can compile using X headers with no special include directory.
24557ac_x_includes=
24558else
cristyc7083c12009-10-14 03:16:55 +000024559 for ac_dir in $ac_x_header_dirs; do
24560 if test -r "$ac_dir/X11/Xlib.h"; then
24561 ac_x_includes=$ac_dir
24562 break
24563 fi
24564done
24565fi
cristyc7083c12009-10-14 03:16:55 +000024566rm -f conftest.err conftest.$ac_ext
24567fi # $ac_x_includes = no
24568
24569if test "$ac_x_libraries" = no; then
24570 # Check for the libraries.
24571 # See if we find them without any special options.
24572 # Don't add to $LIBS permanently.
24573 ac_save_LIBS=$LIBS
24574 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024576/* end confdefs.h. */
24577#include <X11/Xlib.h>
24578int
24579main ()
24580{
24581XrmInitialize ()
24582 ;
24583 return 0;
24584}
24585_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024586if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000024587 LIBS=$ac_save_LIBS
24588# We can link X programs with no special library path.
24589ac_x_libraries=
24590else
cristy8b350f62009-11-15 23:12:43 +000024591 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000024592for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24593do
24594 # Don't even attempt the hair of trying to link an X program!
24595 for ac_extension in a so sl dylib la dll; do
24596 if test -r "$ac_dir/libX11.$ac_extension"; then
24597 ac_x_libraries=$ac_dir
24598 break 2
24599 fi
24600 done
24601done
24602fi
cristy8b350f62009-11-15 23:12:43 +000024603rm -f core conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000024605fi # $ac_x_libraries = no
24606
24607case $ac_x_includes,$ac_x_libraries in #(
24608 no,* | *,no | *\'*)
24609 # Didn't find X, or a directory has "'" in its name.
24610 ac_cv_have_x="have_x=no";; #(
24611 *)
24612 # Record where we found X for the cache.
24613 ac_cv_have_x="have_x=yes\
24614 ac_x_includes='$ac_x_includes'\
24615 ac_x_libraries='$ac_x_libraries'"
24616esac
24617fi
24618;; #(
24619 *) have_x=yes;;
24620 esac
24621 eval "$ac_cv_have_x"
24622fi # $with_x != no
24623
24624if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000024626$as_echo "$have_x" >&6; }
24627 no_x=yes
24628else
24629 # If each of the values was on the command line, it overrides each guess.
24630 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24631 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24632 # Update the cache value to reflect the command line values.
24633 ac_cv_have_x="have_x=yes\
24634 ac_x_includes='$x_includes'\
24635 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000024636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000024637$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24638fi
24639
cristy3ed852e2009-09-05 21:47:34 +000024640if test "$no_x" = yes; then
24641 # Not all programs may use this symbol, but it does not hurt to define it.
24642
cristy8b350f62009-11-15 23:12:43 +000024643$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024644
24645 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24646else
24647 if test -n "$x_includes"; then
24648 X_CFLAGS="$X_CFLAGS -I$x_includes"
24649 fi
24650
24651 # It would also be nice to do this for all -L options, not just this one.
24652 if test -n "$x_libraries"; then
24653 X_LIBS="$X_LIBS -L$x_libraries"
24654 # For Solaris; some versions of Sun CC require a space after -R and
24655 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000024656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000024657$as_echo_n "checking whether -R must be followed by a space... " >&6; }
24658 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24659 ac_xsave_c_werror_flag=$ac_c_werror_flag
24660 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000024661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024662/* end confdefs.h. */
24663
24664int
24665main ()
24666{
24667
24668 ;
24669 return 0;
24670}
24671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024672if ac_fn_c_try_link "$LINENO"; then :
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024674$as_echo "no" >&6; }
24675 X_LIBS="$X_LIBS -R$x_libraries"
24676else
cristy8b350f62009-11-15 23:12:43 +000024677 LIBS="$ac_xsave_LIBS -R $x_libraries"
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024679/* end confdefs.h. */
24680
24681int
24682main ()
24683{
24684
24685 ;
24686 return 0;
24687}
24688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024689if ac_fn_c_try_link "$LINENO"; then :
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024691$as_echo "yes" >&6; }
24692 X_LIBS="$X_LIBS -R $x_libraries"
24693else
cristy8b350f62009-11-15 23:12:43 +000024694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024695$as_echo "neither works" >&6; }
24696fi
cristy8b350f62009-11-15 23:12:43 +000024697rm -f core conftest.err conftest.$ac_objext \
24698 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024699fi
cristy8b350f62009-11-15 23:12:43 +000024700rm -f core conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024702 ac_c_werror_flag=$ac_xsave_c_werror_flag
24703 LIBS=$ac_xsave_LIBS
24704 fi
24705
24706 # Check for system-dependent libraries X programs must link with.
24707 # Do this before checking for the system-independent R6 libraries
24708 # (-lICE), since we may need -lsocket or whatever for X linking.
24709
24710 if test "$ISC" = yes; then
24711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24712 else
24713 # Martyn Johnson says this is needed for Ultrix, if the X
24714 # libraries were built with DECnet support. And Karl Berry says
24715 # the Alpha needs dnet_stub (dnet does not exist).
24716 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000024717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024718/* end confdefs.h. */
24719
24720/* Override any GCC internal prototype to avoid an error.
24721 Use char because int might match the return type of a GCC
24722 builtin and then its argument prototype would still apply. */
24723#ifdef __cplusplus
24724extern "C"
24725#endif
24726char XOpenDisplay ();
24727int
24728main ()
24729{
24730return XOpenDisplay ();
24731 ;
24732 return 0;
24733}
24734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024736
cristy8b350f62009-11-15 23:12:43 +000024737else
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024739$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024740if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024741 $as_echo_n "(cached) " >&6
24742else
24743 ac_check_lib_save_LIBS=$LIBS
24744LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024746/* end confdefs.h. */
24747
24748/* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24751#ifdef __cplusplus
24752extern "C"
24753#endif
24754char dnet_ntoa ();
24755int
24756main ()
24757{
24758return dnet_ntoa ();
24759 ;
24760 return 0;
24761}
24762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024763if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_lib_dnet_dnet_ntoa=yes
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024767fi
cristy8b350f62009-11-15 23:12:43 +000024768rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024770LIBS=$ac_check_lib_save_LIBS
24771fi
cristy8b350f62009-11-15 23:12:43 +000024772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024774if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24776fi
24777
24778 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000024779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000024780$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024781if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024782 $as_echo_n "(cached) " >&6
24783else
24784 ac_check_lib_save_LIBS=$LIBS
24785LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024787/* end confdefs.h. */
24788
24789/* Override any GCC internal prototype to avoid an error.
24790 Use char because int might match the return type of a GCC
24791 builtin and then its argument prototype would still apply. */
24792#ifdef __cplusplus
24793extern "C"
24794#endif
24795char dnet_ntoa ();
24796int
24797main ()
24798{
24799return dnet_ntoa ();
24800 ;
24801 return 0;
24802}
24803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024805 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24806else
cristy8b350f62009-11-15 23:12:43 +000024807 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000024808fi
cristy8b350f62009-11-15 23:12:43 +000024809rm -f core conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024811LIBS=$ac_check_lib_save_LIBS
24812fi
cristy8b350f62009-11-15 23:12:43 +000024813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000024814$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024815if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024816 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24817fi
24818
24819 fi
24820fi
cristy8b350f62009-11-15 23:12:43 +000024821rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024823 LIBS="$ac_xsave_LIBS"
24824
24825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24826 # to get the SysV transport functions.
24827 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24828 # needs -lnsl.
24829 # The nsl library prevents programs from opening the X display
24830 # on Irix 5.2, according to T.E. Dickey.
24831 # The functions gethostbyname, getservbyname, and inet_addr are
24832 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000024833 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24834if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024835
cristy3ed852e2009-09-05 21:47:34 +000024836fi
24837
cristy3ed852e2009-09-05 21:47:34 +000024838 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000024840$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024841if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024842 $as_echo_n "(cached) " >&6
24843else
24844 ac_check_lib_save_LIBS=$LIBS
24845LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024847/* end confdefs.h. */
24848
24849/* Override any GCC internal prototype to avoid an error.
24850 Use char because int might match the return type of a GCC
24851 builtin and then its argument prototype would still apply. */
24852#ifdef __cplusplus
24853extern "C"
24854#endif
24855char gethostbyname ();
24856int
24857main ()
24858{
24859return gethostbyname ();
24860 ;
24861 return 0;
24862}
24863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024864if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024865 ac_cv_lib_nsl_gethostbyname=yes
24866else
cristy8b350f62009-11-15 23:12:43 +000024867 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024868fi
cristy8b350f62009-11-15 23:12:43 +000024869rm -f core conftest.err conftest.$ac_objext \
24870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024871LIBS=$ac_check_lib_save_LIBS
24872fi
cristy8b350f62009-11-15 23:12:43 +000024873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024874$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024875if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24877fi
24878
24879 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000024880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000024881$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024882if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024883 $as_echo_n "(cached) " >&6
24884else
24885 ac_check_lib_save_LIBS=$LIBS
24886LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024888/* end confdefs.h. */
24889
24890/* Override any GCC internal prototype to avoid an error.
24891 Use char because int might match the return type of a GCC
24892 builtin and then its argument prototype would still apply. */
24893#ifdef __cplusplus
24894extern "C"
24895#endif
24896char gethostbyname ();
24897int
24898main ()
24899{
24900return gethostbyname ();
24901 ;
24902 return 0;
24903}
24904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024906 ac_cv_lib_bsd_gethostbyname=yes
24907else
cristy8b350f62009-11-15 23:12:43 +000024908 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000024909fi
cristy8b350f62009-11-15 23:12:43 +000024910rm -f core conftest.err conftest.$ac_objext \
24911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024912LIBS=$ac_check_lib_save_LIBS
24913fi
cristy8b350f62009-11-15 23:12:43 +000024914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000024915$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024916if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024917 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24918fi
24919
24920 fi
24921 fi
24922
24923 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24924 # socket/setsockopt and other routines are undefined under SCO ODT
24925 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24926 # on later versions), says Simon Leinen: it contains gethostby*
24927 # variants that don't use the name server (or something). -lsocket
24928 # must be given before -lnsl if both are needed. We assume that
24929 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000024930 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24931if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024932
cristy3ed852e2009-09-05 21:47:34 +000024933fi
24934
cristy3ed852e2009-09-05 21:47:34 +000024935 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000024936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000024937$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024938if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024939 $as_echo_n "(cached) " >&6
24940else
24941 ac_check_lib_save_LIBS=$LIBS
24942LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024944/* end confdefs.h. */
24945
24946/* Override any GCC internal prototype to avoid an error.
24947 Use char because int might match the return type of a GCC
24948 builtin and then its argument prototype would still apply. */
24949#ifdef __cplusplus
24950extern "C"
24951#endif
24952char connect ();
24953int
24954main ()
24955{
24956return connect ();
24957 ;
24958 return 0;
24959}
24960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024961if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024962 ac_cv_lib_socket_connect=yes
24963else
cristy8b350f62009-11-15 23:12:43 +000024964 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000024965fi
cristy8b350f62009-11-15 23:12:43 +000024966rm -f core conftest.err conftest.$ac_objext \
24967 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024968LIBS=$ac_check_lib_save_LIBS
24969fi
cristy8b350f62009-11-15 23:12:43 +000024970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000024971$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024972if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024973 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24974fi
24975
24976 fi
24977
24978 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000024979 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24980if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024981
cristy3ed852e2009-09-05 21:47:34 +000024982fi
24983
cristy3ed852e2009-09-05 21:47:34 +000024984 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000024985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000024986$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024987if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024988 $as_echo_n "(cached) " >&6
24989else
24990 ac_check_lib_save_LIBS=$LIBS
24991LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024993/* end confdefs.h. */
24994
24995/* Override any GCC internal prototype to avoid an error.
24996 Use char because int might match the return type of a GCC
24997 builtin and then its argument prototype would still apply. */
24998#ifdef __cplusplus
24999extern "C"
25000#endif
25001char remove ();
25002int
25003main ()
25004{
25005return remove ();
25006 ;
25007 return 0;
25008}
25009_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025010if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025011 ac_cv_lib_posix_remove=yes
25012else
cristy8b350f62009-11-15 23:12:43 +000025013 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025014fi
cristy8b350f62009-11-15 23:12:43 +000025015rm -f core conftest.err conftest.$ac_objext \
25016 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025017LIBS=$ac_check_lib_save_LIBS
25018fi
cristy8b350f62009-11-15 23:12:43 +000025019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025020$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025021if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25023fi
25024
25025 fi
25026
25027 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025028 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25029if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025030
cristy3ed852e2009-09-05 21:47:34 +000025031fi
25032
cristy3ed852e2009-09-05 21:47:34 +000025033 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025035$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025036if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025037 $as_echo_n "(cached) " >&6
25038else
25039 ac_check_lib_save_LIBS=$LIBS
25040LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025042/* end confdefs.h. */
25043
25044/* Override any GCC internal prototype to avoid an error.
25045 Use char because int might match the return type of a GCC
25046 builtin and then its argument prototype would still apply. */
25047#ifdef __cplusplus
25048extern "C"
25049#endif
25050char shmat ();
25051int
25052main ()
25053{
25054return shmat ();
25055 ;
25056 return 0;
25057}
25058_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025059if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025060 ac_cv_lib_ipc_shmat=yes
25061else
cristy8b350f62009-11-15 23:12:43 +000025062 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025063fi
cristy8b350f62009-11-15 23:12:43 +000025064rm -f core conftest.err conftest.$ac_objext \
25065 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025066LIBS=$ac_check_lib_save_LIBS
25067fi
cristy8b350f62009-11-15 23:12:43 +000025068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025069$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025070if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25072fi
25073
25074 fi
25075 fi
25076
25077 # Check for libraries that X11R6 Xt/Xaw programs need.
25078 ac_save_LDFLAGS=$LDFLAGS
25079 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25080 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25081 # check for ICE first), but we must link in the order -lSM -lICE or
25082 # we get undefined symbols. So assume we have SM if we have ICE.
25083 # These have to be linked with before -lX11, unlike the other
25084 # libraries we check for below, so use a different variable.
25085 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025087$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025088if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025089 $as_echo_n "(cached) " >&6
25090else
25091 ac_check_lib_save_LIBS=$LIBS
25092LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025094/* end confdefs.h. */
25095
25096/* Override any GCC internal prototype to avoid an error.
25097 Use char because int might match the return type of a GCC
25098 builtin and then its argument prototype would still apply. */
25099#ifdef __cplusplus
25100extern "C"
25101#endif
25102char IceConnectionNumber ();
25103int
25104main ()
25105{
25106return IceConnectionNumber ();
25107 ;
25108 return 0;
25109}
25110_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025111if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025112 ac_cv_lib_ICE_IceConnectionNumber=yes
25113else
cristy8b350f62009-11-15 23:12:43 +000025114 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025115fi
cristy8b350f62009-11-15 23:12:43 +000025116rm -f core conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025118LIBS=$ac_check_lib_save_LIBS
25119fi
cristy8b350f62009-11-15 23:12:43 +000025120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025121$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025122if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025123 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25124fi
25125
25126 LDFLAGS=$ac_save_LDFLAGS
25127
25128fi
25129
25130if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025132$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025134$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025136$as_echo "" >&6; }
25137 LDFLAGS="$LDFLAGS $X_LIBS"
25138 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25139 LIBS="$X11_LIBS $LIBS"
25140 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25141
25142
cristy8b350f62009-11-15 23:12:43 +000025143$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025144
25145 #
25146 # Check for X11 shared memory extension
25147 #
25148 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025149 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25150if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025151 have_shmctl='yes'
25152fi
25153
25154 if test "$have_shmctl" != 'yes'; then
25155 PERSIST_LIBS=$LIBS
25156 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025158/* end confdefs.h. */
25159
25160/* Override any GCC internal prototype to avoid an error.
25161 Use char because int might match the return type of a GCC
25162 builtin and then its argument prototype would still apply. */
25163#ifdef __cplusplus
25164extern "C"
25165#endif
25166char shmctl ();
25167int
25168main ()
25169{
25170return shmctl ();
25171 ;
25172 return 0;
25173}
25174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025176 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025177fi
cristy8b350f62009-11-15 23:12:43 +000025178rm -f core conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025180 LIBS=$PERSIST_LIBS
25181 fi
25182
25183 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025185$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025186if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 $as_echo_n "(cached) " >&6
25188else
25189 ac_check_lib_save_LIBS=$LIBS
25190LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025192/* end confdefs.h. */
25193
25194/* Override any GCC internal prototype to avoid an error.
25195 Use char because int might match the return type of a GCC
25196 builtin and then its argument prototype would still apply. */
25197#ifdef __cplusplus
25198extern "C"
25199#endif
25200char XShmAttach ();
25201int
25202main ()
25203{
25204return XShmAttach ();
25205 ;
25206 return 0;
25207}
25208_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025209if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025210 ac_cv_lib_Xext_XShmAttach=yes
25211else
cristy8b350f62009-11-15 23:12:43 +000025212 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025213fi
cristy8b350f62009-11-15 23:12:43 +000025214rm -f core conftest.err conftest.$ac_objext \
25215 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025216LIBS=$ac_check_lib_save_LIBS
25217fi
cristy8b350f62009-11-15 23:12:43 +000025218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025219$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025220if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025221 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025222$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025223
25224fi
25225
25226 fi
25227
25228 #
25229 # Check for X11 shape extension
25230 #
cristy8b350f62009-11-15 23:12:43 +000025231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025232$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025233if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025234 $as_echo_n "(cached) " >&6
25235else
25236 ac_check_lib_save_LIBS=$LIBS
25237LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025239/* end confdefs.h. */
25240
25241/* Override any GCC internal prototype to avoid an error.
25242 Use char because int might match the return type of a GCC
25243 builtin and then its argument prototype would still apply. */
25244#ifdef __cplusplus
25245extern "C"
25246#endif
25247char XShapeCombineMask ();
25248int
25249main ()
25250{
25251return XShapeCombineMask ();
25252 ;
25253 return 0;
25254}
25255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025257 ac_cv_lib_Xext_XShapeCombineMask=yes
25258else
cristy8b350f62009-11-15 23:12:43 +000025259 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025260fi
cristy8b350f62009-11-15 23:12:43 +000025261rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025263LIBS=$ac_check_lib_save_LIBS
25264fi
cristy8b350f62009-11-15 23:12:43 +000025265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025266$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025267if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025268 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025269$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025270
25271fi
25272
cristy8b350f62009-11-15 23:12:43 +000025273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025275if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025276 $as_echo_n "(cached) " >&6
25277else
25278 ac_check_lib_save_LIBS=$LIBS
25279LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025281/* end confdefs.h. */
25282
25283/* Override any GCC internal prototype to avoid an error.
25284 Use char because int might match the return type of a GCC
25285 builtin and then its argument prototype would still apply. */
25286#ifdef __cplusplus
25287extern "C"
25288#endif
25289char XtSetEventDispatcher ();
25290int
25291main ()
25292{
25293return XtSetEventDispatcher ();
25294 ;
25295 return 0;
25296}
25297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025299 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25300else
cristy8b350f62009-11-15 23:12:43 +000025301 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025302fi
cristy8b350f62009-11-15 23:12:43 +000025303rm -f core conftest.err conftest.$ac_objext \
25304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025305LIBS=$ac_check_lib_save_LIBS
25306fi
cristy8b350f62009-11-15 23:12:43 +000025307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025308$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025309if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025310 XT_LIBS='-lXt'
25311fi
25312
25313 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25314fi
25315if test "$no_x" != 'yes'; then
25316 have_x='yes'
25317else
25318 have_x='no'
25319fi
25320 if test "$have_x" = 'yes'; then
25321 X11_DELEGATE_TRUE=
25322 X11_DELEGATE_FALSE='#'
25323else
25324 X11_DELEGATE_TRUE='#'
25325 X11_DELEGATE_FALSE=
25326fi
25327
25328
25329
25330
25331
25332#
25333# Check for ZLIB
25334#
25335
25336# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025337if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025338 withval=$with_zlib; with_zlib=$withval
25339else
25340 with_zlib='yes'
25341fi
25342
25343
25344if test "$with_zlib" != 'yes'; then
25345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25346fi
25347
25348have_zlib='no'
25349ZLIB_LIBS=''
25350if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025352$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo "" >&6; }
25357 ZLIB_LIBS=''
25358 failed=0
25359 passed=0
cristy8b350f62009-11-15 23:12:43 +000025360 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25361if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 passed=`expr $passed + 1`
25363else
25364 failed=`expr $failed + 1`
25365fi
25366
25367
cristy8b350f62009-11-15 23:12:43 +000025368 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25369if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025370 passed=`expr $passed + 1`
25371else
25372 failed=`expr $failed + 1`
25373fi
25374
25375
cristy8b350f62009-11-15 23:12:43 +000025376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025377$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025378if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025379 $as_echo_n "(cached) " >&6
25380else
25381 ac_check_lib_save_LIBS=$LIBS
25382LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025384/* end confdefs.h. */
25385
25386/* Override any GCC internal prototype to avoid an error.
25387 Use char because int might match the return type of a GCC
25388 builtin and then its argument prototype would still apply. */
25389#ifdef __cplusplus
25390extern "C"
25391#endif
25392char compress ();
25393int
25394main ()
25395{
25396return compress ();
25397 ;
25398 return 0;
25399}
25400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025401if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025402 ac_cv_lib_z_compress=yes
25403else
cristy8b350f62009-11-15 23:12:43 +000025404 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000025405fi
cristy8b350f62009-11-15 23:12:43 +000025406rm -f core conftest.err conftest.$ac_objext \
25407 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025408LIBS=$ac_check_lib_save_LIBS
25409fi
cristy8b350f62009-11-15 23:12:43 +000025410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025411$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025412if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025413 passed=`expr $passed + 1`
25414else
25415 failed=`expr $failed + 1`
25416fi
25417
cristy8b350f62009-11-15 23:12:43 +000025418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025420if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025421 $as_echo_n "(cached) " >&6
25422else
25423 ac_check_lib_save_LIBS=$LIBS
25424LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025426/* end confdefs.h. */
25427
25428/* Override any GCC internal prototype to avoid an error.
25429 Use char because int might match the return type of a GCC
25430 builtin and then its argument prototype would still apply. */
25431#ifdef __cplusplus
25432extern "C"
25433#endif
25434char uncompress ();
25435int
25436main ()
25437{
25438return uncompress ();
25439 ;
25440 return 0;
25441}
25442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025444 ac_cv_lib_z_uncompress=yes
25445else
cristy8b350f62009-11-15 23:12:43 +000025446 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000025447fi
cristy8b350f62009-11-15 23:12:43 +000025448rm -f core conftest.err conftest.$ac_objext \
25449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025450LIBS=$ac_check_lib_save_LIBS
25451fi
cristy8b350f62009-11-15 23:12:43 +000025452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025453$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025454if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025455 passed=`expr $passed + 1`
25456else
25457 failed=`expr $failed + 1`
25458fi
25459
cristy8b350f62009-11-15 23:12:43 +000025460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025461$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025462if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 $as_echo_n "(cached) " >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025468/* end confdefs.h. */
25469
25470/* Override any GCC internal prototype to avoid an error.
25471 Use char because int might match the return type of a GCC
25472 builtin and then its argument prototype would still apply. */
25473#ifdef __cplusplus
25474extern "C"
25475#endif
25476char deflate ();
25477int
25478main ()
25479{
25480return deflate ();
25481 ;
25482 return 0;
25483}
25484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 ac_cv_lib_z_deflate=yes
25487else
cristy8b350f62009-11-15 23:12:43 +000025488 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000025489fi
cristy8b350f62009-11-15 23:12:43 +000025490rm -f core conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025492LIBS=$ac_check_lib_save_LIBS
25493fi
cristy8b350f62009-11-15 23:12:43 +000025494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025495$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025496if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025497 passed=`expr $passed + 1`
25498else
25499 failed=`expr $failed + 1`
25500fi
25501
cristy8b350f62009-11-15 23:12:43 +000025502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025503$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025504if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025505 $as_echo_n "(cached) " >&6
25506else
25507 ac_check_lib_save_LIBS=$LIBS
25508LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025510/* end confdefs.h. */
25511
25512/* Override any GCC internal prototype to avoid an error.
25513 Use char because int might match the return type of a GCC
25514 builtin and then its argument prototype would still apply. */
25515#ifdef __cplusplus
25516extern "C"
25517#endif
25518char inflate ();
25519int
25520main ()
25521{
25522return inflate ();
25523 ;
25524 return 0;
25525}
25526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025528 ac_cv_lib_z_inflate=yes
25529else
cristy8b350f62009-11-15 23:12:43 +000025530 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000025531fi
cristy8b350f62009-11-15 23:12:43 +000025532rm -f core conftest.err conftest.$ac_objext \
25533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025534LIBS=$ac_check_lib_save_LIBS
25535fi
cristy8b350f62009-11-15 23:12:43 +000025536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025537$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025538if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 passed=`expr $passed + 1`
25540else
25541 failed=`expr $failed + 1`
25542fi
25543
cristy8b350f62009-11-15 23:12:43 +000025544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025545$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025546if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025547 $as_echo_n "(cached) " >&6
25548else
25549 ac_check_lib_save_LIBS=$LIBS
25550LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025552/* end confdefs.h. */
25553
25554/* Override any GCC internal prototype to avoid an error.
25555 Use char because int might match the return type of a GCC
25556 builtin and then its argument prototype would still apply. */
25557#ifdef __cplusplus
25558extern "C"
25559#endif
25560char gzseek ();
25561int
25562main ()
25563{
25564return gzseek ();
25565 ;
25566 return 0;
25567}
25568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025569if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025570 ac_cv_lib_z_gzseek=yes
25571else
cristy8b350f62009-11-15 23:12:43 +000025572 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000025573fi
cristy8b350f62009-11-15 23:12:43 +000025574rm -f core conftest.err conftest.$ac_objext \
25575 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025576LIBS=$ac_check_lib_save_LIBS
25577fi
cristy8b350f62009-11-15 23:12:43 +000025578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000025579$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025580if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025581 passed=`expr $passed + 1`
25582else
25583 failed=`expr $failed + 1`
25584fi
25585
cristy8b350f62009-11-15 23:12:43 +000025586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025587$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025588if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025589 $as_echo_n "(cached) " >&6
25590else
25591 ac_check_lib_save_LIBS=$LIBS
25592LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025594/* end confdefs.h. */
25595
25596/* Override any GCC internal prototype to avoid an error.
25597 Use char because int might match the return type of a GCC
25598 builtin and then its argument prototype would still apply. */
25599#ifdef __cplusplus
25600extern "C"
25601#endif
25602char gztell ();
25603int
25604main ()
25605{
25606return gztell ();
25607 ;
25608 return 0;
25609}
25610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 ac_cv_lib_z_gztell=yes
25613else
cristy8b350f62009-11-15 23:12:43 +000025614 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000025615fi
cristy8b350f62009-11-15 23:12:43 +000025616rm -f core conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025618LIBS=$ac_check_lib_save_LIBS
25619fi
cristy8b350f62009-11-15 23:12:43 +000025620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000025621$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025622if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 passed=`expr $passed + 1`
25624else
25625 failed=`expr $failed + 1`
25626fi
25627
cristy8b350f62009-11-15 23:12:43 +000025628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025629$as_echo_n "checking if ZLIB package is complete... " >&6; }
25630 if test $passed -gt 0; then
25631 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025633$as_echo "no -- some components failed test" >&6; }
25634 have_zlib='no (failed tests)'
25635 else
25636 ZLIB_LIBS='-lz'
25637 LIBS="$ZLIB_LIBS $LIBS"
25638
cristy8b350f62009-11-15 23:12:43 +000025639$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025640
cristy8b350f62009-11-15 23:12:43 +000025641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025642$as_echo "yes" >&6; }
25643 have_zlib='yes'
25644 fi
25645 else
cristy8b350f62009-11-15 23:12:43 +000025646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025647$as_echo "no" >&6; }
25648 fi
25649fi
25650 if test "$have_zlib" = 'yes'; then
25651 ZLIB_DELEGATE_TRUE=
25652 ZLIB_DELEGATE_FALSE='#'
25653else
25654 ZLIB_DELEGATE_TRUE='#'
25655 ZLIB_DELEGATE_FALSE=
25656fi
25657
25658
25659
25660#
25661# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25662#
25663LIB_DL=''
25664if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025666$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025667if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 $as_echo_n "(cached) " >&6
25669else
25670 ac_check_lib_save_LIBS=$LIBS
25671LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025673/* end confdefs.h. */
25674
25675/* Override any GCC internal prototype to avoid an error.
25676 Use char because int might match the return type of a GCC
25677 builtin and then its argument prototype would still apply. */
25678#ifdef __cplusplus
25679extern "C"
25680#endif
25681char dlopen ();
25682int
25683main ()
25684{
25685return dlopen ();
25686 ;
25687 return 0;
25688}
25689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025691 ac_cv_lib_dl_dlopen=yes
25692else
cristy8b350f62009-11-15 23:12:43 +000025693 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000025694fi
cristy8b350f62009-11-15 23:12:43 +000025695rm -f core conftest.err conftest.$ac_objext \
25696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025697LIBS=$ac_check_lib_save_LIBS
25698fi
cristy8b350f62009-11-15 23:12:43 +000025699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000025700$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025701if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025702 LIB_DL='-ldl'
25703fi
25704
25705 LIBS="$LIB_DL $LIBS"
25706fi
25707
25708
25709
25710#
25711# Check for Autotrace delegate library.
25712#
25713
25714# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000025715if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025716 withval=$with_autotrace; with_autotrace=$withval
25717else
25718 with_autotrace='no'
25719fi
25720
25721
25722if test "$with_autotrace" != 'yes'; then
25723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25724fi
25725
25726have_autotrace='no'
25727AUTOTRACE_CFLAGS=""
25728AUTOTRACE_LIBS=""
25729AUTOTRACE_PKG=""
25730if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000025731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025732$as_echo "-------------------------------------------------------------" >&6; }
25733
25734pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000025735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025736$as_echo_n "checking for AUTOTRACE... " >&6; }
25737
25738if test -n "$AUTOTRACE_CFLAGS"; then
25739 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25740 elif test -n "$PKG_CONFIG"; then
25741 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025743 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25744 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025747 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25748else
25749 pkg_failed=yes
25750fi
25751 else
25752 pkg_failed=untried
25753fi
25754if test -n "$AUTOTRACE_LIBS"; then
25755 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25756 elif test -n "$PKG_CONFIG"; then
25757 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000025758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000025759 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25760 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25762 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000025763 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25764else
25765 pkg_failed=yes
25766fi
25767 else
25768 pkg_failed=untried
25769fi
25770
25771
25772
25773if test $pkg_failed = yes; then
25774
25775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25776 _pkg_short_errors_supported=yes
25777else
25778 _pkg_short_errors_supported=no
25779fi
25780 if test $_pkg_short_errors_supported = yes; then
25781 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25782 else
25783 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25784 fi
25785 # Put the nasty error message in config.log where it belongs
25786 echo "$AUTOTRACE_PKG_ERRORS" >&5
25787
cristy8b350f62009-11-15 23:12:43 +000025788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025789$as_echo "no" >&6; }
25790 have_autotrace=no
25791elif test $pkg_failed = untried; then
25792 have_autotrace=no
25793else
25794 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25795 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000025796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025797$as_echo "yes" >&6; }
25798 have_autotrace=yes
25799fi
cristy8b350f62009-11-15 23:12:43 +000025800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025801$as_echo "" >&6; }
25802fi
25803
25804if test "$have_autotrace" = 'yes'; then
25805 failed=0
25806
cristy8b350f62009-11-15 23:12:43 +000025807$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025808
25809 if test "$with_modules" = 'no'; then
25810 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25811 fi
25812fi
25813
25814 if test "$have_autotrace" = 'yes'; then
25815 AUTOTRACE_DELEGATE_TRUE=
25816 AUTOTRACE_DELEGATE_FALSE='#'
25817else
25818 AUTOTRACE_DELEGATE_TRUE='#'
25819 AUTOTRACE_DELEGATE_FALSE=
25820fi
25821
25822
25823
25824
25825
25826#
25827# Check for Display Postscript delegate library.
25828#
25829
25830# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000025831if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025832 withval=$with_dps; with_dps=$withval
25833else
25834 with_dps='yes'
25835fi
25836
25837
25838if test "$with_dps" != 'yes'; then
25839 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25840fi
25841
25842have_dps='no'
25843DPS_LIBS=''
25844if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025846$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000025848$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025850$as_echo "" >&6; }
25851 failed=0
25852 passed=0
25853 PERSIST_CPPFLAGS="$CPPFLAGS"
25854 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000025855 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25856if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025857 passed=`expr $passed + 1`
25858else
25859 failed=`expr $failed + 1`
25860fi
25861
25862
25863 # DPS issues:
25864 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25865 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25866 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25867 # ImageMagick itself doesn't use -lXt.
25868 have_libdps='no'
25869 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000025870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025871$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025872if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025873 $as_echo_n "(cached) " >&6
25874else
25875 ac_check_lib_save_LIBS=$LIBS
25876LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025878/* end confdefs.h. */
25879
25880/* Override any GCC internal prototype to avoid an error.
25881 Use char because int might match the return type of a GCC
25882 builtin and then its argument prototype would still apply. */
25883#ifdef __cplusplus
25884extern "C"
25885#endif
25886char DPSInitialize ();
25887int
25888main ()
25889{
25890return DPSInitialize ();
25891 ;
25892 return 0;
25893}
25894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025896 ac_cv_lib_dps_DPSInitialize=yes
25897else
cristy8b350f62009-11-15 23:12:43 +000025898 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025899fi
cristy8b350f62009-11-15 23:12:43 +000025900rm -f core conftest.err conftest.$ac_objext \
25901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025902LIBS=$ac_check_lib_save_LIBS
25903fi
cristy8b350f62009-11-15 23:12:43 +000025904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025905$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025906if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025907 have_libdps='yes'
25908else
25909 have_libdps='no'
25910fi
25911
25912 if test "$have_libdps" != 'yes'; then
25913 # Unset cache variable so we can try again.
25914 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000025915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000025916$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025917if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025918 $as_echo_n "(cached) " >&6
25919else
25920 ac_check_lib_save_LIBS=$LIBS
25921LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025923/* end confdefs.h. */
25924
25925/* Override any GCC internal prototype to avoid an error.
25926 Use char because int might match the return type of a GCC
25927 builtin and then its argument prototype would still apply. */
25928#ifdef __cplusplus
25929extern "C"
25930#endif
25931char DPSInitialize ();
25932int
25933main ()
25934{
25935return DPSInitialize ();
25936 ;
25937 return 0;
25938}
25939_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025940if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025941 ac_cv_lib_dps_DPSInitialize=yes
25942else
cristy8b350f62009-11-15 23:12:43 +000025943 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000025944fi
cristy8b350f62009-11-15 23:12:43 +000025945rm -f core conftest.err conftest.$ac_objext \
25946 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025947LIBS=$ac_check_lib_save_LIBS
25948fi
cristy8b350f62009-11-15 23:12:43 +000025949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000025950$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025951if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025952 have_libdps='yes'
25953else
25954 have_libdps='no'
25955fi
25956
25957 if test "$have_libdps" = 'yes'; then
25958 LIBDPS_XT='-lXt'
25959 fi
25960 fi
25961 if test "$have_libdps" = 'yes'; then
25962 passed=`expr $passed + 1`
25963 else
25964 failed=`expr $failed + 1`
25965 fi
cristy8b350f62009-11-15 23:12:43 +000025966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025968if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025969 $as_echo_n "(cached) " >&6
25970else
25971 ac_check_lib_save_LIBS=$LIBS
25972LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025974/* end confdefs.h. */
25975
25976/* Override any GCC internal prototype to avoid an error.
25977 Use char because int might match the return type of a GCC
25978 builtin and then its argument prototype would still apply. */
25979#ifdef __cplusplus
25980extern "C"
25981#endif
25982char XDPSPixelsPerPoint ();
25983int
25984main ()
25985{
25986return XDPSPixelsPerPoint ();
25987 ;
25988 return 0;
25989}
25990_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025991if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025992 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25993else
cristy8b350f62009-11-15 23:12:43 +000025994 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000025995fi
cristy8b350f62009-11-15 23:12:43 +000025996rm -f core conftest.err conftest.$ac_objext \
25997 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025998LIBS=$ac_check_lib_save_LIBS
25999fi
cristy8b350f62009-11-15 23:12:43 +000026000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026001$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026002if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026003 passed=`expr $passed + 1`
26004else
26005 failed=`expr $failed + 1`
26006fi
26007
cristy8b350f62009-11-15 23:12:43 +000026008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026009$as_echo_n "checking if DPS package is complete... " >&6; }
26010 if test $passed -gt 0; then
26011 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026013$as_echo "no -- some components failed test" >&6; }
26014 have_dps='no (failed tests)'
26015 CPPFLAGS="$PERSIST_CPPFLAGS"
26016 else
26017 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26018 LIBS="$DPS_LIBS $LIBS"
26019
cristy8b350f62009-11-15 23:12:43 +000026020$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026021
cristy8b350f62009-11-15 23:12:43 +000026022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026023$as_echo "yes" >&6; }
26024 have_dps='yes'
26025 fi
26026 else
cristy8b350f62009-11-15 23:12:43 +000026027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo "no" >&6; }
26029 CPPFLAGS=$PERSIST_CPPFLAGS
26030 fi
26031fi
26032 if test "$have_dps" = 'yes'; then
26033 DPS_DELEGATE_TRUE=
26034 DPS_DELEGATE_FALSE='#'
26035else
26036 DPS_DELEGATE_TRUE='#'
26037 DPS_DELEGATE_FALSE=
26038fi
26039
26040
26041
26042
26043#
26044# Check for DJVU delegate library.
26045#
26046
26047# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026048if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026049 withval=$with_djvu; with_djvu=$withval
26050else
26051 with_djvu='yes'
26052fi
26053
26054
26055if test "$with_djvu" != 'yes'; then
26056 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26057fi
26058
26059have_djvu='no'
26060DJVU_LIBS=''
26061if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026063$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026065$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026067$as_echo "" >&6; }
26068 failed=0
26069 passed=0
cristy8b350f62009-11-15 23:12:43 +000026070 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26071if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026072 passed=`expr $passed + 1`
26073else
26074 failed=`expr $failed + 1`
26075fi
26076
26077
cristy8b350f62009-11-15 23:12:43 +000026078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026079$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026080if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026081 $as_echo_n "(cached) " >&6
26082else
26083 ac_check_lib_save_LIBS=$LIBS
26084LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026086/* end confdefs.h. */
26087
26088/* Override any GCC internal prototype to avoid an error.
26089 Use char because int might match the return type of a GCC
26090 builtin and then its argument prototype would still apply. */
26091#ifdef __cplusplus
26092extern "C"
26093#endif
26094char ddjvu_context_create ();
26095int
26096main ()
26097{
26098return ddjvu_context_create ();
26099 ;
26100 return 0;
26101}
26102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026104 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26105else
cristy8b350f62009-11-15 23:12:43 +000026106 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026107fi
cristy8b350f62009-11-15 23:12:43 +000026108rm -f core conftest.err conftest.$ac_objext \
26109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026110LIBS=$ac_check_lib_save_LIBS
26111fi
cristy8b350f62009-11-15 23:12:43 +000026112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026113$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026114if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026115 passed=`expr $passed + 1`
26116else
26117 failed=`expr $failed + 1`
26118fi
26119
cristy8b350f62009-11-15 23:12:43 +000026120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026121$as_echo_n "checking if DJVU package is complete... " >&6; }
26122 if test $passed -gt 0; then
26123 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026125$as_echo "no -- some components failed test" >&6; }
26126 have_djvu='no (failed tests)'
26127 else
26128 DJVU_LIBS='-ldjvulibre'
26129 LIBS="$DJVU_LIBS $LIBS"
26130
cristy8b350f62009-11-15 23:12:43 +000026131$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026132
cristy8b350f62009-11-15 23:12:43 +000026133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026134$as_echo "yes" >&6; }
26135 have_djvu='yes'
26136 fi
26137 else
cristy8b350f62009-11-15 23:12:43 +000026138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026139$as_echo "no" >&6; }
26140 fi
26141fi
26142 if test "$have_djvu" = 'yes'; then
26143 DJVU_DELEGATE_TRUE=
26144 DJVU_DELEGATE_FALSE='#'
26145else
26146 DJVU_DELEGATE_TRUE='#'
26147 DJVU_DELEGATE_FALSE=
26148fi
26149
26150
26151
26152
26153#
cristy430a7312010-01-21 20:44:04 +000026154# Set DejaVu font directory.
26155#
26156
26157# Check whether --with-dejavu-font-dir was given.
26158if test "${with_dejavu_font_dir+set}" = set; then :
26159 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26160else
26161 with_dejavu_font_dir='default'
26162fi
26163
26164
26165if test "$with_dejavu_font_dir" != 'default'; then
26166 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26167fi
26168
26169
26170#
cristy3ed852e2009-09-05 21:47:34 +000026171# Check for FFTW delegate library.
26172#
26173
26174# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026175if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026176 withval=$with_fftw; with_fftw=$withval
26177else
26178 with_fftw='yes'
26179fi
26180
26181
26182if test "$with_fftw" != 'yes'; then
26183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26184fi
26185
26186have_fftw='no'
26187FFTW_LIBS=''
26188if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026190$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026192$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026194$as_echo "" >&6; }
26195 failed=0
26196 passed=0
cristy8b350f62009-11-15 23:12:43 +000026197 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26198if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026199 passed=`expr $passed + 1`
26200else
26201 failed=`expr $failed + 1`
26202fi
26203
26204
cristy8b350f62009-11-15 23:12:43 +000026205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026206$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026207if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026208 $as_echo_n "(cached) " >&6
26209else
26210 ac_check_lib_save_LIBS=$LIBS
26211LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026213/* end confdefs.h. */
26214
26215/* Override any GCC internal prototype to avoid an error.
26216 Use char because int might match the return type of a GCC
26217 builtin and then its argument prototype would still apply. */
26218#ifdef __cplusplus
26219extern "C"
26220#endif
26221char fftw_execute ();
26222int
26223main ()
26224{
26225return fftw_execute ();
26226 ;
26227 return 0;
26228}
26229_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026230if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026231 ac_cv_lib_fftw3_fftw_execute=yes
26232else
cristy8b350f62009-11-15 23:12:43 +000026233 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026234fi
cristy8b350f62009-11-15 23:12:43 +000026235rm -f core conftest.err conftest.$ac_objext \
26236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026237LIBS=$ac_check_lib_save_LIBS
26238fi
cristy8b350f62009-11-15 23:12:43 +000026239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026240$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026241if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026242 passed=`expr $passed + 1`
26243else
26244 failed=`expr $failed + 1`
26245fi
26246
cristy8b350f62009-11-15 23:12:43 +000026247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026248$as_echo_n "checking if FFTW package is complete... " >&6; }
26249 if test $passed -gt 0; then
26250 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026252$as_echo "no -- some components failed test" >&6; }
26253 have_fftw='no (failed tests)'
26254 else
26255 FFTW_LIBS='-lfftw3'
26256 LIBS="$FFTW_LIBS $LIBS"
26257
cristy8b350f62009-11-15 23:12:43 +000026258$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026259
cristy8b350f62009-11-15 23:12:43 +000026260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026261$as_echo "yes" >&6; }
26262 have_fftw='yes'
26263 fi
26264 else
cristy8b350f62009-11-15 23:12:43 +000026265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026266$as_echo "no" >&6; }
26267 fi
26268fi
26269 if test "$have_fftw" = 'yes'; then
26270 FFTW_DELEGATE_TRUE=
26271 FFTW_DELEGATE_FALSE='#'
26272else
26273 FFTW_DELEGATE_TRUE='#'
26274 FFTW_DELEGATE_FALSE=
26275fi
26276
26277
26278
26279
26280#
26281# Check for FlashPIX delegate library.
26282#
26283
26284# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026285if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026286 withval=$with_fpx; with_fpx=$withval
26287else
26288 with_fpx='yes'
26289fi
26290
26291
26292if test "$with_fpx" != 'yes'; then
26293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26294fi
26295
26296have_fpx='no'
26297FPX_LIBS=''
26298if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026300$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026302$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026304$as_echo "" >&6; }
26305 failed=0
26306 passed=0
26307 ac_ext=cpp
26308ac_cpp='$CXXCPP $CPPFLAGS'
26309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26312
26313
cristy8b350f62009-11-15 23:12:43 +000026314ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26315if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026316 passed=`expr $passed + 1`
26317else
26318 failed=`expr $failed + 1`
26319fi
26320
26321
cristy8b350f62009-11-15 23:12:43 +000026322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026323$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026324if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026325 $as_echo_n "(cached) " >&6
26326else
26327 ac_check_lib_save_LIBS=$LIBS
26328LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026330/* end confdefs.h. */
26331
26332/* Override any GCC internal prototype to avoid an error.
26333 Use char because int might match the return type of a GCC
26334 builtin and then its argument prototype would still apply. */
26335#ifdef __cplusplus
26336extern "C"
26337#endif
26338char FPX_OpenImageByFilename ();
26339int
26340main ()
26341{
26342return FPX_OpenImageByFilename ();
26343 ;
26344 return 0;
26345}
26346_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026347if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026348 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26349else
cristy8b350f62009-11-15 23:12:43 +000026350 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026351fi
cristy8b350f62009-11-15 23:12:43 +000026352rm -f core conftest.err conftest.$ac_objext \
26353 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026354LIBS=$ac_check_lib_save_LIBS
26355fi
cristy8b350f62009-11-15 23:12:43 +000026356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026357$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026358if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026359 passed=`expr $passed + 1`
26360else
26361 failed=`expr $failed + 1`
26362fi
26363
26364 ac_ext=c
26365ac_cpp='$CPP $CPPFLAGS'
26366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26368ac_compiler_gnu=$ac_cv_c_compiler_gnu
26369
cristy8b350f62009-11-15 23:12:43 +000026370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026371$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26372 if test $passed -gt 0; then
26373 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026375$as_echo "no -- some components failed test" >&6; }
26376 have_fpx='no (failed tests)'
26377 else
26378 FPX_LIBS='-lfpx'
26379
cristy8b350f62009-11-15 23:12:43 +000026380$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026381
cristy8b350f62009-11-15 23:12:43 +000026382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026383$as_echo "yes" >&6; }
26384 have_fpx='yes'
26385 PERLMAINCC="$CXX"
26386 fi
26387 else
cristy8b350f62009-11-15 23:12:43 +000026388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026389$as_echo "no" >&6; }
26390 fi
26391fi
26392 if test "$have_fpx" = 'yes'; then
26393 FPX_DELEGATE_TRUE=
26394 FPX_DELEGATE_FALSE='#'
26395else
26396 FPX_DELEGATE_TRUE='#'
26397 FPX_DELEGATE_FALSE=
26398fi
26399
26400
26401
26402
26403#
26404# Check for fontconfig delegate library.
26405#
26406
26407# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000026408if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026409 withval=$with_fontconfig; with_fontconfig=$withval
26410else
26411 with_fontconfig=$have_x
26412fi
26413
26414
26415if test "$with_fontconfig" != 'yes'; then
26416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26417fi
26418
26419have_fontconfig='no'
26420FONTCONFIG_CFLAGS=""
26421FONTCONFIG_LIBS=""
26422FONTCONFIG_PKG=""
26423if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026425$as_echo "-------------------------------------------------------------" >&6; }
26426
26427pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000026429$as_echo_n "checking for FONTCONFIG... " >&6; }
26430
26431if test -n "$FONTCONFIG_CFLAGS"; then
26432 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26433 elif test -n "$PKG_CONFIG"; then
26434 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026436 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26437 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026440 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26441else
26442 pkg_failed=yes
26443fi
26444 else
26445 pkg_failed=untried
26446fi
26447if test -n "$FONTCONFIG_LIBS"; then
26448 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26449 elif test -n "$PKG_CONFIG"; then
26450 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026452 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26453 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026456 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26457else
26458 pkg_failed=yes
26459fi
26460 else
26461 pkg_failed=untried
26462fi
26463
26464
26465
26466if test $pkg_failed = yes; then
26467
26468if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26469 _pkg_short_errors_supported=yes
26470else
26471 _pkg_short_errors_supported=no
26472fi
26473 if test $_pkg_short_errors_supported = yes; then
26474 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26475 else
26476 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26477 fi
26478 # Put the nasty error message in config.log where it belongs
26479 echo "$FONTCONFIG_PKG_ERRORS" >&5
26480
cristy8b350f62009-11-15 23:12:43 +000026481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026482$as_echo "no" >&6; }
26483 have_fontconfig=no
26484elif test $pkg_failed = untried; then
26485 have_fontconfig=no
26486else
26487 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26488 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000026489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "yes" >&6; }
26491 have_fontconfig=yes
26492fi
cristy8b350f62009-11-15 23:12:43 +000026493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo "" >&6; }
26495fi
26496
26497if test "$have_fontconfig" = 'yes'; then
26498
cristy8b350f62009-11-15 23:12:43 +000026499$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026500
cristyd09bcf92010-03-25 03:04:45 +000026501 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000026502 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000026503 fi
cristy3ed852e2009-09-05 21:47:34 +000026504fi
26505
26506 if test "$have_fontconfig" = 'yes'; then
26507 FONTCONFIG_DELEGATE_TRUE=
26508 FONTCONFIG_DELEGATE_FALSE='#'
26509else
26510 FONTCONFIG_DELEGATE_TRUE='#'
26511 FONTCONFIG_DELEGATE_FALSE=
26512fi
26513
26514
26515
26516
26517
26518#
26519# Check for freetype delegate library.
26520#
26521
26522# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000026523if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026524 withval=$with_freetype; with_freetype=$withval
26525else
26526 with_freetype='yes'
26527fi
26528
26529
26530
26531if test "$with_freetype" != 'yes'; then
26532 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26533fi
26534
26535have_freetype='no'
26536FREETYPE_LIBS=''
26537if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026539$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026543$as_echo "" >&6; }
26544 failed=0
26545 passed=0
cristy66291112009-10-03 22:44:36 +000026546 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026547 PERSIST_CPPFLAGS="$CPPFLAGS"
26548 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26549 :
26550 else
26551 freetype_config=''
26552 for ac_prog in freetype-config
26553do
26554 # Extract the first word of "$ac_prog", so it can be a program name with args.
26555set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026557$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026558if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026559 $as_echo_n "(cached) " >&6
26560else
26561 if test -n "$freetype_config"; then
26562 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26563else
26564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26565for as_dir in $PATH
26566do
26567 IFS=$as_save_IFS
26568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26571 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026573 break 2
26574 fi
26575done
cristy8b350f62009-11-15 23:12:43 +000026576 done
cristy3ed852e2009-09-05 21:47:34 +000026577IFS=$as_save_IFS
26578
26579fi
26580fi
26581freetype_config=$ac_cv_prog_freetype_config
26582if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000026583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo "$freetype_config" >&6; }
26585else
cristy8b350f62009-11-15 23:12:43 +000026586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026587$as_echo "no" >&6; }
26588fi
26589
26590
26591 test -n "$freetype_config" && break
26592done
26593 if test -n "$freetype_config"; then
26594 freetype_cflags=`$freetype_config --cflags`
26595 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000026596 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000026597 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26598 fi
26599 fi
26600
26601 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000026602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000026603$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026604if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026605 $as_echo_n "(cached) " >&6
26606else
26607 ac_check_lib_save_LIBS=$LIBS
26608LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026610/* end confdefs.h. */
26611
26612/* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26615#ifdef __cplusplus
26616extern "C"
26617#endif
26618char FT_Init_FreeType ();
26619int
26620main ()
26621{
26622return FT_Init_FreeType ();
26623 ;
26624 return 0;
26625}
26626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 ac_cv_lib_freetype_FT_Init_FreeType=yes
26629else
cristy8b350f62009-11-15 23:12:43 +000026630 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000026631fi
cristy8b350f62009-11-15 23:12:43 +000026632rm -f core conftest.err conftest.$ac_objext \
26633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026634LIBS=$ac_check_lib_save_LIBS
26635fi
cristy8b350f62009-11-15 23:12:43 +000026636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000026637$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026638if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026639 FREETYPE_LIBS='-lfreetype'
26640fi
26641
26642 if test "$FREETYPE_LIBS" != ''; then
26643 passed=`expr $passed + 1`
26644 else
26645 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000026646 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000026647 fi
26648 fi
26649
cristy8b350f62009-11-15 23:12:43 +000026650 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26651if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026652 FT2BUILD_H='#include <ft2build.h>'
26653else
26654 ft2build=''
26655fi
26656
26657
cristy8b350f62009-11-15 23:12:43 +000026658 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26659"
26660if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026661 have_freetype_h='yes'
26662else
26663 have_freetype_h='no'
26664fi
26665
26666
26667 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26668 passed=`expr $passed + 1`
26669 else
26670 failed=`expr $failed + 1`
26671 CPPFLAGS="$PERSIST_CPPFLAGS"
26672 fi
26673
cristy8b350f62009-11-15 23:12:43 +000026674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026675$as_echo_n "checking if FreeType package is complete... " >&6; }
26676 if test $passed -gt 0; then
26677 if test $failed -gt 0; then
26678 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026680$as_echo "no -- some components failed test" >&6; }
26681 have_freetype='no (failed tests)'
26682 else
26683 LIBS="$FREETYPE_LIBS $LIBS"
26684
cristy8b350f62009-11-15 23:12:43 +000026685$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026686
26687 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26688
cristy8b350f62009-11-15 23:12:43 +000026689$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026690
26691 fi
cristy8b350f62009-11-15 23:12:43 +000026692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo "yes" >&6; }
26694 have_freetype='yes'
26695 fi
26696 else
cristy8b350f62009-11-15 23:12:43 +000026697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026698$as_echo "no" >&6; }
26699 fi
26700fi
26701 if test "$have_freetype" = 'yes'; then
26702 FREETYPE_DELEGATE_TRUE=
26703 FREETYPE_DELEGATE_FALSE='#'
26704else
26705 FREETYPE_DELEGATE_TRUE='#'
26706 FREETYPE_DELEGATE_FALSE=
26707fi
26708
26709
26710
26711
26712
26713#
26714# Check for Ghostscript library or framework.
26715#
26716# Test for iapi.h & test for gsapi_new_instance in -lgs
26717# or -framework Ghostscript
26718
26719
26720# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000026721if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026722 withval=$with_gslib; with_gslib=$withval
26723else
26724 with_gslib='no'
26725fi
26726
26727
cristyb7931f12009-09-25 10:22:21 +000026728gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000026729if test "$with_gslib" != 'yes'; then
26730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26731fi
26732
26733have_gslib='no'
26734GS_LIBS=''
26735if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026737$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000026739$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026741$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000026742 framework=0
cristy3ed852e2009-09-05 21:47:34 +000026743 failed=0
26744 passed=0
cristy8b350f62009-11-15 23:12:43 +000026745 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26746if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026747 passed=`expr $passed + 1`
26748else
26749 failed=`expr $failed + 1`
26750fi
26751
26752
cristy8b350f62009-11-15 23:12:43 +000026753 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26754if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026755 passed=`expr $passed + 1`
26756else
26757 failed=`expr $failed + 1`
26758fi
26759
26760
cristy8b350f62009-11-15 23:12:43 +000026761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000026762$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026763if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026764 $as_echo_n "(cached) " >&6
26765else
26766 ac_check_framework_save_LIBS=$LIBS
26767LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026769/* end confdefs.h. */
26770
26771/* Override any GCC internal prototype to avoid an error.
26772 Use char because int might match the return type of a GCC
26773 builtin and then its argument prototype would still apply. */
26774#ifdef __cplusplus
26775extern "C"
26776#endif
26777char gsapi_new_instance ();
26778int
26779main ()
26780{
26781return gsapi_new_instance ();
26782 ;
26783 return 0;
26784}
26785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026787 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26788else
cristy8b350f62009-11-15 23:12:43 +000026789 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026790fi
cristy8b350f62009-11-15 23:12:43 +000026791rm -f core conftest.err conftest.$ac_objext \
26792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026793LIBS=$ac_check_framework_save_LIBS
26794fi
cristy8b350f62009-11-15 23:12:43 +000026795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026796$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026797if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026798 framework=`expr $framework + 1`
26799else
cristy8b350f62009-11-15 23:12:43 +000026800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000026801$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026802if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026803 $as_echo_n "(cached) " >&6
26804else
26805 ac_check_lib_save_LIBS=$LIBS
26806LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026808/* end confdefs.h. */
26809
26810/* Override any GCC internal prototype to avoid an error.
26811 Use char because int might match the return type of a GCC
26812 builtin and then its argument prototype would still apply. */
26813#ifdef __cplusplus
26814extern "C"
26815#endif
26816char gsapi_new_instance ();
26817int
26818main ()
26819{
26820return gsapi_new_instance ();
26821 ;
26822 return 0;
26823}
26824_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026825if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026826 ac_cv_lib_gs_gsapi_new_instance=yes
26827else
cristy8b350f62009-11-15 23:12:43 +000026828 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000026829fi
cristy8b350f62009-11-15 23:12:43 +000026830rm -f core conftest.err conftest.$ac_objext \
26831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026832LIBS=$ac_check_lib_save_LIBS
26833fi
cristy8b350f62009-11-15 23:12:43 +000026834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000026835$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026836if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026837 passed=`expr $passed + 1`
26838else
26839 failed=`expr $failed + 1`
26840fi
26841
26842fi
cristy8b350f62009-11-15 23:12:43 +000026843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026844$as_echo_n "checking if Ghostscript package is complete... " >&6; }
26845 if test $passed -gt 0; then
26846 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026848$as_echo "no -- some components failed test" >&6; }
26849 have_gslib='no (failed tests)'
26850 else
26851 if test $framework -gt 0; then
26852 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000026853 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo "yes, using framework." >&6; }
26856 else
cristy8b350f62009-11-15 23:12:43 +000026857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000026858$as_echo "yes, using library." >&6; }
26859 GS_LIBS='-lgs'
26860 fi
26861 LIBS="$GS_LIBS $LIBS"
26862
cristy8b350f62009-11-15 23:12:43 +000026863$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026864
26865 have_gslib='yes'
26866 fi
26867 else
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo "no" >&6; }
26870 fi
26871fi
26872 if test "$have_gslib" = 'yes'; then
26873 GS_DELEGATE_TRUE=
26874 GS_DELEGATE_FALSE='#'
26875else
26876 GS_DELEGATE_TRUE='#'
26877 GS_DELEGATE_FALSE=
26878fi
26879
26880
26881
26882# Set default font search path
26883
26884# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000026885if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 withval=$with_fontpath; with_fontpath=$withval
26887else
26888 with_fontpath=''
26889fi
26890
26891
26892if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26893 with_fontpath=''
26894else
26895
26896cat >>confdefs.h <<_ACEOF
26897#define MAGICK_FONT_PATH "$with_fontpath"
26898_ACEOF
26899
26900fi
26901if test "$with_fontpath=" != ''; then
26902 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26903fi
26904
26905# Set Ghostscript font directory
26906
26907# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000026908if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26910else
26911 with_gs_font_dir='default'
26912fi
26913
26914
26915if test "$with_gs_font_dir" != 'default'; then
26916 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26917fi
26918
26919
26920#
26921# Check for GVC delegate library.
26922#
26923
26924# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000026925if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 withval=$with_gvc; with_gvc=$withval
26927else
26928 with_gvc='yes'
26929fi
26930
26931
26932if test "$with_gvc" != 'yes'; then
26933 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26934fi
26935
26936GVC_PKG=""
26937if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026939$as_echo "-------------------------------------------------------------" >&6; }
26940
26941pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000026943$as_echo_n "checking for GVC... " >&6; }
26944
26945if test -n "$GVC_CFLAGS"; then
26946 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26947 elif test -n "$PKG_CONFIG"; then
26948 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026949 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026950 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26951 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26953 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026954 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26955else
26956 pkg_failed=yes
26957fi
26958 else
26959 pkg_failed=untried
26960fi
26961if test -n "$GVC_LIBS"; then
26962 pkg_cv_GVC_LIBS="$GVC_LIBS"
26963 elif test -n "$PKG_CONFIG"; then
26964 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026966 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26967 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26969 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026970 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26971else
26972 pkg_failed=yes
26973fi
26974 else
26975 pkg_failed=untried
26976fi
26977
26978
26979
26980if test $pkg_failed = yes; then
26981
26982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26983 _pkg_short_errors_supported=yes
26984else
26985 _pkg_short_errors_supported=no
26986fi
26987 if test $_pkg_short_errors_supported = yes; then
26988 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26989 else
26990 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26991 fi
26992 # Put the nasty error message in config.log where it belongs
26993 echo "$GVC_PKG_ERRORS" >&5
26994
cristy8b350f62009-11-15 23:12:43 +000026995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026996$as_echo "no" >&6; }
26997 have_gvc=no
26998elif test $pkg_failed = untried; then
26999 have_gvc=no
27000else
27001 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27002 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027004$as_echo "yes" >&6; }
27005 have_gvc=yes
27006fi
cristy8b350f62009-11-15 23:12:43 +000027007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo "" >&6; }
27009fi
27010
27011if test "$have_gvc" = 'yes'; then
27012
cristy8b350f62009-11-15 23:12:43 +000027013$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027014
27015 if test "$with_modules" = 'no'; then
27016 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27017 fi
27018fi
27019
27020 if test "$have_gvc" = 'yes'; then
27021 GVC_DELEGATE_TRUE=
27022 GVC_DELEGATE_FALSE='#'
27023else
27024 GVC_DELEGATE_TRUE='#'
27025 GVC_DELEGATE_FALSE=
27026fi
27027
27028
27029
27030
27031
27032#
27033# Check for JBIG delegate library.
27034#
27035
27036
27037# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027038if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027039 withval=$with_jbig; with_jbig=$withval
27040else
27041 with_jbig='yes'
27042fi
27043
27044
27045have_jbig='no'
27046JBIG_LIBS=''
27047if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027049$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027053$as_echo "" >&6; }
27054 failed=0
27055 passed=0
cristy8b350f62009-11-15 23:12:43 +000027056 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27057if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027058 passed=`expr $passed + 1`
27059else
27060 failed=`expr $failed + 1`
27061fi
27062
27063
cristy8b350f62009-11-15 23:12:43 +000027064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027065$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027066if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027067 $as_echo_n "(cached) " >&6
27068else
27069 ac_check_lib_save_LIBS=$LIBS
27070LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027072/* end confdefs.h. */
27073
27074/* Override any GCC internal prototype to avoid an error.
27075 Use char because int might match the return type of a GCC
27076 builtin and then its argument prototype would still apply. */
27077#ifdef __cplusplus
27078extern "C"
27079#endif
27080char jbg_dec_init ();
27081int
27082main ()
27083{
27084return jbg_dec_init ();
27085 ;
27086 return 0;
27087}
27088_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027089if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027090 ac_cv_lib_jbig_jbg_dec_init=yes
27091else
cristy8b350f62009-11-15 23:12:43 +000027092 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027093fi
cristy8b350f62009-11-15 23:12:43 +000027094rm -f core conftest.err conftest.$ac_objext \
27095 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027096LIBS=$ac_check_lib_save_LIBS
27097fi
cristy8b350f62009-11-15 23:12:43 +000027098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027100if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027101 passed=`expr $passed + 1`
27102else
27103 failed=`expr $failed + 1`
27104fi
27105
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo_n "checking if JBIG package is complete... " >&6; }
27108 if test $passed -gt 0; then
27109 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo "no -- some components failed test" >&6; }
27112 have_jbig='no (failed tests)'
27113 else
27114 JBIG_LIBS='-ljbig'
27115 LIBS="$JBIG_LIBS $LIBS"
27116
cristy8b350f62009-11-15 23:12:43 +000027117$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027118
cristy8b350f62009-11-15 23:12:43 +000027119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027120$as_echo "yes" >&6; }
27121 have_jbig='yes'
27122 fi
27123 else
cristy8b350f62009-11-15 23:12:43 +000027124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027125$as_echo "no" >&6; }
27126 fi
27127fi
27128 if test "$have_jbig" = 'yes'; then
27129 JBIG_DELEGATE_TRUE=
27130 JBIG_DELEGATE_FALSE='#'
27131else
27132 JBIG_DELEGATE_TRUE='#'
27133 JBIG_DELEGATE_FALSE=
27134fi
27135
27136
27137
27138
27139#
27140# Check for JPEG delegate library.
27141#
27142
27143# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027144if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027145 withval=$with_jpeg; with_jpeg=$withval
27146else
27147 with_jpeg='yes'
27148fi
27149
27150
27151if test "$with_jpeg" != 'yes'; then
27152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27153fi
27154
27155have_jpeg='no'
27156JPEG_LIBS=''
27157if test "$with_jpeg" != '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 JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027161$as_echo_n "checking for JPEG... " >&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
cristy8b350f62009-11-15 23:12:43 +000027166 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27167if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 passed=`expr $passed + 1`
27169else
27170 failed=`expr $failed + 1`
27171fi
27172
27173
cristy8b350f62009-11-15 23:12:43 +000027174 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27175if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 passed=`expr $passed + 1`
27177else
27178 failed=`expr $failed + 1`
27179fi
27180
27181
cristy8b350f62009-11-15 23:12:43 +000027182 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27183if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 passed=`expr $passed + 1`
27185else
27186 failed=`expr $failed + 1`
27187fi
27188
27189
cristy8b350f62009-11-15 23:12:43 +000027190 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27191if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 passed=`expr $passed + 1`
27193else
27194 failed=`expr $failed + 1`
27195fi
27196
27197
cristy8b350f62009-11-15 23:12:43 +000027198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027199$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027200if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027201 $as_echo_n "(cached) " >&6
27202else
27203 ac_check_lib_save_LIBS=$LIBS
27204LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027206/* end confdefs.h. */
27207
27208/* Override any GCC internal prototype to avoid an error.
27209 Use char because int might match the return type of a GCC
27210 builtin and then its argument prototype would still apply. */
27211#ifdef __cplusplus
27212extern "C"
27213#endif
27214char jpeg_read_header ();
27215int
27216main ()
27217{
27218return jpeg_read_header ();
27219 ;
27220 return 0;
27221}
27222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 ac_cv_lib_jpeg_jpeg_read_header=yes
27225else
cristy8b350f62009-11-15 23:12:43 +000027226 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027227fi
cristy8b350f62009-11-15 23:12:43 +000027228rm -f core conftest.err conftest.$ac_objext \
27229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027230LIBS=$ac_check_lib_save_LIBS
27231fi
cristy8b350f62009-11-15 23:12:43 +000027232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027234if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027235 passed=`expr $passed + 1`
27236else
27237 failed=`expr $failed + 1`
27238fi
27239
27240
27241# Test for compatible JPEG library
27242if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027244$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027245if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027246 $as_echo_n "(cached) " >&6
27247else
cristy8b350f62009-11-15 23:12:43 +000027248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027249/* end confdefs.h. */
27250#include <stdio.h>
27251#include <stdlib.h>
27252#include <jpeglib.h>
27253
27254int
27255main ()
27256{
27257
27258#if JPEG_LIB_VERSION < 62
27259#error IJG JPEG library must be version 6b or newer!
27260#endif
27261return 0;
27262
27263 ;
27264 return 0;
27265}
27266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027268 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27269else
cristy8b350f62009-11-15 23:12:43 +000027270 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027271fi
cristy3ed852e2009-09-05 21:47:34 +000027272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27273fi
cristy8b350f62009-11-15 23:12:43 +000027274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027275$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27276fi
cristy8b350f62009-11-15 23:12:43 +000027277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027278$as_echo_n "checking if JPEG package is complete... " >&6; }
27279 if test $passed -gt 0; then
27280 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027282$as_echo "no -- some components failed test" >&6; }
27283 have_jpeg='no (failed tests)'
27284 else
27285 JPEG_LIBS='-ljpeg'
27286 LIBS="$JPEG_LIBS $LIBS"
27287
cristy8b350f62009-11-15 23:12:43 +000027288$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027289
cristy8b350f62009-11-15 23:12:43 +000027290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo "yes" >&6; }
27292 have_jpeg='yes'
27293 fi
27294 else
cristy8b350f62009-11-15 23:12:43 +000027295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027296$as_echo "no" >&6; }
27297 fi
27298fi
27299 if test "$have_jpeg" = 'yes'; then
27300 JPEG_DELEGATE_TRUE=
27301 JPEG_DELEGATE_FALSE='#'
27302else
27303 JPEG_DELEGATE_TRUE='#'
27304 JPEG_DELEGATE_FALSE=
27305fi
27306
27307
27308
27309
27310#
27311# Check for JPEG Version 2 delegate library.
27312#
27313
27314# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027315if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027316 withval=$with_jp2; with_jp2=$withval
27317else
27318 with_jp2='yes'
27319fi
27320
27321
27322if test "$with_jp2" != 'yes'; then
27323 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27324fi
27325
27326have_jp2='no'
27327JP2_LIBS=''
27328if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027330$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027332$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027334$as_echo "" >&6; }
27335 failed=0
27336 passed=0
cristy8b350f62009-11-15 23:12:43 +000027337 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27338if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 passed=`expr $passed + 1`
27340else
27341 failed=`expr $failed + 1`
27342fi
27343
27344
cristy8b350f62009-11-15 23:12:43 +000027345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027347if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027348 $as_echo_n "(cached) " >&6
27349else
27350 ac_check_lib_save_LIBS=$LIBS
27351LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027353/* end confdefs.h. */
27354
27355/* Override any GCC internal prototype to avoid an error.
27356 Use char because int might match the return type of a GCC
27357 builtin and then its argument prototype would still apply. */
27358#ifdef __cplusplus
27359extern "C"
27360#endif
27361char jas_stream_fopen ();
27362int
27363main ()
27364{
27365return jas_stream_fopen ();
27366 ;
27367 return 0;
27368}
27369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027370if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027371 ac_cv_lib_jasper_jas_stream_fopen=yes
27372else
cristy8b350f62009-11-15 23:12:43 +000027373 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027374fi
cristy8b350f62009-11-15 23:12:43 +000027375rm -f core conftest.err conftest.$ac_objext \
27376 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027377LIBS=$ac_check_lib_save_LIBS
27378fi
cristy8b350f62009-11-15 23:12:43 +000027379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027381if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 passed=`expr $passed + 1`
27383else
27384 failed=`expr $failed + 1`
27385fi
27386
cristy8b350f62009-11-15 23:12:43 +000027387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027388$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27389 if test $passed -gt 0; then
27390 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027392$as_echo "no -- some components failed test" >&6; }
27393 have_jp2='no (failed tests)'
27394 else
27395 JP2_LIBS='-ljasper'
27396 LIBS="$JP2_LIBS $LIBS"
27397
cristy8b350f62009-11-15 23:12:43 +000027398$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027399
cristy8b350f62009-11-15 23:12:43 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027401$as_echo "yes" >&6; }
27402 have_jp2='yes'
27403 fi
27404 else
cristy8b350f62009-11-15 23:12:43 +000027405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027406$as_echo "no" >&6; }
27407 fi
27408fi
27409 if test "$have_jp2" = 'yes'; then
27410 JP2_DELEGATE_TRUE=
27411 JP2_DELEGATE_FALSE='#'
27412else
27413 JP2_DELEGATE_TRUE='#'
27414 JP2_DELEGATE_FALSE=
27415fi
27416
27417
27418
27419
27420#
27421# Check for LCMS delegate library.
27422#
27423
27424# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000027425if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027426 withval=$with_lcms; with_lcms=$withval
27427else
27428 with_lcms='yes'
27429fi
27430
27431
27432if test "$with_lcms" != 'yes'; then
27433 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27434fi
27435
27436have_lcms='no'
27437LCMS_LIBS=''
27438if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027440$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027442$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027444$as_echo "" >&6; }
27445 failed=0
27446 passed=0
27447 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000027448 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27449if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27450 have_lcms_header='yes'
27451fi
27452
27453
27454 if test "$have_lcms_header" = 'yes'; then
27455 passed=`expr $passed + 1`
27456
27457$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27458
27459 else
27460 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27461if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27462 have_lcms_header='yes'
27463fi
27464
27465
27466 if test "$have_lcms_header" = 'yes'; then
27467 passed=`expr $passed + 1`
27468
27469$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27470
27471 else
27472 failed=`expr $failed + 1`
27473 fi
27474 fi
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27476$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27477if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27478 $as_echo_n "(cached) " >&6
27479else
27480 ac_check_lib_save_LIBS=$LIBS
27481LIBS="-llcms2 $LIBS"
27482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483/* end confdefs.h. */
27484
27485/* Override any GCC internal prototype to avoid an error.
27486 Use char because int might match the return type of a GCC
27487 builtin and then its argument prototype would still apply. */
27488#ifdef __cplusplus
27489extern "C"
27490#endif
27491char cmsOpenProfileFromMem ();
27492int
27493main ()
27494{
27495return cmsOpenProfileFromMem ();
27496 ;
27497 return 0;
27498}
27499_ACEOF
27500if ac_fn_c_try_link "$LINENO"; then :
27501 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27502else
27503 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27504fi
27505rm -f core conftest.err conftest.$ac_objext \
27506 conftest$ac_exeext conftest.$ac_ext
27507LIBS=$ac_check_lib_save_LIBS
27508fi
27509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27510$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27511if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27512 passed=`expr $passed + 1`
27513else
27514 failed=`expr $failed + 1`
27515fi
27516
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27518$as_echo_n "checking if LCMS2 package is complete... " >&6; }
27519 if test $passed -gt 0; then
27520 if test $failed -gt 0; then
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27522$as_echo "no -- some components failed test" >&6; }
27523 have_lcms='no (failed tests)'
27524 else
27525 LCMS_LIBS='-llcms2'
27526 LIBS="$LCMS_LIBS $LIBS"
27527
27528$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27529
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27531$as_echo "yes" >&6; }
27532 have_lcms='yes'
27533 fi
27534 else
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27536$as_echo "no" >&6; }
27537 fi
27538fi
27539
27540if test "$with_lcms" != 'no'; then
27541if test "$have_lcms" == 'no'; then
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27543$as_echo "-------------------------------------------------------------" >&6; }
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27545$as_echo_n "checking for LCMS... " >&6; }
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27547$as_echo "" >&6; }
27548 failed=0
27549 passed=0
27550 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000027551 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27552if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 have_lcms_header='yes'
27554fi
27555
27556
27557 if test "$have_lcms_header" = 'yes'; then
27558 passed=`expr $passed + 1`
27559
cristy8b350f62009-11-15 23:12:43 +000027560$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027561
27562 else
cristy8b350f62009-11-15 23:12:43 +000027563 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27564if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027565 have_lcms_header='yes'
27566fi
27567
27568
27569 if test "$have_lcms_header" = 'yes'; then
27570 passed=`expr $passed + 1`
27571
cristy8b350f62009-11-15 23:12:43 +000027572$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027573
27574 else
27575 failed=`expr $failed + 1`
27576 fi
27577 fi
cristy8b350f62009-11-15 23:12:43 +000027578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000027579$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027580if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027581 $as_echo_n "(cached) " >&6
27582else
27583 ac_check_lib_save_LIBS=$LIBS
27584LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027586/* end confdefs.h. */
27587
27588/* Override any GCC internal prototype to avoid an error.
27589 Use char because int might match the return type of a GCC
27590 builtin and then its argument prototype would still apply. */
27591#ifdef __cplusplus
27592extern "C"
27593#endif
27594char cmsOpenProfileFromMem ();
27595int
27596main ()
27597{
27598return cmsOpenProfileFromMem ();
27599 ;
27600 return 0;
27601}
27602_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027603if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027604 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27605else
cristy8b350f62009-11-15 23:12:43 +000027606 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000027607fi
cristy8b350f62009-11-15 23:12:43 +000027608rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027610LIBS=$ac_check_lib_save_LIBS
27611fi
cristy8b350f62009-11-15 23:12:43 +000027612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027613$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027614if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027615 passed=`expr $passed + 1`
27616else
27617 failed=`expr $failed + 1`
27618fi
27619
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo_n "checking if LCMS package is complete... " >&6; }
27622 if test $passed -gt 0; then
27623 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo "no -- some components failed test" >&6; }
27626 have_lcms='no (failed tests)'
27627 else
27628 LCMS_LIBS='-llcms'
27629 LIBS="$LCMS_LIBS $LIBS"
27630
cristy8b350f62009-11-15 23:12:43 +000027631$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027632
cristy8b350f62009-11-15 23:12:43 +000027633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027634$as_echo "yes" >&6; }
27635 have_lcms='yes'
27636 fi
27637 else
cristy8b350f62009-11-15 23:12:43 +000027638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "no" >&6; }
27640 fi
27641fi
cristyd09bcf92010-03-25 03:04:45 +000027642fi
cristy3ed852e2009-09-05 21:47:34 +000027643 if test "$have_lcms" = 'yes'; then
27644 LCMS_DELEGATE_TRUE=
27645 LCMS_DELEGATE_FALSE='#'
27646else
27647 LCMS_DELEGATE_TRUE='#'
27648 LCMS_DELEGATE_FALSE=
27649fi
27650
27651
27652
27653
27654#
27655# Check for the LQR (Liquid Rescale) delegate library.
27656#
27657
27658# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000027659if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 withval=$with_lqr; with_lqr=$withval
27661else
27662 with_lqr='yes'
27663fi
27664
27665
27666if test "$with_lqr" != 'yes'; then
27667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27668fi
27669
27670have_lqr='no'
27671LQR_CFLAGS=""
27672LQR_LIBS=""
27673LQR_PKG=""
27674if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027676$as_echo "-------------------------------------------------------------" >&6; }
27677
27678pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027680$as_echo_n "checking for LQR... " >&6; }
27681
27682if test -n "$LQR_CFLAGS"; then
27683 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27684 elif test -n "$PKG_CONFIG"; then
27685 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027687 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27688 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027691 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27692else
27693 pkg_failed=yes
27694fi
27695 else
27696 pkg_failed=untried
27697fi
27698if test -n "$LQR_LIBS"; then
27699 pkg_cv_LQR_LIBS="$LQR_LIBS"
27700 elif test -n "$PKG_CONFIG"; then
27701 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027703 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27704 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27706 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027707 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27708else
27709 pkg_failed=yes
27710fi
27711 else
27712 pkg_failed=untried
27713fi
27714
27715
27716
27717if test $pkg_failed = yes; then
27718
27719if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27720 _pkg_short_errors_supported=yes
27721else
27722 _pkg_short_errors_supported=no
27723fi
27724 if test $_pkg_short_errors_supported = yes; then
27725 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27726 else
27727 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27728 fi
27729 # Put the nasty error message in config.log where it belongs
27730 echo "$LQR_PKG_ERRORS" >&5
27731
cristy8b350f62009-11-15 23:12:43 +000027732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027733$as_echo "no" >&6; }
27734 have_lqr=no
27735elif test $pkg_failed = untried; then
27736 have_lqr=no
27737else
27738 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27739 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027741$as_echo "yes" >&6; }
27742 have_lqr=yes
27743fi
cristy8b350f62009-11-15 23:12:43 +000027744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027745$as_echo "" >&6; }
27746fi
27747
27748if test "$have_lqr" = 'yes'; then
27749
cristy8b350f62009-11-15 23:12:43 +000027750$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027751
27752 CFLAGS="$LQR_CFLAGS $CFLAGS"
27753fi
27754
27755 if test "$have_lqr" = 'yes'; then
27756 LQR_DELEGATE_TRUE=
27757 LQR_DELEGATE_FALSE='#'
27758else
27759 LQR_DELEGATE_TRUE='#'
27760 LQR_DELEGATE_FALSE=
27761fi
27762
27763
27764
27765
27766
27767#
27768# Check for the OpenEXR delegate library.
27769#
27770
27771# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000027772if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 withval=$with_openexr; with_openexr=$withval
27774else
27775 with_openexr='yes'
27776fi
27777
27778
27779if test "$with_openexr" != 'yes'; then
27780 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27781fi
27782
27783have_openexr='no'
27784OPENEXR_CFLAGS=""
27785OPENEXR_LIBS=""
27786OPENEXR_PKG=""
27787if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo "-------------------------------------------------------------" >&6; }
27790
27791pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000027793$as_echo_n "checking for OPENEXR... " >&6; }
27794
27795if test -n "$OPENEXR_CFLAGS"; then
27796 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27797 elif test -n "$PKG_CONFIG"; then
27798 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027800 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27801 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27803 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027804 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27805else
27806 pkg_failed=yes
27807fi
27808 else
27809 pkg_failed=untried
27810fi
27811if test -n "$OPENEXR_LIBS"; then
27812 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27813 elif test -n "$PKG_CONFIG"; then
27814 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027816 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27817 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27819 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027820 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27821else
27822 pkg_failed=yes
27823fi
27824 else
27825 pkg_failed=untried
27826fi
27827
27828
27829
27830if test $pkg_failed = yes; then
27831
27832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27833 _pkg_short_errors_supported=yes
27834else
27835 _pkg_short_errors_supported=no
27836fi
27837 if test $_pkg_short_errors_supported = yes; then
27838 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27839 else
27840 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27841 fi
27842 # Put the nasty error message in config.log where it belongs
27843 echo "$OPENEXR_PKG_ERRORS" >&5
27844
cristy8b350f62009-11-15 23:12:43 +000027845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027846$as_echo "no" >&6; }
27847 have_openexr=no
27848elif test $pkg_failed = untried; then
27849 have_openexr=no
27850else
27851 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27852 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000027853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027854$as_echo "yes" >&6; }
27855 have_openexr=yes
27856fi
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo "" >&6; }
27859fi
27860
27861if test "$have_openexr" = 'yes'; then
27862
cristy8b350f62009-11-15 23:12:43 +000027863$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027864
27865 if test "$with_modules" = 'no'; then
27866 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27867 fi
27868fi
27869
27870 if test "$have_openexr" = 'yes'; then
27871 OPENEXR_DELEGATE_TRUE=
27872 OPENEXR_DELEGATE_FALSE='#'
27873else
27874 OPENEXR_DELEGATE_TRUE='#'
27875 OPENEXR_DELEGATE_FALSE=
27876fi
27877
27878
27879
27880
27881
27882#
27883# Check for PNG delegate library.
27884#
27885
27886# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000027887if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027888 withval=$with_png; with_png=$withval
27889else
27890 with_png='yes'
27891fi
27892
27893
27894if test "$with_png" != 'yes'; then
27895 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27896fi
27897
27898have_png='no'
27899PNG_LIBS=''
27900if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027902$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027906$as_echo "" >&6; }
27907 failed=0
27908 passed=0
cristy8b350f62009-11-15 23:12:43 +000027909 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27910if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027911 passed=`expr $passed + 1`
27912else
27913 failed=`expr $failed + 1`
27914fi
27915
27916
cristy8b350f62009-11-15 23:12:43 +000027917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000027918$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027919if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 $as_echo_n "(cached) " >&6
27921else
27922 ac_check_lib_save_LIBS=$LIBS
27923LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027925/* end confdefs.h. */
27926
27927/* Override any GCC internal prototype to avoid an error.
27928 Use char because int might match the return type of a GCC
27929 builtin and then its argument prototype would still apply. */
27930#ifdef __cplusplus
27931extern "C"
27932#endif
27933char png_get_io_ptr ();
27934int
27935main ()
27936{
27937return png_get_io_ptr ();
27938 ;
27939 return 0;
27940}
27941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027942if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027943 ac_cv_lib_png_png_get_io_ptr=yes
27944else
cristy8b350f62009-11-15 23:12:43 +000027945 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000027946fi
cristy8b350f62009-11-15 23:12:43 +000027947rm -f core conftest.err conftest.$ac_objext \
27948 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027949LIBS=$ac_check_lib_save_LIBS
27950fi
cristy8b350f62009-11-15 23:12:43 +000027951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000027952$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027953if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027954 passed=`expr $passed + 1`
27955else
27956 failed=`expr $failed + 1`
27957fi
27958
cristy8b350f62009-11-15 23:12:43 +000027959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027960$as_echo_n "checking if PNG package is complete... " >&6; }
27961 if test $passed -gt 0; then
27962 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027964$as_echo "no -- some components failed test" >&6; }
27965 have_png='no (failed tests)'
27966 else
27967 PNG_LIBS='-lpng'
27968 LIBS="$PNG_LIBS $LIBS"
27969
cristy8b350f62009-11-15 23:12:43 +000027970$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027971
cristy8b350f62009-11-15 23:12:43 +000027972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "yes" >&6; }
27974 have_png='yes'
27975 fi
27976 else
cristy8b350f62009-11-15 23:12:43 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027978$as_echo "no" >&6; }
27979 fi
27980fi
27981 if test "$have_png" = 'yes'; then
27982 PNG_DELEGATE_TRUE=
27983 PNG_DELEGATE_FALSE='#'
27984else
27985 PNG_DELEGATE_TRUE='#'
27986 PNG_DELEGATE_FALSE=
27987fi
27988
27989
27990
27991
27992#
27993# Check for RSVG delegate library.
27994#
27995
27996# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000027997if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027998 withval=$with_rsvg; with_rsvg=$withval
27999else
28000 with_rsvg=$have_x
28001fi
28002
28003
28004if test "$with_rsvg" != 'yes'; then
28005 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28006fi
28007
28008have_rsvg='no'
28009have_cairo='no'
28010RSVG_CFLAGS=""
28011RSVG_LIBS=""
28012RSVG_PKG=""
28013if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028015$as_echo "-------------------------------------------------------------" >&6; }
28016
28017pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028019$as_echo_n "checking for RSVG... " >&6; }
28020
28021if test -n "$RSVG_CFLAGS"; then
28022 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28023 elif test -n "$PKG_CONFIG"; then
28024 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028025 { { $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 +000028026 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28027 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28029 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028030 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28031else
28032 pkg_failed=yes
28033fi
28034 else
28035 pkg_failed=untried
28036fi
28037if test -n "$RSVG_LIBS"; then
28038 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28039 elif test -n "$PKG_CONFIG"; then
28040 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028041 { { $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 +000028042 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28043 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028046 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28047else
28048 pkg_failed=yes
28049fi
28050 else
28051 pkg_failed=untried
28052fi
28053
28054
28055
28056if test $pkg_failed = yes; then
28057
28058if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28059 _pkg_short_errors_supported=yes
28060else
28061 _pkg_short_errors_supported=no
28062fi
28063 if test $_pkg_short_errors_supported = yes; then
28064 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28065 else
28066 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28067 fi
28068 # Put the nasty error message in config.log where it belongs
28069 echo "$RSVG_PKG_ERRORS" >&5
28070
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "no" >&6; }
28073 have_rsvg=no
28074elif test $pkg_failed = untried; then
28075 have_rsvg=no
28076else
28077 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28078 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo "yes" >&6; }
28081 have_rsvg=yes
28082fi
cristy8b350f62009-11-15 23:12:43 +000028083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo "" >&6; }
28085
28086pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028088$as_echo_n "checking for CAIRO_SVG... " >&6; }
28089
28090if test -n "$CAIRO_SVG_CFLAGS"; then
28091 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28092 elif test -n "$PKG_CONFIG"; then
28093 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028095 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28096 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28098 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028099 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28100else
28101 pkg_failed=yes
28102fi
28103 else
28104 pkg_failed=untried
28105fi
28106if test -n "$CAIRO_SVG_LIBS"; then
28107 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28108 elif test -n "$PKG_CONFIG"; then
28109 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028111 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28112 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28114 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028115 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28116else
28117 pkg_failed=yes
28118fi
28119 else
28120 pkg_failed=untried
28121fi
28122
28123
28124
28125if test $pkg_failed = yes; then
28126
28127if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28128 _pkg_short_errors_supported=yes
28129else
28130 _pkg_short_errors_supported=no
28131fi
28132 if test $_pkg_short_errors_supported = yes; then
28133 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28134 else
28135 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28136 fi
28137 # Put the nasty error message in config.log where it belongs
28138 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28139
cristy8b350f62009-11-15 23:12:43 +000028140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028141$as_echo "no" >&6; }
28142 have_cairo=no
28143elif test $pkg_failed = untried; then
28144 have_cairo=no
28145else
28146 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28147 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028149$as_echo "yes" >&6; }
28150 have_cairo=yes
28151fi
cristy8b350f62009-11-15 23:12:43 +000028152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028153$as_echo "" >&6; }
28154fi
28155
28156if test "$have_rsvg" = 'yes'; then
28157
cristy8b350f62009-11-15 23:12:43 +000028158$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028159
28160 if test "$with_modules" = 'no'; then
28161 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28162 fi
28163fi
28164
28165if test "$have_cairo" = 'yes'; then
28166
cristy8b350f62009-11-15 23:12:43 +000028167$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028168
28169 if test "$with_modules" = 'no'; then
28170 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28171 fi
28172fi
28173
28174 if test "$have_rsvg" = 'yes'; then
28175 RSVG_DELEGATE_TRUE=
28176 RSVG_DELEGATE_FALSE='#'
28177else
28178 RSVG_DELEGATE_TRUE='#'
28179 RSVG_DELEGATE_FALSE=
28180fi
28181
28182 if test "$have_cairo" = 'yes'; then
28183 CAIRO_DELEGATE_TRUE=
28184 CAIRO_DELEGATE_FALSE='#'
28185else
28186 CAIRO_DELEGATE_TRUE='#'
28187 CAIRO_DELEGATE_FALSE=
28188fi
28189
28190
28191
28192
28193
28194#
28195# Check for TIFF delegate library.
28196#
28197
28198# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028199if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028200 withval=$with_tiff; with_tiff=$withval
28201else
28202 with_tiff='yes'
28203fi
28204
28205
28206if test "$with_tiff" != 'yes'; then
28207 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28208fi
28209
28210have_tiff='no'
28211TIFF_LIBS=''
28212if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028214$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028216$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028218$as_echo "" >&6; }
28219 failed=0
28220 passed=0
cristy8b350f62009-11-15 23:12:43 +000028221 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28222if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028223 passed=`expr $passed + 1`
28224else
28225 failed=`expr $failed + 1`
28226fi
28227
28228
cristy8b350f62009-11-15 23:12:43 +000028229 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28230if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028231 passed=`expr $passed + 1`
28232else
28233 failed=`expr $failed + 1`
28234fi
28235
28236
cristy8b350f62009-11-15 23:12:43 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028238$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028239if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028240 $as_echo_n "(cached) " >&6
28241else
28242 ac_check_lib_save_LIBS=$LIBS
28243LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028245/* end confdefs.h. */
28246
28247/* Override any GCC internal prototype to avoid an error.
28248 Use char because int might match the return type of a GCC
28249 builtin and then its argument prototype would still apply. */
28250#ifdef __cplusplus
28251extern "C"
28252#endif
28253char TIFFOpen ();
28254int
28255main ()
28256{
28257return TIFFOpen ();
28258 ;
28259 return 0;
28260}
28261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028263 ac_cv_lib_tiff_TIFFOpen=yes
28264else
cristy8b350f62009-11-15 23:12:43 +000028265 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028266fi
cristy8b350f62009-11-15 23:12:43 +000028267rm -f core conftest.err conftest.$ac_objext \
28268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028269LIBS=$ac_check_lib_save_LIBS
28270fi
cristy8b350f62009-11-15 23:12:43 +000028271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028272$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028273if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028274 passed=`expr $passed + 1`
28275else
28276 failed=`expr $failed + 1`
28277fi
28278
cristy8b350f62009-11-15 23:12:43 +000028279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028280$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028281if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 $as_echo_n "(cached) " >&6
28283else
28284 ac_check_lib_save_LIBS=$LIBS
28285LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028287/* end confdefs.h. */
28288
28289/* Override any GCC internal prototype to avoid an error.
28290 Use char because int might match the return type of a GCC
28291 builtin and then its argument prototype would still apply. */
28292#ifdef __cplusplus
28293extern "C"
28294#endif
28295char TIFFClientOpen ();
28296int
28297main ()
28298{
28299return TIFFClientOpen ();
28300 ;
28301 return 0;
28302}
28303_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028304if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028305 ac_cv_lib_tiff_TIFFClientOpen=yes
28306else
cristy8b350f62009-11-15 23:12:43 +000028307 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028308fi
cristy8b350f62009-11-15 23:12:43 +000028309rm -f core conftest.err conftest.$ac_objext \
28310 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028311LIBS=$ac_check_lib_save_LIBS
28312fi
cristy8b350f62009-11-15 23:12:43 +000028313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028314$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028315if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028316 passed=`expr $passed + 1`
28317else
28318 failed=`expr $failed + 1`
28319fi
28320
cristy8b350f62009-11-15 23:12:43 +000028321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028322$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028323if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028324 $as_echo_n "(cached) " >&6
28325else
28326 ac_check_lib_save_LIBS=$LIBS
28327LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028329/* end confdefs.h. */
28330
28331/* Override any GCC internal prototype to avoid an error.
28332 Use char because int might match the return type of a GCC
28333 builtin and then its argument prototype would still apply. */
28334#ifdef __cplusplus
28335extern "C"
28336#endif
28337char TIFFIsByteSwapped ();
28338int
28339main ()
28340{
28341return TIFFIsByteSwapped ();
28342 ;
28343 return 0;
28344}
28345_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028346if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028347 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28348else
cristy8b350f62009-11-15 23:12:43 +000028349 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028350fi
cristy8b350f62009-11-15 23:12:43 +000028351rm -f core conftest.err conftest.$ac_objext \
28352 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028353LIBS=$ac_check_lib_save_LIBS
28354fi
cristy8b350f62009-11-15 23:12:43 +000028355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028356$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028357if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 passed=`expr $passed + 1`
28359else
28360 failed=`expr $failed + 1`
28361fi
28362
cristy8b350f62009-11-15 23:12:43 +000028363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028364$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028365if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028366 $as_echo_n "(cached) " >&6
28367else
28368 ac_check_lib_save_LIBS=$LIBS
28369LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028371/* end confdefs.h. */
28372
28373/* Override any GCC internal prototype to avoid an error.
28374 Use char because int might match the return type of a GCC
28375 builtin and then its argument prototype would still apply. */
28376#ifdef __cplusplus
28377extern "C"
28378#endif
28379char TIFFReadRGBATile ();
28380int
28381main ()
28382{
28383return TIFFReadRGBATile ();
28384 ;
28385 return 0;
28386}
28387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028389 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28390else
cristy8b350f62009-11-15 23:12:43 +000028391 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000028392fi
cristy8b350f62009-11-15 23:12:43 +000028393rm -f core conftest.err conftest.$ac_objext \
28394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028395LIBS=$ac_check_lib_save_LIBS
28396fi
cristy8b350f62009-11-15 23:12:43 +000028397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000028398$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028399if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 passed=`expr $passed + 1`
28401else
28402 failed=`expr $failed + 1`
28403fi
28404
cristy8b350f62009-11-15 23:12:43 +000028405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028407if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 $as_echo_n "(cached) " >&6
28409else
28410 ac_check_lib_save_LIBS=$LIBS
28411LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028413/* end confdefs.h. */
28414
28415/* Override any GCC internal prototype to avoid an error.
28416 Use char because int might match the return type of a GCC
28417 builtin and then its argument prototype would still apply. */
28418#ifdef __cplusplus
28419extern "C"
28420#endif
28421char TIFFReadRGBAStrip ();
28422int
28423main ()
28424{
28425return TIFFReadRGBAStrip ();
28426 ;
28427 return 0;
28428}
28429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028431 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28432else
cristy8b350f62009-11-15 23:12:43 +000028433 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000028434fi
cristy8b350f62009-11-15 23:12:43 +000028435rm -f core conftest.err conftest.$ac_objext \
28436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028437LIBS=$ac_check_lib_save_LIBS
28438fi
cristy8b350f62009-11-15 23:12:43 +000028439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000028440$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028441if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028442 passed=`expr $passed + 1`
28443else
28444 failed=`expr $failed + 1`
28445fi
28446
cristy8b350f62009-11-15 23:12:43 +000028447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028448$as_echo_n "checking if TIFF package is complete... " >&6; }
28449 if test $passed -gt 0; then
28450 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028452$as_echo "no -- some components failed test" >&6; }
28453 have_tiff='no (failed tests)'
28454 else
28455 TIFF_LIBS='-ltiff'
28456 LIBS="$TIFF_LIBS $LIBS"
28457
cristy8b350f62009-11-15 23:12:43 +000028458$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028459
cristy8b350f62009-11-15 23:12:43 +000028460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "yes" >&6; }
28462 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000028463 for ac_header in tiffconf.h
28464do :
28465 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28466if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028467 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028468#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000028469_ACEOF
28470
28471fi
28472
28473done
28474
cristy8b350f62009-11-15 23:12:43 +000028475 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000028476 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28477 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000028478do :
28479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28480ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28481eval as_val=\$$as_ac_var
28482 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028483 cat >>confdefs.h <<_ACEOF
28484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28485_ACEOF
28486
28487fi
28488done
28489
28490 fi
28491 else
cristy8b350f62009-11-15 23:12:43 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028493$as_echo "no" >&6; }
28494 fi
28495fi
28496 if test "$have_tiff" = 'yes'; then
28497 TIFF_DELEGATE_TRUE=
28498 TIFF_DELEGATE_FALSE='#'
28499else
28500 TIFF_DELEGATE_TRUE='#'
28501 TIFF_DELEGATE_FALSE=
28502fi
28503
28504
28505
28506
28507#
28508# Set Windows font directory.
28509#
28510
28511# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028512if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028513 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28514else
28515 with_windows_font_dir=''
28516fi
28517
28518if test "$with_windows_font_dir" != '' ; then
28519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28520fi
28521
28522
28523#
28524# Check for WMF delegate library.
28525#
28526
28527# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000028528if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028529 withval=$with_wmf; with_wmf=$withval
28530else
cristy8d63d1d2010-01-06 20:38:37 +000028531 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000028532fi
28533
28534
28535if test "$with_wmf" != 'yes'; then
28536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28537fi
28538
28539have_wmf='no'
28540WMF_LIBS=''
28541WMF_LIBS_DEPS=''
28542OLIBS="$LIBS"
28543if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028545$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028547$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028549$as_echo "" >&6; }
28550 have_libwmf='no'
28551 have_libwmflite='no'
28552 have_libwmf_ipa_h='no'
28553
cristy8b350f62009-11-15 23:12:43 +000028554 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
28555"
28556if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 have_libwmf_ipa_h='yes'
28558fi
28559
28560
28561 if test "$have_libwmf_ipa_h" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
cristy3ed852e2009-09-05 21:47:34 +000028563$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028564if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028565 $as_echo_n "(cached) " >&6
28566else
28567 ac_check_lib_save_LIBS=$LIBS
28568LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028570/* end confdefs.h. */
28571
28572/* Override any GCC internal prototype to avoid an error.
28573 Use char because int might match the return type of a GCC
28574 builtin and then its argument prototype would still apply. */
28575#ifdef __cplusplus
28576extern "C"
28577#endif
28578char wmf_lite_create ();
28579int
28580main ()
28581{
28582return wmf_lite_create ();
28583 ;
28584 return 0;
28585}
28586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028588 ac_cv_lib_wmflite_wmf_lite_create=yes
28589else
cristy8b350f62009-11-15 23:12:43 +000028590 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000028591fi
cristy8b350f62009-11-15 23:12:43 +000028592rm -f core conftest.err conftest.$ac_objext \
28593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028594LIBS=$ac_check_lib_save_LIBS
28595fi
cristy8b350f62009-11-15 23:12:43 +000028596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028597$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028598if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028599 have_libwmflite='yes'
28600fi
28601
28602 if test "$have_libwmflite" = 'yes'; then
28603
cristy8b350f62009-11-15 23:12:43 +000028604$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028605
28606 WMF_LIBS='-lwmflite'
28607 LIBS="$WMF_LIBS $LIBS"
28608 have_wmf='yes'
28609 else
28610 WMF_LIBS_DEPS=''
28611 WMF_CONFIG_LIBS=`libwmf-config --libs`
28612 for lib in xml2 expat freetype jpeg png z; do
28613 testlib="-l${lib}"
28614 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
28615 done
cristy8b350f62009-11-15 23:12:43 +000028616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028618if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028619 $as_echo_n "(cached) " >&6
28620else
28621 ac_check_lib_save_LIBS=$LIBS
28622LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028624/* end confdefs.h. */
28625
28626/* Override any GCC internal prototype to avoid an error.
28627 Use char because int might match the return type of a GCC
28628 builtin and then its argument prototype would still apply. */
28629#ifdef __cplusplus
28630extern "C"
28631#endif
28632char wmf_api_create ();
28633int
28634main ()
28635{
28636return wmf_api_create ();
28637 ;
28638 return 0;
28639}
28640_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028641if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028642 ac_cv_lib_wmf_wmf_api_create=yes
28643else
cristy8b350f62009-11-15 23:12:43 +000028644 ac_cv_lib_wmf_wmf_api_create=no
cristy3ed852e2009-09-05 21:47:34 +000028645fi
cristy8b350f62009-11-15 23:12:43 +000028646rm -f core conftest.err conftest.$ac_objext \
28647 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028648LIBS=$ac_check_lib_save_LIBS
28649fi
cristy8b350f62009-11-15 23:12:43 +000028650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028651$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028652if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028653 have_libwmf='yes'
28654fi
28655
28656 if test "$have_libwmf" = 'yes'; then
28657
cristy8b350f62009-11-15 23:12:43 +000028658$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028659
28660 WMF_LIBS='-lwmf'
28661 LIBS="$WMF_LIBS $LIBS"
28662 have_wmf='yes'
28663 else
cristy8b350f62009-11-15 23:12:43 +000028664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028665$as_echo "no -- some components failed test" >&6; }
28666 have_wmf='no (failed tests)'
28667 have_wmflite='no (failed tests)'
28668 LIBS="$OLIBS"
28669 WMF_LIBS=''
28670 fi
28671 fi
28672 fi
cristy8b350f62009-11-15 23:12:43 +000028673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028674$as_echo_n "checking if WMF package is complete... " >&6; }
28675 if test "$have_wmf" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo "yes" >&6; }
28678 else
cristy8b350f62009-11-15 23:12:43 +000028679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028680$as_echo "no" >&6; }
28681 fi
28682fi
28683 if test "$have_wmf" = 'yes'; then
28684 WMF_DELEGATE_TRUE=
28685 WMF_DELEGATE_FALSE='#'
28686else
28687 WMF_DELEGATE_TRUE='#'
28688 WMF_DELEGATE_FALSE=
28689fi
28690
28691
28692
28693
28694
28695#
28696# Check for XML delegate library.
28697#
28698
28699# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000028700if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028701 withval=$with_xml; with_xml=$withval
28702else
28703 with_xml=$have_x
28704fi
28705
28706
28707if test "$with_xml" != 'yes' ; then
28708 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28709fi
28710
28711have_xml='no'
28712XML_LIBS=''
28713if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028715$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000028717$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028719$as_echo "" >&6; }
28720 PERSIST_LDFLAGS=$LDFLAGS
28721 PERSIST_CPPFLAGS=$CPPFLAGS
28722 xml2_config=''
28723 for ac_prog in xml2-config
28724do
28725 # Extract the first word of "$ac_prog", so it can be a program name with args.
28726set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028728$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028729if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028730 $as_echo_n "(cached) " >&6
28731else
28732 if test -n "$xml2_config"; then
28733 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28734else
28735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28736for as_dir in $PATH
28737do
28738 IFS=$as_save_IFS
28739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000028741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28742 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028744 break 2
28745 fi
28746done
cristy8b350f62009-11-15 23:12:43 +000028747 done
cristy3ed852e2009-09-05 21:47:34 +000028748IFS=$as_save_IFS
28749
28750fi
28751fi
28752xml2_config=$ac_cv_prog_xml2_config
28753if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000028754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000028755$as_echo "$xml2_config" >&6; }
28756else
cristy8b350f62009-11-15 23:12:43 +000028757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028758$as_echo "no" >&6; }
28759fi
28760
28761
28762 test -n "$xml2_config" && break
28763done
28764 if test -n "$xml2_config"; then
28765 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28766 # the shared library installed under /usr/lib, whereas the package
28767 # installs itself under $prefix/libxml and $prefix/lib.
28768 xml2_prefix=`xml2-config --prefix`
28769 if test -d "${xml2_prefix}/include/libxml2"; then
28770 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28771 fi
28772 if test "${xml2_prefix}" != '/usr'; then
28773 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28774 fi
28775 fi
28776 failed=0
28777 passed=0
cristy8b350f62009-11-15 23:12:43 +000028778 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28779if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028780 passed=`expr $passed + 1`
28781else
28782 failed=`expr $failed + 1`
28783fi
28784
28785
cristy8b350f62009-11-15 23:12:43 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028787$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028788if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028789 $as_echo_n "(cached) " >&6
28790else
28791 ac_check_lib_save_LIBS=$LIBS
28792LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028794/* end confdefs.h. */
28795
28796/* Override any GCC internal prototype to avoid an error.
28797 Use char because int might match the return type of a GCC
28798 builtin and then its argument prototype would still apply. */
28799#ifdef __cplusplus
28800extern "C"
28801#endif
28802char xmlParseExternalEntity ();
28803int
28804main ()
28805{
28806return xmlParseExternalEntity ();
28807 ;
28808 return 0;
28809}
28810_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028811if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028812 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28813else
cristy8b350f62009-11-15 23:12:43 +000028814 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000028815fi
cristy8b350f62009-11-15 23:12:43 +000028816rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028818LIBS=$ac_check_lib_save_LIBS
28819fi
cristy8b350f62009-11-15 23:12:43 +000028820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000028821$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028822if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 passed=`expr $passed + 1`
28824else
28825 failed=`expr $failed + 1`
28826fi
28827
cristy8b350f62009-11-15 23:12:43 +000028828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028829$as_echo_n "checking if XML package is complete... " >&6; }
28830 if test $passed -gt 0; then
28831 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028833$as_echo "no -- some components failed test" >&6; }
28834 have_xml='no (failed tests)'
28835 LDFLAGS="$PERSIST_LDFLAGS"
28836 CPPFLAGS="$PERSIST_CPPFLAGS"
28837 else
28838 XML_LIBS='-lxml2'
28839 LIBS="$XML_LIBS $LIBS"
28840
cristy8b350f62009-11-15 23:12:43 +000028841$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028842
cristy8b350f62009-11-15 23:12:43 +000028843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028844$as_echo "yes" >&6; }
28845 have_xml='yes'
28846 fi
28847 else
cristy8b350f62009-11-15 23:12:43 +000028848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028849$as_echo "no" >&6; }
28850 fi
28851fi
28852 if test "$have_xml" = 'yes'; then
28853 XML_DELEGATE_TRUE=
28854 XML_DELEGATE_FALSE='#'
28855else
28856 XML_DELEGATE_TRUE='#'
28857 XML_DELEGATE_FALSE=
28858fi
28859
28860
28861
28862
28863# Substitute compiler name to build/link PerlMagick
28864#
28865
28866
28867#
28868# Configure install Paths
28869#
28870
28871# Subdirectory under lib to place ImageMagick lib files
28872LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28873
28874cat >>confdefs.h <<_ACEOF
28875#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28876_ACEOF
28877
28878
28879# Path to ImageMagick bin directory
28880EXECUTABLE_PATH="${BIN_DIR}"
28881DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28882case "${build_os}" in
28883 mingw* )
28884 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28885 ;;
28886esac
28887
28888cat >>confdefs.h <<_ACEOF
28889#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28890_ACEOF
28891
28892
28893
28894# Path to ImageMagick lib
28895LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28896DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28897case "${build_os}" in
28898 mingw* )
28899 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28900 ;;
28901esac
28902
28903cat >>confdefs.h <<_ACEOF
28904#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28905_ACEOF
28906
28907
28908
28909# Subdirectory under lib to place ImageMagick configuration files
28910CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28911
28912cat >>confdefs.h <<_ACEOF
28913#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28914_ACEOF
28915
28916CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28917DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28918case "${build_os}" in
28919 mingw* )
28920 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28921 ;;
28922esac
28923
28924cat >>confdefs.h <<_ACEOF
28925#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28926_ACEOF
28927
28928
28929
28930#
28931# Subdirectory under lib to place ImageMagick coder module files
28932CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28933
28934cat >>confdefs.h <<_ACEOF
28935#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28936_ACEOF
28937
28938CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28939DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28940case "${build_os}" in
28941 mingw* )
28942 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28943 ;;
28944esac
28945
28946cat >>confdefs.h <<_ACEOF
28947#define CODER_PATH "$DEFINE_CODER_PATH"
28948_ACEOF
28949
28950
28951
28952#
28953# Subdirectory under lib to place ImageMagick filter module files
28954FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28955
28956cat >>confdefs.h <<_ACEOF
28957#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28958_ACEOF
28959
28960FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28961DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28962case "${build_os}" in
28963 mingw* )
28964 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28965 ;;
28966esac
28967
28968cat >>confdefs.h <<_ACEOF
28969#define FILTER_PATH "$DEFINE_FILTER_PATH"
28970_ACEOF
28971
28972
28973
28974#
28975# Path to ImageMagick documentation files
28976DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28977DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28978DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28979case "${build_os}" in
28980 mingw* )
28981 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28982 ;;
28983esac
28984
28985cat >>confdefs.h <<_ACEOF
28986#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28987_ACEOF
28988
28989
28990
28991#
28992# Path to ImageMagick share files
28993SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28994SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28995DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28996case "${build_os}" in
28997 mingw* )
28998 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28999 ;;
29000esac
29001
29002cat >>confdefs.h <<_ACEOF
29003#define SHARE_PATH "$DEFINE_SHARE_PATH"
29004_ACEOF
29005
29006
29007
29008# Subdirectory under share to place ImageMagick configuration files
29009SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29010
29011cat >>confdefs.h <<_ACEOF
29012#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29013_ACEOF
29014
29015SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29016DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29017case "${build_os}" in
29018 mingw* )
29019 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29020 ;;
29021esac
29022
29023cat >>confdefs.h <<_ACEOF
29024#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29025_ACEOF
29026
29027
29028
29029#
29030# program_transform_name is formed for use in a Makefile, so create a
29031# modified version for use in a shell script.
29032configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29033
29034# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029036$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029038$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029040$as_echo "" >&6; }
29041AutotraceDecodeDelegateDefault='autotrace'
29042AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029043BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029044BZIPDelegateDefault='bzip2'
29045BrowseDelegateDefault='xdg-open'
29046CGMDecodeDelegateDefault='ralcgm'
29047CatDelegateDefault='cat'
29048DNGDecodeDelegateDefault='ufraw-batch'
29049GVCDecodeDelegateDefault='dot'
29050DVIDecodeDelegateDefault='dvips'
29051EchoDelegateDefault='echo'
29052EditorDelegateDefault='xterm'
29053FIGDecodeDelegateDefault='fig2dev'
29054ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29055DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29056MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29057GnuplotDecodeDelegateDefault='gnuplot'
29058HDRDecodeDelegateDefault='ra_pfm'
29059HPGLDecodeDelegateDefault='hp2xx'
29060HTMLDecodeDelegateDefault='html2ps'
29061ILBMDecodeDelegateDefault='ilbmtoppm'
29062ILBMEncodeDelegateDefault='ppmtoilbm'
29063LPDelegateDefault='lp'
29064LPRDelegateDefault='lpr'
29065LZWDecodeDelegateDefault='uncompress'
29066LZWEncodeDelegateDefault='compress'
29067LaunchDelegateDefault='gimp'
29068MANDelegateDefault='groff'
29069MPEGDecodeDelegateDefault='ffmpeg'
29070MPEGEncodeDelegateDefault='ffmpeg'
29071MVDelegateDefault='mv'
29072PCLDelegateDefault='pcl6'
29073PGPDecodeDelegateDefault='pgpv'
29074POVDelegateDefault='povray'
29075if test "$native_win32_build" = 'yes'; then
29076 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029077elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029078 PSDelegateDefault='gsc'
29079else
29080 PSDelegateDefault='gs'
29081fi
29082RLEEncodeDelegateDefault='rawtorle'
29083RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029084RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029085SCANDecodeDelegateDefault='scanimage'
29086TXTDelegateDefault='enscript'
29087WMFDecodeDelegateDefault='wmf2eps'
29088WWWDecodeDelegateDefault='curl'
29089XPSDelegateDefault='gxps'
29090ZipDelegateDefault='gzip'
29091
29092# Search for delegates
29093# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29094set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029096$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029097if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029098 $as_echo_n "(cached) " >&6
29099else
29100 case $AutotraceDecodeDelegate in
29101 [\\/]* | ?:[\\/]*)
29102 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29103 ;;
29104 *)
29105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29106for as_dir in $PATH
29107do
29108 IFS=$as_save_IFS
29109 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029110 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29112 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029114 break 2
29115 fi
29116done
cristy8b350f62009-11-15 23:12:43 +000029117 done
cristy3ed852e2009-09-05 21:47:34 +000029118IFS=$as_save_IFS
29119
29120 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29121 ;;
29122esac
29123fi
29124AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29125if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029127$as_echo "$AutotraceDecodeDelegate" >&6; }
29128else
cristy8b350f62009-11-15 23:12:43 +000029129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029130$as_echo "no" >&6; }
29131fi
29132
29133
29134# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29135set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029137$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029138if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 $as_echo_n "(cached) " >&6
29140else
29141 case $AVIDecodeDelegate in
29142 [\\/]* | ?:[\\/]*)
29143 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29144 ;;
29145 *)
29146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29147for as_dir in $PATH
29148do
29149 IFS=$as_save_IFS
29150 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029151 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29153 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029155 break 2
29156 fi
29157done
cristy8b350f62009-11-15 23:12:43 +000029158 done
cristy3ed852e2009-09-05 21:47:34 +000029159IFS=$as_save_IFS
29160
29161 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29162 ;;
29163esac
29164fi
29165AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29166if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029168$as_echo "$AVIDecodeDelegate" >&6; }
29169else
cristy8b350f62009-11-15 23:12:43 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "no" >&6; }
29172fi
29173
29174
29175# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29176set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029178$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029179if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029180 $as_echo_n "(cached) " >&6
29181else
29182 case $BlenderDecodeDelegate in
29183 [\\/]* | ?:[\\/]*)
29184 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29185 ;;
29186 *)
29187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29188for as_dir in $PATH
29189do
29190 IFS=$as_save_IFS
29191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29194 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029196 break 2
29197 fi
29198done
cristy8b350f62009-11-15 23:12:43 +000029199 done
cristy3ed852e2009-09-05 21:47:34 +000029200IFS=$as_save_IFS
29201
29202 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29203 ;;
29204esac
29205fi
29206BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29207if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029209$as_echo "$BlenderDecodeDelegate" >&6; }
29210else
cristy8b350f62009-11-15 23:12:43 +000029211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029212$as_echo "no" >&6; }
29213fi
29214
29215
29216# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29217set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029219$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029220if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029221 $as_echo_n "(cached) " >&6
29222else
29223 case $BZIPDelegate in
29224 [\\/]* | ?:[\\/]*)
29225 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29226 ;;
29227 *)
29228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29229for as_dir in $PATH
29230do
29231 IFS=$as_save_IFS
29232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29235 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029237 break 2
29238 fi
29239done
cristy8b350f62009-11-15 23:12:43 +000029240 done
cristy3ed852e2009-09-05 21:47:34 +000029241IFS=$as_save_IFS
29242
29243 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29244 ;;
29245esac
29246fi
29247BZIPDelegate=$ac_cv_path_BZIPDelegate
29248if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo "$BZIPDelegate" >&6; }
29251else
cristy8b350f62009-11-15 23:12:43 +000029252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029253$as_echo "no" >&6; }
29254fi
29255
29256
29257# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29258set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029260$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029261if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 $as_echo_n "(cached) " >&6
29263else
29264 case $BrowseDelegate in
29265 [\\/]* | ?:[\\/]*)
29266 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29267 ;;
29268 *)
29269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29270for as_dir in $PATH
29271do
29272 IFS=$as_save_IFS
29273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29276 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278 break 2
29279 fi
29280done
cristy8b350f62009-11-15 23:12:43 +000029281 done
cristy3ed852e2009-09-05 21:47:34 +000029282IFS=$as_save_IFS
29283
29284 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29285 ;;
29286esac
29287fi
29288BrowseDelegate=$ac_cv_path_BrowseDelegate
29289if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029291$as_echo "$BrowseDelegate" >&6; }
29292else
cristy8b350f62009-11-15 23:12:43 +000029293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029294$as_echo "no" >&6; }
29295fi
29296
29297
29298# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29299set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029301$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029302if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029303 $as_echo_n "(cached) " >&6
29304else
29305 case $CGMDecodeDelegate in
29306 [\\/]* | ?:[\\/]*)
29307 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29308 ;;
29309 *)
29310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29311for as_dir in $PATH
29312do
29313 IFS=$as_save_IFS
29314 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29317 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029319 break 2
29320 fi
29321done
cristy8b350f62009-11-15 23:12:43 +000029322 done
cristy3ed852e2009-09-05 21:47:34 +000029323IFS=$as_save_IFS
29324
29325 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29326 ;;
29327esac
29328fi
29329CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29330if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332$as_echo "$CGMDecodeDelegate" >&6; }
29333else
cristy8b350f62009-11-15 23:12:43 +000029334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029335$as_echo "no" >&6; }
29336fi
29337
29338
29339# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29340set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029343if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 $as_echo_n "(cached) " >&6
29345else
29346 case $CatDelegate in
29347 [\\/]* | ?:[\\/]*)
29348 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29349 ;;
29350 *)
29351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29352for as_dir in $PATH
29353do
29354 IFS=$as_save_IFS
29355 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029356 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29358 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360 break 2
29361 fi
29362done
cristy8b350f62009-11-15 23:12:43 +000029363 done
cristy3ed852e2009-09-05 21:47:34 +000029364IFS=$as_save_IFS
29365
29366 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29367 ;;
29368esac
29369fi
29370CatDelegate=$ac_cv_path_CatDelegate
29371if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029373$as_echo "$CatDelegate" >&6; }
29374else
cristy8b350f62009-11-15 23:12:43 +000029375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029376$as_echo "no" >&6; }
29377fi
29378
29379
29380# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29381set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029383$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029384if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 $as_echo_n "(cached) " >&6
29386else
29387 case $DNGDecodeDelegate in
29388 [\\/]* | ?:[\\/]*)
29389 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29390 ;;
29391 *)
29392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29393for as_dir in $PATH
29394do
29395 IFS=$as_save_IFS
29396 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029397 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29399 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029401 break 2
29402 fi
29403done
cristy8b350f62009-11-15 23:12:43 +000029404 done
cristy3ed852e2009-09-05 21:47:34 +000029405IFS=$as_save_IFS
29406
29407 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29408 ;;
29409esac
29410fi
29411DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29412if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029414$as_echo "$DNGDecodeDelegate" >&6; }
29415else
cristy8b350f62009-11-15 23:12:43 +000029416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029417$as_echo "no" >&6; }
29418fi
29419
29420
29421# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29422set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029424$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029425if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029426 $as_echo_n "(cached) " >&6
29427else
29428 case $GVCDecodeDelegate in
29429 [\\/]* | ?:[\\/]*)
29430 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29431 ;;
29432 *)
29433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29434for as_dir in $PATH
29435do
29436 IFS=$as_save_IFS
29437 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29440 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029442 break 2
29443 fi
29444done
cristy8b350f62009-11-15 23:12:43 +000029445 done
cristy3ed852e2009-09-05 21:47:34 +000029446IFS=$as_save_IFS
29447
29448 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29449 ;;
29450esac
29451fi
29452GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29453if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029455$as_echo "$GVCDecodeDelegate" >&6; }
29456else
cristy8b350f62009-11-15 23:12:43 +000029457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029458$as_echo "no" >&6; }
29459fi
29460
29461
29462# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29463set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029466if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 $as_echo_n "(cached) " >&6
29468else
29469 case $DVIDecodeDelegate in
29470 [\\/]* | ?:[\\/]*)
29471 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29472 ;;
29473 *)
29474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29475for as_dir in $PATH
29476do
29477 IFS=$as_save_IFS
29478 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029479 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29481 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029483 break 2
29484 fi
29485done
cristy8b350f62009-11-15 23:12:43 +000029486 done
cristy3ed852e2009-09-05 21:47:34 +000029487IFS=$as_save_IFS
29488
29489 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29490 ;;
29491esac
29492fi
29493DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29494if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029496$as_echo "$DVIDecodeDelegate" >&6; }
29497else
cristy8b350f62009-11-15 23:12:43 +000029498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029499$as_echo "no" >&6; }
29500fi
29501
29502
29503# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29504set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029506$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029507if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029508 $as_echo_n "(cached) " >&6
29509else
29510 case $EchoDelegate in
29511 [\\/]* | ?:[\\/]*)
29512 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29513 ;;
29514 *)
29515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29516for as_dir in $PATH
29517do
29518 IFS=$as_save_IFS
29519 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029520 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29522 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029524 break 2
29525 fi
29526done
cristy8b350f62009-11-15 23:12:43 +000029527 done
cristy3ed852e2009-09-05 21:47:34 +000029528IFS=$as_save_IFS
29529
29530 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29531 ;;
29532esac
29533fi
29534EchoDelegate=$ac_cv_path_EchoDelegate
29535if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029537$as_echo "$EchoDelegate" >&6; }
29538else
cristy8b350f62009-11-15 23:12:43 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029540$as_echo "no" >&6; }
29541fi
29542
29543
29544# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29545set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029547$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029548if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029549 $as_echo_n "(cached) " >&6
29550else
29551 case $EditorDelegate in
29552 [\\/]* | ?:[\\/]*)
29553 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29554 ;;
29555 *)
29556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29557for as_dir in $PATH
29558do
29559 IFS=$as_save_IFS
29560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29563 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029565 break 2
29566 fi
29567done
cristy8b350f62009-11-15 23:12:43 +000029568 done
cristy3ed852e2009-09-05 21:47:34 +000029569IFS=$as_save_IFS
29570
29571 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29572 ;;
29573esac
29574fi
29575EditorDelegate=$ac_cv_path_EditorDelegate
29576if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo "$EditorDelegate" >&6; }
29579else
cristy8b350f62009-11-15 23:12:43 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo "no" >&6; }
29582fi
29583
29584
29585# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29586set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029589if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029590 $as_echo_n "(cached) " >&6
29591else
29592 case $FIGDecodeDelegate in
29593 [\\/]* | ?:[\\/]*)
29594 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29595 ;;
29596 *)
29597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29598for as_dir in $PATH
29599do
29600 IFS=$as_save_IFS
29601 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29604 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029606 break 2
29607 fi
29608done
cristy8b350f62009-11-15 23:12:43 +000029609 done
cristy3ed852e2009-09-05 21:47:34 +000029610IFS=$as_save_IFS
29611
29612 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29613 ;;
29614esac
29615fi
29616FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29617if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029619$as_echo "$FIGDecodeDelegate" >&6; }
29620else
cristy8b350f62009-11-15 23:12:43 +000029621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029622$as_echo "no" >&6; }
29623fi
29624
29625
29626# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29627set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029630if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 $as_echo_n "(cached) " >&6
29632else
29633 case $ConvertDelegate in
29634 [\\/]* | ?:[\\/]*)
29635 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29636 ;;
29637 *)
29638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29639for as_dir in $PATH
29640do
29641 IFS=$as_save_IFS
29642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29645 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029647 break 2
29648 fi
29649done
cristy8b350f62009-11-15 23:12:43 +000029650 done
cristy3ed852e2009-09-05 21:47:34 +000029651IFS=$as_save_IFS
29652
29653 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29654 ;;
29655esac
29656fi
29657ConvertDelegate=$ac_cv_path_ConvertDelegate
29658if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029660$as_echo "$ConvertDelegate" >&6; }
29661else
cristy8b350f62009-11-15 23:12:43 +000029662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "no" >&6; }
29664fi
29665
29666
29667# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29668set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029670$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029671if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029672 $as_echo_n "(cached) " >&6
29673else
29674 case $DisplayDelegate in
29675 [\\/]* | ?:[\\/]*)
29676 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29677 ;;
29678 *)
29679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29680for as_dir in $PATH
29681do
29682 IFS=$as_save_IFS
29683 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029684 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29686 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688 break 2
29689 fi
29690done
cristy8b350f62009-11-15 23:12:43 +000029691 done
cristy3ed852e2009-09-05 21:47:34 +000029692IFS=$as_save_IFS
29693
29694 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29695 ;;
29696esac
29697fi
29698DisplayDelegate=$ac_cv_path_DisplayDelegate
29699if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029701$as_echo "$DisplayDelegate" >&6; }
29702else
cristy8b350f62009-11-15 23:12:43 +000029703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029704$as_echo "no" >&6; }
29705fi
29706
29707
29708# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29709set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029711$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029712if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029713 $as_echo_n "(cached) " >&6
29714else
29715 case $MogrifyDelegate in
29716 [\\/]* | ?:[\\/]*)
29717 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29718 ;;
29719 *)
29720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29721for as_dir in $PATH
29722do
29723 IFS=$as_save_IFS
29724 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029725 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29727 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029729 break 2
29730 fi
29731done
cristy8b350f62009-11-15 23:12:43 +000029732 done
cristy3ed852e2009-09-05 21:47:34 +000029733IFS=$as_save_IFS
29734
29735 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29736 ;;
29737esac
29738fi
29739MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29740if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029742$as_echo "$MogrifyDelegate" >&6; }
29743else
cristy8b350f62009-11-15 23:12:43 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029745$as_echo "no" >&6; }
29746fi
29747
29748
29749# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29750set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029752$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029753if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 $as_echo_n "(cached) " >&6
29755else
29756 case $GnuplotDecodeDelegate in
29757 [\\/]* | ?:[\\/]*)
29758 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29759 ;;
29760 *)
29761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29762for as_dir in $PATH
29763do
29764 IFS=$as_save_IFS
29765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029766 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29768 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770 break 2
29771 fi
29772done
cristy8b350f62009-11-15 23:12:43 +000029773 done
cristy3ed852e2009-09-05 21:47:34 +000029774IFS=$as_save_IFS
29775
29776 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29777 ;;
29778esac
29779fi
29780GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29781if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029783$as_echo "$GnuplotDecodeDelegate" >&6; }
29784else
cristy8b350f62009-11-15 23:12:43 +000029785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029786$as_echo "no" >&6; }
29787fi
29788
29789
29790# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29791set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029794if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029795 $as_echo_n "(cached) " >&6
29796else
29797 case $HDRDecodeDelegate in
29798 [\\/]* | ?:[\\/]*)
29799 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29800 ;;
29801 *)
29802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29803for as_dir in $PATH
29804do
29805 IFS=$as_save_IFS
29806 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29809 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029811 break 2
29812 fi
29813done
cristy8b350f62009-11-15 23:12:43 +000029814 done
cristy3ed852e2009-09-05 21:47:34 +000029815IFS=$as_save_IFS
29816
29817 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29818 ;;
29819esac
29820fi
29821HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29822if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo "$HDRDecodeDelegate" >&6; }
29825else
cristy8b350f62009-11-15 23:12:43 +000029826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029827$as_echo "no" >&6; }
29828fi
29829
29830
29831# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29832set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029834$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029835if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029836 $as_echo_n "(cached) " >&6
29837else
29838 case $HPGLDecodeDelegate in
29839 [\\/]* | ?:[\\/]*)
29840 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29841 ;;
29842 *)
29843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29844for as_dir in $PATH
29845do
29846 IFS=$as_save_IFS
29847 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029848 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29850 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029852 break 2
29853 fi
29854done
cristy8b350f62009-11-15 23:12:43 +000029855 done
cristy3ed852e2009-09-05 21:47:34 +000029856IFS=$as_save_IFS
29857
29858 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29859 ;;
29860esac
29861fi
29862HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29863if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029865$as_echo "$HPGLDecodeDelegate" >&6; }
29866else
cristy8b350f62009-11-15 23:12:43 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo "no" >&6; }
29869fi
29870
29871
29872# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29873set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029875$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029876if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 $as_echo_n "(cached) " >&6
29878else
29879 case $HTMLDecodeDelegate in
29880 [\\/]* | ?:[\\/]*)
29881 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29882 ;;
29883 *)
29884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29885for as_dir in $PATH
29886do
29887 IFS=$as_save_IFS
29888 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029889 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29891 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893 break 2
29894 fi
29895done
cristy8b350f62009-11-15 23:12:43 +000029896 done
cristy3ed852e2009-09-05 21:47:34 +000029897IFS=$as_save_IFS
29898
29899 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29900 ;;
29901esac
29902fi
29903HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29904if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029906$as_echo "$HTMLDecodeDelegate" >&6; }
29907else
cristy8b350f62009-11-15 23:12:43 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029909$as_echo "no" >&6; }
29910fi
29911
29912
29913# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29914set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029916$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029917if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029918 $as_echo_n "(cached) " >&6
29919else
29920 case $ILBMDecodeDelegate in
29921 [\\/]* | ?:[\\/]*)
29922 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29923 ;;
29924 *)
29925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29926for as_dir in $PATH
29927do
29928 IFS=$as_save_IFS
29929 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029930 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29932 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029934 break 2
29935 fi
29936done
cristy8b350f62009-11-15 23:12:43 +000029937 done
cristy3ed852e2009-09-05 21:47:34 +000029938IFS=$as_save_IFS
29939
29940 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29941 ;;
29942esac
29943fi
29944ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29945if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029947$as_echo "$ILBMDecodeDelegate" >&6; }
29948else
cristy8b350f62009-11-15 23:12:43 +000029949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029950$as_echo "no" >&6; }
29951fi
29952
29953
29954# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29955set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029957$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029958if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029959 $as_echo_n "(cached) " >&6
29960else
29961 case $ILBMEncodeDelegate in
29962 [\\/]* | ?:[\\/]*)
29963 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29964 ;;
29965 *)
29966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29967for as_dir in $PATH
29968do
29969 IFS=$as_save_IFS
29970 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029971 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29973 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029975 break 2
29976 fi
29977done
cristy8b350f62009-11-15 23:12:43 +000029978 done
cristy3ed852e2009-09-05 21:47:34 +000029979IFS=$as_save_IFS
29980
29981 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29982 ;;
29983esac
29984fi
29985ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29986if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029988$as_echo "$ILBMEncodeDelegate" >&6; }
29989else
cristy8b350f62009-11-15 23:12:43 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029991$as_echo "no" >&6; }
29992fi
29993
29994
29995# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29996set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029998$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029999if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030000 $as_echo_n "(cached) " >&6
30001else
30002 case $LPDelegate in
30003 [\\/]* | ?:[\\/]*)
30004 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30005 ;;
30006 *)
30007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30008for as_dir in $PATH
30009do
30010 IFS=$as_save_IFS
30011 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30014 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016 break 2
30017 fi
30018done
cristy8b350f62009-11-15 23:12:43 +000030019 done
cristy3ed852e2009-09-05 21:47:34 +000030020IFS=$as_save_IFS
30021
30022 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30023 ;;
30024esac
30025fi
30026LPDelegate=$ac_cv_path_LPDelegate
30027if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029$as_echo "$LPDelegate" >&6; }
30030else
cristy8b350f62009-11-15 23:12:43 +000030031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030032$as_echo "no" >&6; }
30033fi
30034
30035
30036# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30037set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030039$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030040if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030041 $as_echo_n "(cached) " >&6
30042else
30043 case $LPRDelegate in
30044 [\\/]* | ?:[\\/]*)
30045 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30046 ;;
30047 *)
30048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30049for as_dir in $PATH
30050do
30051 IFS=$as_save_IFS
30052 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030053 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30055 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057 break 2
30058 fi
30059done
cristy8b350f62009-11-15 23:12:43 +000030060 done
cristy3ed852e2009-09-05 21:47:34 +000030061IFS=$as_save_IFS
30062
30063 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30064 ;;
30065esac
30066fi
30067LPRDelegate=$ac_cv_path_LPRDelegate
30068if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030070$as_echo "$LPRDelegate" >&6; }
30071else
cristy8b350f62009-11-15 23:12:43 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo "no" >&6; }
30074fi
30075
30076
30077# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30078set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030080$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030081if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030082 $as_echo_n "(cached) " >&6
30083else
30084 case $LZWDecodeDelegate in
30085 [\\/]* | ?:[\\/]*)
30086 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30087 ;;
30088 *)
30089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30090for as_dir in $PATH
30091do
30092 IFS=$as_save_IFS
30093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30096 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030098 break 2
30099 fi
30100done
cristy8b350f62009-11-15 23:12:43 +000030101 done
cristy3ed852e2009-09-05 21:47:34 +000030102IFS=$as_save_IFS
30103
30104 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30105 ;;
30106esac
30107fi
30108LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30109if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030111$as_echo "$LZWDecodeDelegate" >&6; }
30112else
cristy8b350f62009-11-15 23:12:43 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030114$as_echo "no" >&6; }
30115fi
30116
30117
30118# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30119set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030121$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030122if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030123 $as_echo_n "(cached) " >&6
30124else
30125 case $LZWEncodeDelegate in
30126 [\\/]* | ?:[\\/]*)
30127 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30128 ;;
30129 *)
30130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30131for as_dir in $PATH
30132do
30133 IFS=$as_save_IFS
30134 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030135 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30137 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030139 break 2
30140 fi
30141done
cristy8b350f62009-11-15 23:12:43 +000030142 done
cristy3ed852e2009-09-05 21:47:34 +000030143IFS=$as_save_IFS
30144
30145 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30146 ;;
30147esac
30148fi
30149LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30150if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo "$LZWEncodeDelegate" >&6; }
30153else
cristy8b350f62009-11-15 23:12:43 +000030154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030155$as_echo "no" >&6; }
30156fi
30157
30158
30159# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30160set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030163if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030164 $as_echo_n "(cached) " >&6
30165else
30166 case $LaunchDelegate in
30167 [\\/]* | ?:[\\/]*)
30168 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30169 ;;
30170 *)
30171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30172for as_dir in $PATH
30173do
30174 IFS=$as_save_IFS
30175 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030176 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30178 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030180 break 2
30181 fi
30182done
cristy8b350f62009-11-15 23:12:43 +000030183 done
cristy3ed852e2009-09-05 21:47:34 +000030184IFS=$as_save_IFS
30185
30186 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30187 ;;
30188esac
30189fi
30190LaunchDelegate=$ac_cv_path_LaunchDelegate
30191if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030193$as_echo "$LaunchDelegate" >&6; }
30194else
cristy8b350f62009-11-15 23:12:43 +000030195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030196$as_echo "no" >&6; }
30197fi
30198
30199
30200# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30201set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030203$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030204if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030205 $as_echo_n "(cached) " >&6
30206else
30207 case $MANDelegate in
30208 [\\/]* | ?:[\\/]*)
30209 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30210 ;;
30211 *)
30212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30213for as_dir in $PATH
30214do
30215 IFS=$as_save_IFS
30216 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030217 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30219 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030221 break 2
30222 fi
30223done
cristy8b350f62009-11-15 23:12:43 +000030224 done
cristy3ed852e2009-09-05 21:47:34 +000030225IFS=$as_save_IFS
30226
30227 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30228 ;;
30229esac
30230fi
30231MANDelegate=$ac_cv_path_MANDelegate
30232if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030234$as_echo "$MANDelegate" >&6; }
30235else
cristy8b350f62009-11-15 23:12:43 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030237$as_echo "no" >&6; }
30238fi
30239
30240
30241# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30242set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030244$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030245if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030246 $as_echo_n "(cached) " >&6
30247else
30248 case $MPEGDecodeDelegate in
30249 [\\/]* | ?:[\\/]*)
30250 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30251 ;;
30252 *)
30253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30254for as_dir in $PATH
30255do
30256 IFS=$as_save_IFS
30257 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30260 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030262 break 2
30263 fi
30264done
cristy8b350f62009-11-15 23:12:43 +000030265 done
cristy3ed852e2009-09-05 21:47:34 +000030266IFS=$as_save_IFS
30267
30268 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30269 ;;
30270esac
30271fi
30272MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30273if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030275$as_echo "$MPEGDecodeDelegate" >&6; }
30276else
cristy8b350f62009-11-15 23:12:43 +000030277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030278$as_echo "no" >&6; }
30279fi
30280
30281
30282# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30283set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030286if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030287 $as_echo_n "(cached) " >&6
30288else
30289 case $MPEGEncodeDelegate in
30290 [\\/]* | ?:[\\/]*)
30291 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30292 ;;
30293 *)
30294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30295for as_dir in $PATH
30296do
30297 IFS=$as_save_IFS
30298 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30301 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030303 break 2
30304 fi
30305done
cristy8b350f62009-11-15 23:12:43 +000030306 done
cristy3ed852e2009-09-05 21:47:34 +000030307IFS=$as_save_IFS
30308
30309 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30310 ;;
30311esac
30312fi
30313MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30314if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030316$as_echo "$MPEGEncodeDelegate" >&6; }
30317else
cristy8b350f62009-11-15 23:12:43 +000030318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030319$as_echo "no" >&6; }
30320fi
30321
30322
30323# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30324set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030326$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030327if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030328 $as_echo_n "(cached) " >&6
30329else
30330 case $MVDelegate in
30331 [\\/]* | ?:[\\/]*)
30332 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30333 ;;
30334 *)
30335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30336for as_dir in $PATH
30337do
30338 IFS=$as_save_IFS
30339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30342 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030344 break 2
30345 fi
30346done
cristy8b350f62009-11-15 23:12:43 +000030347 done
cristy3ed852e2009-09-05 21:47:34 +000030348IFS=$as_save_IFS
30349
30350 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30351 ;;
30352esac
30353fi
30354MVDelegate=$ac_cv_path_MVDelegate
30355if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030357$as_echo "$MVDelegate" >&6; }
30358else
cristy8b350f62009-11-15 23:12:43 +000030359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030360$as_echo "no" >&6; }
30361fi
30362
30363
30364# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30365set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030367$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030368if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030369 $as_echo_n "(cached) " >&6
30370else
30371 case $PCLDelegate in
30372 [\\/]* | ?:[\\/]*)
30373 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30374 ;;
30375 *)
30376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30377for as_dir in $PATH
30378do
30379 IFS=$as_save_IFS
30380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30383 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030385 break 2
30386 fi
30387done
cristy8b350f62009-11-15 23:12:43 +000030388 done
cristy3ed852e2009-09-05 21:47:34 +000030389IFS=$as_save_IFS
30390
30391 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30392 ;;
30393esac
30394fi
30395PCLDelegate=$ac_cv_path_PCLDelegate
30396if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030398$as_echo "$PCLDelegate" >&6; }
30399else
cristy8b350f62009-11-15 23:12:43 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030401$as_echo "no" >&6; }
30402fi
30403
30404
30405# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30406set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030408$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030409if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030410 $as_echo_n "(cached) " >&6
30411else
30412 case $PGPDecodeDelegate in
30413 [\\/]* | ?:[\\/]*)
30414 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30415 ;;
30416 *)
30417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30418for as_dir in $PATH
30419do
30420 IFS=$as_save_IFS
30421 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30424 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030426 break 2
30427 fi
30428done
cristy8b350f62009-11-15 23:12:43 +000030429 done
cristy3ed852e2009-09-05 21:47:34 +000030430IFS=$as_save_IFS
30431
30432 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30433 ;;
30434esac
30435fi
30436PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30437if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030439$as_echo "$PGPDecodeDelegate" >&6; }
30440else
cristy8b350f62009-11-15 23:12:43 +000030441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030442$as_echo "no" >&6; }
30443fi
30444
30445
30446# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30447set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030449$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030450if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030451 $as_echo_n "(cached) " >&6
30452else
30453 case $POVDelegate in
30454 [\\/]* | ?:[\\/]*)
30455 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30456 ;;
30457 *)
30458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30459for as_dir in $PATH
30460do
30461 IFS=$as_save_IFS
30462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30465 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030467 break 2
30468 fi
30469done
cristy8b350f62009-11-15 23:12:43 +000030470 done
cristy3ed852e2009-09-05 21:47:34 +000030471IFS=$as_save_IFS
30472
30473 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30474 ;;
30475esac
30476fi
30477POVDelegate=$ac_cv_path_POVDelegate
30478if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030480$as_echo "$POVDelegate" >&6; }
30481else
cristy8b350f62009-11-15 23:12:43 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483$as_echo "no" >&6; }
30484fi
30485
30486
30487for ac_prog in gsx gsc "$PSDelegateDefault"
30488do
30489 # Extract the first word of "$ac_prog", so it can be a program name with args.
30490set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030492$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030493if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030494 $as_echo_n "(cached) " >&6
30495else
30496 case $PSDelegate in
30497 [\\/]* | ?:[\\/]*)
30498 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30499 ;;
30500 *)
30501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30502for as_dir in $PATH
30503do
30504 IFS=$as_save_IFS
30505 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30508 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030510 break 2
30511 fi
30512done
cristy8b350f62009-11-15 23:12:43 +000030513 done
cristy3ed852e2009-09-05 21:47:34 +000030514IFS=$as_save_IFS
30515
30516 ;;
30517esac
30518fi
30519PSDelegate=$ac_cv_path_PSDelegate
30520if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030522$as_echo "$PSDelegate" >&6; }
30523else
cristy8b350f62009-11-15 23:12:43 +000030524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030525$as_echo "no" >&6; }
30526fi
30527
30528
30529 test -n "$PSDelegate" && break
30530done
30531test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30532
30533# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30534set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030536$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030537if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 $as_echo_n "(cached) " >&6
30539else
30540 case $RLEEncodeDelegate in
30541 [\\/]* | ?:[\\/]*)
30542 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30543 ;;
30544 *)
30545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30546for as_dir in $PATH
30547do
30548 IFS=$as_save_IFS
30549 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30552 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030554 break 2
30555 fi
30556done
cristy8b350f62009-11-15 23:12:43 +000030557 done
cristy3ed852e2009-09-05 21:47:34 +000030558IFS=$as_save_IFS
30559
30560 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30561 ;;
30562esac
30563fi
30564RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30565if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030567$as_echo "$RLEEncodeDelegate" >&6; }
30568else
cristy8b350f62009-11-15 23:12:43 +000030569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030570$as_echo "no" >&6; }
30571fi
30572
30573
30574# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30575set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030577$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030578if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030579 $as_echo_n "(cached) " >&6
30580else
30581 case $RMDelegate in
30582 [\\/]* | ?:[\\/]*)
30583 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30584 ;;
30585 *)
30586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30587for as_dir in $PATH
30588do
30589 IFS=$as_save_IFS
30590 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030591 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30593 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030595 break 2
30596 fi
30597done
cristy8b350f62009-11-15 23:12:43 +000030598 done
cristy3ed852e2009-09-05 21:47:34 +000030599IFS=$as_save_IFS
30600
30601 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30602 ;;
30603esac
30604fi
30605RMDelegate=$ac_cv_path_RMDelegate
30606if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030608$as_echo "$RMDelegate" >&6; }
30609else
cristy8b350f62009-11-15 23:12:43 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030611$as_echo "no" >&6; }
30612fi
30613
30614
cristy4689cf02010-02-17 21:15:45 +000030615# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30616set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30618$as_echo_n "checking for $ac_word... " >&6; }
30619if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30620 $as_echo_n "(cached) " >&6
30621else
30622 case $RSVGDecodeDelegate in
30623 [\\/]* | ?:[\\/]*)
30624 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30625 ;;
30626 *)
30627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30628for as_dir in $PATH
30629do
30630 IFS=$as_save_IFS
30631 test -z "$as_dir" && as_dir=.
30632 for ac_exec_ext in '' $ac_executable_extensions; do
30633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30634 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30636 break 2
30637 fi
30638done
30639 done
30640IFS=$as_save_IFS
30641
30642 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30643 ;;
30644esac
30645fi
30646RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30647if test -n "$RSVGDecodeDelegate"; then
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30649$as_echo "$RSVGDecodeDelegate" >&6; }
30650else
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652$as_echo "no" >&6; }
30653fi
30654
30655
cristy3ed852e2009-09-05 21:47:34 +000030656# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30657set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030659$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030660if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030661 $as_echo_n "(cached) " >&6
30662else
30663 case $SCANDecodeDelegate in
30664 [\\/]* | ?:[\\/]*)
30665 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30666 ;;
30667 *)
30668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669for as_dir in $PATH
30670do
30671 IFS=$as_save_IFS
30672 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030673 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030677 break 2
30678 fi
30679done
cristy8b350f62009-11-15 23:12:43 +000030680 done
cristy3ed852e2009-09-05 21:47:34 +000030681IFS=$as_save_IFS
30682
30683 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30684 ;;
30685esac
30686fi
30687SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30688if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030690$as_echo "$SCANDecodeDelegate" >&6; }
30691else
cristy8b350f62009-11-15 23:12:43 +000030692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030693$as_echo "no" >&6; }
30694fi
30695
30696
30697# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30698set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030700$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030701if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030702 $as_echo_n "(cached) " >&6
30703else
30704 case $TXTDelegate in
30705 [\\/]* | ?:[\\/]*)
30706 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30707 ;;
30708 *)
30709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30710for as_dir in $PATH
30711do
30712 IFS=$as_save_IFS
30713 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030714 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30716 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030718 break 2
30719 fi
30720done
cristy8b350f62009-11-15 23:12:43 +000030721 done
cristy3ed852e2009-09-05 21:47:34 +000030722IFS=$as_save_IFS
30723
30724 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30725 ;;
30726esac
30727fi
30728TXTDelegate=$ac_cv_path_TXTDelegate
30729if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030731$as_echo "$TXTDelegate" >&6; }
30732else
cristy8b350f62009-11-15 23:12:43 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030734$as_echo "no" >&6; }
30735fi
30736
30737
30738# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30739set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030741$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030742if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030743 $as_echo_n "(cached) " >&6
30744else
30745 case $WMFDecodeDelegate in
30746 [\\/]* | ?:[\\/]*)
30747 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30748 ;;
30749 *)
30750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30751for as_dir in $PATH
30752do
30753 IFS=$as_save_IFS
30754 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030755 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30757 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030759 break 2
30760 fi
30761done
cristy8b350f62009-11-15 23:12:43 +000030762 done
cristy3ed852e2009-09-05 21:47:34 +000030763IFS=$as_save_IFS
30764
30765 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30766 ;;
30767esac
30768fi
30769WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30770if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030772$as_echo "$WMFDecodeDelegate" >&6; }
30773else
cristy8b350f62009-11-15 23:12:43 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030775$as_echo "no" >&6; }
30776fi
30777
30778
30779# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30780set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030782$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030783if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030784 $as_echo_n "(cached) " >&6
30785else
30786 case $WWWDecodeDelegate in
30787 [\\/]* | ?:[\\/]*)
30788 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30789 ;;
30790 *)
30791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30792for as_dir in $PATH
30793do
30794 IFS=$as_save_IFS
30795 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30798 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030800 break 2
30801 fi
30802done
cristy8b350f62009-11-15 23:12:43 +000030803 done
cristy3ed852e2009-09-05 21:47:34 +000030804IFS=$as_save_IFS
30805
30806 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30807 ;;
30808esac
30809fi
30810WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30811if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030813$as_echo "$WWWDecodeDelegate" >&6; }
30814else
cristy8b350f62009-11-15 23:12:43 +000030815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030816$as_echo "no" >&6; }
30817fi
30818
30819
30820# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30821set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030823$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030824if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030825 $as_echo_n "(cached) " >&6
30826else
30827 case $XPSDelegate in
30828 [\\/]* | ?:[\\/]*)
30829 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30830 ;;
30831 *)
30832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30833for as_dir in $PATH
30834do
30835 IFS=$as_save_IFS
30836 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030837 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30839 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030841 break 2
30842 fi
30843done
cristy8b350f62009-11-15 23:12:43 +000030844 done
cristy3ed852e2009-09-05 21:47:34 +000030845IFS=$as_save_IFS
30846
30847 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30848 ;;
30849esac
30850fi
30851XPSDelegate=$ac_cv_path_XPSDelegate
30852if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030854$as_echo "$XPSDelegate" >&6; }
30855else
cristy8b350f62009-11-15 23:12:43 +000030856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030857$as_echo "no" >&6; }
30858fi
30859
30860
30861# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30862set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030864$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030865if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030866 $as_echo_n "(cached) " >&6
30867else
30868 case $ZipDelegate in
30869 [\\/]* | ?:[\\/]*)
30870 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30871 ;;
30872 *)
30873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30874for as_dir in $PATH
30875do
30876 IFS=$as_save_IFS
30877 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30880 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030882 break 2
30883 fi
30884done
cristy8b350f62009-11-15 23:12:43 +000030885 done
cristy3ed852e2009-09-05 21:47:34 +000030886IFS=$as_save_IFS
30887
30888 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30889 ;;
30890esac
30891fi
30892ZipDelegate=$ac_cv_path_ZipDelegate
30893if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030895$as_echo "$ZipDelegate" >&6; }
30896else
cristy8b350f62009-11-15 23:12:43 +000030897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030898$as_echo "no" >&6; }
30899fi
30900
30901
30902
30903# Prefer lpr to lp; lp needs options tacked on.
30904if test "$LPRDelegate" != no; then
30905 PrintDelegate="$LPRDelegate"
30906else
30907 PrintDelegate="$LPDelegate -c -s"
30908fi
30909
30910
30911# Installed ImageMagick utiltity paths
30912ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30913DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30914MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30915
30916# Set delegate booleans
30917have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30918have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30919have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30920have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30921have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30922have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30923have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30924have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30925have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30926have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30927have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30928
30929#
30930# Test for font directories
30931#
30932type_include_files=''
30933
cristy430a7312010-01-21 20:44:04 +000030934# Dejavu fonts.
30935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30936$as_echo_n "checking for Dejavu fonts directory... " >&6; }
30937dejavu_font_dir=''
30938if test "${with_dejavu_font_dir}" != 'default'; then
30939 dejavu_font_dir="${with_dejavu_font_dir}/"
30940else
30941 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30942 if test -f "${font_dir}DejaVuSerif.ttf"; then
30943 dejavu_font_dir="${font_dir}"
30944 break 1
30945 fi
30946 done
30947fi
30948if test "${dejavu_font_dir}x" != 'x'; then
30949 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30951$as_echo "$dejavu_font_dir" >&6; }
30952else
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30954$as_echo "not found!" >&6; };
30955fi
30956
30957
cristy3ed852e2009-09-05 21:47:34 +000030958# Windows
30959windows_font_dir=''
30960if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30961 windows_font_dir="${with_windows_font_dir}/"
30962fi
cristy430a7312010-01-21 20:44:04 +000030963if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030964 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30965 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30966 fi
30967 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30968 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30969 fi
30970 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30971 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30972 fi
30973fi
cristy430a7312010-01-21 20:44:04 +000030974if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000030975 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30976fi
30977
30978
30979# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000030980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000030981$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30982ghostscript_font_dir=''
30983if test "${with_gs_font_dir}" != 'default'; then
30984 ghostscript_font_dir="${with_gs_font_dir}/"
30985else
30986 if test "${native_win32_build}" = 'yes'; then
30987 # Native Windows Build
30988 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30989 if test -f "${font_dir}a010013l.pfb"; then
30990 ghostscript_font_dir="$font_dir"
30991 break 1
30992 fi
30993 done
30994 if test "${PSDelegate}" != 'gswin32c'; then
30995 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30996 fi
30997 else
30998 # Linux / Mac OS X / Unix Build
30999 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
31000 if test -f "${font_dir}a010013l.pfb"; then
31001 ghostscript_font_dir="${font_dir}"
31002 break 1
31003 fi
31004 done
31005 if test "${ghostscript_font_dir}x" = 'x'; then
31006 if test "$PSDelegate" != 'gs'; then
31007 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31008 fi
31009 fi
31010 fi
31011fi
31012if test "${ghostscript_font_dir}x" != 'x'; then
31013 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031015$as_echo "$ghostscript_font_dir" >&6; }
31016else
cristy8b350f62009-11-15 23:12:43 +000031017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031018$as_echo "not found!" >&6; };
31019fi
31020
31021case "${build_os}" in
31022 mingw* )
31023 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31024 ;;
31025esac
31026
31027
31028
31029#
31030# Handle case where user doesn't want frozen paths
31031#
31032if test "$with_frozenpaths" != 'yes'; then
31033 # Re-set delegate definitions to default (no paths)
31034 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31035 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31036 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31037 BZIPDelegate="$BZIPDelegateDefault"
31038 BrowseDelegate="$BrowseDelegateDefault"
31039 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31040 CatDelegate="$CatDelegateDefault"
31041 ConvertDelegate="$ConvertDelegateDefault"
31042 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31043 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31044 EchoDelegate="$EchoDelegateDefault"
31045 EditorDelegate="$EditorDelegateDefault"
31046 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31047 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31048 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31049 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31050 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31051 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31052 LPDelegate="$LPDelegateDefault"
31053 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31054 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31055 LaunchDelegate="$LaunchDelegateDefault"
31056 MANDelegate="$MANDelegateDefault"
31057 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31058 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31059 MVDelegate="$MVDelegateDefault"
31060 MogrifyDelegate="$MogrifyDelegateDefault"
31061 PCLDelegate="$PCLDelegateDefault"
31062 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31063 POVDelegate="$POVDelegateDefault"
31064 PSDelegate="$PSDelegateDefault"
31065 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31066 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31067 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031068 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031069 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31070 ShowImageDelegate="$ShowImageDelegateDefault"
31071 TXTDelegate="$TXTDelegateDefault"
31072 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31073 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31074 XPSDelegate="$XPSDelegateDefault"
31075 ZipDelegate="$ZipDelegateDefault"
31076fi
31077
31078# Delegate substitutions
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121#
31122# RPM support.
31123#
31124RPM=''
31125for ac_prog in gnutar gtar tar
31126do
31127 # Extract the first word of "$ac_prog", so it can be a program name with args.
31128set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031130$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031131if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031132 $as_echo_n "(cached) " >&6
31133else
31134 if test -n "$TAR"; then
31135 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31136else
31137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31138for as_dir in $PATH
31139do
31140 IFS=$as_save_IFS
31141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31144 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031146 break 2
31147 fi
31148done
cristy8b350f62009-11-15 23:12:43 +000031149 done
cristy3ed852e2009-09-05 21:47:34 +000031150IFS=$as_save_IFS
31151
31152fi
31153fi
31154TAR=$ac_cv_prog_TAR
31155if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031157$as_echo "$TAR" >&6; }
31158else
cristy8b350f62009-11-15 23:12:43 +000031159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031160$as_echo "no" >&6; }
31161fi
31162
31163
31164 test -n "$TAR" && break
31165done
31166
31167for ac_prog in perl
31168do
31169 # Extract the first word of "$ac_prog", so it can be a program name with args.
31170set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031172$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031173if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031174 $as_echo_n "(cached) " >&6
31175else
31176 if test -n "$PERL"; then
31177 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31178else
31179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31180for as_dir in $PATH
31181do
31182 IFS=$as_save_IFS
31183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31186 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031188 break 2
31189 fi
31190done
cristy8b350f62009-11-15 23:12:43 +000031191 done
cristy3ed852e2009-09-05 21:47:34 +000031192IFS=$as_save_IFS
31193
31194fi
31195fi
31196PERL=$ac_cv_prog_PERL
31197if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031199$as_echo "$PERL" >&6; }
31200else
cristy8b350f62009-11-15 23:12:43 +000031201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031202$as_echo "no" >&6; }
31203fi
31204
31205
31206 test -n "$PERL" && break
31207done
31208
31209for ac_prog in rpmbuild rpm
31210do
31211 # Extract the first word of "$ac_prog", so it can be a program name with args.
31212set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031214$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031215if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031216 $as_echo_n "(cached) " >&6
31217else
31218 if test -n "$RPM"; then
31219 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31220else
31221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31222for as_dir in $PATH
31223do
31224 IFS=$as_save_IFS
31225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31228 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031230 break 2
31231 fi
31232done
cristy8b350f62009-11-15 23:12:43 +000031233 done
cristy3ed852e2009-09-05 21:47:34 +000031234IFS=$as_save_IFS
31235
31236fi
31237fi
31238RPM=$ac_cv_prog_RPM
31239if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031241$as_echo "$RPM" >&6; }
31242else
cristy8b350f62009-11-15 23:12:43 +000031243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031244$as_echo "no" >&6; }
31245fi
31246
31247
31248 test -n "$RPM" && break
31249done
31250
31251
31252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31253
31254
31255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31256
31257
31258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31259
31260
31261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31262
31263
31264 if test "x$RPM" != "x" ; then
31265 RPM_DELEGATE_TRUE=
31266 RPM_DELEGATE_FALSE='#'
31267else
31268 RPM_DELEGATE_TRUE='#'
31269 RPM_DELEGATE_FALSE=
31270fi
31271
31272
31273#
31274# 7ZIP support (http://p7zip.sourceforge.net/)
31275#
31276P7ZIP=''
31277for ac_prog in 7za
31278do
31279 # Extract the first word of "$ac_prog", so it can be a program name with args.
31280set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031282$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031283if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031284 $as_echo_n "(cached) " >&6
31285else
31286 if test -n "$P7ZIP"; then
31287 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31288else
31289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31290for as_dir in $PATH
31291do
31292 IFS=$as_save_IFS
31293 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031294 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31296 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031298 break 2
31299 fi
31300done
cristy8b350f62009-11-15 23:12:43 +000031301 done
cristy3ed852e2009-09-05 21:47:34 +000031302IFS=$as_save_IFS
31303
31304fi
31305fi
31306P7ZIP=$ac_cv_prog_P7ZIP
31307if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031309$as_echo "$P7ZIP" >&6; }
31310else
cristy8b350f62009-11-15 23:12:43 +000031311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031312$as_echo "no" >&6; }
31313fi
31314
31315
31316 test -n "$P7ZIP" && break
31317done
31318
31319
31320 if test "x$P7ZIP" != "x" ; then
31321 P7ZIP_DELEGATE_TRUE=
31322 P7ZIP_DELEGATE_FALSE='#'
31323else
31324 P7ZIP_DELEGATE_TRUE='#'
31325 P7ZIP_DELEGATE_FALSE=
31326fi
31327
31328
31329#
31330# ZIP support (http://www.info-zip.org/Zip.html)
31331#
31332ZIP=''
31333for ac_prog in zip
31334do
31335 # Extract the first word of "$ac_prog", so it can be a program name with args.
31336set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031338$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031339if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031340 $as_echo_n "(cached) " >&6
31341else
31342 if test -n "$ZIP"; then
31343 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31344else
31345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31346for as_dir in $PATH
31347do
31348 IFS=$as_save_IFS
31349 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31352 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354 break 2
31355 fi
31356done
cristy8b350f62009-11-15 23:12:43 +000031357 done
cristy3ed852e2009-09-05 21:47:34 +000031358IFS=$as_save_IFS
31359
31360fi
31361fi
31362ZIP=$ac_cv_prog_ZIP
31363if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031365$as_echo "$ZIP" >&6; }
31366else
cristy8b350f62009-11-15 23:12:43 +000031367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031368$as_echo "no" >&6; }
31369fi
31370
31371
31372 test -n "$ZIP" && break
31373done
31374
31375
31376 if test "x$ZIP" != "x" ; then
31377 ZIP_DELEGATE_TRUE=
31378 ZIP_DELEGATE_FALSE='#'
31379else
31380 ZIP_DELEGATE_TRUE='#'
31381 ZIP_DELEGATE_FALSE=
31382fi
31383
31384
31385#
31386# GhostPCL related configuration.
31387#
31388PCLColorDevice=ppmraw
31389PCLCMYKDevice=bmpsep8
31390PCLMonoDevice=pbmraw
31391if test -z "$PCLVersion"; then
31392 PCLVersion='unknown'
31393fi
31394if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031396$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031398$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031400$as_echo "" >&6; }
31401 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000031402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031403$as_echo_n "checking for pcl color device... " >&6; }
31404 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31405 :
31406 else
31407 PCLColorDevice=ppmraw
31408 fi
cristy8b350f62009-11-15 23:12:43 +000031409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031410$as_echo "$PCLColorDevice" >&6; }
31411
31412 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031414$as_echo_n "checking for pcl CMYK device... " >&6; }
31415 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31416 :
31417 else
31418 PCLCMYKDevice=$PCLColorDevice
31419 fi
cristy8b350f62009-11-15 23:12:43 +000031420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031421$as_echo "$PCLCMYKDevice" >&6; }
31422
31423 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031425$as_echo_n "checking for pcl mono device... " >&6; }
31426 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31427 :
31428 else
31429 PCLMonoDevice=$PCLColorDevice
31430 fi
cristy8b350f62009-11-15 23:12:43 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031432$as_echo "$PCLMonoDevice" >&6; }
31433fi
31434
31435
31436
31437
31438
31439
31440#
31441# GhostXPS related configuration.
31442#
31443XPSColorDevice=ppmraw
31444XPSCMYKDevice=bmpsep8
31445XPSMonoDevice=pbmraw
31446if test -z "$XPSVersion"; then
31447 XPSVersion='unknown'
31448fi
31449if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031451$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000031453$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031455$as_echo "" >&6; }
31456 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031458$as_echo_n "checking for xps color device... " >&6; }
31459 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31460 :
31461 else
31462 XPSColorDevice=ppmraw
31463 fi
cristy8b350f62009-11-15 23:12:43 +000031464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031465$as_echo "$XPSColorDevice" >&6; }
31466
31467 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031469$as_echo_n "checking for xps CMYK device... " >&6; }
31470 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31471 :
31472 else
31473 XPSCMYKDevice=$XPSColorDevice
31474 fi
cristy8b350f62009-11-15 23:12:43 +000031475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031476$as_echo "$XPSCMYKDevice" >&6; }
31477
31478 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031480$as_echo_n "checking for xps mono device... " >&6; }
31481 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31482 :
31483 else
31484 XPSMonoDevice=$XPSColorDevice
31485 fi
cristy8b350f62009-11-15 23:12:43 +000031486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031487$as_echo "$XPSMonoDevice" >&6; }
31488fi
31489
31490
31491
31492
31493
31494
31495#
31496# Ghostscript related configuration.
31497#
31498if test "$have_png" = 'yes'; then
31499 GSAlphaDevice=pngalpha
31500else
31501 GSAlphaDevice=pnmraw
31502fi
31503GSColorDevice=pnmraw
31504GSCMYKDevice=pam
31505GSMonoDevice=pbmraw
31506GSPDFDevice=pdfwrite
31507GSPSDevice=pswrite
31508GSEPSDevice=epswrite
31509GSVersion='unknown'
31510if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031512$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031514$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031516$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031518$as_echo_n "checking for Ghostscript version... " >&6; }
31519 if GSVersion=`$PSDelegate --version`; then
31520 :
31521 else
31522 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31523 fi
cristy8b350f62009-11-15 23:12:43 +000031524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000031525$as_echo "$GSVersion" >&6; }
31526
31527 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031529$as_echo_n "checking for gs alpha device... " >&6; }
31530 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31531 :
31532 else
31533 GSAlphaDevice=pnmraw
31534 fi
cristy8b350f62009-11-15 23:12:43 +000031535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031536$as_echo "$GSAlphaDevice" >&6; }
31537
31538 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000031539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031540$as_echo_n "checking for gs color device... " >&6; }
31541 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31542 :
31543 else
31544 GSColorDevice=pnmraw
31545 fi
cristy8b350f62009-11-15 23:12:43 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031547$as_echo "$GSColorDevice" >&6; }
31548
31549 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000031550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031551$as_echo_n "checking for gs CMYK device... " >&6; }
31552 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31553 :
31554 else
31555 GSCMYKDevice=bmpsep8
31556 fi
cristy8b350f62009-11-15 23:12:43 +000031557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031558$as_echo "$GSCMYKDevice" >&6; }
31559
31560 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031562$as_echo_n "checking for gs mono device... " >&6; }
31563 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31564 :
31565 else
31566 GSMonoDevice=$GSColorDevice
31567 fi
cristy8b350f62009-11-15 23:12:43 +000031568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031569$as_echo "$GSMonoDevice" >&6; }
31570
31571 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000031572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031573$as_echo_n "checking for gs PDF writing device... " >&6; }
31574 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31575 :
31576 else
31577 GSPDFDevice=nodevice
31578 fi
cristy8b350f62009-11-15 23:12:43 +000031579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031580$as_echo "$GSPDFDevice" >&6; }
31581
31582 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000031583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031584$as_echo_n "checking for gs PS writing device... " >&6; }
31585 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31586 :
31587 else
31588 GSPSDevice=nodevice
31589 fi
cristy8b350f62009-11-15 23:12:43 +000031590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031591$as_echo "$GSPSDevice" >&6; }
31592
31593 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000031594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000031595$as_echo_n "checking for gs EPS writing device... " >&6; }
31596 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31597 :
31598 else
31599 GSEPSDevice=nodevice
31600 fi
cristy8b350f62009-11-15 23:12:43 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000031602$as_echo "$GSEPSDevice" >&6; }
31603fi
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614#
31615# PerlMagick-related configuration
31616#
31617
31618# Look for PERL if PerlMagick requested
31619# If name/path of desired PERL interpreter is specified, look for that one first
31620have_perl='no'
31621if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000031622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031623$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031625$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000031627$as_echo "" >&6; }
31628 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031630$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031631if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031632 $as_echo_n "(cached) " >&6
31633else
31634 ac_cv_path_PERL="$with_perl"
31635fi
cristy8b350f62009-11-15 23:12:43 +000031636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031637$as_echo "$ac_cv_path_PERL" >&6; };
31638 PERL=$ac_cv_path_PERL
31639 have_perl="$ac_cv_path_PERL"
31640 else
31641 for ac_prog in perl perl5
31642do
31643 # Extract the first word of "$ac_prog", so it can be a program name with args.
31644set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031646$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031647if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031648 $as_echo_n "(cached) " >&6
31649else
31650 case $PERL in
31651 [\\/]* | ?:[\\/]*)
31652 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31653 ;;
31654 *)
31655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31656for as_dir in $PATH
31657do
31658 IFS=$as_save_IFS
31659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31662 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031664 break 2
31665 fi
31666done
cristy8b350f62009-11-15 23:12:43 +000031667 done
cristy3ed852e2009-09-05 21:47:34 +000031668IFS=$as_save_IFS
31669
31670 ;;
31671esac
31672fi
31673PERL=$ac_cv_path_PERL
31674if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031676$as_echo "$PERL" >&6; }
31677else
cristy8b350f62009-11-15 23:12:43 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo "no" >&6; }
31680fi
31681
31682
31683 test -n "$PERL" && break
31684done
31685 if test "$ac_cv_path_PERL"; then
31686 have_perl="$ac_cv_path_PERL"
31687 fi
31688 fi
31689fi
31690
cristy949301e2010-01-06 01:38:40 +000031691if test "$with_perl" != 'yes' ; then
31692 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31693fi
31694
31695PERL_SUPPORTS_DESTDIR='no'
31696
cristy3ed852e2009-09-05 21:47:34 +000031697with_perl_static='no'
31698with_perl_dynamic='no'
31699if test "$have_perl" != 'no'; then
31700 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31701 with_perl_static='yes'
31702 fi
31703 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31704 with_perl_dynamic='yes'
31705 fi
31706 # Is PERL's MakeMaker new enough to support DESTDIR?
31707 # Make sure we have perl
31708if test -z "$PERL"; then
31709# Extract the first word of "perl", so it can be a program name with args.
31710set dummy perl; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031712$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031713if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031714 $as_echo_n "(cached) " >&6
31715else
31716 if test -n "$PERL"; then
31717 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31718else
31719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31720for as_dir in $PATH
31721do
31722 IFS=$as_save_IFS
31723 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031724 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31726 ac_cv_prog_PERL="perl"
cristy8b350f62009-11-15 23:12:43 +000031727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031728 break 2
31729 fi
31730done
cristy8b350f62009-11-15 23:12:43 +000031731 done
cristy3ed852e2009-09-05 21:47:34 +000031732IFS=$as_save_IFS
31733
31734fi
31735fi
31736PERL=$ac_cv_prog_PERL
31737if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031739$as_echo "$PERL" >&6; }
31740else
cristy8b350f62009-11-15 23:12:43 +000031741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031742$as_echo "no" >&6; }
31743fi
31744
31745
31746fi
31747
31748# Check if version of Perl is sufficient
31749ac_perl_version="5.8.1"
31750
31751if test "x$PERL" != "x"; then
cristy8b350f62009-11-15 23:12:43 +000031752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
cristy3ed852e2009-09-05 21:47:34 +000031753$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31754 # NB: It would be nice to log the error if there is one, but we cannot rely
31755 # on autoconf internals
31756 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31757 if test $? -ne 0; then
cristy8b350f62009-11-15 23:12:43 +000031758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031759$as_echo "no" >&6; };
31760 PERL_SUPPORTS_DESTDIR='no'
31761 else
cristy8b350f62009-11-15 23:12:43 +000031762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000031763$as_echo "ok" >&6; };
31764 PERL_SUPPORTS_DESTDIR='yes'
31765 fi
31766else
cristy8b350f62009-11-15 23:12:43 +000031767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000031768$as_echo "$as_me: WARNING: could not find perl" >&2;}
31769fi
31770
31771fi
31772 if test "$have_perl" != 'no'; then
31773 WITH_PERL_TRUE=
31774 WITH_PERL_FALSE='#'
31775else
31776 WITH_PERL_TRUE='#'
31777 WITH_PERL_FALSE=
31778fi
31779
31780 if test $with_perl_static = 'yes'; then
31781 WITH_PERL_STATIC_TRUE=
31782 WITH_PERL_STATIC_FALSE='#'
31783else
31784 WITH_PERL_STATIC_TRUE='#'
31785 WITH_PERL_STATIC_FALSE=
31786fi
31787
31788 if test $with_perl_dynamic = 'yes'; then
31789 WITH_PERL_DYNAMIC_TRUE=
31790 WITH_PERL_DYNAMIC_FALSE='#'
31791else
31792 WITH_PERL_DYNAMIC_TRUE='#'
31793 WITH_PERL_DYNAMIC_FALSE=
31794fi
31795
31796
31797
31798# Determine path to pick up MagickCore library from for use with building PerlMagick
31799MAGICKCORE_PATH="${LIB_DIR}"
31800if test $with_perl_static = 'yes'; then
31801 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31802 libtool_objdir=$objdir
31803
31804 # Linker search path to library, followed by -lMagickCore
31805 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31806fi
31807
31808
31809# Create a simple string containing format names for all delegate libraries
31810DELEGATES=''
31811if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31812if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31813if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31814if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31815if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31816if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31817if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31818if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31819if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31820if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31821if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31822if test "$have_jpeg" = 'yes'; then
31823 DELEGATES="$DELEGATES jpeg";
31824 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31825fi
31826if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31827if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31828if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31829if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31830if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31831if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31832if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31833if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31834if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31835if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31836if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31837if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31838
31839
31840
31841#
31842# Handle special compiler flags
31843#
31844
31845# Add '-p' if prof source profiling support enabled
31846if test "$enable_prof" = 'yes'; then
31847 CFLAGS="-p $CFLAGS"
31848 CXXFLAGS="-p $CXXFLAGS"
31849 LDFLAGS="-p $LDFLAGS"
31850fi
31851
31852# Add '-pg' if gprof source profiling support enabled
31853if test "$enable_gprof" = 'yes'; then
31854 CFLAGS="-pg $CFLAGS"
31855 CXXFLAGS="-pg $CXXFLAGS"
31856 LDFLAGS="-pg $LDFLAGS"
31857fi
31858
31859# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31860# This is a gcc-specific feature
31861if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031863$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031864if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031865 $as_echo_n "(cached) " >&6
31866else
31867 ac_check_lib_save_LIBS=$LIBS
31868LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031870/* end confdefs.h. */
31871
31872/* Override any GCC internal prototype to avoid an error.
31873 Use char because int might match the return type of a GCC
31874 builtin and then its argument prototype would still apply. */
31875#ifdef __cplusplus
31876extern "C"
31877#endif
31878char _gcov_init ();
31879int
31880main ()
31881{
31882return _gcov_init ();
31883 ;
31884 return 0;
31885}
31886_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031887if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031888 ac_cv_lib_gcov__gcov_init=yes
31889else
cristy8b350f62009-11-15 23:12:43 +000031890 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031891fi
cristy8b350f62009-11-15 23:12:43 +000031892rm -f core conftest.err conftest.$ac_objext \
31893 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031894LIBS=$ac_check_lib_save_LIBS
31895fi
cristy8b350f62009-11-15 23:12:43 +000031896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031897$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031898if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031899 cat >>confdefs.h <<_ACEOF
31900#define HAVE_LIBGCOV 1
31901_ACEOF
31902
31903 LIBS="-lgcov $LIBS"
31904
31905fi
31906
cristy8b350f62009-11-15 23:12:43 +000031907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000031908$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031909if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031910 $as_echo_n "(cached) " >&6
31911else
31912 ac_check_lib_save_LIBS=$LIBS
31913LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031915/* end confdefs.h. */
31916
31917/* Override any GCC internal prototype to avoid an error.
31918 Use char because int might match the return type of a GCC
31919 builtin and then its argument prototype would still apply. */
31920#ifdef __cplusplus
31921extern "C"
31922#endif
31923char __gcov_init ();
31924int
31925main ()
31926{
31927return __gcov_init ();
31928 ;
31929 return 0;
31930}
31931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031932if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031933 ac_cv_lib_gcov___gcov_init=yes
31934else
cristy8b350f62009-11-15 23:12:43 +000031935 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000031936fi
cristy8b350f62009-11-15 23:12:43 +000031937rm -f core conftest.err conftest.$ac_objext \
31938 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031939LIBS=$ac_check_lib_save_LIBS
31940fi
cristy8b350f62009-11-15 23:12:43 +000031941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000031942$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031943if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000031944 cat >>confdefs.h <<_ACEOF
31945#define HAVE_LIBGCOV 1
31946_ACEOF
31947
31948 LIBS="-lgcov $LIBS"
31949
31950fi
31951
31952 case "$target_os" in
31953 darwin*)
31954 OSX_GCOV_LDFLAG="-Wl,-single_module"
31955 ;;
31956 *)
31957 OSX_GCOV_LDFLAG=""
31958 ;;
31959 esac
31960
31961 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31962 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31963 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31964fi
31965
31966#
31967# Build library dependency list for libMagickCore
31968#
31969
31970MAGICK_LIBLTDL='' # Libltdl for build
31971MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31972MAGICK_LTDLDEPS='' # extra libltdl dependencies
31973if test "$with_ltdl" != 'no'
31974then
31975 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31976 MAGICK_API_LIBLTDL='-lltdl'
31977 fi
31978 MAGICK_LIBLTDL=${LIBLTDL}
31979 MAGICK_LTDLDEPS=${LTDLDEPS}
31980fi
31981
31982
31983
31984if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000031985 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 +000031986else
cristy2e8b51d2009-10-17 18:26:15 +000031987 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 +000031988fi
31989
31990
31991#
31992# Remove extraneous spaces from output variables (asthetic)
31993#
31994X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31995X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31996X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31997X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31998
31999CC=`echo $CC | sed -e 's/ */ /g'`
32000CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32001CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32002CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32003DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32004DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32005LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32006TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32007MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32008#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32009
32010# Pass only user-provided LIBS as "global" libraries
32011LIBS=$USER_LIBS
32012
32013#AC_SUBST(CPPFLAGS)
32014
32015#AC_SUBST(LDFLAGS)
32016#AC_SUBST(X_PRE_LIBS)
32017#AC_SUBST(X_LIBS)
32018#AC_SUBST(X_EXTRA_LIBS)
32019
32020MAGICK_CFLAGS=$CFLAGS
32021MAGICK_CXXFLAGS="$CXXFLAGS"
32022MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32023MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32024MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32025MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32026
32027
32028
32029
32030
32031
32032
32033
32034# Set configured scripts to executable.
32035ac_config_commands="$ac_config_commands default"
32036
32037ac_config_commands="$ac_config_commands MagickCore-config.in"
32038
32039ac_config_commands="$ac_config_commands Magick-config.in"
32040
32041ac_config_commands="$ac_config_commands MagickWand-config.in"
32042
32043ac_config_commands="$ac_config_commands Wand-config.in"
32044
32045ac_config_commands="$ac_config_commands Magick++-config.in"
32046
32047ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32048
32049
cristy8b350f62009-11-15 23:12:43 +000032050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032051$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo "Update ImageMagick configuration" >&6; }
32054cat >confcache <<\_ACEOF
32055# This file is a shell script that caches the results of configure
32056# tests run on this system so they can be shared between configure
32057# scripts and configure runs, see configure's option --config-cache.
32058# It is not useful on other systems. If it contains results you don't
32059# want to keep, you may remove or edit it.
32060#
32061# config.status only pays attention to the cache file if you give it
32062# the --recheck option to rerun configure.
32063#
32064# `ac_cv_env_foo' variables (set or unset) will be overridden when
32065# loading this file, other *unset* `ac_cv_foo' will be assigned the
32066# following values.
32067
32068_ACEOF
32069
32070# The following way of writing the cache mishandles newlines in values,
32071# but we know of no workaround that is simple, portable, and efficient.
32072# So, we kill variables containing newlines.
32073# Ultrix sh set writes to stderr and can't be redirected directly,
32074# and sets the high bit in the cache file unless we assign to the vars.
32075(
32076 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32077 eval ac_val=\$$ac_var
32078 case $ac_val in #(
32079 *${as_nl}*)
32080 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32083 esac
32084 case $ac_var in #(
32085 _ | IFS | as_nl) ;; #(
32086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032087 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032088 esac ;;
32089 esac
32090 done
32091
32092 (set) 2>&1 |
32093 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32094 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032095 # `set' does not quote correctly, so add quotes: double-quote
32096 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032097 sed -n \
32098 "s/'/'\\\\''/g;
32099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32100 ;; #(
32101 *)
32102 # `set' quotes correctly as required by POSIX, so do not add quotes.
32103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32104 ;;
32105 esac |
32106 sort
32107) |
32108 sed '
32109 /^ac_cv_env_/b end
32110 t clear
32111 :clear
32112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32113 t end
32114 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32115 :end' >>confcache
32116if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32117 if test -w "$cache_file"; then
32118 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo "$as_me: updating cache $cache_file" >&6;}
32121 cat confcache >$cache_file
32122 else
cristy8b350f62009-11-15 23:12:43 +000032123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032124$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32125 fi
32126fi
32127rm -f confcache
32128
32129test "x$prefix" = xNONE && prefix=$ac_default_prefix
32130# Let make expand exec_prefix.
32131test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32132
32133DEFS=-DHAVE_CONFIG_H
32134
32135ac_libobjs=
32136ac_ltlibobjs=
32137for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32138 # 1. Remove the extension, and $U if already installed.
32139 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32140 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32141 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32142 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032143 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32144 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032145done
32146LIBOBJS=$ac_libobjs
32147
32148LTLIBOBJS=$ac_ltlibobjs
32149
32150
32151 if test -n "$EXEEXT"; then
32152 am__EXEEXT_TRUE=
32153 am__EXEEXT_FALSE='#'
32154else
32155 am__EXEEXT_TRUE='#'
32156 am__EXEEXT_FALSE=
32157fi
32158
32159if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032160 as_fn_error "conditional \"AMDEP\" was never defined.
32161Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032162fi
32163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032164 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32165Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032166fi
cristya0b81c32010-01-22 02:54:33 +000032167if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32168 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32169Usually this means the macro was only invoked conditionally." "$LINENO" 5
32170fi
cristy3ed852e2009-09-05 21:47:34 +000032171if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032172 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32173Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032174fi
32175if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032176 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32177Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032178fi
32179if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032180 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32181Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032182fi
32183if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032184 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32185Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032186fi
32187if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032188 as_fn_error "conditional \"USING_CL\" was never defined.
32189Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032190fi
cristy18304f92009-11-22 15:48:26 +000032191if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32192 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32193Usually this means the macro was only invoked conditionally." "$LINENO" 5
32194fi
cristy3ed852e2009-09-05 21:47:34 +000032195if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032196 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32197Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032198fi
32199if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032200 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32201Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032202fi
32203LT_CONFIG_H=config/config.h
32204
32205 _ltdl_libobjs=
32206 _ltdl_ltlibobjs=
32207 if test -n "$_LT_LIBOBJS"; then
32208 # Remove the extension.
32209 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32210 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32211 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32212 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32213 done
32214 fi
32215 ltdl_LIBOBJS=$_ltdl_libobjs
32216
32217 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32218
32219
cristyfa112112010-01-04 17:48:07 +000032220if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32221 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32222Usually this means the macro was only invoked conditionally." "$LINENO" 5
32223fi
cristy3ed852e2009-09-05 21:47:34 +000032224if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032225 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32226Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032227fi
32228if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032229 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32230Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032231fi
32232if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032233 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32234Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032235fi
32236
32237if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032238 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32239Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032240fi
32241if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032242 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32243Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032244fi
32245if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032246 as_fn_error "conditional \"HasUMEM\" was never defined.
32247Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032248fi
32249if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032250 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32251Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032252fi
32253if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032254 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32255Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032256fi
32257if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032258 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32259Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032260fi
32261if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032262 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32263Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032264fi
32265if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032266 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32267Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032268fi
32269if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032270 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32271Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032272fi
32273if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032274 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32275Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032276fi
32277if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032278 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32279Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032280fi
32281if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032282 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32283Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032284fi
32285if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032286 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32287Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032288fi
32289if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032290 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32291Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032292fi
32293if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032294 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32295Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032296fi
32297if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032298 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32299Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032300fi
32301if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032302 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32303Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032304fi
32305if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032306 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32307Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032308fi
32309if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032310 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32311Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032312fi
32313if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032314 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32315Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032316fi
32317if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032318 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32319Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032320fi
32321if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032322 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32323Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032324fi
32325if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032326 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32327Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032328fi
32329if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032330 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32331Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032332fi
32333if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032334 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32335Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032336fi
32337if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032338 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32339Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032340fi
32341if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032342 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32343Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032344fi
32345if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032346 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32347Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032348fi
32349if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032350 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32351Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032352fi
32353if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032354 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32355Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032356fi
32357if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032358 as_fn_error "conditional \"WITH_PERL\" was never defined.
32359Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032360fi
32361if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032362 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32363Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032364fi
32365if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032366 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32367Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032368fi
32369
32370: ${CONFIG_STATUS=./config.status}
32371ac_write_fail=0
32372ac_clean_files_save=$ac_clean_files
32373ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032374{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032375$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032376as_write_fail=0
32377cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032378#! $SHELL
32379# Generated by $as_me.
32380# Run this file to recreate the current configuration.
32381# Compiler output produced by configure, useful for debugging
32382# configure, is in config.log if it exists.
32383
32384debug=false
32385ac_cs_recheck=false
32386ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032387
cristy8b350f62009-11-15 23:12:43 +000032388SHELL=\${CONFIG_SHELL-$SHELL}
32389export SHELL
32390_ASEOF
32391cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32392## -------------------- ##
32393## M4sh Initialization. ##
32394## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000032395
32396# Be more Bourne compatible
32397DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000032398if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000032399 emulate sh
32400 NULLCMD=:
32401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32402 # is contrary to our usage. Disable this feature.
32403 alias -g '${1+"$@"}'='"$@"'
32404 setopt NO_GLOB_SUBST
32405else
cristy8b350f62009-11-15 23:12:43 +000032406 case `(set -o) 2>/dev/null` in #(
32407 *posix*) :
32408 set -o posix ;; #(
32409 *) :
32410 ;;
cristy3ed852e2009-09-05 21:47:34 +000032411esac
cristy3ed852e2009-09-05 21:47:34 +000032412fi
32413
32414
cristy3ed852e2009-09-05 21:47:34 +000032415as_nl='
32416'
32417export as_nl
32418# Printing a long string crashes Solaris 7 /usr/bin/printf.
32419as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32420as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32421as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000032422# Prefer a ksh shell builtin over an external printf program on Solaris,
32423# but without wasting forks for bash or zsh.
32424if test -z "$BASH_VERSION$ZSH_VERSION" \
32425 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32426 as_echo='print -r --'
32427 as_echo_n='print -rn --'
32428elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000032429 as_echo='printf %s\n'
32430 as_echo_n='printf %s'
32431else
32432 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32433 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32434 as_echo_n='/usr/ucb/echo -n'
32435 else
32436 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32437 as_echo_n_body='eval
32438 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000032439 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000032440 *"$as_nl"*)
32441 expr "X$arg" : "X\\(.*\\)$as_nl";
32442 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32443 esac;
32444 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32445 '
32446 export as_echo_n_body
32447 as_echo_n='sh -c $as_echo_n_body as_echo'
32448 fi
32449 export as_echo_body
32450 as_echo='sh -c $as_echo_body as_echo'
32451fi
32452
32453# The user is always right.
32454if test "${PATH_SEPARATOR+set}" != set; then
32455 PATH_SEPARATOR=:
32456 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32457 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32458 PATH_SEPARATOR=';'
32459 }
32460fi
32461
cristy3ed852e2009-09-05 21:47:34 +000032462
32463# IFS
32464# We need space, tab and new line, in precisely that order. Quoting is
32465# there to prevent editors from complaining about space-tab.
32466# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32467# splitting by setting IFS to empty value.)
32468IFS=" "" $as_nl"
32469
32470# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000032471case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000032472 *[\\/]* ) as_myself=$0 ;;
32473 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32474for as_dir in $PATH
32475do
32476 IFS=$as_save_IFS
32477 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032478 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32479 done
cristy3ed852e2009-09-05 21:47:34 +000032480IFS=$as_save_IFS
32481
32482 ;;
32483esac
32484# We did not find ourselves, most probably we were run as `sh COMMAND'
32485# in which case we are not to be found in the path.
32486if test "x$as_myself" = x; then
32487 as_myself=$0
32488fi
32489if test ! -f "$as_myself"; then
32490 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000032491 exit 1
cristy3ed852e2009-09-05 21:47:34 +000032492fi
32493
cristy8b350f62009-11-15 23:12:43 +000032494# Unset variables that we do not need and which cause bugs (e.g. in
32495# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32496# suppresses any "Segmentation fault" message there. '((' could
32497# trigger a bug in pdksh 5.2.14.
32498for as_var in BASH_ENV ENV MAIL MAILPATH
32499do eval test x\${$as_var+set} = xset \
32500 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000032501done
32502PS1='$ '
32503PS2='> '
32504PS4='+ '
32505
32506# NLS nuisances.
32507LC_ALL=C
32508export LC_ALL
32509LANGUAGE=C
32510export LANGUAGE
32511
cristy8b350f62009-11-15 23:12:43 +000032512# CDPATH.
32513(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32514
32515
32516# as_fn_error ERROR [LINENO LOG_FD]
32517# ---------------------------------
32518# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32519# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32520# script with status $?, using 1 if that was 0.
32521as_fn_error ()
32522{
32523 as_status=$?; test $as_status -eq 0 && as_status=1
32524 if test "$3"; then
32525 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32526 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32527 fi
32528 $as_echo "$as_me: error: $1" >&2
32529 as_fn_exit $as_status
32530} # as_fn_error
32531
32532
32533# as_fn_set_status STATUS
32534# -----------------------
32535# Set $? to STATUS, without forking.
32536as_fn_set_status ()
32537{
32538 return $1
32539} # as_fn_set_status
32540
32541# as_fn_exit STATUS
32542# -----------------
32543# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32544as_fn_exit ()
32545{
32546 set +e
32547 as_fn_set_status $1
32548 exit $1
32549} # as_fn_exit
32550
32551# as_fn_unset VAR
32552# ---------------
32553# Portably unset VAR.
32554as_fn_unset ()
32555{
32556 { eval $1=; unset $1;}
32557}
32558as_unset=as_fn_unset
32559# as_fn_append VAR VALUE
32560# ----------------------
32561# Append the text in VALUE to the end of the definition contained in VAR. Take
32562# advantage of any shell optimizations that allow amortized linear growth over
32563# repeated appends, instead of the typical quadratic growth present in naive
32564# implementations.
32565if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32566 eval 'as_fn_append ()
32567 {
32568 eval $1+=\$2
32569 }'
32570else
32571 as_fn_append ()
32572 {
32573 eval $1=\$$1\$2
32574 }
32575fi # as_fn_append
32576
32577# as_fn_arith ARG...
32578# ------------------
32579# Perform arithmetic evaluation on the ARGs, and store the result in the
32580# global $as_val. Take advantage of shells that can avoid forks. The arguments
32581# must be portable across $(()) and expr.
32582if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32583 eval 'as_fn_arith ()
32584 {
32585 as_val=$(( $* ))
32586 }'
32587else
32588 as_fn_arith ()
32589 {
32590 as_val=`expr "$@" || test $? -eq 1`
32591 }
32592fi # as_fn_arith
32593
32594
cristy3ed852e2009-09-05 21:47:34 +000032595if expr a : '\(a\)' >/dev/null 2>&1 &&
32596 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32597 as_expr=expr
32598else
32599 as_expr=false
32600fi
32601
32602if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32603 as_basename=basename
32604else
32605 as_basename=false
32606fi
32607
cristy8b350f62009-11-15 23:12:43 +000032608if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32609 as_dirname=dirname
32610else
32611 as_dirname=false
32612fi
cristy3ed852e2009-09-05 21:47:34 +000032613
cristy3ed852e2009-09-05 21:47:34 +000032614as_me=`$as_basename -- "$0" ||
32615$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32616 X"$0" : 'X\(//\)$' \| \
32617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32618$as_echo X/"$0" |
32619 sed '/^.*\/\([^/][^/]*\)\/*$/{
32620 s//\1/
32621 q
32622 }
32623 /^X\/\(\/\/\)$/{
32624 s//\1/
32625 q
32626 }
32627 /^X\/\(\/\).*/{
32628 s//\1/
32629 q
32630 }
32631 s/.*/./; q'`
32632
cristy8b350f62009-11-15 23:12:43 +000032633# Avoid depending upon Character Ranges.
32634as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32635as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32636as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32637as_cr_digits='0123456789'
32638as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000032639
32640ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000032641case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000032642-n*)
cristy8b350f62009-11-15 23:12:43 +000032643 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000032644 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000032645 xy) ECHO_C='\c';;
32646 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32647 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000032648 esac;;
32649*)
32650 ECHO_N='-n';;
32651esac
cristy3ed852e2009-09-05 21:47:34 +000032652
32653rm -f conf$$ conf$$.exe conf$$.file
32654if test -d conf$$.dir; then
32655 rm -f conf$$.dir/conf$$.file
32656else
32657 rm -f conf$$.dir
32658 mkdir conf$$.dir 2>/dev/null
32659fi
32660if (echo >conf$$.file) 2>/dev/null; then
32661 if ln -s conf$$.file conf$$ 2>/dev/null; then
32662 as_ln_s='ln -s'
32663 # ... but there are two gotchas:
32664 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32665 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32666 # In both cases, we have to default to `cp -p'.
32667 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32668 as_ln_s='cp -p'
32669 elif ln conf$$.file conf$$ 2>/dev/null; then
32670 as_ln_s=ln
32671 else
32672 as_ln_s='cp -p'
32673 fi
32674else
32675 as_ln_s='cp -p'
32676fi
32677rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32678rmdir conf$$.dir 2>/dev/null
32679
cristy8b350f62009-11-15 23:12:43 +000032680
32681# as_fn_mkdir_p
32682# -------------
32683# Create "$as_dir" as a directory, including parents if necessary.
32684as_fn_mkdir_p ()
32685{
32686
32687 case $as_dir in #(
32688 -*) as_dir=./$as_dir;;
32689 esac
32690 test -d "$as_dir" || eval $as_mkdir_p || {
32691 as_dirs=
32692 while :; do
32693 case $as_dir in #(
32694 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32695 *) as_qdir=$as_dir;;
32696 esac
32697 as_dirs="'$as_qdir' $as_dirs"
32698 as_dir=`$as_dirname -- "$as_dir" ||
32699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32700 X"$as_dir" : 'X\(//\)[^/]' \| \
32701 X"$as_dir" : 'X\(//\)$' \| \
32702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32703$as_echo X"$as_dir" |
32704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32705 s//\1/
32706 q
32707 }
32708 /^X\(\/\/\)[^/].*/{
32709 s//\1/
32710 q
32711 }
32712 /^X\(\/\/\)$/{
32713 s//\1/
32714 q
32715 }
32716 /^X\(\/\).*/{
32717 s//\1/
32718 q
32719 }
32720 s/.*/./; q'`
32721 test -d "$as_dir" && break
32722 done
32723 test -z "$as_dirs" || eval "mkdir $as_dirs"
32724 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32725
32726
32727} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000032728if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000032729 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000032730else
32731 test -d ./-p && rmdir ./-p
32732 as_mkdir_p=false
32733fi
32734
32735if test -x / >/dev/null 2>&1; then
32736 as_test_x='test -x'
32737else
32738 if ls -dL / >/dev/null 2>&1; then
32739 as_ls_L_option=L
32740 else
32741 as_ls_L_option=
32742 fi
32743 as_test_x='
32744 eval sh -c '\''
32745 if test -d "$1"; then
32746 test -d "$1/.";
32747 else
cristy8b350f62009-11-15 23:12:43 +000032748 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000032749 -*)set "./$1";;
32750 esac;
cristy8b350f62009-11-15 23:12:43 +000032751 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000032752 ???[sx]*):;;*)false;;esac;fi
32753 '\'' sh
32754 '
32755fi
32756as_executable_p=$as_test_x
32757
32758# Sed expression to map a string onto a valid CPP name.
32759as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32760
32761# Sed expression to map a string onto a valid variable name.
32762as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32763
32764
32765exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000032766## ----------------------------------- ##
32767## Main body of $CONFIG_STATUS script. ##
32768## ----------------------------------- ##
32769_ASEOF
32770test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032771
cristy8b350f62009-11-15 23:12:43 +000032772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32773# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000032774# report actual input values of CONFIG_FILES etc. instead of their
32775# values after options handling.
32776ac_log="
cristydc12aa12010-02-22 01:03:18 +000032777This file was extended by ImageMagick $as_me 6.6.0, which was
cristycd4c5312009-11-22 01:19:08 +000032778generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000032779
32780 CONFIG_FILES = $CONFIG_FILES
32781 CONFIG_HEADERS = $CONFIG_HEADERS
32782 CONFIG_LINKS = $CONFIG_LINKS
32783 CONFIG_COMMANDS = $CONFIG_COMMANDS
32784 $ $0 $@
32785
32786on `(hostname || uname -n) 2>/dev/null | sed 1q`
32787"
32788
32789_ACEOF
32790
32791case $ac_config_files in *"
32792"*) set x $ac_config_files; shift; ac_config_files=$*;;
32793esac
32794
32795case $ac_config_headers in *"
32796"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32797esac
32798
32799
32800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32801# Files that config.status was made for.
32802config_files="$ac_config_files"
32803config_headers="$ac_config_headers"
32804config_commands="$ac_config_commands"
32805
32806_ACEOF
32807
32808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32809ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000032810\`$as_me' instantiates files and other configuration actions
32811from templates according to the current configuration. Unless the files
32812and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000032813
cristy8b350f62009-11-15 23:12:43 +000032814Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000032815
32816 -h, --help print this help, then exit
32817 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000032818 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000032819 -q, --quiet, --silent
32820 do not print progress messages
32821 -d, --debug don't remove temporary files
32822 --recheck update $as_me by reconfiguring in the same conditions
32823 --file=FILE[:TEMPLATE]
32824 instantiate the configuration file FILE
32825 --header=FILE[:TEMPLATE]
32826 instantiate the configuration header FILE
32827
32828Configuration files:
32829$config_files
32830
32831Configuration headers:
32832$config_headers
32833
32834Configuration commands:
32835$config_commands
32836
cristy8b350f62009-11-15 23:12:43 +000032837Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000032838
32839_ACEOF
32840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000032841ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000032842ac_cs_version="\\
cristydc12aa12010-02-22 01:03:18 +000032843ImageMagick config.status 6.6.0
cristycd4c5312009-11-22 01:19:08 +000032844configured by $0, generated by GNU Autoconf 2.65,
32845 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000032846
cristy8b350f62009-11-15 23:12:43 +000032847Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000032848This config.status script is free software; the Free Software Foundation
32849gives unlimited permission to copy, distribute and modify it."
32850
32851ac_pwd='$ac_pwd'
32852srcdir='$srcdir'
32853INSTALL='$INSTALL'
32854MKDIR_P='$MKDIR_P'
32855AWK='$AWK'
32856test -n "\$AWK" || AWK=awk
32857_ACEOF
32858
32859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32860# The default lists apply if the user does not specify any file.
32861ac_need_defaults=:
32862while test $# != 0
32863do
32864 case $1 in
32865 --*=*)
32866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32868 ac_shift=:
32869 ;;
32870 *)
32871 ac_option=$1
32872 ac_optarg=$2
32873 ac_shift=shift
32874 ;;
32875 esac
32876
32877 case $ac_option in
32878 # Handling of the options.
32879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32880 ac_cs_recheck=: ;;
32881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32882 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000032883 --config | --confi | --conf | --con | --co | --c )
32884 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000032885 --debug | --debu | --deb | --de | --d | -d )
32886 debug=: ;;
32887 --file | --fil | --fi | --f )
32888 $ac_shift
32889 case $ac_optarg in
32890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32891 esac
cristy8b350f62009-11-15 23:12:43 +000032892 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032893 ac_need_defaults=false;;
32894 --header | --heade | --head | --hea )
32895 $ac_shift
32896 case $ac_optarg in
32897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32898 esac
cristy8b350f62009-11-15 23:12:43 +000032899 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000032900 ac_need_defaults=false;;
32901 --he | --h)
32902 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000032903 as_fn_error "ambiguous option: \`$1'
32904Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000032905 --help | --hel | -h )
32906 $as_echo "$ac_cs_usage"; exit ;;
32907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32908 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32909 ac_cs_silent=: ;;
32910
32911 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000032912 -*) as_fn_error "unrecognized option: \`$1'
32913Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000032914
cristy8b350f62009-11-15 23:12:43 +000032915 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000032916 ac_need_defaults=false ;;
32917
32918 esac
32919 shift
32920done
32921
32922ac_configure_extra_args=
32923
32924if $ac_cs_silent; then
32925 exec 6>/dev/null
32926 ac_configure_extra_args="$ac_configure_extra_args --silent"
32927fi
32928
32929_ACEOF
32930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32931if \$ac_cs_recheck; then
32932 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32933 shift
32934 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32935 CONFIG_SHELL='$SHELL'
32936 export CONFIG_SHELL
32937 exec "\$@"
32938fi
32939
32940_ACEOF
32941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32942exec 5>>config.log
32943{
32944 echo
32945 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32946## Running $as_me. ##
32947_ASBOX
32948 $as_echo "$ac_log"
32949} >&5
32950
32951_ACEOF
32952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32953#
32954# INIT-COMMANDS
32955#
32956PACKAGE="$PACKAGE"
32957AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32958
32959
32960# The HP-UX ksh and POSIX shell print the target directory to stdout
32961# if CDPATH is set.
32962(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32963
32964sed_quote_subst='$sed_quote_subst'
32965double_quote_subst='$double_quote_subst'
32966delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000032967SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32968Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32969GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32970EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32971FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32972LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32973macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32974macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32975AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32976DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32977OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32978enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32979enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32980pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32981enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32982host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32983host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32984host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32985build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32986build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32987build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32988NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32989LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32990max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32991ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32992exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32993lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32994lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32995lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32996reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32997reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32998deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32999file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33000AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33001AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33002STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33003RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33004old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33005old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33006old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33007CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33008CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33009compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33010GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33011lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33012lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33013lt_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"`'
33014lt_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"`'
33015objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33016SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33017ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33018MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33019lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33020lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33021lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33022lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33023lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33024need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33025DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33026NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33027LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33028OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33029OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33030libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33031shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33032extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33033archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33034enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33035export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33036whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33037compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33038old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33039old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33040archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33041archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33042module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33043module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33044with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33045allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33046no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33047hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33048hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33049hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33050hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33051hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33052hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33053hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33054hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33055inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33056link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33057fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33058always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33059export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33060exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33061include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33062prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33063file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33064variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33065need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33066need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33067version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33068runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33069shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33070shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33071libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33072library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33073soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33074postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33075postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33076finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33077finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33078hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33079sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33080sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33081hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33082enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33083enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33084enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33085old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33086striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33087compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33088predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33089postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33090predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33091postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33092compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33093LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33094old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33095compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33096GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33097lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33098lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33099lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33100lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33101lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33102archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33103enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33104export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33105whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33106compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33107old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33108old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33109archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33110archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33111module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33112module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33113with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33114allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33115no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33116hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33117hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33118hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33119hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33120hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33121hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33122hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33123hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33124inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33125link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33126fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33127always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33128export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33129exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33130include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33131prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33132file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33133hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33134compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33135predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33136postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33137predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33138postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33139compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033140
33141LTCC='$LTCC'
33142LTCFLAGS='$LTCFLAGS'
33143compiler='$compiler_DEFAULT'
33144
33145# Quote evaled strings.
33146for var in SED \
33147GREP \
33148EGREP \
33149FGREP \
33150LD \
33151NM \
33152LN_S \
33153lt_SP2NL \
33154lt_NL2SP \
33155reload_flag \
33156deplibs_check_method \
33157file_magic_cmd \
33158AR \
33159AR_FLAGS \
33160STRIP \
33161RANLIB \
33162CC \
33163CFLAGS \
33164compiler \
33165lt_cv_sys_global_symbol_pipe \
33166lt_cv_sys_global_symbol_to_cdecl \
33167lt_cv_sys_global_symbol_to_c_name_address \
33168lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033169SHELL \
33170ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033171lt_prog_compiler_no_builtin_flag \
33172lt_prog_compiler_wl \
33173lt_prog_compiler_pic \
33174lt_prog_compiler_static \
33175lt_cv_prog_compiler_c_o \
33176need_locks \
33177DSYMUTIL \
33178NMEDIT \
33179LIPO \
33180OTOOL \
33181OTOOL64 \
33182shrext_cmds \
33183export_dynamic_flag_spec \
33184whole_archive_flag_spec \
33185compiler_needs_object \
33186with_gnu_ld \
33187allow_undefined_flag \
33188no_undefined_flag \
33189hardcode_libdir_flag_spec \
33190hardcode_libdir_flag_spec_ld \
33191hardcode_libdir_separator \
33192fix_srcfile_path \
33193exclude_expsyms \
33194include_expsyms \
33195file_list_spec \
33196variables_saved_for_relink \
33197libname_spec \
33198library_names_spec \
33199soname_spec \
33200finish_eval \
33201old_striplib \
33202striplib \
33203compiler_lib_search_dirs \
33204predep_objects \
33205postdep_objects \
33206predeps \
33207postdeps \
33208compiler_lib_search_path \
33209LD_CXX \
33210compiler_CXX \
33211lt_prog_compiler_no_builtin_flag_CXX \
33212lt_prog_compiler_wl_CXX \
33213lt_prog_compiler_pic_CXX \
33214lt_prog_compiler_static_CXX \
33215lt_cv_prog_compiler_c_o_CXX \
33216export_dynamic_flag_spec_CXX \
33217whole_archive_flag_spec_CXX \
33218compiler_needs_object_CXX \
33219with_gnu_ld_CXX \
33220allow_undefined_flag_CXX \
33221no_undefined_flag_CXX \
33222hardcode_libdir_flag_spec_CXX \
33223hardcode_libdir_flag_spec_ld_CXX \
33224hardcode_libdir_separator_CXX \
33225fix_srcfile_path_CXX \
33226exclude_expsyms_CXX \
33227include_expsyms_CXX \
33228file_list_spec_CXX \
33229compiler_lib_search_dirs_CXX \
33230predep_objects_CXX \
33231postdep_objects_CXX \
33232predeps_CXX \
33233postdeps_CXX \
33234compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033235 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033236 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033238 ;;
33239 *)
33240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33241 ;;
33242 esac
33243done
33244
33245# Double-quote double-evaled strings.
33246for var in reload_cmds \
33247old_postinstall_cmds \
33248old_postuninstall_cmds \
33249old_archive_cmds \
33250extract_expsyms_cmds \
33251old_archive_from_new_cmds \
33252old_archive_from_expsyms_cmds \
33253archive_cmds \
33254archive_expsym_cmds \
33255module_cmds \
33256module_expsym_cmds \
33257export_symbols_cmds \
33258prelink_cmds \
33259postinstall_cmds \
33260postuninstall_cmds \
33261finish_cmds \
33262sys_lib_search_path_spec \
33263sys_lib_dlsearch_path_spec \
33264old_archive_cmds_CXX \
33265old_archive_from_new_cmds_CXX \
33266old_archive_from_expsyms_cmds_CXX \
33267archive_cmds_CXX \
33268archive_expsym_cmds_CXX \
33269module_cmds_CXX \
33270module_expsym_cmds_CXX \
33271export_symbols_cmds_CXX \
33272prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033273 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033274 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033275 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 +000033276 ;;
33277 *)
33278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33279 ;;
33280 esac
33281done
33282
cristy18304f92009-11-22 15:48:26 +000033283# Fix-up fallback echo if it was mangled by the above quoting rules.
33284case \$lt_ECHO in
33285*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33286 ;;
33287esac
33288
cristy3ed852e2009-09-05 21:47:34 +000033289ac_aux_dir='$ac_aux_dir'
33290xsi_shell='$xsi_shell'
33291lt_shell_append='$lt_shell_append'
33292
33293# See if we are running on zsh, and set the options which allow our
33294# commands through without removal of \ escapes INIT.
33295if test -n "\${ZSH_VERSION+set}" ; then
33296 setopt NO_GLOB_SUBST
33297fi
33298
33299
33300 PACKAGE='$PACKAGE'
33301 VERSION='$VERSION'
33302 TIMESTAMP='$TIMESTAMP'
33303 RM='$RM'
33304 ofile='$ofile'
33305
33306
33307
33308
33309
33310
33311_ACEOF
33312
33313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33314
33315# Handling of arguments.
33316for ac_config_target in $ac_config_targets
33317do
33318 case $ac_config_target in
33319 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33320 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33321 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33322 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33323 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33324 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33325 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033326 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033327 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33328 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33329 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33330 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33331 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33332 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33333 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33334 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33335 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33336 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33337 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33338 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33340 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33341 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33342 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33343 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33344 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33345 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33346 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33347 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33348 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33349 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33350 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33351 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33352 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33353 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33354 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33355 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33356 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33357 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33358 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33359 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33362 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33363 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33364 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33365 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33366 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33367 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33368 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33369
cristy8b350f62009-11-15 23:12:43 +000033370 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033371 esac
33372done
33373
33374
33375# If the user did not use the arguments to specify the items to instantiate,
33376# then the envvar interface is used. Set only those that are not.
33377# We use the long form for the default assignment because of an extremely
33378# bizarre bug on SunOS 4.1.3.
33379if $ac_need_defaults; then
33380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33383fi
33384
33385# Have a temporary directory for convenience. Make it in the build tree
33386# simply because there is no reason against having it here, and in addition,
33387# creating and moving files from /tmp can sometimes cause problems.
33388# Hook for its removal unless debugging.
33389# Note that there is a small window in which the directory will not be cleaned:
33390# after its creation but before its name has been assigned to `$tmp'.
33391$debug ||
33392{
33393 tmp=
33394 trap 'exit_status=$?
33395 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33396' 0
cristy8b350f62009-11-15 23:12:43 +000033397 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000033398}
33399# Create a (secure) tmp directory for tmp files.
33400
33401{
33402 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33403 test -n "$tmp" && test -d "$tmp"
33404} ||
33405{
33406 tmp=./conf$$-$RANDOM
33407 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000033408} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033409
33410# Set up the scripts for CONFIG_FILES section.
33411# No need to generate them if there are no CONFIG_FILES.
33412# This happens for instance with `./config.status config.h'.
33413if test -n "$CONFIG_FILES"; then
33414
33415
cristy8b350f62009-11-15 23:12:43 +000033416ac_cr=`echo X | tr X '\015'`
33417# On cygwin, bash can eat \r inside `` if the user requested igncr.
33418# But we know of no other shell where ac_cr would be empty at this
33419# point, so we can use a bashism as a fallback.
33420if test "x$ac_cr" = x; then
33421 eval ac_cr=\$\'\\r\'
33422fi
cristy3ed852e2009-09-05 21:47:34 +000033423ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33424if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000033425 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000033426else
33427 ac_cs_awk_cr=$ac_cr
33428fi
33429
33430echo 'BEGIN {' >"$tmp/subs1.awk" &&
33431_ACEOF
33432
33433
33434{
33435 echo "cat >conf$$subs.awk <<_ACEOF" &&
33436 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33437 echo "_ACEOF"
33438} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033440ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33441ac_delim='%!_!# '
33442for ac_last_try in false false false false false :; do
33443 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000033444 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033445
33446 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33447 if test $ac_delim_n = $ac_delim_num; then
33448 break
33449 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033451 else
33452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33453 fi
33454done
33455rm -f conf$$subs.sh
33456
33457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33458cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33459_ACEOF
33460sed -n '
33461h
33462s/^/S["/; s/!.*/"]=/
33463p
33464g
33465s/^[^!]*!//
33466:repl
33467t repl
33468s/'"$ac_delim"'$//
33469t delim
33470:nl
33471h
cristycd4c5312009-11-22 01:19:08 +000033472s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033473t more1
33474s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33475p
33476n
33477b repl
33478:more1
33479s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33480p
33481g
33482s/.\{148\}//
33483t nl
33484:delim
33485h
cristycd4c5312009-11-22 01:19:08 +000033486s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000033487t more2
33488s/["\\]/\\&/g; s/^/"/; s/$/"/
33489p
33490b
33491:more2
33492s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33493p
33494g
33495s/.\{148\}//
33496t delim
33497' <conf$$subs.awk | sed '
33498/^[^""]/{
33499 N
33500 s/\n//
33501}
33502' >>$CONFIG_STATUS || ac_write_fail=1
33503rm -f conf$$subs.awk
33504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33505_ACAWK
33506cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33507 for (key in S) S_is_set[key] = 1
33508 FS = ""
33509
33510}
33511{
33512 line = $ 0
33513 nfields = split(line, field, "@")
33514 substed = 0
33515 len = length(field[1])
33516 for (i = 2; i < nfields; i++) {
33517 key = field[i]
33518 keylen = length(key)
33519 if (S_is_set[key]) {
33520 value = S[key]
33521 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33522 len += length(value) + length(field[++i])
33523 substed = 1
33524 } else
33525 len += 1 + keylen
33526 }
33527
33528 print line
33529}
33530
33531_ACAWK
33532_ACEOF
33533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33534if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33535 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33536else
33537 cat
33538fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000033539 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033540_ACEOF
33541
33542# VPATH may cause trouble with some makes, so we remove $(srcdir),
33543# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33544# trailing colons and then remove the whole line if VPATH becomes empty
33545# (actually we leave an empty line to preserve line numbers).
33546if test "x$srcdir" = x.; then
33547 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33548s/:*\$(srcdir):*/:/
33549s/:*\${srcdir}:*/:/
33550s/:*@srcdir@:*/:/
33551s/^\([^=]*=[ ]*\):*/\1/
33552s/:*$//
33553s/^[^=]*=[ ]*$//
33554}'
33555fi
33556
33557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33558fi # test -n "$CONFIG_FILES"
33559
33560# Set up the scripts for CONFIG_HEADERS section.
33561# No need to generate them if there are no CONFIG_HEADERS.
33562# This happens for instance with `./config.status Makefile'.
33563if test -n "$CONFIG_HEADERS"; then
33564cat >"$tmp/defines.awk" <<\_ACAWK ||
33565BEGIN {
33566_ACEOF
33567
33568# Transform confdefs.h into an awk script `defines.awk', embedded as
33569# here-document in config.status, that substitutes the proper values into
33570# config.h.in to produce config.h.
33571
33572# Create a delimiter string that does not exist in confdefs.h, to ease
33573# handling of long lines.
33574ac_delim='%!_!# '
33575for ac_last_try in false false :; do
33576 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33577 if test -z "$ac_t"; then
33578 break
33579 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000033580 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033581 else
33582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33583 fi
33584done
33585
33586# For the awk script, D is an array of macro values keyed by name,
33587# likewise P contains macro parameters if any. Preserve backslash
33588# newline sequences.
33589
33590ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33591sed -n '
33592s/.\{148\}/&'"$ac_delim"'/g
33593t rset
33594:rset
33595s/^[ ]*#[ ]*define[ ][ ]*/ /
33596t def
33597d
33598:def
33599s/\\$//
33600t bsnl
33601s/["\\]/\\&/g
33602s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33603D["\1"]=" \3"/p
33604s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33605d
33606:bsnl
33607s/["\\]/\\&/g
33608s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33609D["\1"]=" \3\\\\\\n"\\/p
33610t cont
33611s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33612t cont
33613d
33614:cont
33615n
33616s/.\{148\}/&'"$ac_delim"'/g
33617t clear
33618:clear
33619s/\\$//
33620t bsnlc
33621s/["\\]/\\&/g; s/^/"/; s/$/"/p
33622d
33623:bsnlc
33624s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33625b cont
33626' <confdefs.h | sed '
33627s/'"$ac_delim"'/"\\\
33628"/g' >>$CONFIG_STATUS || ac_write_fail=1
33629
33630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33631 for (key in D) D_is_set[key] = 1
33632 FS = ""
33633}
33634/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33635 line = \$ 0
33636 split(line, arg, " ")
33637 if (arg[1] == "#") {
33638 defundef = arg[2]
33639 mac1 = arg[3]
33640 } else {
33641 defundef = substr(arg[1], 2)
33642 mac1 = arg[2]
33643 }
33644 split(mac1, mac2, "(") #)
33645 macro = mac2[1]
33646 prefix = substr(line, 1, index(line, defundef) - 1)
33647 if (D_is_set[macro]) {
33648 # Preserve the white space surrounding the "#".
33649 print prefix "define", macro P[macro] D[macro]
33650 next
33651 } else {
33652 # Replace #undef with comments. This is necessary, for example,
33653 # in the case of _POSIX_SOURCE, which is predefined and required
33654 # on some systems where configure will not decide to define it.
33655 if (defundef == "undef") {
33656 print "/*", prefix defundef, macro, "*/"
33657 next
33658 }
33659 }
33660}
33661{ print }
33662_ACAWK
33663_ACEOF
33664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000033665 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033666fi # test -n "$CONFIG_HEADERS"
33667
33668
33669eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33670shift
33671for ac_tag
33672do
33673 case $ac_tag in
33674 :[FHLC]) ac_mode=$ac_tag; continue;;
33675 esac
33676 case $ac_mode$ac_tag in
33677 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000033678 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033679 :[FH]-) ac_tag=-:-;;
33680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33681 esac
33682 ac_save_IFS=$IFS
33683 IFS=:
33684 set x $ac_tag
33685 IFS=$ac_save_IFS
33686 shift
33687 ac_file=$1
33688 shift
33689
33690 case $ac_mode in
33691 :L) ac_source=$1;;
33692 :[FH])
33693 ac_file_inputs=
33694 for ac_f
33695 do
33696 case $ac_f in
33697 -) ac_f="$tmp/stdin";;
33698 *) # Look for the file first in the build tree, then in the source tree
33699 # (if the path is not absolute). The absolute path cannot be DOS-style,
33700 # because $ac_f cannot contain `:'.
33701 test -f "$ac_f" ||
33702 case $ac_f in
33703 [\\/$]*) false;;
33704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33705 esac ||
cristy8b350f62009-11-15 23:12:43 +000033706 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033707 esac
33708 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000033709 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000033710 done
33711
33712 # Let's still pretend it is `configure' which instantiates (i.e., don't
33713 # use $as_me), people would be surprised to read:
33714 # /* config.h. Generated by config.status. */
33715 configure_input='Generated from '`
33716 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33717 `' by configure.'
33718 if test x"$ac_file" != x-; then
33719 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000033720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033721$as_echo "$as_me: creating $ac_file" >&6;}
33722 fi
33723 # Neutralize special characters interpreted by sed in replacement strings.
33724 case $configure_input in #(
33725 *\&* | *\|* | *\\* )
33726 ac_sed_conf_input=`$as_echo "$configure_input" |
33727 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33728 *) ac_sed_conf_input=$configure_input;;
33729 esac
33730
33731 case $ac_tag in
33732 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000033733 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000033734 esac
33735 ;;
33736 esac
33737
33738 ac_dir=`$as_dirname -- "$ac_file" ||
33739$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33740 X"$ac_file" : 'X\(//\)[^/]' \| \
33741 X"$ac_file" : 'X\(//\)$' \| \
33742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33743$as_echo X"$ac_file" |
33744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33745 s//\1/
33746 q
33747 }
33748 /^X\(\/\/\)[^/].*/{
33749 s//\1/
33750 q
33751 }
33752 /^X\(\/\/\)$/{
33753 s//\1/
33754 q
33755 }
33756 /^X\(\/\).*/{
33757 s//\1/
33758 q
33759 }
33760 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000033761 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033762 ac_builddir=.
33763
33764case "$ac_dir" in
33765.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33766*)
33767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33768 # A ".." for each directory in $ac_dir_suffix.
33769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33770 case $ac_top_builddir_sub in
33771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33773 esac ;;
33774esac
33775ac_abs_top_builddir=$ac_pwd
33776ac_abs_builddir=$ac_pwd$ac_dir_suffix
33777# for backward compatibility:
33778ac_top_builddir=$ac_top_build_prefix
33779
33780case $srcdir in
33781 .) # We are building in place.
33782 ac_srcdir=.
33783 ac_top_srcdir=$ac_top_builddir_sub
33784 ac_abs_top_srcdir=$ac_pwd ;;
33785 [\\/]* | ?:[\\/]* ) # Absolute name.
33786 ac_srcdir=$srcdir$ac_dir_suffix;
33787 ac_top_srcdir=$srcdir
33788 ac_abs_top_srcdir=$srcdir ;;
33789 *) # Relative name.
33790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33791 ac_top_srcdir=$ac_top_build_prefix$srcdir
33792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33793esac
33794ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33795
33796
33797 case $ac_mode in
33798 :F)
33799 #
33800 # CONFIG_FILE
33801 #
33802
33803 case $INSTALL in
33804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33806 esac
33807 ac_MKDIR_P=$MKDIR_P
33808 case $MKDIR_P in
33809 [\\/$]* | ?:[\\/]* ) ;;
33810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33811 esac
33812_ACEOF
33813
33814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33815# If the template does not know about datarootdir, expand it.
33816# FIXME: This hack should be removed a few years after 2.60.
33817ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000033818ac_sed_dataroot='
33819/datarootdir/ {
33820 p
33821 q
33822}
33823/@datadir@/p
33824/@docdir@/p
33825/@infodir@/p
33826/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000033827/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000033828case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33829*datarootdir*) ac_datarootdir_seen=yes;;
33830*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33833_ACEOF
33834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33835 ac_datarootdir_hack='
33836 s&@datadir@&$datadir&g
33837 s&@docdir@&$docdir&g
33838 s&@infodir@&$infodir&g
33839 s&@localedir@&$localedir&g
33840 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000033841 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000033842esac
33843_ACEOF
33844
33845# Neutralize VPATH when `$srcdir' = `.'.
33846# Shell code in configure.ac might set extrasub.
33847# FIXME: do we really want to maintain this feature?
33848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33849ac_sed_extra="$ac_vpsub
33850$extrasub
33851_ACEOF
33852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33853:t
33854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33855s|@configure_input@|$ac_sed_conf_input|;t t
33856s&@top_builddir@&$ac_top_builddir_sub&;t t
33857s&@top_build_prefix@&$ac_top_build_prefix&;t t
33858s&@srcdir@&$ac_srcdir&;t t
33859s&@abs_srcdir@&$ac_abs_srcdir&;t t
33860s&@top_srcdir@&$ac_top_srcdir&;t t
33861s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33862s&@builddir@&$ac_builddir&;t t
33863s&@abs_builddir@&$ac_abs_builddir&;t t
33864s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33865s&@INSTALL@&$ac_INSTALL&;t t
33866s&@MKDIR_P@&$ac_MKDIR_P&;t t
33867$ac_datarootdir_hack
33868"
33869eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000033870 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033871
33872test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33873 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000033876which seems to be undefined. Please make sure it is defined." >&5
33877$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33878which seems to be undefined. Please make sure it is defined." >&2;}
33879
33880 rm -f "$tmp/stdin"
33881 case $ac_file in
33882 -) cat "$tmp/out" && rm -f "$tmp/out";;
33883 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33884 esac \
cristy8b350f62009-11-15 23:12:43 +000033885 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033886 ;;
33887 :H)
33888 #
33889 # CONFIG_HEADER
33890 #
33891 if test x"$ac_file" != x-; then
33892 {
33893 $as_echo "/* $configure_input */" \
33894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33895 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000033896 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033897 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000033898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899$as_echo "$as_me: $ac_file is unchanged" >&6;}
33900 else
33901 rm -f "$ac_file"
33902 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000033903 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033904 fi
33905 else
33906 $as_echo "/* $configure_input */" \
33907 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000033908 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033909 fi
33910# Compute "$ac_file"'s index in $config_headers.
33911_am_arg="$ac_file"
33912_am_stamp_count=1
33913for _am_header in $config_headers :; do
33914 case $_am_header in
33915 $_am_arg | $_am_arg:* )
33916 break ;;
33917 * )
33918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33919 esac
33920done
33921echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33922$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33923 X"$_am_arg" : 'X\(//\)[^/]' \| \
33924 X"$_am_arg" : 'X\(//\)$' \| \
33925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33926$as_echo X"$_am_arg" |
33927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33928 s//\1/
33929 q
33930 }
33931 /^X\(\/\/\)[^/].*/{
33932 s//\1/
33933 q
33934 }
33935 /^X\(\/\/\)$/{
33936 s//\1/
33937 q
33938 }
33939 /^X\(\/\).*/{
33940 s//\1/
33941 q
33942 }
33943 s/.*/./; q'`/stamp-h$_am_stamp_count
33944 ;;
33945
cristy8b350f62009-11-15 23:12:43 +000033946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000033947$as_echo "$as_me: executing $ac_file commands" >&6;}
33948 ;;
33949 esac
33950
33951
33952 case $ac_file$ac_mode in
33953 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33954ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33955ac_prefix_conf_PKG=`echo MagickCore`
33956ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33957ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33958ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33959if test ".$ac_prefix_conf_INP" = "."; then
33960 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33961 case "$ac_file" in
33962 *.h) ac_prefix_conf_INP=$ac_file ;;
33963 *)
33964 esac
33965 test ".$ac_prefix_conf_INP" != "." && break
33966 done
33967fi
33968if test ".$ac_prefix_conf_INP" = "."; then
33969 case "$ac_prefix_conf_OUT" in
33970 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33971 ;;
33972 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33973 ;;
33974 *) ac_prefix_conf_INP=config.h
33975 ;;
33976 esac
33977fi
33978if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000033979 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000033980else
33981 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33982 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33983 fi fi
cristy8b350f62009-11-15 23:12:43 +000033984 { $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 +000033985$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33986 if test -f $ac_prefix_conf_INP ; then
33987 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33988 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33989 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33990 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33991 echo "#endif/" >>conftest.prefix
33992 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33993 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33994 echo "#endif/" >> conftest.prefix
33995 # now executing _script on _DEF input to create _OUT output file
33996 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33997 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33998 echo ' ' >>$tmp/pconfig.h
33999 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34000
34001 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34002 echo ' ' >>$tmp/pconfig.h
34003 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34004 echo "#endif" >>$tmp/pconfig.h
34005 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034006 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034007$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34008 else
34009 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34010$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34011 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34012 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34013 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34014$as_echo X"$ac_prefix_conf_OUT" |
34015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34016 s//\1/
34017 q
34018 }
34019 /^X\(\/\/\)[^/].*/{
34020 s//\1/
34021 q
34022 }
34023 /^X\(\/\/\)$/{
34024 s//\1/
34025 q
34026 }
34027 /^X\(\/\).*/{
34028 s//\1/
34029 q
34030 }
34031 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034032 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034033 rm -f "$ac_prefix_conf_OUT"
34034 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34035 fi
34036 cp conftest.prefix _configs.sed
34037 else
cristy8b350f62009-11-15 23:12:43 +000034038 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 +000034039 fi
34040 rm -f conftest.*
34041fi
34042 ;;
34043 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34044 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34045 # are listed without --file. Let's play safe and only enable the eval
34046 # if we detect the quoting.
34047 case $CONFIG_FILES in
34048 *\'*) eval set x "$CONFIG_FILES" ;;
34049 *) set x $CONFIG_FILES ;;
34050 esac
34051 shift
34052 for mf
34053 do
34054 # Strip MF so we end up with the name of the file.
34055 mf=`echo "$mf" | sed -e 's/:.*$//'`
34056 # Check whether this is an Automake generated Makefile or not.
34057 # We used to match only the files named `Makefile.in', but
34058 # some people rename them; so instead we look at the file content.
34059 # Grep'ing the first line is not enough: some people post-process
34060 # each Makefile.in and add a new line on top of each file to say so.
34061 # Grep'ing the whole file is not good either: AIX grep has a line
34062 # limit of 2048, but all sed's we know have understand at least 4000.
34063 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34064 dirpart=`$as_dirname -- "$mf" ||
34065$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34066 X"$mf" : 'X\(//\)[^/]' \| \
34067 X"$mf" : 'X\(//\)$' \| \
34068 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34069$as_echo X"$mf" |
34070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34071 s//\1/
34072 q
34073 }
34074 /^X\(\/\/\)[^/].*/{
34075 s//\1/
34076 q
34077 }
34078 /^X\(\/\/\)$/{
34079 s//\1/
34080 q
34081 }
34082 /^X\(\/\).*/{
34083 s//\1/
34084 q
34085 }
34086 s/.*/./; q'`
34087 else
34088 continue
34089 fi
34090 # Extract the definition of DEPDIR, am__include, and am__quote
34091 # from the Makefile without running `make'.
34092 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34093 test -z "$DEPDIR" && continue
34094 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34095 test -z "am__include" && continue
34096 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34097 # When using ansi2knr, U may be empty or an underscore; expand it
34098 U=`sed -n 's/^U = //p' < "$mf"`
34099 # Find all dependency output files, they are included files with
34100 # $(DEPDIR) in their names. We invoke sed twice because it is the
34101 # simplest approach to changing $(DEPDIR) to its actual value in the
34102 # expansion.
34103 for file in `sed -n "
34104 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34105 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34106 # Make sure the directory exists.
34107 test -f "$dirpart/$file" && continue
34108 fdir=`$as_dirname -- "$file" ||
34109$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34110 X"$file" : 'X\(//\)[^/]' \| \
34111 X"$file" : 'X\(//\)$' \| \
34112 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34113$as_echo X"$file" |
34114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34115 s//\1/
34116 q
34117 }
34118 /^X\(\/\/\)[^/].*/{
34119 s//\1/
34120 q
34121 }
34122 /^X\(\/\/\)$/{
34123 s//\1/
34124 q
34125 }
34126 /^X\(\/\).*/{
34127 s//\1/
34128 q
34129 }
34130 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034131 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034132 # echo "creating $dirpart/$file"
34133 echo '# dummy' > "$dirpart/$file"
34134 done
34135 done
34136}
34137 ;;
34138 "libtool":C)
34139
34140 # See if we are running on zsh, and set the options which allow our
34141 # commands through without removal of \ escapes.
34142 if test -n "${ZSH_VERSION+set}" ; then
34143 setopt NO_GLOB_SUBST
34144 fi
34145
34146 cfgfile="${ofile}T"
34147 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34148 $RM "$cfgfile"
34149
34150 cat <<_LT_EOF >> "$cfgfile"
34151#! $SHELL
34152
34153# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34154# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34155# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34156# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34157#
34158# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034159# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034160# Written by Gordon Matzigkeit, 1996
34161#
34162# This file is part of GNU Libtool.
34163#
34164# GNU Libtool is free software; you can redistribute it and/or
34165# modify it under the terms of the GNU General Public License as
34166# published by the Free Software Foundation; either version 2 of
34167# the License, or (at your option) any later version.
34168#
34169# As a special exception to the GNU General Public License,
34170# if you distribute this file as part of a program or library that
34171# is built using GNU Libtool, you may include this file under the
34172# same distribution terms that you use for the rest of that program.
34173#
34174# GNU Libtool is distributed in the hope that it will be useful,
34175# but WITHOUT ANY WARRANTY; without even the implied warranty of
34176# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34177# GNU General Public License for more details.
34178#
34179# You should have received a copy of the GNU General Public License
34180# along with GNU Libtool; see the file COPYING. If not, a copy
34181# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34182# obtained by writing to the Free Software Foundation, Inc.,
34183# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34184
34185
34186# The names of the tagged configurations supported by this script.
34187available_tags="CXX "
34188
34189# ### BEGIN LIBTOOL CONFIG
34190
34191# A sed program that does not truncate output.
34192SED=$lt_SED
34193
34194# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34195Xsed="\$SED -e 1s/^X//"
34196
34197# A grep program that handles long lines.
34198GREP=$lt_GREP
34199
34200# An ERE matcher.
34201EGREP=$lt_EGREP
34202
34203# A literal string matcher.
34204FGREP=$lt_FGREP
34205
34206# Which release of libtool.m4 was used?
34207macro_version=$macro_version
34208macro_revision=$macro_revision
34209
34210# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034211AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034212
34213# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034214DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034215
34216# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034217OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034218
34219# Whether or not to build shared libraries.
34220build_libtool_libs=$enable_shared
34221
34222# Whether or not to build static libraries.
34223build_old_libs=$enable_static
34224
34225# What type of objects to build.
34226pic_mode=$pic_mode
34227
34228# Whether or not to optimize for fast installation.
34229fast_install=$enable_fast_install
34230
34231# The host system.
34232host_alias=$host_alias
34233host=$host
34234host_os=$host_os
34235
34236# The build system.
34237build_alias=$build_alias
34238build=$build
34239build_os=$build_os
34240
34241# A BSD- or MS-compatible name lister.
34242NM=$lt_NM
34243
34244# Whether we need soft or hard links.
34245LN_S=$lt_LN_S
34246
34247# What is the maximum length of a command?
34248max_cmd_len=$max_cmd_len
34249
34250# Object file suffix (normally "o").
34251objext=$ac_objext
34252
34253# Executable file suffix (normally "").
34254exeext=$exeext
34255
34256# whether the shell understands "unset".
34257lt_unset=$lt_unset
34258
34259# turn spaces into newlines.
34260SP2NL=$lt_lt_SP2NL
34261
34262# turn newlines into spaces.
34263NL2SP=$lt_lt_NL2SP
34264
cristy18304f92009-11-22 15:48:26 +000034265# How to create reloadable object files.
34266reload_flag=$lt_reload_flag
34267reload_cmds=$lt_reload_cmds
34268
cristy3ed852e2009-09-05 21:47:34 +000034269# Method to check whether dependent libraries are shared objects.
34270deplibs_check_method=$lt_deplibs_check_method
34271
34272# Command to use when deplibs_check_method == "file_magic".
34273file_magic_cmd=$lt_file_magic_cmd
34274
34275# The archiver.
34276AR=$lt_AR
34277AR_FLAGS=$lt_AR_FLAGS
34278
34279# A symbol stripping program.
34280STRIP=$lt_STRIP
34281
34282# Commands used to install an old-style archive.
34283RANLIB=$lt_RANLIB
34284old_postinstall_cmds=$lt_old_postinstall_cmds
34285old_postuninstall_cmds=$lt_old_postuninstall_cmds
34286
34287# A C compiler.
34288LTCC=$lt_CC
34289
34290# LTCC compiler flags.
34291LTCFLAGS=$lt_CFLAGS
34292
34293# Take the output of nm and produce a listing of raw symbols and C names.
34294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34295
34296# Transform the output of nm in a proper C declaration.
34297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34298
34299# Transform the output of nm in a C name address pair.
34300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34301
34302# Transform the output of nm in a C name address pair when lib prefix is needed.
34303global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34304
34305# The name of the directory that contains temporary libtool files.
34306objdir=$objdir
34307
cristy18304f92009-11-22 15:48:26 +000034308# Shell to use when invoking shell scripts.
34309SHELL=$lt_SHELL
34310
34311# An echo program that does not interpret backslashes.
34312ECHO=$lt_ECHO
34313
cristy3ed852e2009-09-05 21:47:34 +000034314# Used to examine libraries when file_magic_cmd begins with "file".
34315MAGIC_CMD=$MAGIC_CMD
34316
34317# Must we lock files when doing compilation?
34318need_locks=$lt_need_locks
34319
34320# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34321DSYMUTIL=$lt_DSYMUTIL
34322
34323# Tool to change global to local symbols on Mac OS X.
34324NMEDIT=$lt_NMEDIT
34325
34326# Tool to manipulate fat objects and archives on Mac OS X.
34327LIPO=$lt_LIPO
34328
34329# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34330OTOOL=$lt_OTOOL
34331
34332# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34333OTOOL64=$lt_OTOOL64
34334
34335# Old archive suffix (normally "a").
34336libext=$libext
34337
34338# Shared library suffix (normally ".so").
34339shrext_cmds=$lt_shrext_cmds
34340
34341# The commands to extract the exported symbol list from a shared archive.
34342extract_expsyms_cmds=$lt_extract_expsyms_cmds
34343
34344# Variables whose values should be saved in libtool wrapper scripts and
34345# restored at link time.
34346variables_saved_for_relink=$lt_variables_saved_for_relink
34347
34348# Do we need the "lib" prefix for modules?
34349need_lib_prefix=$need_lib_prefix
34350
34351# Do we need a version for libraries?
34352need_version=$need_version
34353
34354# Library versioning type.
34355version_type=$version_type
34356
34357# Shared library runtime path variable.
34358runpath_var=$runpath_var
34359
34360# Shared library path variable.
34361shlibpath_var=$shlibpath_var
34362
34363# Is shlibpath searched before the hard-coded library search path?
34364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34365
34366# Format of library name prefix.
34367libname_spec=$lt_libname_spec
34368
34369# List of archive names. First name is the real one, the rest are links.
34370# The last name is the one that the linker finds with -lNAME
34371library_names_spec=$lt_library_names_spec
34372
34373# The coded name of the library, if different from the real name.
34374soname_spec=$lt_soname_spec
34375
34376# Command to use after installation of a shared archive.
34377postinstall_cmds=$lt_postinstall_cmds
34378
34379# Command to use after uninstallation of a shared archive.
34380postuninstall_cmds=$lt_postuninstall_cmds
34381
34382# Commands used to finish a libtool library installation in a directory.
34383finish_cmds=$lt_finish_cmds
34384
34385# As "finish_cmds", except a single script fragment to be evaled but
34386# not shown.
34387finish_eval=$lt_finish_eval
34388
34389# Whether we should hardcode library paths into libraries.
34390hardcode_into_libs=$hardcode_into_libs
34391
34392# Compile-time system search path for libraries.
34393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34394
34395# Run-time system search path for libraries.
34396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34397
34398# Whether dlopen is supported.
34399dlopen_support=$enable_dlopen
34400
34401# Whether dlopen of programs is supported.
34402dlopen_self=$enable_dlopen_self
34403
34404# Whether dlopen of statically linked programs is supported.
34405dlopen_self_static=$enable_dlopen_self_static
34406
34407# Commands to strip libraries.
34408old_striplib=$lt_old_striplib
34409striplib=$lt_striplib
34410
34411
34412# The linker used to build libraries.
34413LD=$lt_LD
34414
34415# Commands used to build an old-style archive.
34416old_archive_cmds=$lt_old_archive_cmds
34417
34418# A language specific compiler.
34419CC=$lt_compiler
34420
34421# Is the compiler the GNU compiler?
34422with_gcc=$GCC
34423
34424# Compiler flag to turn off builtin functions.
34425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34426
34427# How to pass a linker flag through the compiler.
34428wl=$lt_lt_prog_compiler_wl
34429
34430# Additional compiler flags for building library objects.
34431pic_flag=$lt_lt_prog_compiler_pic
34432
34433# Compiler flag to prevent dynamic linking.
34434link_static_flag=$lt_lt_prog_compiler_static
34435
34436# Does compiler simultaneously support -c and -o options?
34437compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34438
34439# Whether or not to add -lc for building shared libraries.
34440build_libtool_need_lc=$archive_cmds_need_lc
34441
34442# Whether or not to disallow shared libs when runtime libs are static.
34443allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34444
34445# Compiler flag to allow reflexive dlopens.
34446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34447
34448# Compiler flag to generate shared objects directly from archives.
34449whole_archive_flag_spec=$lt_whole_archive_flag_spec
34450
34451# Whether the compiler copes with passing no objects directly.
34452compiler_needs_object=$lt_compiler_needs_object
34453
34454# Create an old-style archive from a shared archive.
34455old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34456
34457# Create a temporary old-style archive to link instead of a shared archive.
34458old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34459
34460# Commands used to build a shared archive.
34461archive_cmds=$lt_archive_cmds
34462archive_expsym_cmds=$lt_archive_expsym_cmds
34463
34464# Commands used to build a loadable module if different from building
34465# a shared archive.
34466module_cmds=$lt_module_cmds
34467module_expsym_cmds=$lt_module_expsym_cmds
34468
34469# Whether we are building with GNU ld or not.
34470with_gnu_ld=$lt_with_gnu_ld
34471
34472# Flag that allows shared libraries with undefined symbols to be built.
34473allow_undefined_flag=$lt_allow_undefined_flag
34474
34475# Flag that enforces no undefined symbols.
34476no_undefined_flag=$lt_no_undefined_flag
34477
34478# Flag to hardcode \$libdir into a binary during linking.
34479# This must work even if \$libdir does not exist
34480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34481
34482# If ld is used when linking, flag to hardcode \$libdir into a binary
34483# during linking. This must work even if \$libdir does not exist.
34484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34485
34486# Whether we need a single "-rpath" flag with a separated argument.
34487hardcode_libdir_separator=$lt_hardcode_libdir_separator
34488
34489# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34490# DIR into the resulting binary.
34491hardcode_direct=$hardcode_direct
34492
34493# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34494# DIR into the resulting binary and the resulting library dependency is
34495# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34496# library is relocated.
34497hardcode_direct_absolute=$hardcode_direct_absolute
34498
34499# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34500# into the resulting binary.
34501hardcode_minus_L=$hardcode_minus_L
34502
34503# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34504# into the resulting binary.
34505hardcode_shlibpath_var=$hardcode_shlibpath_var
34506
34507# Set to "yes" if building a shared library automatically hardcodes DIR
34508# into the library and all subsequent libraries and executables linked
34509# against it.
34510hardcode_automatic=$hardcode_automatic
34511
34512# Set to yes if linker adds runtime paths of dependent libraries
34513# to runtime path list.
34514inherit_rpath=$inherit_rpath
34515
34516# Whether libtool must link a program against all its dependency libraries.
34517link_all_deplibs=$link_all_deplibs
34518
34519# Fix the shell variable \$srcfile for the compiler.
34520fix_srcfile_path=$lt_fix_srcfile_path
34521
34522# Set to "yes" if exported symbols are required.
34523always_export_symbols=$always_export_symbols
34524
34525# The commands to list exported symbols.
34526export_symbols_cmds=$lt_export_symbols_cmds
34527
34528# Symbols that should not be listed in the preloaded symbols.
34529exclude_expsyms=$lt_exclude_expsyms
34530
34531# Symbols that must always be exported.
34532include_expsyms=$lt_include_expsyms
34533
34534# Commands necessary for linking programs (against libraries) with templates.
34535prelink_cmds=$lt_prelink_cmds
34536
34537# Specify filename containing input files.
34538file_list_spec=$lt_file_list_spec
34539
34540# How to hardcode a shared library path into an executable.
34541hardcode_action=$hardcode_action
34542
34543# The directories searched by this compiler when creating a shared library.
34544compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34545
34546# Dependencies to place before and after the objects being linked to
34547# create a shared library.
34548predep_objects=$lt_predep_objects
34549postdep_objects=$lt_postdep_objects
34550predeps=$lt_predeps
34551postdeps=$lt_postdeps
34552
34553# The library search path used internally by the compiler when linking
34554# a shared library.
34555compiler_lib_search_path=$lt_compiler_lib_search_path
34556
34557# ### END LIBTOOL CONFIG
34558
34559_LT_EOF
34560
34561 case $host_os in
34562 aix3*)
34563 cat <<\_LT_EOF >> "$cfgfile"
34564# AIX sometimes has problems with the GCC collect2 program. For some
34565# reason, if we set the COLLECT_NAMES environment variable, the problems
34566# vanish in a puff of smoke.
34567if test "X${COLLECT_NAMES+set}" != Xset; then
34568 COLLECT_NAMES=
34569 export COLLECT_NAMES
34570fi
34571_LT_EOF
34572 ;;
34573 esac
34574
34575
34576ltmain="$ac_aux_dir/ltmain.sh"
34577
34578
34579 # We use sed instead of cat because bash on DJGPP gets confused if
34580 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34581 # text mode, it properly converts lines to CR/LF. This bash problem
34582 # is reportedly fixed, but why not run on old versions too?
34583 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34584 || (rm -f "$cfgfile"; exit 1)
34585
34586 case $xsi_shell in
34587 yes)
34588 cat << \_LT_EOF >> "$cfgfile"
34589
34590# func_dirname file append nondir_replacement
34591# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34592# otherwise set result to NONDIR_REPLACEMENT.
34593func_dirname ()
34594{
34595 case ${1} in
34596 */*) func_dirname_result="${1%/*}${2}" ;;
34597 * ) func_dirname_result="${3}" ;;
34598 esac
34599}
34600
34601# func_basename file
34602func_basename ()
34603{
34604 func_basename_result="${1##*/}"
34605}
34606
34607# func_dirname_and_basename file append nondir_replacement
34608# perform func_basename and func_dirname in a single function
34609# call:
34610# dirname: Compute the dirname of FILE. If nonempty,
34611# add APPEND to the result, otherwise set result
34612# to NONDIR_REPLACEMENT.
34613# value returned in "$func_dirname_result"
34614# basename: Compute filename of FILE.
34615# value retuned in "$func_basename_result"
34616# Implementation must be kept synchronized with func_dirname
34617# and func_basename. For efficiency, we do not delegate to
34618# those functions but instead duplicate the functionality here.
34619func_dirname_and_basename ()
34620{
34621 case ${1} in
34622 */*) func_dirname_result="${1%/*}${2}" ;;
34623 * ) func_dirname_result="${3}" ;;
34624 esac
34625 func_basename_result="${1##*/}"
34626}
34627
34628# func_stripname prefix suffix name
34629# strip PREFIX and SUFFIX off of NAME.
34630# PREFIX and SUFFIX must not contain globbing or regex special
34631# characters, hashes, percent signs, but SUFFIX may contain a leading
34632# dot (in which case that matches only a dot).
34633func_stripname ()
34634{
34635 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34636 # positional parameters, so assign one to ordinary parameter first.
34637 func_stripname_result=${3}
34638 func_stripname_result=${func_stripname_result#"${1}"}
34639 func_stripname_result=${func_stripname_result%"${2}"}
34640}
34641
34642# func_opt_split
34643func_opt_split ()
34644{
34645 func_opt_split_opt=${1%%=*}
34646 func_opt_split_arg=${1#*=}
34647}
34648
34649# func_lo2o object
34650func_lo2o ()
34651{
34652 case ${1} in
34653 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34654 *) func_lo2o_result=${1} ;;
34655 esac
34656}
34657
34658# func_xform libobj-or-source
34659func_xform ()
34660{
34661 func_xform_result=${1%.*}.lo
34662}
34663
34664# func_arith arithmetic-term...
34665func_arith ()
34666{
34667 func_arith_result=$(( $* ))
34668}
34669
34670# func_len string
34671# STRING may not start with a hyphen.
34672func_len ()
34673{
34674 func_len_result=${#1}
34675}
34676
34677_LT_EOF
34678 ;;
34679 *) # Bourne compatible functions.
34680 cat << \_LT_EOF >> "$cfgfile"
34681
34682# func_dirname file append nondir_replacement
34683# Compute the dirname of FILE. If nonempty, add APPEND to the result,
34684# otherwise set result to NONDIR_REPLACEMENT.
34685func_dirname ()
34686{
34687 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000034688 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000034689 if test "X$func_dirname_result" = "X${1}"; then
34690 func_dirname_result="${3}"
34691 else
34692 func_dirname_result="$func_dirname_result${2}"
34693 fi
34694}
34695
34696# func_basename file
34697func_basename ()
34698{
cristy18304f92009-11-22 15:48:26 +000034699 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000034700}
34701
34702
34703# func_stripname prefix suffix name
34704# strip PREFIX and SUFFIX off of NAME.
34705# PREFIX and SUFFIX must not contain globbing or regex special
34706# characters, hashes, percent signs, but SUFFIX may contain a leading
34707# dot (in which case that matches only a dot).
34708# func_strip_suffix prefix name
34709func_stripname ()
34710{
34711 case ${2} in
cristy18304f92009-11-22 15:48:26 +000034712 .*) func_stripname_result=`$ECHO "X${3}" \
34713 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34714 *) func_stripname_result=`$ECHO "X${3}" \
34715 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000034716 esac
34717}
34718
34719# sed scripts:
34720my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34721my_sed_long_arg='1s/^-[^=]*=//'
34722
34723# func_opt_split
34724func_opt_split ()
34725{
cristy18304f92009-11-22 15:48:26 +000034726 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34727 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000034728}
34729
34730# func_lo2o object
34731func_lo2o ()
34732{
cristy18304f92009-11-22 15:48:26 +000034733 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000034734}
34735
34736# func_xform libobj-or-source
34737func_xform ()
34738{
cristy18304f92009-11-22 15:48:26 +000034739 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000034740}
34741
34742# func_arith arithmetic-term...
34743func_arith ()
34744{
34745 func_arith_result=`expr "$@"`
34746}
34747
34748# func_len string
34749# STRING may not start with a hyphen.
34750func_len ()
34751{
34752 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34753}
34754
34755_LT_EOF
34756esac
34757
34758case $lt_shell_append in
34759 yes)
34760 cat << \_LT_EOF >> "$cfgfile"
34761
34762# func_append var value
34763# Append VALUE to the end of shell variable VAR.
34764func_append ()
34765{
34766 eval "$1+=\$2"
34767}
34768_LT_EOF
34769 ;;
34770 *)
34771 cat << \_LT_EOF >> "$cfgfile"
34772
34773# func_append var value
34774# Append VALUE to the end of shell variable VAR.
34775func_append ()
34776{
34777 eval "$1=\$$1\$2"
34778}
34779
34780_LT_EOF
34781 ;;
34782 esac
34783
34784
34785 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34786 || (rm -f "$cfgfile"; exit 1)
34787
34788 mv -f "$cfgfile" "$ofile" ||
34789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34790 chmod +x "$ofile"
34791
34792
34793 cat <<_LT_EOF >> "$ofile"
34794
34795# ### BEGIN LIBTOOL TAG CONFIG: CXX
34796
34797# The linker used to build libraries.
34798LD=$lt_LD_CXX
34799
34800# Commands used to build an old-style archive.
34801old_archive_cmds=$lt_old_archive_cmds_CXX
34802
34803# A language specific compiler.
34804CC=$lt_compiler_CXX
34805
34806# Is the compiler the GNU compiler?
34807with_gcc=$GCC_CXX
34808
34809# Compiler flag to turn off builtin functions.
34810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34811
34812# How to pass a linker flag through the compiler.
34813wl=$lt_lt_prog_compiler_wl_CXX
34814
34815# Additional compiler flags for building library objects.
34816pic_flag=$lt_lt_prog_compiler_pic_CXX
34817
34818# Compiler flag to prevent dynamic linking.
34819link_static_flag=$lt_lt_prog_compiler_static_CXX
34820
34821# Does compiler simultaneously support -c and -o options?
34822compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34823
34824# Whether or not to add -lc for building shared libraries.
34825build_libtool_need_lc=$archive_cmds_need_lc_CXX
34826
34827# Whether or not to disallow shared libs when runtime libs are static.
34828allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34829
34830# Compiler flag to allow reflexive dlopens.
34831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34832
34833# Compiler flag to generate shared objects directly from archives.
34834whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34835
34836# Whether the compiler copes with passing no objects directly.
34837compiler_needs_object=$lt_compiler_needs_object_CXX
34838
34839# Create an old-style archive from a shared archive.
34840old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34841
34842# Create a temporary old-style archive to link instead of a shared archive.
34843old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34844
34845# Commands used to build a shared archive.
34846archive_cmds=$lt_archive_cmds_CXX
34847archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34848
34849# Commands used to build a loadable module if different from building
34850# a shared archive.
34851module_cmds=$lt_module_cmds_CXX
34852module_expsym_cmds=$lt_module_expsym_cmds_CXX
34853
34854# Whether we are building with GNU ld or not.
34855with_gnu_ld=$lt_with_gnu_ld_CXX
34856
34857# Flag that allows shared libraries with undefined symbols to be built.
34858allow_undefined_flag=$lt_allow_undefined_flag_CXX
34859
34860# Flag that enforces no undefined symbols.
34861no_undefined_flag=$lt_no_undefined_flag_CXX
34862
34863# Flag to hardcode \$libdir into a binary during linking.
34864# This must work even if \$libdir does not exist
34865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34866
34867# If ld is used when linking, flag to hardcode \$libdir into a binary
34868# during linking. This must work even if \$libdir does not exist.
34869hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34870
34871# Whether we need a single "-rpath" flag with a separated argument.
34872hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34873
34874# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34875# DIR into the resulting binary.
34876hardcode_direct=$hardcode_direct_CXX
34877
34878# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34879# DIR into the resulting binary and the resulting library dependency is
34880# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34881# library is relocated.
34882hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34883
34884# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34885# into the resulting binary.
34886hardcode_minus_L=$hardcode_minus_L_CXX
34887
34888# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34889# into the resulting binary.
34890hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34891
34892# Set to "yes" if building a shared library automatically hardcodes DIR
34893# into the library and all subsequent libraries and executables linked
34894# against it.
34895hardcode_automatic=$hardcode_automatic_CXX
34896
34897# Set to yes if linker adds runtime paths of dependent libraries
34898# to runtime path list.
34899inherit_rpath=$inherit_rpath_CXX
34900
34901# Whether libtool must link a program against all its dependency libraries.
34902link_all_deplibs=$link_all_deplibs_CXX
34903
34904# Fix the shell variable \$srcfile for the compiler.
34905fix_srcfile_path=$lt_fix_srcfile_path_CXX
34906
34907# Set to "yes" if exported symbols are required.
34908always_export_symbols=$always_export_symbols_CXX
34909
34910# The commands to list exported symbols.
34911export_symbols_cmds=$lt_export_symbols_cmds_CXX
34912
34913# Symbols that should not be listed in the preloaded symbols.
34914exclude_expsyms=$lt_exclude_expsyms_CXX
34915
34916# Symbols that must always be exported.
34917include_expsyms=$lt_include_expsyms_CXX
34918
34919# Commands necessary for linking programs (against libraries) with templates.
34920prelink_cmds=$lt_prelink_cmds_CXX
34921
34922# Specify filename containing input files.
34923file_list_spec=$lt_file_list_spec_CXX
34924
34925# How to hardcode a shared library path into an executable.
34926hardcode_action=$hardcode_action_CXX
34927
34928# The directories searched by this compiler when creating a shared library.
34929compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34930
34931# Dependencies to place before and after the objects being linked to
34932# create a shared library.
34933predep_objects=$lt_predep_objects_CXX
34934postdep_objects=$lt_postdep_objects_CXX
34935predeps=$lt_predeps_CXX
34936postdeps=$lt_postdeps_CXX
34937
34938# The library search path used internally by the compiler when linking
34939# a shared library.
34940compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34941
34942# ### END LIBTOOL TAG CONFIG: CXX
34943_LT_EOF
34944
34945 ;;
34946 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34947 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34948 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34949 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34950 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34951 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34952
34953 esac
34954done # for ac_tag
34955
34956
cristy8b350f62009-11-15 23:12:43 +000034957as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000034958_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000034959ac_clean_files=$ac_clean_files_save
34960
34961test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000034962 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034963
34964
34965# configure is writing to config.log, and then calls config.status.
34966# config.status does its own redirection, appending to config.log.
34967# Unfortunately, on DOS this fails, as config.log is still kept open
34968# by configure, so config.status won't be able to write to it; its
34969# output is simply discarded. So we exec the FD to /dev/null,
34970# effectively closing config.log, so it can be properly (re)opened and
34971# appended to by config.status. When coming back to configure, we
34972# need to make the FD available again.
34973if test "$no_create" != yes; then
34974 ac_cs_success=:
34975 ac_config_status_args=
34976 test "$silent" = yes &&
34977 ac_config_status_args="$ac_config_status_args --quiet"
34978 exec 5>/dev/null
34979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34980 exec 5>>config.log
34981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34982 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000034983 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000034984fi
34985if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34988fi
34989
34990
34991rm -f magick-version
34992
cristy430a7312010-01-21 20:44:04 +000034993result_dejavu_font_dir='none'
34994if test "${dejavu_font_dir}x" != 'x'; then
34995 result_dejavu_font_dir=$dejavu_font_dir
34996fi
34997
cristy3ed852e2009-09-05 21:47:34 +000034998result_ghostscript_font_dir='none'
34999if test "${ghostscript_font_dir}x" != 'x'; then
35000 result_ghostscript_font_dir=$ghostscript_font_dir
35001fi
35002
35003result_windows_font_dir='none'
35004if test "${windows_font_dir}x" != 'x'; then
35005 result_windows_font_dir=${windows_font_dir}
35006fi
35007
cristy8b350f62009-11-15 23:12:43 +000035008{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035009ImageMagick is configured as follows. Please verify that this configuration
35010matches your expectations.
35011
35012Host system type: $host
35013Build system type: $build
35014
35015 Option Value
35016-------------------------------------------------------------------------------
35017Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35018Static libraries --enable-static=$enable_static $libtool_build_static_libs
35019Module support --with-modules=$with_modules $with_modules
35020GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35021Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35022High Dynamic Range Imagery
35023 --enable-hdri=$enable_hdri $enable_hdri
35024
35025Delegate Configuration:
35026BZLIB --with-bzlib=$with_bzlib $have_bzlib
35027Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035028Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035029DJVU --with-djvu=$with_djvu $have_djvu
35030DPS --with-dps=$with_dps $have_dps
35031FFTW --with-fftw=$with_fftw $have_fftw
35032FlashPIX --with-fpx=$with_fpx $have_fpx
35033FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35034FreeType --with-freetype=$with_freetype $have_freetype
35035GhostPCL None $PCLDelegate ($PCLVersion)
35036GhostXPS None $XPSDelegate ($XPSVersion)
35037Ghostscript None $PSDelegate ($GSVersion)
35038Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35039Ghostscript lib --with-gslib=$with_gslib $have_gslib
35040Graphviz --with-gvc=$with_gvc $have_gvc
35041JBIG --with-jbig=$with_jbig $have_jbig
35042JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35043JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35044LCMS --with-lcms=$with_lcms $have_lcms
35045LQR --with-lqr=$with_lqr $have_lqr
35046Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35047OpenEXR --with-openexr=$with_openexr $have_openexr
35048PERL --with-perl=$with_perl $have_perl
35049PNG --with-png=$with_png $have_png
35050RSVG --with-rsvg=$with_rsvg $have_rsvg
35051TIFF --with-tiff=$with_tiff $have_tiff
35052Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35053WMF --with-wmf=$with_wmf $have_wmf
35054X11 --with-x=$with_x $have_x
35055XML --with-xml=$with_xml $have_xml
35056ZLIB --with-zlib=$with_zlib $have_zlib
35057
35058X11 Configuration:
35059 X_CFLAGS = $X_CFLAGS
35060 X_PRE_LIBS = $X_PRE_LIBS
35061 X_LIBS = $X_LIBS
35062 X_EXTRA_LIBS = $X_EXTRA_LIBS
35063
35064Options used to compile and link:
35065 PREFIX = $PREFIX_DIR
35066 EXEC-PREFIX = $EXEC_PREFIX_DIR
35067 VERSION = $PACKAGE_VERSION
35068 CC = $CC
35069 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035070 CPPFLAGS = $MAGICK_CPPFLAGS
35071 PCFLAGS = $MAGICK_PCFLAGS
35072 DEFS = $DEFS
35073 LDFLAGS = $LDFLAGS
35074 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35075 LIBS = $MAGICK_LIBS
35076 CXX = $CXX
35077 CXXFLAGS = $CXXFLAGS
35078" >&5
35079$as_echo "
35080ImageMagick is configured as follows. Please verify that this configuration
35081matches your expectations.
35082
35083Host system type: $host
35084Build system type: $build
35085
35086 Option Value
35087-------------------------------------------------------------------------------
35088Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35089Static libraries --enable-static=$enable_static $libtool_build_static_libs
35090Module support --with-modules=$with_modules $with_modules
35091GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35092Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35093High Dynamic Range Imagery
35094 --enable-hdri=$enable_hdri $enable_hdri
35095
35096Delegate Configuration:
35097BZLIB --with-bzlib=$with_bzlib $have_bzlib
35098Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035099Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035100DJVU --with-djvu=$with_djvu $have_djvu
35101DPS --with-dps=$with_dps $have_dps
35102FFTW --with-fftw=$with_fftw $have_fftw
35103FlashPIX --with-fpx=$with_fpx $have_fpx
35104FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35105FreeType --with-freetype=$with_freetype $have_freetype
35106GhostPCL None $PCLDelegate ($PCLVersion)
35107GhostXPS None $XPSDelegate ($XPSVersion)
35108Ghostscript None $PSDelegate ($GSVersion)
35109Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35110Ghostscript lib --with-gslib=$with_gslib $have_gslib
35111Graphviz --with-gvc=$with_gvc $have_gvc
35112JBIG --with-jbig=$with_jbig $have_jbig
35113JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35114JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35115LCMS --with-lcms=$with_lcms $have_lcms
35116LQR --with-lqr=$with_lqr $have_lqr
35117Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35118OpenEXR --with-openexr=$with_openexr $have_openexr
35119PERL --with-perl=$with_perl $have_perl
35120PNG --with-png=$with_png $have_png
35121RSVG --with-rsvg=$with_rsvg $have_rsvg
35122TIFF --with-tiff=$with_tiff $have_tiff
35123Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35124WMF --with-wmf=$with_wmf $have_wmf
35125X11 --with-x=$with_x $have_x
35126XML --with-xml=$with_xml $have_xml
35127ZLIB --with-zlib=$with_zlib $have_zlib
35128
35129X11 Configuration:
35130 X_CFLAGS = $X_CFLAGS
35131 X_PRE_LIBS = $X_PRE_LIBS
35132 X_LIBS = $X_LIBS
35133 X_EXTRA_LIBS = $X_EXTRA_LIBS
35134
35135Options used to compile and link:
35136 PREFIX = $PREFIX_DIR
35137 EXEC-PREFIX = $EXEC_PREFIX_DIR
35138 VERSION = $PACKAGE_VERSION
35139 CC = $CC
35140 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035141 CPPFLAGS = $MAGICK_CPPFLAGS
35142 PCFLAGS = $MAGICK_PCFLAGS
35143 DEFS = $DEFS
35144 LDFLAGS = $LDFLAGS
35145 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35146 LIBS = $MAGICK_LIBS
35147 CXX = $CXX
35148 CXXFLAGS = $CXXFLAGS
35149" >&6; }