blob: 5c582326e41820fee8e25f5fa24e99765d4a6d49 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy664b8d72010-05-17 13:53:36 +00003# Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristycd4c5312009-11-22 01:19:08 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000094case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
cristy3ed852e2009-09-05 21:47:34 +0000103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000114 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000115fi
116
cristy8b350f62009-11-15 23:12:43 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
cristy8b350f62009-11-15 23:12:43 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy18304f92009-11-22 15:48:26 +0000176test \$(( 1 + 1 )) = 2 || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: http://www.imagemagick.org about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
cristy3ed852e2009-09-05 21:47:34 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
cristy8b350f62009-11-15 23:12:43 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
cristy3ed852e2009-09-05 21:47:34 +0000396
cristy3ed852e2009-09-05 21:47:34 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
cristy8b350f62009-11-15 23:12:43 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000422
423
cristy8b350f62009-11-15 23:12:43 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
cristy3ed852e2009-09-05 21:47:34 +0000455ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000456case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000457-n*)
cristy8b350f62009-11-15 23:12:43 +0000458 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000463 esac;;
464*)
465 ECHO_N='-n';;
466esac
cristy3ed852e2009-09-05 21:47:34 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
cristy8b350f62009-11-15 23:12:43 +0000515 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000516 -*)set "./$1";;
517 esac;
cristy8b350f62009-11-15 23:12:43 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
cristy18304f92009-11-22 15:48:26 +0000531
532
533# Check that we are running under the correct shell.
cristy3ed852e2009-09-05 21:47:34 +0000534SHELL=${CONFIG_SHELL-/bin/sh}
535
cristy18304f92009-11-22 15:48:26 +0000536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
cristy3ed852e2009-09-05 21:47:34 +0000681lt_ltdl_dir='ltdl'
682
683lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
cristycd4c5312009-11-22 01:19:08 +0000685test -n "$DJDIR" || exec 7<&0 </dev/null
686exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000687
688# Name of the host.
689# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690# so uname gets run too.
691ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693#
694# Initializations.
695#
696ac_default_prefix=/usr/local
697ac_clean_files=
698ac_config_libobj_dir=.
699LIBOBJS=
700cross_compiling=no
701subdirs=
702MFLAGS=
703MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000704
705# Identity of this package.
706PACKAGE_NAME='ImageMagick'
707PACKAGE_TARNAME='ImageMagick'
cristy664b8d72010-05-17 13:53:36 +0000708PACKAGE_VERSION='6.6.2'
709PACKAGE_STRING='ImageMagick 6.6.2'
cristy3ed852e2009-09-05 21:47:34 +0000710PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000711PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000712
713ac_unique_file="magick/MagickCore.h"
714ac_config_libobj_dir=ltdl
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
cristycd4c5312009-11-22 01:19:08 +0000751ac_header_list=
cristy3ed852e2009-09-05 21:47:34 +0000752ac_subst_vars='ltdl_LTLIBOBJS
753ltdl_LIBOBJS
754am__EXEEXT_FALSE
755am__EXEEXT_TRUE
756LTLIBOBJS
757MAGICK_LIBS
758MAGICK_LDFLAGS
759MAGICK_PCFLAGS
760MAGICK_CPPFLAGS
761MAGICK_CXXFLAGS
762MAGICK_CFLAGS
763MAGICK_DEP_LIBS
764MAGICK_LTDLDEPS
765MAGICK_LIBLTDL
766OSX_GCOV_LDFLAG
767DELEGATES
768MAGICKCORE_PATH
769PERL_SUPPORTS_DESTDIR
770WITH_PERL_DYNAMIC_FALSE
771WITH_PERL_DYNAMIC_TRUE
772WITH_PERL_STATIC_FALSE
773WITH_PERL_STATIC_TRUE
774WITH_PERL_FALSE
775WITH_PERL_TRUE
cristy964cb7f2010-04-25 23:18:00 +0000776PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000777GSVersion
778GSPSDevice
779GSPDFDevice
780GSMonoDevice
781GSEPSDevice
782GSColorDevice
783GSCMYKDevice
784GSAlphaDevice
785XPSVersion
786XPSCMYKDevice
787XPSColorDevice
788XPSMonoDevice
789PCLVersion
790PCLCMYKDevice
791PCLColorDevice
792PCLMonoDevice
793ZIP_DELEGATE_FALSE
794ZIP_DELEGATE_TRUE
795ZIP
796P7ZIP_DELEGATE_FALSE
797P7ZIP_DELEGATE_TRUE
798P7ZIP
799RPM_DELEGATE_FALSE
800RPM_DELEGATE_TRUE
801RPM
802PERL
803TAR
804ShowImageDelegate
805type_include_files
806ghostscript_font_dir
807windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000808dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000809PrintDelegate
810ZipDelegate
811XPSDelegate
812WWWDecodeDelegate
813WMFDecodeDelegate
814TXTDelegate
815SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000816RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000817RMDelegate
818RLEEncodeDelegate
819PSDelegate
820POVDelegate
821PGPDecodeDelegate
822PCLDelegate
823MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000824MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000825MPEGEncodeDelegate
826MPEGDecodeDelegate
827MANDelegate
828LaunchDelegate
829LZWEncodeDelegate
830LZWDecodeDelegate
831LPRDelegate
832LPDelegate
833ILBMEncodeDelegate
834ILBMDecodeDelegate
835HTMLDecodeDelegate
836HPGLDecodeDelegate
837HDRDecodeDelegate
838GnuplotDecodeDelegate
839MogrifyDelegate
840DisplayDelegate
841ConvertDelegate
842FIGDecodeDelegate
843EditorDelegate
844EchoDelegate
845DVIDecodeDelegate
846GVCDecodeDelegate
847DNGDecodeDelegate
848CatDelegate
849CGMDecodeDelegate
850BrowseDelegate
851BZIPDelegate
852BlenderDecodeDelegate
853AVIDecodeDelegate
854AutotraceDecodeDelegate
855SHARE_CONFIGURE_PATH
856SHARE_PATH
857DOCUMENTATION_PATH
858FILTER_PATH
859CODER_PATH
860CONFIGURE_PATH
861LIBRARY_PATH
862EXECUTABLE_PATH
863PERLMAINCC
864XML_LIBS
865XML_DELEGATE_FALSE
866XML_DELEGATE_TRUE
867xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000868WMF_LIBS
869WMF_DELEGATE_FALSE
870WMF_DELEGATE_TRUE
871TIFF_LIBS
872TIFF_DELEGATE_FALSE
873TIFF_DELEGATE_TRUE
874CAIRO_DELEGATE_FALSE
875CAIRO_DELEGATE_TRUE
876RSVG_DELEGATE_FALSE
877RSVG_DELEGATE_TRUE
878CAIRO_SVG_LIBS
879CAIRO_SVG_CFLAGS
880RSVG_LIBS
881RSVG_CFLAGS
882PNG_LIBS
883PNG_DELEGATE_FALSE
884PNG_DELEGATE_TRUE
885OPENEXR_DELEGATE_FALSE
886OPENEXR_DELEGATE_TRUE
887OPENEXR_LIBS
888OPENEXR_CFLAGS
889LQR_DELEGATE_FALSE
890LQR_DELEGATE_TRUE
891LQR_LIBS
892LQR_CFLAGS
893LCMS_LIBS
894LCMS_DELEGATE_FALSE
895LCMS_DELEGATE_TRUE
896JP2_LIBS
897JP2_DELEGATE_FALSE
898JP2_DELEGATE_TRUE
899JPEG_LIBS
900JPEG_DELEGATE_FALSE
901JPEG_DELEGATE_TRUE
902JBIG_LIBS
903JBIG_DELEGATE_FALSE
904JBIG_DELEGATE_TRUE
905GVC_DELEGATE_FALSE
906GVC_DELEGATE_TRUE
907GVC_LIBS
908GVC_CFLAGS
909GS_LIBS
910GS_DELEGATE_FALSE
911GS_DELEGATE_TRUE
912FREETYPE_LIBS
913FREETYPE_DELEGATE_FALSE
914FREETYPE_DELEGATE_TRUE
915freetype_config
916FONTCONFIG_DELEGATE_FALSE
917FONTCONFIG_DELEGATE_TRUE
918FONTCONFIG_LIBS
919FONTCONFIG_CFLAGS
920FPX_LIBS
921FPX_DELEGATE_FALSE
922FPX_DELEGATE_TRUE
923FFTW_LIBS
924FFTW_DELEGATE_FALSE
925FFTW_DELEGATE_TRUE
926DJVU_LIBS
927DJVU_DELEGATE_FALSE
928DJVU_DELEGATE_TRUE
929DPS_LIBS
930DPS_DELEGATE_FALSE
931DPS_DELEGATE_TRUE
932AUTOTRACE_DELEGATE_FALSE
933AUTOTRACE_DELEGATE_TRUE
934AUTOTRACE_LIBS
935AUTOTRACE_CFLAGS
936LIB_DL
937ZLIB_LIBS
938ZLIB_DELEGATE_FALSE
939ZLIB_DELEGATE_TRUE
940XEXT_LIBS
941X11_LIBS
942X11_DELEGATE_FALSE
943X11_DELEGATE_TRUE
944X_EXTRA_LIBS
945X_LIBS
946X_PRE_LIBS
947X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000948XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000949BZLIB_LIBS
950BZLIB_DELEGATE_FALSE
951BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000952CCMALLOCDelegate
953UMEM_LIBS
954HasUMEM_FALSE
955HasUMEM_TRUE
956THREAD_LIBS
957GOMP_LIBS
958WITH_MAGICK_PLUS_PLUS_FALSE
959WITH_MAGICK_PLUS_PLUS_TRUE
960OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000961MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000962POW_LIB
963LIBOBJS
964UINTPTR_T
965UINTMAX_T
966UINT64_T
967INT64_T
968UINT32_T
969INT32_T
970UINT16_T
971INT16_T
972UINT8_T
973INT8_T
974LIBRARY_EXTRA_CPPFLAGS
975MODULE_EXTRA_CPPFLAGS
976LIBSTDCLDFLAGS
977PERL_MAKE_OPTIONS
978QUANTUM_DEPTH
979MAINT
980MAINTAINER_MODE_FALSE
981MAINTAINER_MODE_TRUE
982MAGICK_HDRI
983DLLDFLAGS
984WITH_LTDL_FALSE
985WITH_LTDL_TRUE
986WITH_MODULES_FALSE
987WITH_MODULES_TRUE
cristyfa112112010-01-04 17:48:07 +0000988WITH_SHARED_LIBS_FALSE
989WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000990LTDLOPEN
991LT_CONFIG_H
992CONVENIENCE_LTDL_FALSE
993CONVENIENCE_LTDL_TRUE
994INSTALL_LTDL_FALSE
995INSTALL_LTDL_TRUE
996ARGZ_H
997sys_symbol_underscore
998LIBADD_DL
999LT_DLPREOPEN
1000LIBADD_DLD_LINK
1001LIBADD_SHL_LOAD
1002LIBADD_DLOPEN
1003LT_DLLOADERS
1004INCLTDL
1005LTDLINCL
1006LTDLDEPS
1007LIBLTDL
1008LIBTOOL_DEPS
1009CXXCPP
1010OTOOL64
1011OTOOL
1012LIPO
1013NMEDIT
1014DSYMUTIL
cristy18304f92009-11-22 15:48:26 +00001015lt_ECHO
cristy4dc44432009-12-30 23:30:06 +00001016RANLIB
cristy3ed852e2009-09-05 21:47:34 +00001017AR
1018NM
1019ac_ct_DUMPBIN
1020DUMPBIN
1021LIBTOOL
1022OBJDUMP
1023DLLTOOL
1024AS
1025LFS_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00001026CL_LIBS
1027CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001028OPENMP_CFLAGS
1029PTHREAD_CFLAGS
1030PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001031PTHREAD_CC
cristy964cb7f2010-04-25 23:18:00 +00001032ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +00001033WinPathScript
1034USING_CL_FALSE
1035USING_CL_TRUE
1036CYGWIN_BUILD_FALSE
1037CYGWIN_BUILD_TRUE
1038WIN32_NATIVE_BUILD_FALSE
1039WIN32_NATIVE_BUILD_TRUE
1040WINGDI32_DELEGATE_FALSE
1041WINGDI32_DELEGATE_TRUE
1042GDI32_LIBS
1043PKG_CONFIG
1044LN_S
cristy3ed852e2009-09-05 21:47:34 +00001045LD
1046FGREP
cristy3ed852e2009-09-05 21:47:34 +00001047SED
cristy95646052009-11-28 23:05:30 +00001048am__fastdepCXX_FALSE
1049am__fastdepCXX_TRUE
1050CXXDEPMODE
1051ac_ct_CXX
1052CXXFLAGS
1053CXX
cristya0b81c32010-01-22 02:54:33 +00001054EGREP
1055GREP
1056CPP
cristy3ed852e2009-09-05 21:47:34 +00001057am__fastdepCC_FALSE
1058am__fastdepCC_TRUE
1059CCDEPMODE
1060AMDEPBACKSLASH
1061AMDEP_FALSE
1062AMDEP_TRUE
1063am__quote
1064am__include
1065DEPDIR
1066OBJEXT
1067EXEEXT
1068ac_ct_CC
1069CPPFLAGS
1070LDFLAGS
1071CFLAGS
1072CC
1073DIRSEP
1074MAGICK_FILTER_MODULE_PATH
1075MAGICK_CONFIGURE_BUILD_PATH
1076MAGICK_CONFIGURE_SRC_PATH
1077MAGICK_CODER_MODULE_PATH
1078MAN_DIR
1079INFO_DIR
1080PERSISTINCLUDE_DIR
1081INCLUDE_DIR
1082LIB_DIR
1083LOCALSTATE_DIR
1084SHAREDSTATE_DIR
1085SYSCONF_DIR
1086DATA_DIR
1087LIBEXEC_DIR
1088SBIN_DIR
1089BIN_DIR
1090EXEC_PREFIX_DIR
1091PREFIX_DIR
1092CONFIG_STATUS_DEPENDENCIES
1093MAGICK_LIB_VERSION_NUMBER
1094MAGICK_LIB_VERSION_TEXT
1095MAGICK_LIB_VERSION
1096AM_BACKSLASH
1097AM_DEFAULT_VERBOSITY
1098am__untar
1099am__tar
1100AMTAR
1101am__leading_dot
1102SET_MAKE
1103AWK
1104mkdir_p
1105MKDIR_P
1106INSTALL_STRIP_PROGRAM
1107STRIP
1108install_sh
1109MAKEINFO
1110AUTOHEADER
1111AUTOMAKE
1112AUTOCONF
1113ACLOCAL
1114VERSION
1115PACKAGE
1116CYGPATH_W
1117am__isrc
1118INSTALL_DATA
1119INSTALL_SCRIPT
1120INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001121PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001122PACKAGE_RELEASE_DATE
1123PACKAGE_LIB_VERSION_NUMBER
1124PACKAGE_LIB_VERSION
1125PACKAGE_CHANGE_DATE
1126PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001127MAGICK_LIBRARY_VERSION_INFO
1128MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001129MAGICK_LIBRARY_AGE
1130MAGICK_LIBRARY_REVISION
1131MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001132MAGICK_TARGET_OS
1133MAGICK_TARGET_VENDOR
1134MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001135target_os
1136target_vendor
1137target_cpu
1138target
1139host_os
1140host_vendor
1141host_cpu
1142host
1143build_os
1144build_vendor
1145build_cpu
1146build
1147CONFIGURE_ARGS
1148DISTCHECK_CONFIG_FLAGS
1149target_alias
1150host_alias
1151build_alias
1152LIBS
1153ECHO_T
1154ECHO_N
1155ECHO_C
1156DEFS
1157mandir
1158localedir
1159libdir
1160psdir
1161pdfdir
1162dvidir
1163htmldir
1164infodir
1165docdir
1166oldincludedir
1167includedir
1168localstatedir
1169sharedstatedir
1170sysconfdir
1171datadir
1172datarootdir
1173libexecdir
1174sbindir
1175bindir
1176program_transform_name
1177prefix
1178exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001179PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001180PACKAGE_BUGREPORT
1181PACKAGE_STRING
1182PACKAGE_VERSION
1183PACKAGE_TARNAME
1184PACKAGE_NAME
1185PATH_SEPARATOR
1186SHELL'
1187ac_subst_files=''
1188ac_user_opts='
1189enable_option_checking
1190enable_silent_rules
1191enable_dependency_tracking
1192with_gnu_ld
cristy3ed852e2009-09-05 21:47:34 +00001193with_dmalloc
1194enable_bounds_checking
1195enable_osx_universal_binary
1196with_threads
1197enable_openmp
cristy43596fe2010-01-21 16:46:08 +00001198enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001199enable_largefile
1200enable_shared
1201enable_static
1202with_pic
1203enable_fast_install
1204enable_libtool_lock
1205with_included_ltdl
1206with_ltdl_include
1207with_ltdl_lib
1208enable_ltdl_install
1209with_modules
1210enable_delegate_build
1211enable_deprecated
1212enable_installed
1213enable_cipher
1214enable_embeddable
1215enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001216enable_assert
1217enable_maintainer_mode
1218enable_ccmalloc
1219enable_efence
1220enable_prof
1221enable_gprof
1222enable_gcov
1223with_method_prefix
1224with_quantum_depth
1225with_cache
1226with_frozenpaths
1227with_magick_plus_plus
1228with_perl
1229with_perl_options
1230with_umem
1231with_libstdc
1232with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001233with_x
cristy3ed852e2009-09-05 21:47:34 +00001234with_zlib
1235with_autotrace
1236with_dps
1237with_djvu
cristy430a7312010-01-21 20:44:04 +00001238with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001239with_fftw
1240with_fpx
1241with_fontconfig
1242with_freetype
1243with_gslib
1244with_fontpath
1245with_gs_font_dir
1246with_gvc
1247with_jbig
1248with_jpeg
1249with_jp2
1250with_lcms
1251with_lqr
1252with_openexr
1253with_png
1254with_rsvg
1255with_tiff
1256with_windows_font_dir
1257with_wmf
1258with_xml
1259'
1260 ac_precious_vars='build_alias
1261host_alias
1262target_alias
1263CC
1264CFLAGS
1265LDFLAGS
1266LIBS
1267CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001268CPP
cristy3ed852e2009-09-05 21:47:34 +00001269CXX
1270CXXFLAGS
1271CCC
1272PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001273CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001274XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001275AUTOTRACE_CFLAGS
1276AUTOTRACE_LIBS
1277FONTCONFIG_CFLAGS
1278FONTCONFIG_LIBS
1279GVC_CFLAGS
1280GVC_LIBS
1281LQR_CFLAGS
1282LQR_LIBS
1283OPENEXR_CFLAGS
1284OPENEXR_LIBS
1285RSVG_CFLAGS
1286RSVG_LIBS
1287CAIRO_SVG_CFLAGS
1288CAIRO_SVG_LIBS'
1289
1290
1291# Initialize some variables set by options.
1292ac_init_help=
1293ac_init_version=false
1294ac_unrecognized_opts=
1295ac_unrecognized_sep=
1296# The variables have the same names as the options, with
1297# dashes changed to underlines.
1298cache_file=/dev/null
1299exec_prefix=NONE
1300no_create=
1301no_recursion=
1302prefix=NONE
1303program_prefix=NONE
1304program_suffix=NONE
1305program_transform_name=s,x,x,
1306silent=
1307site=
1308srcdir=
1309verbose=
1310x_includes=NONE
1311x_libraries=NONE
1312
1313# Installation directory options.
1314# These are left unexpanded so users can "make install exec_prefix=/foo"
1315# and all the variables that are supposed to be based on exec_prefix
1316# by default will actually change.
1317# Use braces instead of parens because sh, perl, etc. also accept them.
1318# (The list follows the same order as the GNU Coding Standards.)
1319bindir='${exec_prefix}/bin'
1320sbindir='${exec_prefix}/sbin'
1321libexecdir='${exec_prefix}/libexec'
1322datarootdir='${prefix}/share'
1323datadir='${datarootdir}'
1324sysconfdir='${prefix}/etc'
1325sharedstatedir='${prefix}/com'
1326localstatedir='${prefix}/var'
1327includedir='${prefix}/include'
1328oldincludedir='/usr/include'
1329docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1330infodir='${datarootdir}/info'
1331htmldir='${docdir}'
1332dvidir='${docdir}'
1333pdfdir='${docdir}'
1334psdir='${docdir}'
1335libdir='${exec_prefix}/lib'
1336localedir='${datarootdir}/locale'
1337mandir='${datarootdir}/man'
1338
1339ac_prev=
1340ac_dashdash=
1341for ac_option
1342do
1343 # If the previous option needs an argument, assign it.
1344 if test -n "$ac_prev"; then
1345 eval $ac_prev=\$ac_option
1346 ac_prev=
1347 continue
1348 fi
1349
1350 case $ac_option in
1351 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1352 *) ac_optarg=yes ;;
1353 esac
1354
1355 # Accept the important Cygnus configure options, so we can diagnose typos.
1356
1357 case $ac_dashdash$ac_option in
1358 --)
1359 ac_dashdash=yes ;;
1360
1361 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1362 ac_prev=bindir ;;
1363 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1364 bindir=$ac_optarg ;;
1365
1366 -build | --build | --buil | --bui | --bu)
1367 ac_prev=build_alias ;;
1368 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1369 build_alias=$ac_optarg ;;
1370
1371 -cache-file | --cache-file | --cache-fil | --cache-fi \
1372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1373 ac_prev=cache_file ;;
1374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1376 cache_file=$ac_optarg ;;
1377
1378 --config-cache | -C)
1379 cache_file=config.cache ;;
1380
1381 -datadir | --datadir | --datadi | --datad)
1382 ac_prev=datadir ;;
1383 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1384 datadir=$ac_optarg ;;
1385
1386 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1387 | --dataroo | --dataro | --datar)
1388 ac_prev=datarootdir ;;
1389 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1390 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1391 datarootdir=$ac_optarg ;;
1392
1393 -disable-* | --disable-*)
1394 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001397 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001398 ac_useropt_orig=$ac_useropt
1399 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1401 *"
1402"enable_$ac_useropt"
1403"*) ;;
1404 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1405 ac_unrecognized_sep=', ';;
1406 esac
1407 eval enable_$ac_useropt=no ;;
1408
1409 -docdir | --docdir | --docdi | --doc | --do)
1410 ac_prev=docdir ;;
1411 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1412 docdir=$ac_optarg ;;
1413
1414 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1415 ac_prev=dvidir ;;
1416 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1417 dvidir=$ac_optarg ;;
1418
1419 -enable-* | --enable-*)
1420 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001423 as_fn_error "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001424 ac_useropt_orig=$ac_useropt
1425 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1426 case $ac_user_opts in
1427 *"
1428"enable_$ac_useropt"
1429"*) ;;
1430 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1431 ac_unrecognized_sep=', ';;
1432 esac
1433 eval enable_$ac_useropt=\$ac_optarg ;;
1434
1435 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1436 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1437 | --exec | --exe | --ex)
1438 ac_prev=exec_prefix ;;
1439 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1440 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1441 | --exec=* | --exe=* | --ex=*)
1442 exec_prefix=$ac_optarg ;;
1443
1444 -gas | --gas | --ga | --g)
1445 # Obsolete; use --with-gas.
1446 with_gas=yes ;;
1447
1448 -help | --help | --hel | --he | -h)
1449 ac_init_help=long ;;
1450 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1451 ac_init_help=recursive ;;
1452 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1453 ac_init_help=short ;;
1454
1455 -host | --host | --hos | --ho)
1456 ac_prev=host_alias ;;
1457 -host=* | --host=* | --hos=* | --ho=*)
1458 host_alias=$ac_optarg ;;
1459
1460 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1461 ac_prev=htmldir ;;
1462 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1463 | --ht=*)
1464 htmldir=$ac_optarg ;;
1465
1466 -includedir | --includedir | --includedi | --included | --include \
1467 | --includ | --inclu | --incl | --inc)
1468 ac_prev=includedir ;;
1469 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1470 | --includ=* | --inclu=* | --incl=* | --inc=*)
1471 includedir=$ac_optarg ;;
1472
1473 -infodir | --infodir | --infodi | --infod | --info | --inf)
1474 ac_prev=infodir ;;
1475 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1476 infodir=$ac_optarg ;;
1477
1478 -libdir | --libdir | --libdi | --libd)
1479 ac_prev=libdir ;;
1480 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1481 libdir=$ac_optarg ;;
1482
1483 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1484 | --libexe | --libex | --libe)
1485 ac_prev=libexecdir ;;
1486 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1487 | --libexe=* | --libex=* | --libe=*)
1488 libexecdir=$ac_optarg ;;
1489
1490 -localedir | --localedir | --localedi | --localed | --locale)
1491 ac_prev=localedir ;;
1492 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1493 localedir=$ac_optarg ;;
1494
1495 -localstatedir | --localstatedir | --localstatedi | --localstated \
1496 | --localstate | --localstat | --localsta | --localst | --locals)
1497 ac_prev=localstatedir ;;
1498 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1499 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1500 localstatedir=$ac_optarg ;;
1501
1502 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1503 ac_prev=mandir ;;
1504 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1505 mandir=$ac_optarg ;;
1506
1507 -nfp | --nfp | --nf)
1508 # Obsolete; use --without-fp.
1509 with_fp=no ;;
1510
1511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1512 | --no-cr | --no-c | -n)
1513 no_create=yes ;;
1514
1515 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1516 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1517 no_recursion=yes ;;
1518
1519 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1520 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1521 | --oldin | --oldi | --old | --ol | --o)
1522 ac_prev=oldincludedir ;;
1523 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1524 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1525 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1526 oldincludedir=$ac_optarg ;;
1527
1528 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1529 ac_prev=prefix ;;
1530 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1531 prefix=$ac_optarg ;;
1532
1533 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1534 | --program-pre | --program-pr | --program-p)
1535 ac_prev=program_prefix ;;
1536 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1537 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1538 program_prefix=$ac_optarg ;;
1539
1540 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1541 | --program-suf | --program-su | --program-s)
1542 ac_prev=program_suffix ;;
1543 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1544 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1545 program_suffix=$ac_optarg ;;
1546
1547 -program-transform-name | --program-transform-name \
1548 | --program-transform-nam | --program-transform-na \
1549 | --program-transform-n | --program-transform- \
1550 | --program-transform | --program-transfor \
1551 | --program-transfo | --program-transf \
1552 | --program-trans | --program-tran \
1553 | --progr-tra | --program-tr | --program-t)
1554 ac_prev=program_transform_name ;;
1555 -program-transform-name=* | --program-transform-name=* \
1556 | --program-transform-nam=* | --program-transform-na=* \
1557 | --program-transform-n=* | --program-transform-=* \
1558 | --program-transform=* | --program-transfor=* \
1559 | --program-transfo=* | --program-transf=* \
1560 | --program-trans=* | --program-tran=* \
1561 | --progr-tra=* | --program-tr=* | --program-t=*)
1562 program_transform_name=$ac_optarg ;;
1563
1564 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1565 ac_prev=pdfdir ;;
1566 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1567 pdfdir=$ac_optarg ;;
1568
1569 -psdir | --psdir | --psdi | --psd | --ps)
1570 ac_prev=psdir ;;
1571 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1572 psdir=$ac_optarg ;;
1573
1574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1575 | -silent | --silent | --silen | --sile | --sil)
1576 silent=yes ;;
1577
1578 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1579 ac_prev=sbindir ;;
1580 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1581 | --sbi=* | --sb=*)
1582 sbindir=$ac_optarg ;;
1583
1584 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1585 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1586 | --sharedst | --shareds | --shared | --share | --shar \
1587 | --sha | --sh)
1588 ac_prev=sharedstatedir ;;
1589 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1590 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1591 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1592 | --sha=* | --sh=*)
1593 sharedstatedir=$ac_optarg ;;
1594
1595 -site | --site | --sit)
1596 ac_prev=site ;;
1597 -site=* | --site=* | --sit=*)
1598 site=$ac_optarg ;;
1599
1600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1601 ac_prev=srcdir ;;
1602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1603 srcdir=$ac_optarg ;;
1604
1605 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1606 | --syscon | --sysco | --sysc | --sys | --sy)
1607 ac_prev=sysconfdir ;;
1608 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1609 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1610 sysconfdir=$ac_optarg ;;
1611
1612 -target | --target | --targe | --targ | --tar | --ta | --t)
1613 ac_prev=target_alias ;;
1614 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1615 target_alias=$ac_optarg ;;
1616
1617 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1618 verbose=yes ;;
1619
1620 -version | --version | --versio | --versi | --vers | -V)
1621 ac_init_version=: ;;
1622
1623 -with-* | --with-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001627 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1631 *"
1632"with_$ac_useropt"
1633"*) ;;
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1636 esac
1637 eval with_$ac_useropt=\$ac_optarg ;;
1638
1639 -without-* | --without-*)
1640 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1641 # Reject names that are not valid shell variable names.
1642 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy8b350f62009-11-15 23:12:43 +00001643 as_fn_error "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001644 ac_useropt_orig=$ac_useropt
1645 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1646 case $ac_user_opts in
1647 *"
1648"with_$ac_useropt"
1649"*) ;;
1650 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1651 ac_unrecognized_sep=', ';;
1652 esac
1653 eval with_$ac_useropt=no ;;
1654
1655 --x)
1656 # Obsolete; use --with-x.
1657 with_x=yes ;;
1658
1659 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1660 | --x-incl | --x-inc | --x-in | --x-i)
1661 ac_prev=x_includes ;;
1662 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1663 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1664 x_includes=$ac_optarg ;;
1665
1666 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1667 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1668 ac_prev=x_libraries ;;
1669 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1670 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1671 x_libraries=$ac_optarg ;;
1672
cristy8b350f62009-11-15 23:12:43 +00001673 -*) as_fn_error "unrecognized option: \`$ac_option'
1674Try \`$0 --help' for more information."
cristy3ed852e2009-09-05 21:47:34 +00001675 ;;
1676
1677 *=*)
1678 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1679 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001680 case $ac_envvar in #(
1681 '' | [0-9]* | *[!_$as_cr_alnum]* )
1682 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1683 esac
cristy3ed852e2009-09-05 21:47:34 +00001684 eval $ac_envvar=\$ac_optarg
1685 export $ac_envvar ;;
1686
1687 *)
1688 # FIXME: should be removed in autoconf 3.0.
1689 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1690 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1691 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1692 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1693 ;;
1694
1695 esac
1696done
1697
1698if test -n "$ac_prev"; then
1699 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy8b350f62009-11-15 23:12:43 +00001700 as_fn_error "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001701fi
1702
1703if test -n "$ac_unrecognized_opts"; then
1704 case $enable_option_checking in
1705 no) ;;
cristy8b350f62009-11-15 23:12:43 +00001706 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001707 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1708 esac
1709fi
1710
1711# Check all directory arguments for consistency.
1712for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1713 datadir sysconfdir sharedstatedir localstatedir includedir \
1714 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1715 libdir localedir mandir
1716do
1717 eval ac_val=\$$ac_var
1718 # Remove trailing slashes.
1719 case $ac_val in
1720 */ )
1721 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1722 eval $ac_var=\$ac_val;;
1723 esac
1724 # Be sure to have absolute directory names.
1725 case $ac_val in
1726 [\\/$]* | ?:[\\/]* ) continue;;
1727 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1728 esac
cristy8b350f62009-11-15 23:12:43 +00001729 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001730done
1731
1732# There might be people who depend on the old broken behavior: `$host'
1733# used to hold the argument of --host etc.
1734# FIXME: To remove some day.
1735build=$build_alias
1736host=$host_alias
1737target=$target_alias
1738
1739# FIXME: To remove some day.
1740if test "x$host_alias" != x; then
1741 if test "x$build_alias" = x; then
1742 cross_compiling=maybe
1743 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1744 If a cross compiler is detected then cross compile mode will be used." >&2
1745 elif test "x$build_alias" != "x$host_alias"; then
1746 cross_compiling=yes
1747 fi
1748fi
1749
1750ac_tool_prefix=
1751test -n "$host_alias" && ac_tool_prefix=$host_alias-
1752
1753test "$silent" = yes && exec 6>/dev/null
1754
1755
1756ac_pwd=`pwd` && test -n "$ac_pwd" &&
1757ac_ls_di=`ls -di .` &&
1758ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy8b350f62009-11-15 23:12:43 +00001759 as_fn_error "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001760test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy8b350f62009-11-15 23:12:43 +00001761 as_fn_error "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001762
1763
1764# Find the source files, if location was not specified.
1765if test -z "$srcdir"; then
1766 ac_srcdir_defaulted=yes
1767 # Try the directory containing this script, then the parent directory.
1768 ac_confdir=`$as_dirname -- "$as_myself" ||
1769$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1770 X"$as_myself" : 'X\(//\)[^/]' \| \
1771 X"$as_myself" : 'X\(//\)$' \| \
1772 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1773$as_echo X"$as_myself" |
1774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1775 s//\1/
1776 q
1777 }
1778 /^X\(\/\/\)[^/].*/{
1779 s//\1/
1780 q
1781 }
1782 /^X\(\/\/\)$/{
1783 s//\1/
1784 q
1785 }
1786 /^X\(\/\).*/{
1787 s//\1/
1788 q
1789 }
1790 s/.*/./; q'`
1791 srcdir=$ac_confdir
1792 if test ! -r "$srcdir/$ac_unique_file"; then
1793 srcdir=..
1794 fi
1795else
1796 ac_srcdir_defaulted=no
1797fi
1798if test ! -r "$srcdir/$ac_unique_file"; then
1799 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy8b350f62009-11-15 23:12:43 +00001800 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001801fi
1802ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1803ac_abs_confdir=`(
cristy8b350f62009-11-15 23:12:43 +00001804 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001805 pwd)`
1806# When building in place, set srcdir=.
1807if test "$ac_abs_confdir" = "$ac_pwd"; then
1808 srcdir=.
1809fi
1810# Remove unnecessary trailing slashes from srcdir.
1811# Double slashes in file names in object file debugging info
1812# mess up M-x gdb in Emacs.
1813case $srcdir in
1814*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1815esac
1816for ac_var in $ac_precious_vars; do
1817 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1818 eval ac_env_${ac_var}_value=\$${ac_var}
1819 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1820 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1821done
1822
1823#
1824# Report the --help message.
1825#
1826if test "$ac_init_help" = "long"; then
1827 # Omit some internal or obsolete options to make the list less imposing.
1828 # This message is too long to be a string in the A/UX 3.1 sh.
1829 cat <<_ACEOF
cristy664b8d72010-05-17 13:53:36 +00001830\`configure' configures ImageMagick 6.6.2 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001831
1832Usage: $0 [OPTION]... [VAR=VALUE]...
1833
1834To assign environment variables (e.g., CC, CFLAGS...), specify them as
1835VAR=VALUE. See below for descriptions of some of the useful variables.
1836
1837Defaults for the options are specified in brackets.
1838
1839Configuration:
1840 -h, --help display this help and exit
1841 --help=short display options specific to this package
1842 --help=recursive display the short help of all the included packages
1843 -V, --version display version information and exit
1844 -q, --quiet, --silent do not print \`checking...' messages
1845 --cache-file=FILE cache test results in FILE [disabled]
1846 -C, --config-cache alias for \`--cache-file=config.cache'
1847 -n, --no-create do not create output files
1848 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1849
1850Installation directories:
1851 --prefix=PREFIX install architecture-independent files in PREFIX
1852 [$ac_default_prefix]
1853 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1854 [PREFIX]
1855
1856By default, \`make install' will install all the files in
1857\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1858an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1859for instance \`--prefix=\$HOME'.
1860
1861For better control, use the options below.
1862
1863Fine tuning of the installation directories:
1864 --bindir=DIR user executables [EPREFIX/bin]
1865 --sbindir=DIR system admin executables [EPREFIX/sbin]
1866 --libexecdir=DIR program executables [EPREFIX/libexec]
1867 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1868 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1869 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1870 --libdir=DIR object code libraries [EPREFIX/lib]
1871 --includedir=DIR C header files [PREFIX/include]
1872 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1873 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1874 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1875 --infodir=DIR info documentation [DATAROOTDIR/info]
1876 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1877 --mandir=DIR man documentation [DATAROOTDIR/man]
1878 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1879 --htmldir=DIR html documentation [DOCDIR]
1880 --dvidir=DIR dvi documentation [DOCDIR]
1881 --pdfdir=DIR pdf documentation [DOCDIR]
1882 --psdir=DIR ps documentation [DOCDIR]
1883_ACEOF
1884
1885 cat <<\_ACEOF
1886
1887Program names:
1888 --program-prefix=PREFIX prepend PREFIX to installed program names
1889 --program-suffix=SUFFIX append SUFFIX to installed program names
1890 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1891
1892X features:
1893 --x-includes=DIR X include files are in DIR
1894 --x-libraries=DIR X library files are in DIR
1895
1896System types:
1897 --build=BUILD configure for building on BUILD [guessed]
1898 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1899 --target=TARGET configure for building compilers for TARGET [HOST]
1900_ACEOF
1901fi
1902
1903if test -n "$ac_init_help"; then
1904 case $ac_init_help in
cristy664b8d72010-05-17 13:53:36 +00001905 short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
cristy3ed852e2009-09-05 21:47:34 +00001906 esac
1907 cat <<\_ACEOF
1908
1909Optional Features:
1910 --disable-option-checking ignore unrecognized --enable/--with options
1911 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1912 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1913 --enable-silent-rules less verbose build output (undo: `make V=1')
1914 --disable-silent-rules verbose build output (undo: `make V=0')
1915 --disable-dependency-tracking speeds up one-time build
1916 --enable-dependency-tracking do not reject slow dependency extractors
1917 --bounds-checking enable run-time bounds-checking
1918 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001919 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001920 --disable-openmp do not use OpenMP
cristy43596fe2010-01-21 16:46:08 +00001921 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001922 --disable-largefile omit support for large files
1923 --enable-shared[=PKGS] build shared libraries [default=yes]
1924 --enable-static[=PKGS] build static libraries [default=yes]
1925 --enable-fast-install[=PKGS]
1926 optimize for fast installation [default=yes]
1927 --disable-libtool-lock avoid locking (might break parallel builds)
1928 --enable-ltdl-install install libltdl
1929 --enable-delegate-build look for delegate libraries in build directory
1930 --disable-deprecated exclude deprecated methods in MagickCore and
1931 MagickWand API's
1932 --disable-installed Formally install ImageMagick under PREFIX
1933 --disable-cipher disable enciphering and deciphering image pixels
1934 --enable-embeddable enable self-contained, embeddable,
1935 zero-configuration ImageMagick
1936 --enable-hdri accurately represent the wide range of intensity
1937 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001938 --disable-assert disable assert() statements in build
1939 --enable-maintainer-mode enable make rules and dependencies not useful
1940 (and sometimes confusing) to the casual installer
1941 --enable-ccmalloc enable 'ccmalloc' memory debug support
1942 --enable-efence enable 'efence' memory debug support
1943 --enable-prof enable 'prof' profiling support
1944 --enable-gprof enable 'gprof' profiling support
1945 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001946 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001947
1948Optional Packages:
1949 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1950 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1951 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-dmalloc use dmalloc, as in
1953 http://www.dmalloc.com/dmalloc.tar.gz
1954 --without-threads disable threads support
1955 --with-pic try to use only PIC/non-PIC objects [default=use
1956 both]
1957 --with-included-ltdl use the GNU ltdl sources included here
1958 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1959 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1960 --with-modules enable building dynamically loadable modules
1961 --with-method-prefix=PREFIX
1962 prefix MagickCore API methods
1963 --with-quantum-depth=DEPTH
1964 number of bits in a pixel quantum (default 16)
1965 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1966 memory)
1967 --with-frozenpaths freeze delegate paths
1968 --without-magick-plus-plus
1969 disable build/install of Magick++
1970 --with-perl enable build/install of PerlMagick
1971 --with-perl-options=OPTIONS
1972 options to pass on command-line when generating
1973 PerlMagick's build file
1974 --with-umem enable umem memory allocation library support
1975 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1976 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001977 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001978 --without-zlib disable ZLIB support
1979 --with-autotrace enable autotrace support
1980 --without-dps disable Display Postscript support
1981 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001982 --with-dejavu-font-dir=DIR
1983 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-fftw disable FFTW support
1985 --without-fpx disable FlashPIX support
1986 --without-fontconfig disable fontconfig support
1987 --without-freetype disable Freetype support
1988 --without-gslib enable Ghostscript library support
1989 --with-fontpath=DIR prepend to default font search path
1990 --with-gs-font-dir=DIR Ghostscript font directory
1991 --without-gvc disable GVC support
1992 --without-jbig disable JBIG support
1993 --without-jpeg disable JPEG support
1994 --without-jp2 disable JPEG-2000 support
1995 --without-lcms disable LCMS support
cristyf0c78232010-03-15 12:53:40 +00001996 --without-lqr disable Liquid Rescale support
cristy3ed852e2009-09-05 21:47:34 +00001997 --without-openexr disable OpenEXR support
1998 --without-png disable PNG support
1999 --without-rsvg disable RSVG support
2000 --without-tiff disable TIFF support
2001 --with-windows-font-dir=DIR
2002 directory containing MS-Windows fonts
2003 --without-wmf disable WMF support
2004 --without-xml disable XML support
2005
2006Some influential environment variables:
2007 CC C compiler command
2008 CFLAGS C compiler flags
2009 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2010 nonstandard directory <lib dir>
2011 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002012 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002013 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002014 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002015 CXX C++ compiler command
2016 CXXFLAGS C++ compiler flags
2017 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002018 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002019 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002020 AUTOTRACE_CFLAGS
2021 C compiler flags for AUTOTRACE, overriding pkg-config
2022 AUTOTRACE_LIBS
2023 linker flags for AUTOTRACE, overriding pkg-config
2024 FONTCONFIG_CFLAGS
2025 C compiler flags for FONTCONFIG, overriding pkg-config
2026 FONTCONFIG_LIBS
2027 linker flags for FONTCONFIG, overriding pkg-config
2028 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2029 GVC_LIBS linker flags for GVC, overriding pkg-config
2030 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2031 LQR_LIBS linker flags for LQR, overriding pkg-config
2032 OPENEXR_CFLAGS
2033 C compiler flags for OPENEXR, overriding pkg-config
2034 OPENEXR_LIBS
2035 linker flags for OPENEXR, overriding pkg-config
2036 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2037 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2038 CAIRO_SVG_CFLAGS
2039 C compiler flags for CAIRO_SVG, overriding pkg-config
2040 CAIRO_SVG_LIBS
2041 linker flags for CAIRO_SVG, overriding pkg-config
2042
2043Use these variables to override the choices made by `configure' or to help
2044it to find libraries and programs with nonstandard names/locations.
2045
2046Report bugs to <http://www.imagemagick.org>.
2047_ACEOF
2048ac_status=$?
2049fi
2050
2051if test "$ac_init_help" = "recursive"; then
2052 # If there are subdirs, report their specific --help.
2053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2054 test -d "$ac_dir" ||
2055 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2056 continue
2057 ac_builddir=.
2058
2059case "$ac_dir" in
2060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061*)
2062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2063 # A ".." for each directory in $ac_dir_suffix.
2064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2065 case $ac_top_builddir_sub in
2066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2068 esac ;;
2069esac
2070ac_abs_top_builddir=$ac_pwd
2071ac_abs_builddir=$ac_pwd$ac_dir_suffix
2072# for backward compatibility:
2073ac_top_builddir=$ac_top_build_prefix
2074
2075case $srcdir in
2076 .) # We are building in place.
2077 ac_srcdir=.
2078 ac_top_srcdir=$ac_top_builddir_sub
2079 ac_abs_top_srcdir=$ac_pwd ;;
2080 [\\/]* | ?:[\\/]* ) # Absolute name.
2081 ac_srcdir=$srcdir$ac_dir_suffix;
2082 ac_top_srcdir=$srcdir
2083 ac_abs_top_srcdir=$srcdir ;;
2084 *) # Relative name.
2085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2086 ac_top_srcdir=$ac_top_build_prefix$srcdir
2087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2088esac
2089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2090
2091 cd "$ac_dir" || { ac_status=$?; continue; }
2092 # Check for guested configure.
2093 if test -f "$ac_srcdir/configure.gnu"; then
2094 echo &&
2095 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2096 elif test -f "$ac_srcdir/configure"; then
2097 echo &&
2098 $SHELL "$ac_srcdir/configure" --help=recursive
2099 else
2100 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2101 fi || ac_status=$?
2102 cd "$ac_pwd" || { ac_status=$?; break; }
2103 done
2104fi
2105
2106test -n "$ac_init_help" && exit $ac_status
2107if $ac_init_version; then
2108 cat <<\_ACEOF
cristy664b8d72010-05-17 13:53:36 +00002109ImageMagick configure 6.6.2
cristycd4c5312009-11-22 01:19:08 +00002110generated by GNU Autoconf 2.65
cristy3ed852e2009-09-05 21:47:34 +00002111
cristy8b350f62009-11-15 23:12:43 +00002112Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002113This configure script is free software; the Free Software Foundation
2114gives unlimited permission to copy, distribute and modify it.
2115_ACEOF
2116 exit
2117fi
cristy8b350f62009-11-15 23:12:43 +00002118
2119## ------------------------ ##
2120## Autoconf initialization. ##
2121## ------------------------ ##
2122
2123# ac_fn_c_try_compile LINENO
2124# --------------------------
2125# Try to compile conftest.$ac_ext, and return whether this succeeded.
2126ac_fn_c_try_compile ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 rm -f conftest.$ac_objext
2130 if { { ac_try="$ac_compile"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136$as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_compile") 2>conftest.err
2138 ac_status=$?
2139 if test -s conftest.err; then
2140 grep -v '^ *+' conftest.err >conftest.er1
2141 cat conftest.er1 >&5
2142 mv -f conftest.er1 conftest.err
2143 fi
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && {
2146 test -z "$ac_c_werror_flag" ||
2147 test ! -s conftest.err
2148 } && test -s conftest.$ac_objext; then :
2149 ac_retval=0
2150else
2151 $as_echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155fi
2156 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002157 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002158
2159} # ac_fn_c_try_compile
2160
cristy95646052009-11-28 23:05:30 +00002161# ac_fn_c_try_cpp LINENO
2162# ----------------------
2163# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2164ac_fn_c_try_cpp ()
2165{
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 if { { ac_try="$ac_cpp conftest.$ac_ext"
2168case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171esac
2172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173$as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } >/dev/null && {
2183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 }; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192fi
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2194 as_fn_set_status $ac_retval
2195
2196} # ac_fn_c_try_cpp
2197
cristy8b350f62009-11-15 23:12:43 +00002198# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2199# -------------------------------------------------------
2200# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2201# the include files in INCLUDES and setting the cache variable VAR
2202# accordingly.
2203ac_fn_c_check_header_mongrel ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
2209if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2210 $as_echo_n "(cached) " >&6
2211fi
2212eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215else
2216 # Is the header compilable?
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2218$as_echo_n "checking $2 usability... " >&6; }
2219cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221$4
2222#include <$2>
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225 ac_header_compiler=yes
2226else
2227 ac_header_compiler=no
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2231$as_echo "$ac_header_compiler" >&6; }
2232
2233# Is the header present?
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2235$as_echo_n "checking $2 presence... " >&6; }
2236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238#include <$2>
2239_ACEOF
2240if ac_fn_c_try_cpp "$LINENO"; then :
2241 ac_header_preproc=yes
2242else
2243 ac_header_preproc=no
2244fi
2245rm -f conftest.err conftest.$ac_ext
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2247$as_echo "$ac_header_preproc" >&6; }
2248
2249# So? What about this header?
2250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2251 yes:no: )
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2253$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2255$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2256 ;;
2257 no:yes:* )
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2259$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2261$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2263$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2265$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2267$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2268( cat <<\_ASBOX
2269## ----------------------------------------- ##
2270## Report this to http://www.imagemagick.org ##
2271## ----------------------------------------- ##
2272_ASBOX
2273 ) | sed "s/^/$as_me: WARNING: /" >&2
2274 ;;
2275esac
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277$as_echo_n "checking for $2... " >&6; }
2278if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2280else
2281 eval "$3=\$ac_header_compiler"
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
2286fi
2287 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2288
2289} # ac_fn_c_check_header_mongrel
2290
2291# ac_fn_c_try_run LINENO
2292# ----------------------
2293# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2294# that executables *can* be run.
2295ac_fn_c_try_run ()
2296{
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 if { { ac_try="$ac_link"
2299case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;;
2302esac
2303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2304$as_echo "$ac_try_echo"; } >&5
2305 (eval "$ac_link") 2>&5
2306 ac_status=$?
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2309 { { case "(($ac_try" in
2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311 *) ac_try_echo=$ac_try;;
2312esac
2313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314$as_echo "$ac_try_echo"; } >&5
2315 (eval "$ac_try") 2>&5
2316 ac_status=$?
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; }; }; then :
2319 ac_retval=0
2320else
2321 $as_echo "$as_me: program exited with status $ac_status" >&5
2322 $as_echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325 ac_retval=$ac_status
2326fi
2327 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002329 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002330
2331} # ac_fn_c_try_run
2332
2333# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2334# -------------------------------------------------------
2335# Tests whether HEADER exists and can be compiled using the include files in
2336# INCLUDES, setting the cache variable VAR accordingly.
2337ac_fn_c_check_header_compile ()
2338{
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341$as_echo_n "checking for $2... " >&6; }
2342if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2344else
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346/* end confdefs.h. */
2347$4
2348#include <$2>
2349_ACEOF
2350if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$3=yes"
2352else
2353 eval "$3=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359$as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361
2362} # ac_fn_c_check_header_compile
2363
cristya0b81c32010-01-22 02:54:33 +00002364# ac_fn_cxx_try_compile LINENO
2365# ----------------------------
2366# Try to compile conftest.$ac_ext, and return whether this succeeded.
2367ac_fn_cxx_try_compile ()
2368{
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 rm -f conftest.$ac_objext
2371 if { { ac_try="$ac_compile"
2372case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375esac
2376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2377$as_echo "$ac_try_echo"; } >&5
2378 (eval "$ac_compile") 2>conftest.err
2379 ac_status=$?
2380 if test -s conftest.err; then
2381 grep -v '^ *+' conftest.err >conftest.er1
2382 cat conftest.er1 >&5
2383 mv -f conftest.er1 conftest.err
2384 fi
2385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2386 test $ac_status = 0; } && {
2387 test -z "$ac_cxx_werror_flag" ||
2388 test ! -s conftest.err
2389 } && test -s conftest.$ac_objext; then :
2390 ac_retval=0
2391else
2392 $as_echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 ac_retval=1
2396fi
2397 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398 as_fn_set_status $ac_retval
2399
2400} # ac_fn_cxx_try_compile
2401
cristy8b350f62009-11-15 23:12:43 +00002402# ac_fn_c_try_link LINENO
2403# -----------------------
2404# Try to link conftest.$ac_ext, and return whether this succeeded.
2405ac_fn_c_try_link ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 rm -f conftest.$ac_objext conftest$ac_exeext
2409 if { { ac_try="$ac_link"
2410case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
2414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415$as_echo "$ac_try_echo"; } >&5
2416 (eval "$ac_link") 2>conftest.err
2417 ac_status=$?
2418 if test -s conftest.err; then
2419 grep -v '^ *+' conftest.err >conftest.er1
2420 cat conftest.er1 >&5
2421 mv -f conftest.er1 conftest.err
2422 fi
2423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2424 test $ac_status = 0; } && {
2425 test -z "$ac_c_werror_flag" ||
2426 test ! -s conftest.err
2427 } && test -s conftest$ac_exeext && {
2428 test "$cross_compiling" = yes ||
2429 $as_test_x conftest$ac_exeext
2430 }; then :
2431 ac_retval=0
2432else
2433 $as_echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436 ac_retval=1
2437fi
2438 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2439 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2440 # interfere with the next link command; also delete a directory that is
2441 # left behind by Apple's compiler. We do this before executing the actions.
2442 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002444 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002445
2446} # ac_fn_c_try_link
2447
2448# ac_fn_c_check_func LINENO FUNC VAR
2449# ----------------------------------
2450# Tests whether FUNC exists, setting the cache variable VAR accordingly
2451ac_fn_c_check_func ()
2452{
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455$as_echo_n "checking for $2... " >&6; }
2456if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460/* end confdefs.h. */
2461/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2463#define $2 innocuous_$2
2464
2465/* System header to define __stub macros and hopefully few prototypes,
2466 which can conflict with char $2 (); below.
2467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2468 <limits.h> exists even on freestanding compilers. */
2469
2470#ifdef __STDC__
2471# include <limits.h>
2472#else
2473# include <assert.h>
2474#endif
2475
2476#undef $2
2477
2478/* Override any GCC internal prototype to avoid an error.
2479 Use char because int might match the return type of a GCC
2480 builtin and then its argument prototype would still apply. */
2481#ifdef __cplusplus
2482extern "C"
2483#endif
2484char $2 ();
2485/* The GNU C library defines this for functions which it implements
2486 to always fail with ENOSYS. Some functions are actually named
2487 something starting with __ and the normal name is an alias. */
2488#if defined __stub_$2 || defined __stub___$2
2489choke me
2490#endif
2491
2492int
2493main ()
2494{
2495return $2 ();
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500if ac_fn_c_try_link "$LINENO"; then :
2501 eval "$3=yes"
2502else
2503 eval "$3=no"
2504fi
2505rm -f core conftest.err conftest.$ac_objext \
2506 conftest$ac_exeext conftest.$ac_ext
2507fi
2508eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510$as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512
2513} # ac_fn_c_check_func
2514
2515# ac_fn_cxx_try_cpp LINENO
2516# ------------------------
2517# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2518ac_fn_cxx_try_cpp ()
2519{
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 if { { ac_try="$ac_cpp conftest.$ac_ext"
2522case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525esac
2526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527$as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2529 ac_status=$?
2530 if test -s conftest.err; then
2531 grep -v '^ *+' conftest.err >conftest.er1
2532 cat conftest.er1 >&5
2533 mv -f conftest.er1 conftest.err
2534 fi
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; } >/dev/null && {
2537 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2538 test ! -s conftest.err
2539 }; then :
2540 ac_retval=0
2541else
2542 $as_echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_retval=1
2546fi
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002548 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002549
2550} # ac_fn_cxx_try_cpp
2551
2552# ac_fn_cxx_try_link LINENO
2553# -------------------------
2554# Try to link conftest.$ac_ext, and return whether this succeeded.
2555ac_fn_cxx_try_link ()
2556{
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 rm -f conftest.$ac_objext conftest$ac_exeext
2559 if { { ac_try="$ac_link"
2560case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563esac
2564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565$as_echo "$ac_try_echo"; } >&5
2566 (eval "$ac_link") 2>conftest.err
2567 ac_status=$?
2568 if test -s conftest.err; then
2569 grep -v '^ *+' conftest.err >conftest.er1
2570 cat conftest.er1 >&5
2571 mv -f conftest.er1 conftest.err
2572 fi
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; } && {
2575 test -z "$ac_cxx_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest$ac_exeext && {
2578 test "$cross_compiling" = yes ||
2579 $as_test_x conftest$ac_exeext
2580 }; then :
2581 ac_retval=0
2582else
2583 $as_echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 ac_retval=1
2587fi
2588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2590 # interfere with the next link command; also delete a directory that is
2591 # left behind by Apple's compiler. We do this before executing the actions.
2592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002594 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002595
2596} # ac_fn_cxx_try_link
2597
2598# ac_fn_c_check_decl LINENO SYMBOL VAR
2599# ------------------------------------
2600# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2601ac_fn_c_check_decl ()
2602{
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2605$as_echo_n "checking whether $2 is declared... " >&6; }
2606if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2607 $as_echo_n "(cached) " >&6
2608else
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610/* end confdefs.h. */
2611$4
2612int
2613main ()
2614{
2615#ifndef $2
2616 (void) $2;
2617#endif
2618
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624 eval "$3=yes"
2625else
2626 eval "$3=no"
2627fi
2628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629fi
2630eval ac_res=\$$3
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2632$as_echo "$ac_res" >&6; }
2633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634
2635} # ac_fn_c_check_decl
2636
2637# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2638# -------------------------------------------
2639# Tests whether TYPE exists after having included INCLUDES, setting cache
2640# variable VAR accordingly.
2641ac_fn_c_check_type ()
2642{
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2645$as_echo_n "checking for $2... " >&6; }
2646if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648else
2649 eval "$3=no"
2650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651/* end confdefs.h. */
2652$4
2653int
2654main ()
2655{
2656if (sizeof ($2))
2657 return 0;
2658 ;
2659 return 0;
2660}
2661_ACEOF
2662if ac_fn_c_try_compile "$LINENO"; then :
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664/* end confdefs.h. */
2665$4
2666int
2667main ()
2668{
2669if (sizeof (($2)))
2670 return 0;
2671 ;
2672 return 0;
2673}
2674_ACEOF
2675if ac_fn_c_try_compile "$LINENO"; then :
2676
2677else
2678 eval "$3=yes"
2679fi
2680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681fi
2682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683fi
2684eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686$as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688
2689} # ac_fn_c_check_type
2690
cristy92703d82010-04-26 00:18:18 +00002691# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2692# ----------------------------------------------------
2693# Tries to find if the field MEMBER exists in type AGGR, after including
2694# INCLUDES, setting cache variable VAR accordingly.
2695ac_fn_c_check_member ()
2696{
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2699$as_echo_n "checking for $2.$3... " >&6; }
2700if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h. */
2705$5
2706int
2707main ()
2708{
2709static $2 ac_aggr;
2710if (ac_aggr.$3)
2711return 0;
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717 eval "$4=yes"
2718else
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720/* end confdefs.h. */
2721$5
2722int
2723main ()
2724{
2725static $2 ac_aggr;
2726if (sizeof ac_aggr.$3)
2727return 0;
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732if ac_fn_c_try_compile "$LINENO"; then :
2733 eval "$4=yes"
2734else
2735 eval "$4=no"
2736fi
2737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740fi
2741eval ac_res=\$$4
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743$as_echo "$ac_res" >&6; }
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745
2746} # ac_fn_c_check_member
2747
cristy8b350f62009-11-15 23:12:43 +00002748# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2749# --------------------------------------------
2750# Tries to find the compile-time value of EXPR in a program that includes
2751# INCLUDES, setting VAR accordingly. Returns whether the value could be
2752# computed
2753ac_fn_c_compute_int ()
2754{
2755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2756 if test "$cross_compiling" = yes; then
2757 # Depending upon the size, compute the lo and hi bounds.
2758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759/* end confdefs.h. */
2760$4
2761int
2762main ()
2763{
2764static int test_array [1 - 2 * !(($2) >= 0)];
2765test_array [0] = 0
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771if ac_fn_c_try_compile "$LINENO"; then :
2772 ac_lo=0 ac_mid=0
2773 while :; do
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775/* end confdefs.h. */
2776$4
2777int
2778main ()
2779{
2780static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2781test_array [0] = 0
2782
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787if ac_fn_c_try_compile "$LINENO"; then :
2788 ac_hi=$ac_mid; break
2789else
2790 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2791 if test $ac_lo -le $ac_mid; then
2792 ac_lo= ac_hi=
2793 break
2794 fi
2795 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2796fi
2797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 done
2799else
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801/* end confdefs.h. */
2802$4
2803int
2804main ()
2805{
2806static int test_array [1 - 2 * !(($2) < 0)];
2807test_array [0] = 0
2808
2809 ;
2810 return 0;
2811}
2812_ACEOF
2813if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=-1 ac_mid=-1
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817/* end confdefs.h. */
2818$4
2819int
2820main ()
2821{
2822static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2823test_array [0] = 0
2824
2825 ;
2826 return 0;
2827}
2828_ACEOF
2829if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_lo=$ac_mid; break
2831else
2832 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2833 if test $ac_mid -le $ac_hi; then
2834 ac_lo= ac_hi=
2835 break
2836 fi
2837 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2838fi
2839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841else
2842 ac_lo= ac_hi=
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845fi
2846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847# Binary search between lo and hi bounds.
2848while test "x$ac_lo" != "x$ac_hi"; do
2849 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h. */
2852$4
2853int
2854main ()
2855{
2856static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2857test_array [0] = 0
2858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_hi=$ac_mid
2865else
2866 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869done
2870case $ac_lo in #((
2871?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2872'') ac_retval=1 ;;
2873esac
2874 else
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876/* end confdefs.h. */
2877$4
2878static long int longval () { return $2; }
2879static unsigned long int ulongval () { return $2; }
2880#include <stdio.h>
2881#include <stdlib.h>
2882int
2883main ()
2884{
2885
2886 FILE *f = fopen ("conftest.val", "w");
2887 if (! f)
2888 return 1;
2889 if (($2) < 0)
2890 {
2891 long int i = longval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%ld", i);
2895 }
2896 else
2897 {
2898 unsigned long int i = ulongval ();
2899 if (i != ($2))
2900 return 1;
2901 fprintf (f, "%lu", i);
2902 }
2903 /* Do not output a trailing newline, as this causes \r\n confusion
2904 on some platforms. */
2905 return ferror (f) || fclose (f) != 0;
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911if ac_fn_c_try_run "$LINENO"; then :
2912 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2913else
2914 ac_retval=1
2915fi
2916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2917 conftest.$ac_objext conftest.beam conftest.$ac_ext
2918rm -f conftest.val
2919
2920 fi
2921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
cristycd4c5312009-11-22 01:19:08 +00002922 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002923
2924} # ac_fn_c_compute_int
2925
2926# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2927# ---------------------------------------------------------
2928# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2929# the include files in INCLUDES and setting the cache variable VAR
2930# accordingly.
2931ac_fn_cxx_check_header_mongrel ()
2932{
2933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2934 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936$as_echo_n "checking for $2... " >&6; }
2937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2939fi
2940eval ac_res=\$$3
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2942$as_echo "$ac_res" >&6; }
2943else
2944 # Is the header compilable?
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2946$as_echo_n "checking $2 usability... " >&6; }
2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948/* end confdefs.h. */
2949$4
2950#include <$2>
2951_ACEOF
2952if ac_fn_cxx_try_compile "$LINENO"; then :
2953 ac_header_compiler=yes
2954else
2955 ac_header_compiler=no
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2959$as_echo "$ac_header_compiler" >&6; }
2960
2961# Is the header present?
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2963$as_echo_n "checking $2 presence... " >&6; }
2964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966#include <$2>
2967_ACEOF
2968if ac_fn_cxx_try_cpp "$LINENO"; then :
2969 ac_header_preproc=yes
2970else
2971 ac_header_preproc=no
2972fi
2973rm -f conftest.err conftest.$ac_ext
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2975$as_echo "$ac_header_preproc" >&6; }
2976
2977# So? What about this header?
2978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2979 yes:no: )
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2984 ;;
2985 no:yes:* )
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2996( cat <<\_ASBOX
2997## ----------------------------------------- ##
2998## Report this to http://www.imagemagick.org ##
2999## ----------------------------------------- ##
3000_ASBOX
3001 ) | sed "s/^/$as_me: WARNING: /" >&2
3002 ;;
3003esac
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3005$as_echo_n "checking for $2... " >&6; }
3006if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 eval "$3=\$ac_header_compiler"
3010fi
3011eval ac_res=\$$3
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3013$as_echo "$ac_res" >&6; }
3014fi
3015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3016
3017} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003018cat >config.log <<_ACEOF
3019This file contains any messages produced by compilers while
3020running configure, to aid debugging if configure makes a mistake.
3021
cristy664b8d72010-05-17 13:53:36 +00003022It was created by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +00003023generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003024
3025 $ $0 $@
3026
3027_ACEOF
3028exec 5>>config.log
3029{
3030cat <<_ASUNAME
3031## --------- ##
3032## Platform. ##
3033## --------- ##
3034
3035hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3036uname -m = `(uname -m) 2>/dev/null || echo unknown`
3037uname -r = `(uname -r) 2>/dev/null || echo unknown`
3038uname -s = `(uname -s) 2>/dev/null || echo unknown`
3039uname -v = `(uname -v) 2>/dev/null || echo unknown`
3040
3041/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3042/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3043
3044/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3045/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3046/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3047/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3048/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3049/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3050/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3051
3052_ASUNAME
3053
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003059 $as_echo "PATH: $as_dir"
3060 done
cristy3ed852e2009-09-05 21:47:34 +00003061IFS=$as_save_IFS
3062
3063} >&5
3064
3065cat >&5 <<_ACEOF
3066
3067
3068## ----------- ##
3069## Core tests. ##
3070## ----------- ##
3071
3072_ACEOF
3073
3074
3075# Keep a trace of the command line.
3076# Strip out --no-create and --no-recursion so they do not pile up.
3077# Strip out --silent because we don't want to record it for future runs.
3078# Also quote any args containing shell meta-characters.
3079# Make two passes to allow for proper duplicate-argument suppression.
3080ac_configure_args=
3081ac_configure_args0=
3082ac_configure_args1=
3083ac_must_keep_next=false
3084for ac_pass in 1 2
3085do
3086 for ac_arg
3087 do
3088 case $ac_arg in
3089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3091 | -silent | --silent | --silen | --sile | --sil)
3092 continue ;;
3093 *\'*)
3094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3095 esac
3096 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003098 2)
cristy8b350f62009-11-15 23:12:43 +00003099 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003100 if test $ac_must_keep_next = true; then
3101 ac_must_keep_next=false # Got value, back to normal.
3102 else
3103 case $ac_arg in
3104 *=* | --config-cache | -C | -disable-* | --disable-* \
3105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3107 | -with-* | --with-* | -without-* | --without-* | --x)
3108 case "$ac_configure_args0 " in
3109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3110 esac
3111 ;;
3112 -* ) ac_must_keep_next=true ;;
3113 esac
3114 fi
cristy8b350f62009-11-15 23:12:43 +00003115 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003116 ;;
3117 esac
3118 done
3119done
cristy8b350f62009-11-15 23:12:43 +00003120{ ac_configure_args0=; unset ac_configure_args0;}
3121{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003122
3123# When interrupted or exit'd, cleanup temporary files, and complete
3124# config.log. We remove comments because anyway the quotes in there
3125# would cause problems or look ugly.
3126# WARNING: Use '\'' to represent an apostrophe within the trap.
3127# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3128trap 'exit_status=$?
3129 # Save into config.log some information that might help in debugging.
3130 {
3131 echo
3132
3133 cat <<\_ASBOX
3134## ---------------- ##
3135## Cache variables. ##
3136## ---------------- ##
3137_ASBOX
3138 echo
3139 # The following way of writing the cache mishandles newlines in values,
3140(
3141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3142 eval ac_val=\$$ac_var
3143 case $ac_val in #(
3144 *${as_nl}*)
3145 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003147$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3148 esac
3149 case $ac_var in #(
3150 _ | IFS | as_nl) ;; #(
3151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003152 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003153 esac ;;
3154 esac
3155 done
3156 (set) 2>&1 |
3157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3158 *${as_nl}ac_space=\ *)
3159 sed -n \
3160 "s/'\''/'\''\\\\'\'''\''/g;
3161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3162 ;; #(
3163 *)
3164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3165 ;;
3166 esac |
3167 sort
3168)
3169 echo
3170
3171 cat <<\_ASBOX
3172## ----------------- ##
3173## Output variables. ##
3174## ----------------- ##
3175_ASBOX
3176 echo
3177 for ac_var in $ac_subst_vars
3178 do
3179 eval ac_val=\$$ac_var
3180 case $ac_val in
3181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3182 esac
3183 $as_echo "$ac_var='\''$ac_val'\''"
3184 done | sort
3185 echo
3186
3187 if test -n "$ac_subst_files"; then
3188 cat <<\_ASBOX
3189## ------------------- ##
3190## File substitutions. ##
3191## ------------------- ##
3192_ASBOX
3193 echo
3194 for ac_var in $ac_subst_files
3195 do
3196 eval ac_val=\$$ac_var
3197 case $ac_val in
3198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 esac
3200 $as_echo "$ac_var='\''$ac_val'\''"
3201 done | sort
3202 echo
3203 fi
3204
3205 if test -s confdefs.h; then
3206 cat <<\_ASBOX
3207## ----------- ##
3208## confdefs.h. ##
3209## ----------- ##
3210_ASBOX
3211 echo
3212 cat confdefs.h
3213 echo
3214 fi
3215 test "$ac_signal" != 0 &&
3216 $as_echo "$as_me: caught signal $ac_signal"
3217 $as_echo "$as_me: exit $exit_status"
3218 } >&5
3219 rm -f core *.core core.conftest.* &&
3220 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3221 exit $exit_status
3222' 0
3223for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003224 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003225done
3226ac_signal=0
3227
3228# confdefs.h avoids OS command line length limits that DEFS can exceed.
3229rm -f -r conftest* confdefs.h
3230
cristy8b350f62009-11-15 23:12:43 +00003231$as_echo "/* confdefs.h */" > confdefs.h
3232
cristy3ed852e2009-09-05 21:47:34 +00003233# Predefined preprocessor variables.
3234
3235cat >>confdefs.h <<_ACEOF
3236#define PACKAGE_NAME "$PACKAGE_NAME"
3237_ACEOF
3238
cristy3ed852e2009-09-05 21:47:34 +00003239cat >>confdefs.h <<_ACEOF
3240#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3241_ACEOF
3242
cristy3ed852e2009-09-05 21:47:34 +00003243cat >>confdefs.h <<_ACEOF
3244#define PACKAGE_VERSION "$PACKAGE_VERSION"
3245_ACEOF
3246
cristy3ed852e2009-09-05 21:47:34 +00003247cat >>confdefs.h <<_ACEOF
3248#define PACKAGE_STRING "$PACKAGE_STRING"
3249_ACEOF
3250
cristy3ed852e2009-09-05 21:47:34 +00003251cat >>confdefs.h <<_ACEOF
3252#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3253_ACEOF
3254
cristy8b350f62009-11-15 23:12:43 +00003255cat >>confdefs.h <<_ACEOF
3256#define PACKAGE_URL "$PACKAGE_URL"
3257_ACEOF
3258
cristy3ed852e2009-09-05 21:47:34 +00003259
3260# Let the site file select an alternate cache file if it wants to.
3261# Prefer an explicitly selected file to automatically selected ones.
3262ac_site_file1=NONE
3263ac_site_file2=NONE
3264if test -n "$CONFIG_SITE"; then
3265 ac_site_file1=$CONFIG_SITE
3266elif test "x$prefix" != xNONE; then
3267 ac_site_file1=$prefix/share/config.site
3268 ac_site_file2=$prefix/etc/config.site
3269else
3270 ac_site_file1=$ac_default_prefix/share/config.site
3271 ac_site_file2=$ac_default_prefix/etc/config.site
3272fi
3273for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3274do
3275 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003276 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003277 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003278$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3279 sed 's/^/| /' "$ac_site_file" >&5
3280 . "$ac_site_file"
3281 fi
3282done
3283
3284if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003285 # Some versions of bash will fail to source /dev/null (special files
3286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003289$as_echo "$as_me: loading cache $cache_file" >&6;}
3290 case $cache_file in
3291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3292 *) . "./$cache_file";;
3293 esac
3294 fi
3295else
cristy8b350f62009-11-15 23:12:43 +00003296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003297$as_echo "$as_me: creating cache $cache_file" >&6;}
3298 >$cache_file
3299fi
3300
cristycd4c5312009-11-22 01:19:08 +00003301as_fn_append ac_header_list " stdlib.h"
3302as_fn_append ac_header_list " unistd.h"
3303as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003304# Check that the precious variables saved in the cache have kept the same
3305# value.
3306ac_cache_corrupted=false
3307for ac_var in $ac_precious_vars; do
3308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3309 eval ac_new_set=\$ac_env_${ac_var}_set
3310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3311 eval ac_new_val=\$ac_env_${ac_var}_value
3312 case $ac_old_set,$ac_new_set in
3313 set,)
cristy8b350f62009-11-15 23:12:43 +00003314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003315$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3316 ac_cache_corrupted=: ;;
3317 ,set)
cristy8b350f62009-11-15 23:12:43 +00003318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003319$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3320 ac_cache_corrupted=: ;;
3321 ,);;
3322 *)
3323 if test "x$ac_old_val" != "x$ac_new_val"; then
3324 # differences in whitespace do not lead to failure.
3325 ac_old_val_w=`echo x $ac_old_val`
3326 ac_new_val_w=`echo x $ac_new_val`
3327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3330 ac_cache_corrupted=:
3331 else
cristy8b350f62009-11-15 23:12:43 +00003332 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003333$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3334 eval $ac_var=\$ac_old_val
3335 fi
cristy8b350f62009-11-15 23:12:43 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003337$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003339$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3340 fi;;
3341 esac
3342 # Pass precious variables to config.status.
3343 if test "$ac_new_set" = set; then
3344 case $ac_new_val in
3345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3346 *) ac_arg=$ac_var=$ac_new_val ;;
3347 esac
3348 case " $ac_configure_args " in
3349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003350 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003351 esac
3352 fi
3353done
3354if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003358$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003359 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003360fi
cristy8b350f62009-11-15 23:12:43 +00003361## -------------------- ##
3362## Main body of script. ##
3363## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003364
3365ac_ext=c
3366ac_cpp='$CPP $CPPFLAGS'
3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370
3371
3372
3373ac_aux_dir=
3374for ac_dir in config "$srcdir"/config; do
cristy8b350f62009-11-15 23:12:43 +00003375 for ac_t in install-sh install.sh shtool; do
3376 if test -f "$ac_dir/$ac_t"; then
3377 ac_aux_dir=$ac_dir
3378 ac_install_sh="$ac_aux_dir/$ac_t -c"
3379 break 2
3380 fi
3381 done
cristy3ed852e2009-09-05 21:47:34 +00003382done
3383if test -z "$ac_aux_dir"; then
cristy8b350f62009-11-15 23:12:43 +00003384 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003385fi
3386
3387# These three variables are undocumented and unsupported,
3388# and are intended to be withdrawn in a future Autoconf release.
3389# They can cause serious problems if a builder's source tree is in a directory
3390# whose full name contains unusual characters.
3391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3394
3395
3396
3397
3398ac_config_headers="$ac_config_headers config/config.h"
3399
3400ac_config_commands="$ac_config_commands magick/magick-config.h"
3401
cristy430a7312010-01-21 20:44:04 +00003402ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003403
3404
3405#
3406# Save initial user-tunable values
3407#
3408USER_LIBS=$LIBS
3409for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3410 eval isset=\${$var+set}
3411 if test "$isset" = 'set'; then
3412 eval val=$`echo $var`
3413 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3414 fi
3415done
3416
3417
3418CONFIGURE_ARGS="$0 ${ac_configure_args}"
3419
3420
3421# Source file containing package/library versioning information.
3422. ${srcdir}/version.sh
3423
cristy15a88782010-01-31 23:24:49 +00003424echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003425# Make sure we can run config.sub.
3426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy8b350f62009-11-15 23:12:43 +00003427 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003428
cristy8b350f62009-11-15 23:12:43 +00003429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003430$as_echo_n "checking build system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003431if test "${ac_cv_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003432 $as_echo_n "(cached) " >&6
3433else
3434 ac_build_alias=$build_alias
3435test "x$ac_build_alias" = x &&
3436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3437test "x$ac_build_alias" = x &&
cristy8b350f62009-11-15 23:12:43 +00003438 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003440 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003441
3442fi
cristy8b350f62009-11-15 23:12:43 +00003443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003444$as_echo "$ac_cv_build" >&6; }
3445case $ac_cv_build in
3446*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003447*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003448esac
3449build=$ac_cv_build
3450ac_save_IFS=$IFS; IFS='-'
3451set x $ac_cv_build
3452shift
3453build_cpu=$1
3454build_vendor=$2
3455shift; shift
3456# Remember, the first character of IFS is used to create $*,
3457# except with old shells:
3458build_os=$*
3459IFS=$ac_save_IFS
3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3461
3462
cristy8b350f62009-11-15 23:12:43 +00003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003464$as_echo_n "checking host system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003465if test "${ac_cv_host+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003466 $as_echo_n "(cached) " >&6
3467else
3468 if test "x$host_alias" = x; then
3469 ac_cv_host=$ac_cv_build
3470else
3471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003472 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003473fi
3474
3475fi
cristy8b350f62009-11-15 23:12:43 +00003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003477$as_echo "$ac_cv_host" >&6; }
3478case $ac_cv_host in
3479*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003480*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003481esac
3482host=$ac_cv_host
3483ac_save_IFS=$IFS; IFS='-'
3484set x $ac_cv_host
3485shift
3486host_cpu=$1
3487host_vendor=$2
3488shift; shift
3489# Remember, the first character of IFS is used to create $*,
3490# except with old shells:
3491host_os=$*
3492IFS=$ac_save_IFS
3493case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3494
3495
cristy8b350f62009-11-15 23:12:43 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003497$as_echo_n "checking target system type... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003498if test "${ac_cv_target+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003499 $as_echo_n "(cached) " >&6
3500else
3501 if test "x$target_alias" = x; then
3502 ac_cv_target=$ac_cv_host
3503else
3504 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy8b350f62009-11-15 23:12:43 +00003505 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003506fi
3507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_target" >&6; }
3511case $ac_cv_target in
3512*-*-*) ;;
cristy8b350f62009-11-15 23:12:43 +00003513*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515target=$ac_cv_target
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_target
3518shift
3519target_cpu=$1
3520target_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524target_os=$*
3525IFS=$ac_save_IFS
3526case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3527
3528
3529# The aliases save the names the user supplied, while $host etc.
3530# will get canonicalized.
3531test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
cristy837d6dc2010-02-27 01:16:57 +00003536
3537
3538
3539
cristy3225a072010-04-17 01:47:28 +00003540MAGICK_TARGET_CPU=$target_cpu
3541
3542
3543MAGICK_TARGET_VENDOR=$target_vendor
3544
3545
3546MAGICK_TARGET_OS=$target_os
3547
3548
cristy3ed852e2009-09-05 21:47:34 +00003549# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003550MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3551
3552MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3553
cristy3ed852e2009-09-05 21:47:34 +00003554
3555
3556# Ensure that make can run correctly
cristy8b350f62009-11-15 23:12:43 +00003557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
cristy3ed852e2009-09-05 21:47:34 +00003558$as_echo_n "checking whether build environment is sane... " >&6; }
3559# Just in case
3560sleep 1
3561echo timestamp > conftest.file
3562# Reject unsafe characters in $srcdir or the absolute working directory
3563# name. Accept space and tab only in the latter.
3564am_lf='
3565'
3566case `pwd` in
3567 *[\\\"\#\$\&\'\`$am_lf]*)
cristy8b350f62009-11-15 23:12:43 +00003568 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003569esac
3570case $srcdir in
3571 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy8b350f62009-11-15 23:12:43 +00003572 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003573esac
3574
3575# Do `set' in a subshell so we don't clobber the current shell's
3576# arguments. Must try -L first in case configure is actually a
3577# symlink; some systems play weird games with the mod time of symlinks
3578# (eg FreeBSD returns the mod time of the symlink's containing
3579# directory).
3580if (
3581 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3582 if test "$*" = "X"; then
3583 # -L didn't work.
3584 set X `ls -t "$srcdir/configure" conftest.file`
3585 fi
3586 rm -f conftest.file
3587 if test "$*" != "X $srcdir/configure conftest.file" \
3588 && test "$*" != "X conftest.file $srcdir/configure"; then
3589
3590 # If neither matched, then we have a broken ls. This can happen
3591 # if, for instance, CONFIG_SHELL is bash and it inherits a
3592 # broken ls alias from the environment. This has actually
3593 # happened. Such a system could not be considered "sane".
cristy8b350f62009-11-15 23:12:43 +00003594 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3595alias in your environment" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003596 fi
3597
3598 test "$2" = conftest.file
3599 )
3600then
3601 # Ok.
3602 :
3603else
cristy8b350f62009-11-15 23:12:43 +00003604 as_fn_error "newly created file is older than distributed files!
3605Check your system clock" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003606fi
cristy8b350f62009-11-15 23:12:43 +00003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003608$as_echo "yes" >&6; }
3609
3610am__api_version='1.11'
3611
3612# Find a good install program. We prefer a C program (faster),
3613# so one script is as good as another. But avoid the broken or
3614# incompatible versions:
3615# SysV /etc/install, /usr/sbin/install
3616# SunOS /usr/etc/install
3617# IRIX /sbin/install
3618# AIX /bin/install
3619# AmigaOS /C/install, which installs bootblocks on floppy discs
3620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3623# OS/2's system install, which has a completely different semantic
3624# ./install, which can be erroneously created by make from ./install.sh.
3625# Reject install programs that cannot install multiple files.
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo_n "checking for a BSD-compatible install... " >&6; }
3628if test -z "$INSTALL"; then
cristy8b350f62009-11-15 23:12:43 +00003629if test "${ac_cv_path_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003630 $as_echo_n "(cached) " >&6
3631else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633for as_dir in $PATH
3634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003637 # Account for people who put trailing slashes in PATH elements.
3638case $as_dir/ in #((
3639 ./ | .// | /[cC]/* | \
cristy3ed852e2009-09-05 21:47:34 +00003640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cristy8b350f62009-11-15 23:12:43 +00003641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
cristy3ed852e2009-09-05 21:47:34 +00003642 /usr/ucb/* ) ;;
3643 *)
3644 # OSF1 and SCO ODT 3.0 have their own names for install.
3645 # Don't use installbsd from OSF since it installs stuff as root
3646 # by default.
3647 for ac_prog in ginstall scoinst install; do
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3650 if test $ac_prog = install &&
3651 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3652 # AIX install. It has an incompatible calling convention.
3653 :
3654 elif test $ac_prog = install &&
3655 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3656 # program-specific install script used by HP pwplus--don't use.
3657 :
3658 else
3659 rm -rf conftest.one conftest.two conftest.dir
3660 echo one > conftest.one
3661 echo two > conftest.two
3662 mkdir conftest.dir
3663 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3664 test -s conftest.one && test -s conftest.two &&
3665 test -s conftest.dir/conftest.one &&
3666 test -s conftest.dir/conftest.two
3667 then
3668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3669 break 3
3670 fi
3671 fi
3672 fi
3673 done
3674 done
3675 ;;
3676esac
3677
cristy8b350f62009-11-15 23:12:43 +00003678 done
cristy3ed852e2009-09-05 21:47:34 +00003679IFS=$as_save_IFS
3680
3681rm -rf conftest.one conftest.two conftest.dir
3682
3683fi
3684 if test "${ac_cv_path_install+set}" = set; then
3685 INSTALL=$ac_cv_path_install
3686 else
3687 # As a last resort, use the slow shell script. Don't cache a
3688 # value for INSTALL within a source directory, because that will
3689 # break other packages using the cache if that directory is
3690 # removed, or if the value is a relative name.
3691 INSTALL=$ac_install_sh
3692 fi
3693fi
cristy8b350f62009-11-15 23:12:43 +00003694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
cristy3ed852e2009-09-05 21:47:34 +00003695$as_echo "$INSTALL" >&6; }
3696
3697# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3698# It thinks the first close brace ends the variable substitution.
3699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3700
3701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3702
3703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3704
3705test "$program_prefix" != NONE &&
3706 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3707# Use a double $ so make ignores it.
3708test "$program_suffix" != NONE &&
3709 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3710# Double any \ or $.
3711# By default was `s,x,x', remove it if useless.
3712ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3713program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3714
3715# expand $ac_aux_dir to an absolute path
3716am_aux_dir=`cd $ac_aux_dir && pwd`
3717
3718if test x"${MISSING+set}" != xset; then
3719 case $am_aux_dir in
3720 *\ * | *\ *)
3721 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3722 *)
3723 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3724 esac
3725fi
3726# Use eval to expand $SHELL
3727if eval "$MISSING --run true"; then
3728 am_missing_run="$MISSING --run "
3729else
3730 am_missing_run=
cristy8b350f62009-11-15 23:12:43 +00003731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
cristy3ed852e2009-09-05 21:47:34 +00003732$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3733fi
3734
3735if test x"${install_sh}" != xset; then
3736 case $am_aux_dir in
3737 *\ * | *\ *)
3738 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3739 *)
3740 install_sh="\${SHELL} $am_aux_dir/install-sh"
3741 esac
3742fi
3743
3744# Installed binaries are usually stripped using `strip' when the user
3745# run `make install-strip'. However `strip' might not be the right
3746# tool to use in cross-compilation environments, therefore Automake
3747# will honor the `STRIP' environment variable to overrule this program.
3748if test "$cross_compiling" != no; then
3749 if test -n "$ac_tool_prefix"; then
3750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3751set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003753$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003754if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003755 $as_echo_n "(cached) " >&6
3756else
3757 if test -n "$STRIP"; then
3758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3759else
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003765 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +00003768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003769 break 2
3770 fi
3771done
cristy8b350f62009-11-15 23:12:43 +00003772 done
cristy3ed852e2009-09-05 21:47:34 +00003773IFS=$as_save_IFS
3774
3775fi
3776fi
3777STRIP=$ac_cv_prog_STRIP
3778if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003780$as_echo "$STRIP" >&6; }
3781else
cristy8b350f62009-11-15 23:12:43 +00003782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003783$as_echo "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$ac_cv_prog_STRIP"; then
3789 ac_ct_STRIP=$STRIP
3790 # Extract the first word of "strip", so it can be a program name with args.
3791set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003793$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003795 $as_echo_n "(cached) " >&6
3796else
3797 if test -n "$ac_ct_STRIP"; then
3798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3799else
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003805 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +00003808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003809 break 2
3810 fi
3811done
cristy8b350f62009-11-15 23:12:43 +00003812 done
cristy3ed852e2009-09-05 21:47:34 +00003813IFS=$as_save_IFS
3814
3815fi
3816fi
3817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3818if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +00003819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +00003820$as_echo "$ac_ct_STRIP" >&6; }
3821else
cristy8b350f62009-11-15 23:12:43 +00003822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003823$as_echo "no" >&6; }
3824fi
3825
3826 if test "x$ac_ct_STRIP" = x; then
3827 STRIP=":"
3828 else
3829 case $cross_compiling:$ac_tool_warned in
3830yes:)
cristy8b350f62009-11-15 23:12:43 +00003831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00003832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833ac_tool_warned=yes ;;
3834esac
3835 STRIP=$ac_ct_STRIP
3836 fi
3837else
3838 STRIP="$ac_cv_prog_STRIP"
3839fi
3840
3841fi
3842INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3843
cristy8b350f62009-11-15 23:12:43 +00003844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
cristy3ed852e2009-09-05 21:47:34 +00003845$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3846if test -z "$MKDIR_P"; then
cristy8b350f62009-11-15 23:12:43 +00003847 if test "${ac_cv_path_mkdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003848 $as_echo_n "(cached) " >&6
3849else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003855 for ac_prog in mkdir gmkdir; do
cristy3ed852e2009-09-05 21:47:34 +00003856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859 'mkdir (GNU coreutils) '* | \
3860 'mkdir (coreutils) '* | \
3861 'mkdir (fileutils) '4.1*)
3862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3863 break 3;;
3864 esac
3865 done
3866 done
cristy8b350f62009-11-15 23:12:43 +00003867 done
cristy3ed852e2009-09-05 21:47:34 +00003868IFS=$as_save_IFS
3869
3870fi
3871
cristycd4c5312009-11-22 01:19:08 +00003872 test -d ./--version && rmdir ./--version
cristy3ed852e2009-09-05 21:47:34 +00003873 if test "${ac_cv_path_mkdir+set}" = set; then
3874 MKDIR_P="$ac_cv_path_mkdir -p"
3875 else
3876 # As a last resort, use the slow shell script. Don't cache a
3877 # value for MKDIR_P within a source directory, because that will
3878 # break other packages using the cache if that directory is
3879 # removed, or if the value is a relative name.
cristy3ed852e2009-09-05 21:47:34 +00003880 MKDIR_P="$ac_install_sh -d"
3881 fi
3882fi
cristy8b350f62009-11-15 23:12:43 +00003883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
cristy3ed852e2009-09-05 21:47:34 +00003884$as_echo "$MKDIR_P" >&6; }
3885
3886mkdir_p="$MKDIR_P"
3887case $mkdir_p in
3888 [\\/$]* | ?:[\\/]*) ;;
3889 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3890esac
3891
3892for ac_prog in gawk mawk nawk awk
3893do
3894 # Extract the first word of "$ac_prog", so it can be a program name with args.
3895set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00003896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00003897$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00003898if test "${ac_cv_prog_AWK+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00003899 $as_echo_n "(cached) " >&6
3900else
3901 if test -n "$AWK"; then
3902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00003910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_prog_AWK="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00003912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00003913 break 2
3914 fi
3915done
cristy8b350f62009-11-15 23:12:43 +00003916 done
cristy3ed852e2009-09-05 21:47:34 +00003917IFS=$as_save_IFS
3918
3919fi
3920fi
3921AWK=$ac_cv_prog_AWK
3922if test -n "$AWK"; then
cristy8b350f62009-11-15 23:12:43 +00003923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
cristy3ed852e2009-09-05 21:47:34 +00003924$as_echo "$AWK" >&6; }
3925else
cristy8b350f62009-11-15 23:12:43 +00003926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003927$as_echo "no" >&6; }
3928fi
3929
3930
3931 test -n "$AWK" && break
3932done
3933
cristy8b350f62009-11-15 23:12:43 +00003934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
cristy3ed852e2009-09-05 21:47:34 +00003935$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3936set x ${MAKE-make}
3937ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristy8b350f62009-11-15 23:12:43 +00003938if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00003939 $as_echo_n "(cached) " >&6
3940else
3941 cat >conftest.make <<\_ACEOF
3942SHELL = /bin/sh
3943all:
3944 @echo '@@@%%%=$(MAKE)=@@@%%%'
3945_ACEOF
3946# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3947case `${MAKE-make} -f conftest.make 2>/dev/null` in
3948 *@@@%%%=?*=@@@%%%*)
3949 eval ac_cv_prog_make_${ac_make}_set=yes;;
3950 *)
3951 eval ac_cv_prog_make_${ac_make}_set=no;;
3952esac
3953rm -f conftest.make
3954fi
3955if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
cristy8b350f62009-11-15 23:12:43 +00003956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00003957$as_echo "yes" >&6; }
3958 SET_MAKE=
3959else
cristy8b350f62009-11-15 23:12:43 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00003961$as_echo "no" >&6; }
3962 SET_MAKE="MAKE=${MAKE-make}"
3963fi
3964
3965rm -rf .tst 2>/dev/null
3966mkdir .tst 2>/dev/null
3967if test -d .tst; then
3968 am__leading_dot=.
3969else
3970 am__leading_dot=_
3971fi
3972rmdir .tst 2>/dev/null
3973
3974if test "`cd $srcdir && pwd`" != "`pwd`"; then
3975 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3976 # is not polluted with repeated "-I."
3977 am__isrc=' -I$(srcdir)'
3978 # test to see if srcdir already configured
3979 if test -f $srcdir/config.status; then
cristy8b350f62009-11-15 23:12:43 +00003980 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003981 fi
3982fi
3983
3984# test whether we have cygpath
3985if test -z "$CYGPATH_W"; then
3986 if (cygpath --version) >/dev/null 2>/dev/null; then
3987 CYGPATH_W='cygpath -w'
3988 else
3989 CYGPATH_W=echo
3990 fi
3991fi
3992
3993
3994# Define the identity of the package.
3995 PACKAGE=$PACKAGE_NAME
cristy15a88782010-01-31 23:24:49 +00003996 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003997
3998
3999# Some tools Automake needs.
4000
4001ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4002
4003
4004AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4005
4006
4007AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4008
4009
4010AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4011
4012
4013MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4014
4015# We need awk for the "check" target. The system "awk" is bad on
4016# some platforms.
4017# Always define AMTAR for backward compatibility.
4018
4019AMTAR=${AMTAR-"${am_missing_run}tar"}
4020
4021am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4022
4023
4024
4025
4026
4027
4028# Enable support for silent build rules
4029# Check whether --enable-silent-rules was given.
cristy8b350f62009-11-15 23:12:43 +00004030if test "${enable_silent_rules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004031 enableval=$enable_silent_rules;
4032fi
4033
4034case $enable_silent_rules in
4035yes) AM_DEFAULT_VERBOSITY=0;;
4036no) AM_DEFAULT_VERBOSITY=1;;
4037*) AM_DEFAULT_VERBOSITY=0;;
4038esac
4039AM_BACKSLASH='\'
4040
4041
4042MAGICK_LIB_VERSION="0x"
4043if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4044 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4045fi
4046MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4047if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4048 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4049fi
4050MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4051if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4053fi
4054MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4055
4056
4057# Definition used to define MagickLibVersionText in version.h
4058MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4059
4060
4061# Definition used to define MagickLibVersionNumber in version.h
4062MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4063
4064
4065# Regenerate config.status if ChangeLog or version.sh is updated.
4066CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4067
4068
4069PERLMAINCC=$CC
4070
4071MAGICK_CFLAGS=''
4072MAGICK_CPPFLAGS=$CPPFLAGS_USER
4073MAGICK_PCFLAGS=$CPPFLAGS_USER
4074MAGICK_LDFLAGS=''
4075MAGICK_LIBS=''
4076
4077#
4078# Evaluate shell variable equivalents to Makefile directory variables
4079#
4080if test "x$prefix" = xNONE; then
4081 prefix=$ac_default_prefix
4082fi
4083# Let make expand exec_prefix.
4084if test "x$exec_prefix" = xNONE; then
4085 exec_prefix='${prefix}'
4086fi
4087
4088#
4089eval "eval PREFIX_DIR=${prefix}"
4090
4091eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4092
4093eval "eval BIN_DIR=$bindir"
4094
4095eval "eval SBIN_DIR=$sbindir"
4096
4097eval "eval LIBEXEC_DIR=$libexecdir"
4098
4099eval "eval DATA_DIR=$datadir"
4100
4101eval "eval SYSCONF_DIR=$sysconfdir"
4102
4103eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4104
4105eval "eval LOCALSTATE_DIR=$localstatedir"
4106
4107eval "eval LIB_DIR=$libdir"
4108
4109eval "eval INCLUDE_DIR=$includedir"
4110
4111eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4112
4113eval "eval INFO_DIR=$infodir"
4114
4115eval "eval MAN_DIR=$mandir"
4116
4117
4118# Get full paths to source and build directories
4119srcdirfull="`cd $srcdir && pwd`"
4120builddir="`pwd`"
4121
4122#
4123# Compute variables useful for running uninstalled software.
4124#
4125MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4126MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4127MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4128MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4129DIRSEP=':'
4130case "${build_os}" in
4131 mingw* )
4132 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4133 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4134 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4135 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4136 DIRSEP=';'
4137 ;;
4138esac
4139case "${host_os}" in
4140 mingw* )
4141 DIRSEP=';'
4142 ;;
4143esac
4144
4145
4146
4147
4148
4149
cristya0b81c32010-01-22 02:54:33 +00004150
4151#
4152# Enable OS features.
4153#
4154DEPDIR="${am__leading_dot}deps"
4155
4156ac_config_commands="$ac_config_commands depfiles"
4157
4158
4159am_make=${MAKE-make}
4160cat > confinc << 'END'
4161am__doit:
4162 @echo this is the am__doit target
4163.PHONY: am__doit
4164END
4165# If we don't find an include directive, just comment out the code.
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167$as_echo_n "checking for style of include used by $am_make... " >&6; }
4168am__include="#"
4169am__quote=
4170_am_result=none
4171# First try GNU make style include.
4172echo "include confinc" > confmf
4173# Ignore all kinds of additional output from `make'.
4174case `$am_make -s -f confmf 2> /dev/null` in #(
4175*the\ am__doit\ target*)
4176 am__include=include
4177 am__quote=
4178 _am_result=GNU
4179 ;;
4180esac
4181# Now try BSD make style include.
4182if test "$am__include" = "#"; then
4183 echo '.include "confinc"' > confmf
4184 case `$am_make -s -f confmf 2> /dev/null` in #(
4185 *the\ am__doit\ target*)
4186 am__include=.include
4187 am__quote="\""
4188 _am_result=BSD
4189 ;;
4190 esac
4191fi
4192
4193
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195$as_echo "$_am_result" >&6; }
4196rm -f confinc confmf
4197
4198# Check whether --enable-dependency-tracking was given.
4199if test "${enable_dependency_tracking+set}" = set; then :
4200 enableval=$enable_dependency_tracking;
4201fi
4202
4203if test "x$enable_dependency_tracking" != xno; then
4204 am_depcomp="$ac_aux_dir/depcomp"
4205 AMDEPBACKSLASH='\'
4206fi
4207 if test "x$enable_dependency_tracking" != xno; then
4208 AMDEP_TRUE=
4209 AMDEP_FALSE='#'
4210else
4211 AMDEP_TRUE='#'
4212 AMDEP_FALSE=
4213fi
4214
4215
cristy3ed852e2009-09-05 21:47:34 +00004216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4223set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004225$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004226if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004241 break 2
4242 fi
4243done
cristy8b350f62009-11-15 23:12:43 +00004244 done
cristy3ed852e2009-09-05 21:47:34 +00004245IFS=$as_save_IFS
4246
4247fi
4248fi
4249CC=$ac_cv_prog_CC
4250if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004252$as_echo "$CC" >&6; }
4253else
cristy8b350f62009-11-15 23:12:43 +00004254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004255$as_echo "no" >&6; }
4256fi
4257
4258
4259fi
4260if test -z "$ac_cv_prog_CC"; then
4261 ac_ct_CC=$CC
4262 # Extract the first word of "gcc", so it can be a program name with args.
4263set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004265$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004267 $as_echo_n "(cached) " >&6
4268else
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004281 break 2
4282 fi
4283done
cristy8b350f62009-11-15 23:12:43 +00004284 done
cristy3ed852e2009-09-05 21:47:34 +00004285IFS=$as_save_IFS
4286
4287fi
4288fi
4289ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004292$as_echo "$ac_ct_CC" >&6; }
4293else
cristy8b350f62009-11-15 23:12:43 +00004294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004295$as_echo "no" >&6; }
4296fi
4297
4298 if test "x$ac_ct_CC" = x; then
4299 CC=""
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302yes:)
cristy8b350f62009-11-15 23:12:43 +00004303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307 CC=$ac_ct_CC
4308 fi
4309else
4310 CC="$ac_cv_prog_CC"
4311fi
4312
4313if test -z "$CC"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4316set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004318$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004319if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004320 $as_echo_n "(cached) " >&6
4321else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324else
4325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004334 break 2
4335 fi
4336done
cristy8b350f62009-11-15 23:12:43 +00004337 done
cristy3ed852e2009-09-05 21:47:34 +00004338IFS=$as_save_IFS
4339
4340fi
4341fi
4342CC=$ac_cv_prog_CC
4343if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004345$as_echo "$CC" >&6; }
4346else
cristy8b350f62009-11-15 23:12:43 +00004347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004348$as_echo "no" >&6; }
4349fi
4350
4351
4352 fi
4353fi
4354if test -z "$CC"; then
4355 # Extract the first word of "cc", so it can be a program name with args.
4356set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004358$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004359if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004360 $as_echo_n "(cached) " >&6
4361else
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4364else
4365 ac_prog_rejected=no
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4374 ac_prog_rejected=yes
4375 continue
4376 fi
4377 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004379 break 2
4380 fi
4381done
cristy8b350f62009-11-15 23:12:43 +00004382 done
cristy3ed852e2009-09-05 21:47:34 +00004383IFS=$as_save_IFS
4384
4385if test $ac_prog_rejected = yes; then
4386 # We found a bogon in the path, so make sure we never use it.
4387 set dummy $ac_cv_prog_CC
4388 shift
4389 if test $# != 0; then
4390 # We chose a different compiler from the bogus one.
4391 # However, it has the same basename, so the bogon will be chosen
4392 # first if we set CC to just the basename; use the full file name.
4393 shift
4394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4395 fi
4396fi
4397fi
4398fi
4399CC=$ac_cv_prog_CC
4400if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004402$as_echo "$CC" >&6; }
4403else
cristy8b350f62009-11-15 23:12:43 +00004404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004405$as_echo "no" >&6; }
4406fi
4407
4408
4409fi
4410if test -z "$CC"; then
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in cl.exe
4413 do
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004417$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004418if test "${ac_cv_prog_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004419 $as_echo_n "(cached) " >&6
4420else
4421 if test -n "$CC"; then
4422 ac_cv_prog_CC="$CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004433 break 2
4434 fi
4435done
cristy8b350f62009-11-15 23:12:43 +00004436 done
cristy3ed852e2009-09-05 21:47:34 +00004437IFS=$as_save_IFS
4438
4439fi
4440fi
4441CC=$ac_cv_prog_CC
4442if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004444$as_echo "$CC" >&6; }
4445else
cristy8b350f62009-11-15 23:12:43 +00004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "no" >&6; }
4448fi
4449
4450
4451 test -n "$CC" && break
4452 done
4453fi
4454if test -z "$CC"; then
4455 ac_ct_CC=$CC
4456 for ac_prog in cl.exe
4457do
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$ac_ct_CC"; then
4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477 break 2
4478 fi
4479done
cristy8b350f62009-11-15 23:12:43 +00004480 done
cristy3ed852e2009-09-05 21:47:34 +00004481IFS=$as_save_IFS
4482
4483fi
4484fi
4485ac_ct_CC=$ac_cv_prog_ac_ct_CC
4486if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$ac_ct_CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495 test -n "$ac_ct_CC" && break
4496done
4497
4498 if test "x$ac_ct_CC" = x; then
4499 CC=""
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502yes:)
cristy8b350f62009-11-15 23:12:43 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505ac_tool_warned=yes ;;
4506esac
4507 CC=$ac_ct_CC
4508 fi
4509fi
4510
4511fi
4512
4513
cristy8b350f62009-11-15 23:12:43 +00004514test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004516as_fn_error "no acceptable C compiler found in \$PATH
4517See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004518
4519# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004520$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521set X $ac_compile
4522ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004523for ac_option in --version -v -V -qversion; do
4524 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004525case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528esac
cristy8b350f62009-11-15 23:12:43 +00004529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530$as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004532 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004533 if test -s conftest.err; then
4534 sed '10a\
4535... rest of stderr output deleted ...
4536 10q' conftest.err >conftest.er1
4537 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004538 fi
cristycd4c5312009-11-22 01:19:08 +00004539 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }
4542done
cristy3ed852e2009-09-05 21:47:34 +00004543
cristy8b350f62009-11-15 23:12:43 +00004544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004545/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004546
cristy3ed852e2009-09-05 21:47:34 +00004547int
4548main ()
4549{
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004556ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004557# Try to create an executable without -o first, disregard a.out.
4558# It will help us diagnose broken compilers, and finding out an intuition
4559# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4561$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004562ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4563
4564# The possible output files:
4565ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4566
4567ac_rmfiles=
4568for ac_file in $ac_files
4569do
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4573 esac
4574done
4575rm -f $ac_rmfiles
4576
cristy8b350f62009-11-15 23:12:43 +00004577if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
cristy8b350f62009-11-15 23:12:43 +00004582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004584 (eval "$ac_link_default") 2>&5
4585 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4589# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4590# in a Makefile. We should not override ac_cv_exeext if it was cached,
4591# so that the user can short-circuit this test for compilers unknown to
4592# Autoconf.
4593for ac_file in $ac_files ''
4594do
4595 test -f "$ac_file" || continue
4596 case $ac_file in
4597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4598 ;;
4599 [ab].out )
4600 # We found the default executable, but exeext='' is most
4601 # certainly right.
4602 break;;
4603 *.* )
cristy8b350f62009-11-15 23:12:43 +00004604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004605 then :; else
4606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607 fi
4608 # We set ac_cv_exeext here because the later test for it is not
4609 # safe: cross compilers may not add the suffix if given an `-o'
4610 # argument, so we may need to know it at that point already.
4611 # Even if this section looks crufty: it has the advantage of
4612 # actually working.
4613 break;;
4614 * )
4615 break;;
4616 esac
4617done
4618test "$ac_cv_exeext" = no && ac_cv_exeext=
4619
4620else
4621 ac_file=''
4622fi
cristy8b350f62009-11-15 23:12:43 +00004623if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625$as_echo "no" >&6; }
4626$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004627sed 's/^/| /' conftest.$ac_ext >&5
4628
cristy8b350f62009-11-15 23:12:43 +00004629{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004631{ as_fn_set_status 77
4632as_fn_error "C compiler cannot create executables
4633See \`config.log' for more details." "$LINENO" 5; }; }
cristycd4c5312009-11-22 01:19:08 +00004634else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004637fi
cristycd4c5312009-11-22 01:19:08 +00004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4639$as_echo_n "checking for C compiler default output file name... " >&6; }
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4641$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004642ac_exeext=$ac_cv_exeext
4643
cristycd4c5312009-11-22 01:19:08 +00004644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004645ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004648if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004649case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
cristy8b350f62009-11-15 23:12:43 +00004653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004655 (eval "$ac_link") 2>&5
4656 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004659 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4661# work properly (i.e., refer to `conftest.exe'), while it won't with
4662# `rm'.
4663for ac_file in conftest.exe conftest conftest.*; do
4664 test -f "$ac_file" || continue
4665 case $ac_file in
4666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4668 break;;
4669 * ) break;;
4670 esac
4671done
4672else
cristy8b350f62009-11-15 23:12:43 +00004673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004675as_fn_error "cannot compute suffix of executables: cannot compile and link
4676See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004677fi
cristycd4c5312009-11-22 01:19:08 +00004678rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004680$as_echo "$ac_cv_exeext" >&6; }
4681
4682rm -f conftest.$ac_ext
4683EXEEXT=$ac_cv_exeext
4684ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h. */
4687#include <stdio.h>
4688int
4689main ()
4690{
4691FILE *f = fopen ("conftest.out", "w");
4692 return ferror (f) || fclose (f) != 0;
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698ac_clean_files="$ac_clean_files conftest.out"
4699# Check that the compiler produces executables we can run. If not, either
4700# the compiler is broken, or we cross compile.
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4702$as_echo_n "checking whether we are cross compiling... " >&6; }
4703if test "$cross_compiling" != yes; then
4704 { { ac_try="$ac_link"
4705case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710$as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_link") 2>&5
4712 ac_status=$?
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715 if { ac_try='./conftest$ac_cv_exeext'
4716 { { case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719esac
4720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722 (eval "$ac_try") 2>&5
4723 ac_status=$?
4724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }; }; then
4726 cross_compiling=no
4727 else
4728 if test "$cross_compiling" = maybe; then
4729 cross_compiling=yes
4730 else
4731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4733as_fn_error "cannot run C compiled programs.
4734If you meant to cross compile, use \`--host'.
4735See \`config.log' for more details." "$LINENO" 5; }
4736 fi
4737 fi
4738fi
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4740$as_echo "$cross_compiling" >&6; }
4741
4742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4743ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004745$as_echo_n "checking for suffix of object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004746if test "${ac_cv_objext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004747 $as_echo_n "(cached) " >&6
4748else
cristy8b350f62009-11-15 23:12:43 +00004749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004761if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004762case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765esac
cristy8b350f62009-11-15 23:12:43 +00004766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4767$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004768 (eval "$ac_compile") 2>&5
4769 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004772 for ac_file in conftest.o conftest.obj conftest.*; do
4773 test -f "$ac_file" || continue;
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4777 break;;
4778 esac
4779done
4780else
4781 $as_echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
cristy8b350f62009-11-15 23:12:43 +00004784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00004786as_fn_error "cannot compute suffix of object files: cannot compile
4787See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004788fi
cristy3ed852e2009-09-05 21:47:34 +00004789rm -f conftest.$ac_cv_objext conftest.$ac_ext
4790fi
cristy8b350f62009-11-15 23:12:43 +00004791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004792$as_echo "$ac_cv_objext" >&6; }
4793OBJEXT=$ac_cv_objext
4794ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004797if test "${ac_cv_c_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004798 $as_echo_n "(cached) " >&6
4799else
cristy8b350f62009-11-15 23:12:43 +00004800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004801/* end confdefs.h. */
4802
4803int
4804main ()
4805{
4806#ifndef __GNUC__
4807 choke me
4808#endif
4809
4810 ;
4811 return 0;
4812}
4813_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004814if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004815 ac_compiler_gnu=yes
4816else
cristy8b350f62009-11-15 23:12:43 +00004817 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004818fi
cristy3ed852e2009-09-05 21:47:34 +00004819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820ac_cv_c_compiler_gnu=$ac_compiler_gnu
4821
4822fi
cristy8b350f62009-11-15 23:12:43 +00004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004824$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4825if test $ac_compiler_gnu = yes; then
4826 GCC=yes
4827else
4828 GCC=
4829fi
4830ac_test_CFLAGS=${CFLAGS+set}
4831ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004833$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004834if test "${ac_cv_prog_cc_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004835 $as_echo_n "(cached) " >&6
4836else
4837 ac_save_c_werror_flag=$ac_c_werror_flag
4838 ac_c_werror_flag=yes
4839 ac_cv_prog_cc_g=no
4840 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004842/* end confdefs.h. */
4843
4844int
4845main ()
4846{
4847
4848 ;
4849 return 0;
4850}
4851_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004852if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004853 ac_cv_prog_cc_g=yes
4854else
cristy8b350f62009-11-15 23:12:43 +00004855 CFLAGS=""
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004857/* end confdefs.h. */
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004867if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004868
cristy8b350f62009-11-15 23:12:43 +00004869else
4870 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004871 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004883if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004884 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004885fi
cristy3ed852e2009-09-05 21:47:34 +00004886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887fi
cristy3ed852e2009-09-05 21:47:34 +00004888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889fi
cristy3ed852e2009-09-05 21:47:34 +00004890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_c_werror_flag=$ac_save_c_werror_flag
4892fi
cristy8b350f62009-11-15 23:12:43 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$ac_cv_prog_cc_g" >&6; }
4895if test "$ac_test_CFLAGS" = set; then
4896 CFLAGS=$ac_save_CFLAGS
4897elif test $ac_cv_prog_cc_g = yes; then
4898 if test "$GCC" = yes; then
4899 CFLAGS="-g -O2"
4900 else
4901 CFLAGS="-g"
4902 fi
4903else
4904 if test "$GCC" = yes; then
4905 CFLAGS="-O2"
4906 else
4907 CFLAGS=
4908 fi
4909fi
cristy8b350f62009-11-15 23:12:43 +00004910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004912if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00004913 $as_echo_n "(cached) " >&6
4914else
4915 ac_cv_prog_cc_c89=no
4916ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004918/* end confdefs.h. */
4919#include <stdarg.h>
4920#include <stdio.h>
4921#include <sys/types.h>
4922#include <sys/stat.h>
4923/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4924struct buf { int x; };
4925FILE * (*rcsopen) (struct buf *, struct stat *, int);
4926static char *e (p, i)
4927 char **p;
4928 int i;
4929{
4930 return p[i];
4931}
4932static char *f (char * (*g) (char **, int), char **p, ...)
4933{
4934 char *s;
4935 va_list v;
4936 va_start (v,p);
4937 s = g (p, va_arg (v,int));
4938 va_end (v);
4939 return s;
4940}
4941
4942/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4943 function prototypes and stuff, but not '\xHH' hex character constants.
4944 These don't provoke an error unfortunately, instead are silently treated
4945 as 'x'. The following induces an error, until -std is added to get
4946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4947 array size at least. It's necessary to write '\x00'==0 to get something
4948 that's true only with -std. */
4949int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4950
4951/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4952 inside strings and character constants. */
4953#define FOO(x) 'x'
4954int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4955
4956int test (int i, double x);
4957struct s1 {int (*f) (int a);};
4958struct s2 {int (*f) (double a);};
4959int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4960int argc;
4961char **argv;
4962int
4963main ()
4964{
4965return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4972do
4973 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004974 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004975 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004976fi
cristy3ed852e2009-09-05 21:47:34 +00004977rm -f core conftest.err conftest.$ac_objext
4978 test "x$ac_cv_prog_cc_c89" != "xno" && break
4979done
4980rm -f conftest.$ac_ext
4981CC=$ac_save_CC
4982
4983fi
4984# AC_CACHE_VAL
4985case "x$ac_cv_prog_cc_c89" in
4986 x)
cristy8b350f62009-11-15 23:12:43 +00004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004988$as_echo "none needed" >&6; } ;;
4989 xno)
cristy8b350f62009-11-15 23:12:43 +00004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004991$as_echo "unsupported" >&6; } ;;
4992 *)
4993 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004995$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4996esac
cristy8b350f62009-11-15 23:12:43 +00004997if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004998
cristy8b350f62009-11-15 23:12:43 +00004999fi
cristy3ed852e2009-09-05 21:47:34 +00005000
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005006
cristya0b81c32010-01-22 02:54:33 +00005007depcc="$CC" am_compiler_list=
cristy3ed852e2009-09-05 21:47:34 +00005008
cristya0b81c32010-01-22 02:54:33 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5010$as_echo_n "checking dependency style of $depcc... " >&6; }
5011if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00005013else
cristya0b81c32010-01-22 02:54:33 +00005014 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5015 # We make a subdir and do the tests there. Otherwise we can end up
5016 # making bogus files that we don't know about and never remove. For
5017 # instance it was reported that on HP-UX the gcc test will end up
5018 # making a dummy file named `D' -- because `-MD' means `put the output
5019 # in D'.
5020 mkdir conftest.dir
5021 # Copy depcomp to subdir because otherwise we won't find it if we're
5022 # using a relative directory.
5023 cp "$am_depcomp" conftest.dir
5024 cd conftest.dir
5025 # We will build objects and dependencies in a subdirectory because
5026 # it helps to detect inapplicable dependency modes. For instance
5027 # both Tru64's cc and ICC support -MD to output dependencies as a
5028 # side effect of compilation, but ICC will put the dependencies in
5029 # the current directory while Tru64 will put them in the object
5030 # directory.
5031 mkdir sub
5032
5033 am_cv_CC_dependencies_compiler_type=none
5034 if test "$am_compiler_list" = ""; then
5035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5036 fi
5037 am__universal=false
5038 case " $depcc " in #(
5039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5040 esac
5041
5042 for depmode in $am_compiler_list; do
5043 # Setup a source with many dependencies, because some compilers
5044 # like to wrap large dependency lists on column 80 (with \), and
5045 # we should not choose a depcomp mode which is confused by this.
5046 #
5047 # We need to recreate these files for each test, as the compiler may
5048 # overwrite some of them when testing with obscure command lines.
5049 # This happens at least with the AIX C compiler.
5050 : > sub/conftest.c
5051 for i in 1 2 3 4 5 6; do
5052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5053 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5054 # Solaris 8's {/usr,}/bin/sh.
5055 touch sub/conftst$i.h
5056 done
5057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5058
5059 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5060 # mode. It turns out that the SunPro C++ compiler does not properly
5061 # handle `-M -o', and we need to detect this. Also, some Intel
5062 # versions had trouble with output in subdirs
5063 am__obj=sub/conftest.${OBJEXT-o}
5064 am__minus_obj="-o $am__obj"
5065 case $depmode in
5066 gcc)
5067 # This depmode causes a compiler race in universal mode.
5068 test "$am__universal" = false || continue
5069 ;;
5070 nosideeffect)
5071 # after this tag, mechanisms are not by side-effect, so they'll
5072 # only be used when explicitly requested
5073 if test "x$enable_dependency_tracking" = xyes; then
5074 continue
5075 else
5076 break
5077 fi
5078 ;;
5079 msvisualcpp | msvcmsys)
5080 # This compiler won't grok `-c -o', but also, the minuso test has
5081 # not run yet. These depmodes are late enough in the game, and
5082 # so weak that their functioning should not be impacted.
5083 am__obj=conftest.${OBJEXT-o}
5084 am__minus_obj=
5085 ;;
5086 none) break ;;
5087 esac
5088 if depmode=$depmode \
5089 source=sub/conftest.c object=$am__obj \
5090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5092 >/dev/null 2>conftest.err &&
5093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097 # icc doesn't choke on unknown options, it will just issue warnings
5098 # or remarks (even with -Werror). So we grep stderr for any message
5099 # that says an option was ignored or not supported.
5100 # When given -MP, icc 7.0 and 7.1 complain thusly:
5101 # icc: Command line warning: ignoring option '-M'; no argument required
5102 # The diagnosis changed in icc 8.0:
5103 # icc: Command line remark: option '-MP' not supported
5104 if (grep 'ignoring option' conftest.err ||
5105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106 am_cv_CC_dependencies_compiler_type=$depmode
5107 break
5108 fi
5109 fi
5110 done
5111
5112 cd ..
5113 rm -rf conftest.dir
5114else
5115 am_cv_CC_dependencies_compiler_type=none
5116fi
5117
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5120$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123 if
5124 test "x$enable_dependency_tracking" != xno \
5125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5126 am__fastdepCC_TRUE=
5127 am__fastdepCC_FALSE='#'
5128else
5129 am__fastdepCC_TRUE='#'
5130 am__fastdepCC_FALSE=
cristy3ed852e2009-09-05 21:47:34 +00005131fi
5132
5133
5134
cristya0b81c32010-01-22 02:54:33 +00005135ac_ext=c
5136ac_cpp='$CPP $CPPFLAGS'
5137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5141$as_echo_n "checking how to run the C preprocessor... " >&6; }
5142# On Suns, sometimes $CPP names a directory.
5143if test -n "$CPP" && test -d "$CPP"; then
5144 CPP=
5145fi
5146if test -z "$CPP"; then
5147 if test "${ac_cv_prog_CPP+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149else
5150 # Double quotes because CPP needs to be expanded
5151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5152 do
5153 ac_preproc_ok=false
5154for ac_c_preproc_warn_flag in '' yes
5155do
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h. */
5164#ifdef __STDC__
5165# include <limits.h>
5166#else
5167# include <assert.h>
5168#endif
5169 Syntax error
5170_ACEOF
5171if ac_fn_c_try_cpp "$LINENO"; then :
5172
5173else
5174 # Broken: fails on valid input.
5175continue
5176fi
5177rm -f conftest.err conftest.$ac_ext
5178
5179 # OK, works on sane cases. Now check whether nonexistent headers
5180 # can be detected and how.
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h. */
5183#include <ac_nonexistent.h>
5184_ACEOF
5185if ac_fn_c_try_cpp "$LINENO"; then :
5186 # Broken: success on invalid input.
5187continue
5188else
5189 # Passes both tests.
5190ac_preproc_ok=:
5191break
5192fi
5193rm -f conftest.err conftest.$ac_ext
5194
5195done
5196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197rm -f conftest.err conftest.$ac_ext
5198if $ac_preproc_ok; then :
5199 break
5200fi
5201
5202 done
5203 ac_cv_prog_CPP=$CPP
5204
5205fi
5206 CPP=$ac_cv_prog_CPP
5207else
5208 ac_cv_prog_CPP=$CPP
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5211$as_echo "$CPP" >&6; }
5212ac_preproc_ok=false
5213for ac_c_preproc_warn_flag in '' yes
5214do
5215 # Use a header file that comes with gcc, so configuring glibc
5216 # with a fresh cross-compiler works.
5217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5218 # <limits.h> exists even on freestanding compilers.
5219 # On the NeXT, cc -E runs the code through the compiler's parser,
5220 # not just through cpp. "Syntax error" is here to catch this case.
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h. */
5223#ifdef __STDC__
5224# include <limits.h>
5225#else
5226# include <assert.h>
5227#endif
5228 Syntax error
5229_ACEOF
5230if ac_fn_c_try_cpp "$LINENO"; then :
5231
5232else
5233 # Broken: fails on valid input.
5234continue
5235fi
5236rm -f conftest.err conftest.$ac_ext
5237
5238 # OK, works on sane cases. Now check whether nonexistent headers
5239 # can be detected and how.
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241/* end confdefs.h. */
5242#include <ac_nonexistent.h>
5243_ACEOF
5244if ac_fn_c_try_cpp "$LINENO"; then :
5245 # Broken: success on invalid input.
5246continue
5247else
5248 # Passes both tests.
5249ac_preproc_ok=:
5250break
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253
5254done
5255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5256rm -f conftest.err conftest.$ac_ext
5257if $ac_preproc_ok; then :
5258
5259else
5260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5262as_fn_error "C preprocessor \"$CPP\" fails sanity check
5263See \`config.log' for more details." "$LINENO" 5; }
5264fi
5265
5266ac_ext=c
5267ac_cpp='$CPP $CPPFLAGS'
5268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270ac_compiler_gnu=$ac_cv_c_compiler_gnu
5271
5272
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5274$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5275if test "${ac_cv_path_GREP+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5277else
5278 if test -z "$GREP"; then
5279 ac_path_GREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5283do
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in grep ggrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5289 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5290# Check for GNU ac_path_GREP and select it if it is found.
5291 # Check for GNU $ac_path_GREP
5292case `"$ac_path_GREP" --version 2>&1` in
5293*GNU*)
5294 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5295*)
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5299 do
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'GREP' >> "conftest.nl"
5304 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_GREP="$ac_path_GREP"
5310 ac_path_GREP_max=$ac_count
5311 fi
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316esac
5317
5318 $ac_path_GREP_found && break 3
5319 done
5320 done
5321 done
5322IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_GREP"; then
5324 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5325 fi
5326else
5327 ac_cv_path_GREP=$GREP
5328fi
5329
5330fi
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5332$as_echo "$ac_cv_path_GREP" >&6; }
5333 GREP="$ac_cv_path_GREP"
5334
5335
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5337$as_echo_n "checking for egrep... " >&6; }
5338if test "${ac_cv_path_EGREP+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340else
5341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5342 then ac_cv_path_EGREP="$GREP -E"
5343 else
5344 if test -z "$EGREP"; then
5345 ac_path_EGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in egrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5355 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5356# Check for GNU ac_path_EGREP and select it if it is found.
5357 # Check for GNU $ac_path_EGREP
5358case `"$ac_path_EGREP" --version 2>&1` in
5359*GNU*)
5360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5361*)
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'EGREP' >> "conftest.nl"
5370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_EGREP="$ac_path_EGREP"
5376 ac_path_EGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384 $ac_path_EGREP_found && break 3
5385 done
5386 done
5387 done
5388IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_EGREP"; then
5390 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391 fi
5392else
5393 ac_cv_path_EGREP=$EGREP
5394fi
5395
5396 fi
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399$as_echo "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5404$as_echo_n "checking for ANSI C header files... " >&6; }
5405if test "${ac_cv_header_stdc+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409/* end confdefs.h. */
5410#include <stdlib.h>
5411#include <stdarg.h>
5412#include <string.h>
5413#include <float.h>
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424 ac_cv_header_stdc=yes
5425else
5426 ac_cv_header_stdc=no
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429
5430if test $ac_cv_header_stdc = yes; then
5431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <string.h>
5435
5436_ACEOF
5437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5438 $EGREP "memchr" >/dev/null 2>&1; then :
5439
5440else
5441 ac_cv_header_stdc=no
5442fi
5443rm -f conftest*
5444
5445fi
5446
5447if test $ac_cv_header_stdc = yes; then
5448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h. */
5451#include <stdlib.h>
5452
5453_ACEOF
5454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455 $EGREP "free" >/dev/null 2>&1; then :
5456
5457else
5458 ac_cv_header_stdc=no
5459fi
5460rm -f conftest*
5461
5462fi
5463
5464if test $ac_cv_header_stdc = yes; then
5465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5466 if test "$cross_compiling" = yes; then :
5467 :
5468else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h. */
5471#include <ctype.h>
5472#include <stdlib.h>
5473#if ((' ' & 0x0FF) == 0x020)
5474# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5476#else
5477# define ISLOWER(c) \
5478 (('a' <= (c) && (c) <= 'i') \
5479 || ('j' <= (c) && (c) <= 'r') \
5480 || ('s' <= (c) && (c) <= 'z'))
5481# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5482#endif
5483
5484#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485int
5486main ()
5487{
5488 int i;
5489 for (i = 0; i < 256; i++)
5490 if (XOR (islower (i), ISLOWER (i))
5491 || toupper (i) != TOUPPER (i))
5492 return 2;
5493 return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_run "$LINENO"; then :
5497
5498else
5499 ac_cv_header_stdc=no
5500fi
5501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5502 conftest.$ac_objext conftest.beam conftest.$ac_ext
5503fi
5504
5505fi
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5508$as_echo "$ac_cv_header_stdc" >&6; }
5509if test $ac_cv_header_stdc = yes; then
5510
5511$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5512
5513fi
5514
5515# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5516for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5517 inttypes.h stdint.h unistd.h
5518do :
5519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5521"
5522eval as_val=\$$as_ac_Header
5523 if test "x$as_val" = x""yes; then :
5524 cat >>confdefs.h <<_ACEOF
5525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5526_ACEOF
5527
5528fi
5529
5530done
5531
5532
5533
5534 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5535if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5536 MINIX=yes
5537else
5538 MINIX=
5539fi
5540
5541
5542 if test "$MINIX" = yes; then
5543
5544$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5545
5546
5547$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5548
5549
5550$as_echo "#define _MINIX 1" >>confdefs.h
5551
5552 fi
5553
5554
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5556$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5557if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h. */
5562
5563# define __EXTENSIONS__ 1
5564 $ac_includes_default
5565int
5566main ()
5567{
5568
5569 ;
5570 return 0;
5571}
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_safe_to_define___extensions__=yes
5575else
5576 ac_cv_safe_to_define___extensions__=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5581$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5582 test $ac_cv_safe_to_define___extensions__ = yes &&
5583 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5584
5585 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5586
5587 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5588
5589 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5590
5591 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5592
5593
5594
5595# Check for programs
5596ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603set dummy ${ac_tool_prefix}gcc; ac_word=$2
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605$as_echo_n "checking for $ac_word... " >&6; }
5606if test "${ac_cv_prog_CC+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608else
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC="$CC" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623done
5624 done
5625IFS=$as_save_IFS
5626
5627fi
5628fi
5629CC=$ac_cv_prog_CC
5630if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632$as_echo "$CC" >&6; }
5633else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635$as_echo "no" >&6; }
5636fi
5637
5638
5639fi
5640if test -z "$ac_cv_prog_CC"; then
5641 ac_ct_CC=$CC
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643set dummy gcc; ac_word=$2
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645$as_echo_n "checking for $ac_word... " >&6; }
5646if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5647 $as_echo_n "(cached) " >&6
5648else
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_ac_ct_CC="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664 done
5665IFS=$as_save_IFS
5666
5667fi
5668fi
5669ac_ct_CC=$ac_cv_prog_ac_ct_CC
5670if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672$as_echo "$ac_ct_CC" >&6; }
5673else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676fi
5677
5678 if test "x$ac_ct_CC" = x; then
5679 CC=""
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682yes:)
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685ac_tool_warned=yes ;;
5686esac
5687 CC=$ac_ct_CC
5688 fi
5689else
5690 CC="$ac_cv_prog_CC"
5691fi
5692
5693if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}cc; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if test "${ac_cv_prog_CC+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC="$CC" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_CC="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717 done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722CC=$ac_cv_prog_CC
5723if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725$as_echo "$CC" >&6; }
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732 fi
5733fi
5734if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736set dummy cc; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if test "${ac_cv_prog_CC+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC="$CC" # Let the user override the test.
5744else
5745 ac_prog_rejected=no
5746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected=yes
5755 continue
5756 fi
5757 ac_cv_prog_CC="cc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761done
5762 done
5763IFS=$as_save_IFS
5764
5765if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy $ac_cv_prog_CC
5768 shift
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5773 shift
5774 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5775 fi
5776fi
5777fi
5778fi
5779CC=$ac_cv_prog_CC
5780if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782$as_echo "$CC" >&6; }
5783else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785$as_echo "no" >&6; }
5786fi
5787
5788
5789fi
5790if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog in cl.exe
5793 do
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if test "${ac_cv_prog_CC+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821CC=$ac_cv_prog_CC
5822if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824$as_echo "$CC" >&6; }
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831 test -n "$CC" && break
5832 done
5833fi
5834if test -z "$CC"; then
5835 ac_ct_CC=$CC
5836 for ac_prog in cl.exe
5837do
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839set dummy $ac_prog; ac_word=$2
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841$as_echo_n "checking for $ac_word... " >&6; }
5842if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844else
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_CC="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859done
5860 done
5861IFS=$as_save_IFS
5862
5863fi
5864fi
5865ac_ct_CC=$ac_cv_prog_ac_ct_CC
5866if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868$as_echo "$ac_ct_CC" >&6; }
5869else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875 test -n "$ac_ct_CC" && break
5876done
5877
5878 if test "x$ac_ct_CC" = x; then
5879 CC=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882yes:)
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885ac_tool_warned=yes ;;
5886esac
5887 CC=$ac_ct_CC
5888 fi
5889fi
5890
5891fi
5892
5893
5894test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896as_fn_error "no acceptable C compiler found in \$PATH
5897See \`config.log' for more details." "$LINENO" 5; }
5898
5899# Provide some information about the compiler.
5900$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5901set X $ac_compile
5902ac_compiler=$2
5903for ac_option in --version -v -V -qversion; do
5904 { { ac_try="$ac_compiler $ac_option >&5"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910$as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5912 ac_status=$?
5913 if test -s conftest.err; then
5914 sed '10a\
5915... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5918 fi
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922done
5923
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928else
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931
5932int
5933main ()
5934{
5935#ifndef __GNUC__
5936 choke me
5937#endif
5938
5939 ;
5940 return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_compile "$LINENO"; then :
5944 ac_compiler_gnu=yes
5945else
5946 ac_compiler_gnu=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949ac_cv_c_compiler_gnu=$ac_compiler_gnu
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954if test $ac_compiler_gnu = yes; then
5955 GCC=yes
5956else
5957 GCC=
5958fi
5959ac_test_CFLAGS=${CFLAGS+set}
5960ac_save_CFLAGS=$CFLAGS
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962$as_echo_n "checking whether $CC accepts -g... " >&6; }
5963if test "${ac_cv_prog_cc_g+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5968 ac_cv_prog_cc_g=no
5969 CFLAGS="-g"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972
5973int
5974main ()
5975{
5976
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981if ac_fn_c_try_compile "$LINENO"; then :
5982 ac_cv_prog_cc_g=yes
5983else
5984 CFLAGS=""
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h. */
5987
5988int
5989main ()
5990{
5991
5992 ;
5993 return 0;
5994}
5995_ACEOF
5996if ac_fn_c_try_compile "$LINENO"; then :
5997
5998else
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6000 CFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002/* end confdefs.h. */
6003
6004int
6005main ()
6006{
6007
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_cv_prog_cc_g=yes
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023$as_echo "$ac_cv_prog_cc_g" >&6; }
6024if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6028 CFLAGS="-g -O2"
6029 else
6030 CFLAGS="-g"
6031 fi
6032else
6033 if test "$GCC" = yes; then
6034 CFLAGS="-O2"
6035 else
6036 CFLAGS=
6037 fi
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041if test "${ac_cv_prog_cc_c89+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043else
6044 ac_cv_prog_cc_c89=no
6045ac_save_CC=$CC
6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048#include <stdarg.h>
6049#include <stdio.h>
6050#include <sys/types.h>
6051#include <sys/stat.h>
6052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6053struct buf { int x; };
6054FILE * (*rcsopen) (struct buf *, struct stat *, int);
6055static char *e (p, i)
6056 char **p;
6057 int i;
6058{
6059 return p[i];
6060}
6061static char *f (char * (*g) (char **, int), char **p, ...)
6062{
6063 char *s;
6064 va_list v;
6065 va_start (v,p);
6066 s = g (p, va_arg (v,int));
6067 va_end (v);
6068 return s;
6069}
6070
6071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6072 function prototypes and stuff, but not '\xHH' hex character constants.
6073 These don't provoke an error unfortunately, instead are silently treated
6074 as 'x'. The following induces an error, until -std is added to get
6075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6076 array size at least. It's necessary to write '\x00'==0 to get something
6077 that's true only with -std. */
6078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079
6080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6081 inside strings and character constants. */
6082#define FOO(x) 'x'
6083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084
6085int test (int i, double x);
6086struct s1 {int (*f) (int a);};
6087struct s2 {int (*f) (double a);};
6088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6089int argc;
6090char **argv;
6091int
6092main ()
6093{
6094return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6095 ;
6096 return 0;
6097}
6098_ACEOF
6099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101do
6102 CC="$ac_save_CC $ac_arg"
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 ac_cv_prog_cc_c89=$ac_arg
6105fi
6106rm -f core conftest.err conftest.$ac_objext
6107 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108done
6109rm -f conftest.$ac_ext
6110CC=$ac_save_CC
6111
6112fi
6113# AC_CACHE_VAL
6114case "x$ac_cv_prog_cc_c89" in
6115 x)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6117$as_echo "none needed" >&6; } ;;
6118 xno)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6120$as_echo "unsupported" >&6; } ;;
6121 *)
6122 CC="$CC $ac_cv_prog_cc_c89"
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6125esac
6126if test "x$ac_cv_prog_cc_c89" != xno; then :
6127
6128fi
6129
6130ac_ext=c
6131ac_cpp='$CPP $CPPFLAGS'
6132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
cristy3ed852e2009-09-05 21:47:34 +00006136depcc="$CC" am_compiler_list=
6137
cristy8b350f62009-11-15 23:12:43 +00006138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006139$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006140if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006141 $as_echo_n "(cached) " >&6
6142else
6143 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6144 # We make a subdir and do the tests there. Otherwise we can end up
6145 # making bogus files that we don't know about and never remove. For
6146 # instance it was reported that on HP-UX the gcc test will end up
6147 # making a dummy file named `D' -- because `-MD' means `put the output
6148 # in D'.
6149 mkdir conftest.dir
6150 # Copy depcomp to subdir because otherwise we won't find it if we're
6151 # using a relative directory.
6152 cp "$am_depcomp" conftest.dir
6153 cd conftest.dir
6154 # We will build objects and dependencies in a subdirectory because
6155 # it helps to detect inapplicable dependency modes. For instance
6156 # both Tru64's cc and ICC support -MD to output dependencies as a
6157 # side effect of compilation, but ICC will put the dependencies in
6158 # the current directory while Tru64 will put them in the object
6159 # directory.
6160 mkdir sub
6161
6162 am_cv_CC_dependencies_compiler_type=none
6163 if test "$am_compiler_list" = ""; then
6164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6165 fi
6166 am__universal=false
6167 case " $depcc " in #(
6168 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6169 esac
6170
6171 for depmode in $am_compiler_list; do
6172 # Setup a source with many dependencies, because some compilers
6173 # like to wrap large dependency lists on column 80 (with \), and
6174 # we should not choose a depcomp mode which is confused by this.
6175 #
6176 # We need to recreate these files for each test, as the compiler may
6177 # overwrite some of them when testing with obscure command lines.
6178 # This happens at least with the AIX C compiler.
6179 : > sub/conftest.c
6180 for i in 1 2 3 4 5 6; do
6181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6182 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6183 # Solaris 8's {/usr,}/bin/sh.
6184 touch sub/conftst$i.h
6185 done
6186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6187
6188 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6189 # mode. It turns out that the SunPro C++ compiler does not properly
6190 # handle `-M -o', and we need to detect this. Also, some Intel
6191 # versions had trouble with output in subdirs
6192 am__obj=sub/conftest.${OBJEXT-o}
6193 am__minus_obj="-o $am__obj"
6194 case $depmode in
6195 gcc)
6196 # This depmode causes a compiler race in universal mode.
6197 test "$am__universal" = false || continue
6198 ;;
6199 nosideeffect)
6200 # after this tag, mechanisms are not by side-effect, so they'll
6201 # only be used when explicitly requested
6202 if test "x$enable_dependency_tracking" = xyes; then
6203 continue
6204 else
6205 break
6206 fi
6207 ;;
6208 msvisualcpp | msvcmsys)
6209 # This compiler won't grok `-c -o', but also, the minuso test has
6210 # not run yet. These depmodes are late enough in the game, and
6211 # so weak that their functioning should not be impacted.
6212 am__obj=conftest.${OBJEXT-o}
6213 am__minus_obj=
6214 ;;
6215 none) break ;;
6216 esac
6217 if depmode=$depmode \
6218 source=sub/conftest.c object=$am__obj \
6219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6221 >/dev/null 2>conftest.err &&
6222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6226 # icc doesn't choke on unknown options, it will just issue warnings
6227 # or remarks (even with -Werror). So we grep stderr for any message
6228 # that says an option was ignored or not supported.
6229 # When given -MP, icc 7.0 and 7.1 complain thusly:
6230 # icc: Command line warning: ignoring option '-M'; no argument required
6231 # The diagnosis changed in icc 8.0:
6232 # icc: Command line remark: option '-MP' not supported
6233 if (grep 'ignoring option' conftest.err ||
6234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6235 am_cv_CC_dependencies_compiler_type=$depmode
6236 break
6237 fi
6238 fi
6239 done
6240
6241 cd ..
6242 rm -rf conftest.dir
6243else
6244 am_cv_CC_dependencies_compiler_type=none
6245fi
6246
6247fi
cristy8b350f62009-11-15 23:12:43 +00006248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +00006249$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6250CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6251
6252 if
6253 test "x$enable_dependency_tracking" != xno \
6254 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6255 am__fastdepCC_TRUE=
6256 am__fastdepCC_FALSE='#'
6257else
6258 am__fastdepCC_TRUE='#'
6259 am__fastdepCC_FALSE=
6260fi
6261
6262
cristy95646052009-11-28 23:05:30 +00006263ac_ext=cpp
6264ac_cpp='$CXXCPP $CPPFLAGS'
6265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268if test -z "$CXX"; then
6269 if test -n "$CCC"; then
6270 CXX=$CCC
6271 else
6272 if test -n "$ac_tool_prefix"; then
6273 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6274 do
6275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6276set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278$as_echo_n "checking for $ac_word... " >&6; }
6279if test "${ac_cv_prog_CXX+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281else
6282 if test -n "$CXX"; then
6283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6284else
6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286for as_dir in $PATH
6287do
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6295 fi
6296done
6297 done
6298IFS=$as_save_IFS
6299
6300fi
6301fi
6302CXX=$ac_cv_prog_CXX
6303if test -n "$CXX"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6305$as_echo "$CXX" >&6; }
6306else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309fi
6310
6311
6312 test -n "$CXX" && break
6313 done
6314fi
6315if test -z "$CXX"; then
6316 ac_ct_CXX=$CXX
6317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6318do
6319 # Extract the first word of "$ac_prog", so it can be a program name with args.
6320set dummy $ac_prog; ac_word=$2
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6322$as_echo_n "checking for $ac_word... " >&6; }
6323if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6325else
6326 if test -n "$ac_ct_CXX"; then
6327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6328else
6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330for as_dir in $PATH
6331do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_CXX="$ac_prog"
6337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340done
6341 done
6342IFS=$as_save_IFS
6343
6344fi
6345fi
6346ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6347if test -n "$ac_ct_CXX"; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6349$as_echo "$ac_ct_CXX" >&6; }
6350else
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352$as_echo "no" >&6; }
6353fi
6354
6355
6356 test -n "$ac_ct_CXX" && break
6357done
6358
6359 if test "x$ac_ct_CXX" = x; then
6360 CXX="g++"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368 CXX=$ac_ct_CXX
6369 fi
6370fi
6371
6372 fi
6373fi
6374# Provide some information about the compiler.
6375$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6376set X $ac_compile
6377ac_compiler=$2
6378for ac_option in --version -v -V -qversion; do
6379 { { ac_try="$ac_compiler $ac_option >&5"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6385$as_echo "$ac_try_echo"; } >&5
6386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6387 ac_status=$?
6388 if test -s conftest.err; then
6389 sed '10a\
6390... rest of stderr output deleted ...
6391 10q' conftest.err >conftest.er1
6392 cat conftest.er1 >&5
6393 fi
6394 rm -f conftest.er1 conftest.err
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }
6397done
6398
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6400$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6401if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6403else
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405/* end confdefs.h. */
6406
6407int
6408main ()
6409{
6410#ifndef __GNUC__
6411 choke me
6412#endif
6413
6414 ;
6415 return 0;
6416}
6417_ACEOF
6418if ac_fn_cxx_try_compile "$LINENO"; then :
6419 ac_compiler_gnu=yes
6420else
6421 ac_compiler_gnu=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6424ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6425
6426fi
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6428$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6429if test $ac_compiler_gnu = yes; then
6430 GXX=yes
6431else
6432 GXX=
6433fi
6434ac_test_CXXFLAGS=${CXXFLAGS+set}
6435ac_save_CXXFLAGS=$CXXFLAGS
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6437$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6438if test "${ac_cv_prog_cxx_g+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440else
6441 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6442 ac_cxx_werror_flag=yes
6443 ac_cv_prog_cxx_g=no
6444 CXXFLAGS="-g"
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h. */
6447
6448int
6449main ()
6450{
6451
6452 ;
6453 return 0;
6454}
6455_ACEOF
6456if ac_fn_cxx_try_compile "$LINENO"; then :
6457 ac_cv_prog_cxx_g=yes
6458else
6459 CXXFLAGS=""
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462
6463int
6464main ()
6465{
6466
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471if ac_fn_cxx_try_compile "$LINENO"; then :
6472
6473else
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475 CXXFLAGS="-g"
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h. */
6478
6479int
6480main ()
6481{
6482
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487if ac_fn_cxx_try_compile "$LINENO"; then :
6488 ac_cv_prog_cxx_g=yes
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6496fi
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6498$as_echo "$ac_cv_prog_cxx_g" >&6; }
6499if test "$ac_test_CXXFLAGS" = set; then
6500 CXXFLAGS=$ac_save_CXXFLAGS
6501elif test $ac_cv_prog_cxx_g = yes; then
6502 if test "$GXX" = yes; then
6503 CXXFLAGS="-g -O2"
6504 else
6505 CXXFLAGS="-g"
6506 fi
6507else
6508 if test "$GXX" = yes; then
6509 CXXFLAGS="-O2"
6510 else
6511 CXXFLAGS=
6512 fi
6513fi
6514ac_ext=c
6515ac_cpp='$CPP $CPPFLAGS'
6516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519
6520depcc="$CXX" am_compiler_list=
6521
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6523$as_echo_n "checking dependency style of $depcc... " >&6; }
6524if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6526else
6527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6528 # We make a subdir and do the tests there. Otherwise we can end up
6529 # making bogus files that we don't know about and never remove. For
6530 # instance it was reported that on HP-UX the gcc test will end up
6531 # making a dummy file named `D' -- because `-MD' means `put the output
6532 # in D'.
6533 mkdir conftest.dir
6534 # Copy depcomp to subdir because otherwise we won't find it if we're
6535 # using a relative directory.
6536 cp "$am_depcomp" conftest.dir
6537 cd conftest.dir
6538 # We will build objects and dependencies in a subdirectory because
6539 # it helps to detect inapplicable dependency modes. For instance
6540 # both Tru64's cc and ICC support -MD to output dependencies as a
6541 # side effect of compilation, but ICC will put the dependencies in
6542 # the current directory while Tru64 will put them in the object
6543 # directory.
6544 mkdir sub
6545
6546 am_cv_CXX_dependencies_compiler_type=none
6547 if test "$am_compiler_list" = ""; then
6548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6549 fi
6550 am__universal=false
6551 case " $depcc " in #(
6552 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6553 esac
6554
6555 for depmode in $am_compiler_list; do
6556 # Setup a source with many dependencies, because some compilers
6557 # like to wrap large dependency lists on column 80 (with \), and
6558 # we should not choose a depcomp mode which is confused by this.
6559 #
6560 # We need to recreate these files for each test, as the compiler may
6561 # overwrite some of them when testing with obscure command lines.
6562 # This happens at least with the AIX C compiler.
6563 : > sub/conftest.c
6564 for i in 1 2 3 4 5 6; do
6565 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6566 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6567 # Solaris 8's {/usr,}/bin/sh.
6568 touch sub/conftst$i.h
6569 done
6570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6571
6572 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6573 # mode. It turns out that the SunPro C++ compiler does not properly
6574 # handle `-M -o', and we need to detect this. Also, some Intel
6575 # versions had trouble with output in subdirs
6576 am__obj=sub/conftest.${OBJEXT-o}
6577 am__minus_obj="-o $am__obj"
6578 case $depmode in
6579 gcc)
6580 # This depmode causes a compiler race in universal mode.
6581 test "$am__universal" = false || continue
6582 ;;
6583 nosideeffect)
6584 # after this tag, mechanisms are not by side-effect, so they'll
6585 # only be used when explicitly requested
6586 if test "x$enable_dependency_tracking" = xyes; then
6587 continue
6588 else
6589 break
6590 fi
6591 ;;
6592 msvisualcpp | msvcmsys)
6593 # This compiler won't grok `-c -o', but also, the minuso test has
6594 # not run yet. These depmodes are late enough in the game, and
6595 # so weak that their functioning should not be impacted.
6596 am__obj=conftest.${OBJEXT-o}
6597 am__minus_obj=
6598 ;;
6599 none) break ;;
6600 esac
6601 if depmode=$depmode \
6602 source=sub/conftest.c object=$am__obj \
6603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6604 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6605 >/dev/null 2>conftest.err &&
6606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6608 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6610 # icc doesn't choke on unknown options, it will just issue warnings
6611 # or remarks (even with -Werror). So we grep stderr for any message
6612 # that says an option was ignored or not supported.
6613 # When given -MP, icc 7.0 and 7.1 complain thusly:
6614 # icc: Command line warning: ignoring option '-M'; no argument required
6615 # The diagnosis changed in icc 8.0:
6616 # icc: Command line remark: option '-MP' not supported
6617 if (grep 'ignoring option' conftest.err ||
6618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6619 am_cv_CXX_dependencies_compiler_type=$depmode
6620 break
6621 fi
6622 fi
6623 done
6624
6625 cd ..
6626 rm -rf conftest.dir
6627else
6628 am_cv_CXX_dependencies_compiler_type=none
6629fi
6630
6631fi
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6633$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6634CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6635
6636 if
6637 test "x$enable_dependency_tracking" != xno \
6638 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6639 am__fastdepCXX_TRUE=
6640 am__fastdepCXX_FALSE='#'
6641else
6642 am__fastdepCXX_TRUE='#'
6643 am__fastdepCXX_FALSE=
6644fi
6645
6646
cristy8b350f62009-11-15 23:12:43 +00006647 case $ac_cv_prog_cc_stdc in #(
6648 no) :
6649 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6650 *) :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006652$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006653if test "${ac_cv_prog_cc_c99+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006654 $as_echo_n "(cached) " >&6
6655else
6656 ac_cv_prog_cc_c99=no
6657ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006659/* end confdefs.h. */
6660#include <stdarg.h>
6661#include <stdbool.h>
6662#include <stdlib.h>
6663#include <wchar.h>
6664#include <stdio.h>
6665
6666// Check varargs macros. These examples are taken from C99 6.10.3.5.
6667#define debug(...) fprintf (stderr, __VA_ARGS__)
6668#define showlist(...) puts (#__VA_ARGS__)
6669#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6670static void
6671test_varargs_macros (void)
6672{
6673 int x = 1234;
6674 int y = 5678;
6675 debug ("Flag");
6676 debug ("X = %d\n", x);
6677 showlist (The first, second, and third items.);
6678 report (x>y, "x is %d but y is %d", x, y);
6679}
6680
6681// Check long long types.
6682#define BIG64 18446744073709551615ull
6683#define BIG32 4294967295ul
6684#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6685#if !BIG_OK
6686 your preprocessor is broken;
6687#endif
6688#if BIG_OK
6689#else
6690 your preprocessor is broken;
6691#endif
6692static long long int bignum = -9223372036854775807LL;
6693static unsigned long long int ubignum = BIG64;
6694
6695struct incomplete_array
6696{
6697 int datasize;
6698 double data[];
6699};
6700
6701struct named_init {
6702 int number;
6703 const wchar_t *name;
6704 double average;
6705};
6706
6707typedef const char *ccp;
6708
6709static inline int
6710test_restrict (ccp restrict text)
6711{
6712 // See if C++-style comments work.
6713 // Iterate through items via the restricted pointer.
6714 // Also check for declarations in for loops.
6715 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6716 continue;
6717 return 0;
6718}
6719
6720// Check varargs and va_copy.
6721static void
6722test_varargs (const char *format, ...)
6723{
6724 va_list args;
6725 va_start (args, format);
6726 va_list args_copy;
6727 va_copy (args_copy, args);
6728
6729 const char *str;
6730 int number;
6731 float fnumber;
6732
6733 while (*format)
6734 {
6735 switch (*format++)
6736 {
6737 case 's': // string
6738 str = va_arg (args_copy, const char *);
6739 break;
6740 case 'd': // int
6741 number = va_arg (args_copy, int);
6742 break;
6743 case 'f': // float
6744 fnumber = va_arg (args_copy, double);
6745 break;
6746 default:
6747 break;
6748 }
6749 }
6750 va_end (args_copy);
6751 va_end (args);
6752}
6753
6754int
6755main ()
6756{
6757
6758 // Check bool.
6759 _Bool success = false;
6760
6761 // Check restrict.
6762 if (test_restrict ("String literal") == 0)
6763 success = true;
6764 char *restrict newvar = "Another string";
6765
6766 // Check varargs.
6767 test_varargs ("s, d' f .", "string", 65, 34.234);
6768 test_varargs_macros ();
6769
6770 // Check flexible array members.
6771 struct incomplete_array *ia =
6772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6773 ia->datasize = 10;
6774 for (int i = 0; i < ia->datasize; ++i)
6775 ia->data[i] = i * 1.234;
6776
6777 // Check named initializers.
6778 struct named_init ni = {
6779 .number = 34,
6780 .name = L"Test wide string",
6781 .average = 543.34343,
6782 };
6783
6784 ni.number = 58;
6785
6786 int dynamic_array[ni.number];
6787 dynamic_array[ni.number - 1] = 543;
6788
6789 // work around unused variable warnings
6790 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6791 || dynamic_array[ni.number - 1] != 543);
6792
6793 ;
6794 return 0;
6795}
6796_ACEOF
6797for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6798do
6799 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006800 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006801 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006802fi
cristy3ed852e2009-09-05 21:47:34 +00006803rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c99" != "xno" && break
6805done
6806rm -f conftest.$ac_ext
6807CC=$ac_save_CC
6808
6809fi
6810# AC_CACHE_VAL
6811case "x$ac_cv_prog_cc_c99" in
6812 x)
cristy8b350f62009-11-15 23:12:43 +00006813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006814$as_echo "none needed" >&6; } ;;
6815 xno)
cristy8b350f62009-11-15 23:12:43 +00006816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006817$as_echo "unsupported" >&6; } ;;
6818 *)
6819 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006821$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6822esac
cristy8b350f62009-11-15 23:12:43 +00006823if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6825else
cristy8b350f62009-11-15 23:12:43 +00006826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006827$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006828if test "${ac_cv_prog_cc_c89+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006829 $as_echo_n "(cached) " >&6
6830else
6831 ac_cv_prog_cc_c89=no
6832ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006834/* end confdefs.h. */
6835#include <stdarg.h>
6836#include <stdio.h>
6837#include <sys/types.h>
6838#include <sys/stat.h>
6839/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6840struct buf { int x; };
6841FILE * (*rcsopen) (struct buf *, struct stat *, int);
6842static char *e (p, i)
6843 char **p;
6844 int i;
6845{
6846 return p[i];
6847}
6848static char *f (char * (*g) (char **, int), char **p, ...)
6849{
6850 char *s;
6851 va_list v;
6852 va_start (v,p);
6853 s = g (p, va_arg (v,int));
6854 va_end (v);
6855 return s;
6856}
6857
6858/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6859 function prototypes and stuff, but not '\xHH' hex character constants.
6860 These don't provoke an error unfortunately, instead are silently treated
6861 as 'x'. The following induces an error, until -std is added to get
6862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6863 array size at least. It's necessary to write '\x00'==0 to get something
6864 that's true only with -std. */
6865int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866
6867/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6868 inside strings and character constants. */
6869#define FOO(x) 'x'
6870int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871
6872int test (int i, double x);
6873struct s1 {int (*f) (int a);};
6874struct s2 {int (*f) (double a);};
6875int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876int argc;
6877char **argv;
6878int
6879main ()
6880{
6881return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888do
6889 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006890 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006891 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006892fi
cristy3ed852e2009-09-05 21:47:34 +00006893rm -f core conftest.err conftest.$ac_objext
6894 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895done
6896rm -f conftest.$ac_ext
6897CC=$ac_save_CC
6898
6899fi
6900# AC_CACHE_VAL
6901case "x$ac_cv_prog_cc_c89" in
6902 x)
cristy8b350f62009-11-15 23:12:43 +00006903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006904$as_echo "none needed" >&6; } ;;
6905 xno)
cristy8b350f62009-11-15 23:12:43 +00006906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006907$as_echo "unsupported" >&6; } ;;
6908 *)
6909 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006911$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912esac
cristy8b350f62009-11-15 23:12:43 +00006913if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6915else
6916 ac_cv_prog_cc_stdc=no
6917fi
6918
cristy3ed852e2009-09-05 21:47:34 +00006919fi
cristy3ed852e2009-09-05 21:47:34 +00006920 ;;
6921esac
cristy8b350f62009-11-15 23:12:43 +00006922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006923$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00006924 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006925 $as_echo_n "(cached) " >&6
6926fi
6927
cristy8b350f62009-11-15 23:12:43 +00006928 case $ac_cv_prog_cc_stdc in #(
6929 no) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6931$as_echo "unsupported" >&6; } ;; #(
6932 '') :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934$as_echo "none needed" >&6; } ;; #(
6935 *) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006937$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6938esac
6939
cristy3ed852e2009-09-05 21:47:34 +00006940ac_ext=c
6941ac_cpp='$CPP $CPPFLAGS'
6942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6944ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006946$as_echo_n "checking how to run the C preprocessor... " >&6; }
6947# On Suns, sometimes $CPP names a directory.
6948if test -n "$CPP" && test -d "$CPP"; then
6949 CPP=
6950fi
6951if test -z "$CPP"; then
cristy8b350f62009-11-15 23:12:43 +00006952 if test "${ac_cv_prog_CPP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00006953 $as_echo_n "(cached) " >&6
6954else
6955 # Double quotes because CPP needs to be expanded
6956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6957 do
6958 ac_preproc_ok=false
6959for ac_c_preproc_warn_flag in '' yes
6960do
6961 # Use a header file that comes with gcc, so configuring glibc
6962 # with a fresh cross-compiler works.
6963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6964 # <limits.h> exists even on freestanding compilers.
6965 # On the NeXT, cc -E runs the code through the compiler's parser,
6966 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006968/* end confdefs.h. */
6969#ifdef __STDC__
6970# include <limits.h>
6971#else
6972# include <assert.h>
6973#endif
6974 Syntax error
6975_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006976if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006977
cristy8b350f62009-11-15 23:12:43 +00006978else
cristy3ed852e2009-09-05 21:47:34 +00006979 # Broken: fails on valid input.
6980continue
6981fi
cristy3ed852e2009-09-05 21:47:34 +00006982rm -f conftest.err conftest.$ac_ext
6983
6984 # OK, works on sane cases. Now check whether nonexistent headers
6985 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006987/* end confdefs.h. */
6988#include <ac_nonexistent.h>
6989_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006990if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006991 # Broken: success on invalid input.
6992continue
6993else
cristy3ed852e2009-09-05 21:47:34 +00006994 # Passes both tests.
6995ac_preproc_ok=:
6996break
6997fi
cristy3ed852e2009-09-05 21:47:34 +00006998rm -f conftest.err conftest.$ac_ext
6999
7000done
7001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7002rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007003if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007004 break
7005fi
7006
7007 done
7008 ac_cv_prog_CPP=$CPP
7009
7010fi
7011 CPP=$ac_cv_prog_CPP
7012else
7013 ac_cv_prog_CPP=$CPP
7014fi
cristy8b350f62009-11-15 23:12:43 +00007015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007016$as_echo "$CPP" >&6; }
7017ac_preproc_ok=false
7018for ac_c_preproc_warn_flag in '' yes
7019do
7020 # Use a header file that comes with gcc, so configuring glibc
7021 # with a fresh cross-compiler works.
7022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7023 # <limits.h> exists even on freestanding compilers.
7024 # On the NeXT, cc -E runs the code through the compiler's parser,
7025 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007027/* end confdefs.h. */
7028#ifdef __STDC__
7029# include <limits.h>
7030#else
7031# include <assert.h>
7032#endif
7033 Syntax error
7034_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007035if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007036
cristy8b350f62009-11-15 23:12:43 +00007037else
cristy3ed852e2009-09-05 21:47:34 +00007038 # Broken: fails on valid input.
7039continue
7040fi
cristy3ed852e2009-09-05 21:47:34 +00007041rm -f conftest.err conftest.$ac_ext
7042
7043 # OK, works on sane cases. Now check whether nonexistent headers
7044 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007046/* end confdefs.h. */
7047#include <ac_nonexistent.h>
7048_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007049if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007050 # Broken: success on invalid input.
7051continue
7052else
cristy3ed852e2009-09-05 21:47:34 +00007053 # Passes both tests.
7054ac_preproc_ok=:
7055break
7056fi
cristy3ed852e2009-09-05 21:47:34 +00007057rm -f conftest.err conftest.$ac_ext
7058
7059done
7060# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7061rm -f conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007062if $ac_preproc_ok; then :
7063
cristy3ed852e2009-09-05 21:47:34 +00007064else
cristy8b350f62009-11-15 23:12:43 +00007065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00007067as_fn_error "C preprocessor \"$CPP\" fails sanity check
7068See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007069fi
7070
7071ac_ext=c
7072ac_cpp='$CPP $CPPFLAGS'
7073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076
cristy8b350f62009-11-15 23:12:43 +00007077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
cristy3ed852e2009-09-05 21:47:34 +00007078$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007079if test "${ac_cv_path_SED+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007080 $as_echo_n "(cached) " >&6
7081else
7082 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7083 for ac_i in 1 2 3 4 5 6 7; do
7084 ac_script="$ac_script$as_nl$ac_script"
7085 done
7086 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
cristy8b350f62009-11-15 23:12:43 +00007087 { ac_script=; unset ac_script;}
cristy3ed852e2009-09-05 21:47:34 +00007088 if test -z "$SED"; then
7089 ac_path_SED_found=false
7090 # Loop through the user's path and test for each of PROGNAME-LIST
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007096 for ac_prog in sed gsed; do
cristy3ed852e2009-09-05 21:47:34 +00007097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7099 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7100# Check for GNU ac_path_SED and select it if it is found.
7101 # Check for GNU $ac_path_SED
7102case `"$ac_path_SED" --version 2>&1` in
7103*GNU*)
7104 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7105*)
7106 ac_count=0
7107 $as_echo_n 0123456789 >"conftest.in"
7108 while :
7109 do
7110 cat "conftest.in" "conftest.in" >"conftest.tmp"
7111 mv "conftest.tmp" "conftest.in"
7112 cp "conftest.in" "conftest.nl"
7113 $as_echo '' >> "conftest.nl"
7114 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007116 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007117 if test $ac_count -gt ${ac_path_SED_max-0}; then
7118 # Best one so far, save it but keep looking for a better one
7119 ac_cv_path_SED="$ac_path_SED"
7120 ac_path_SED_max=$ac_count
7121 fi
7122 # 10*(2^10) chars as input seems more than enough
7123 test $ac_count -gt 10 && break
7124 done
7125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7126esac
7127
7128 $ac_path_SED_found && break 3
7129 done
7130 done
cristy8b350f62009-11-15 23:12:43 +00007131 done
cristy3ed852e2009-09-05 21:47:34 +00007132IFS=$as_save_IFS
7133 if test -z "$ac_cv_path_SED"; then
cristy8b350f62009-11-15 23:12:43 +00007134 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007135 fi
7136else
7137 ac_cv_path_SED=$SED
7138fi
7139
7140fi
cristy8b350f62009-11-15 23:12:43 +00007141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
cristy3ed852e2009-09-05 21:47:34 +00007142$as_echo "$ac_cv_path_SED" >&6; }
7143 SED="$ac_cv_path_SED"
7144 rm -f conftest.sed
7145
7146test -z "$SED" && SED=sed
7147Xsed="$SED -e 1s/^X//"
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
cristy8b350f62009-11-15 23:12:43 +00007159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
cristy3ed852e2009-09-05 21:47:34 +00007160$as_echo_n "checking for fgrep... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007161if test "${ac_cv_path_FGREP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007162 $as_echo_n "(cached) " >&6
7163else
7164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7165 then ac_cv_path_FGREP="$GREP -F"
7166 else
7167 if test -z "$FGREP"; then
7168 ac_path_FGREP_found=false
7169 # Loop through the user's path and test for each of PROGNAME-LIST
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007175 for ac_prog in fgrep; do
cristy3ed852e2009-09-05 21:47:34 +00007176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7178 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7179# Check for GNU ac_path_FGREP and select it if it is found.
7180 # Check for GNU $ac_path_FGREP
7181case `"$ac_path_FGREP" --version 2>&1` in
7182*GNU*)
7183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7184*)
7185 ac_count=0
7186 $as_echo_n 0123456789 >"conftest.in"
7187 while :
7188 do
7189 cat "conftest.in" "conftest.in" >"conftest.tmp"
7190 mv "conftest.tmp" "conftest.in"
7191 cp "conftest.in" "conftest.nl"
7192 $as_echo 'FGREP' >> "conftest.nl"
7193 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
cristy8b350f62009-11-15 23:12:43 +00007195 as_fn_arith $ac_count + 1 && ac_count=$as_val
cristy3ed852e2009-09-05 21:47:34 +00007196 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7197 # Best one so far, save it but keep looking for a better one
7198 ac_cv_path_FGREP="$ac_path_FGREP"
7199 ac_path_FGREP_max=$ac_count
7200 fi
7201 # 10*(2^10) chars as input seems more than enough
7202 test $ac_count -gt 10 && break
7203 done
7204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7205esac
7206
7207 $ac_path_FGREP_found && break 3
7208 done
7209 done
cristy8b350f62009-11-15 23:12:43 +00007210 done
cristy3ed852e2009-09-05 21:47:34 +00007211IFS=$as_save_IFS
7212 if test -z "$ac_cv_path_FGREP"; then
cristy8b350f62009-11-15 23:12:43 +00007213 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00007214 fi
7215else
7216 ac_cv_path_FGREP=$FGREP
7217fi
7218
7219 fi
7220fi
cristy8b350f62009-11-15 23:12:43 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007222$as_echo "$ac_cv_path_FGREP" >&6; }
7223 FGREP="$ac_cv_path_FGREP"
7224
7225
7226test -z "$GREP" && GREP=grep
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +00007247if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7249else
7250 with_gnu_ld=no
7251fi
7252
7253ac_prog=ld
7254if test "$GCC" = yes; then
7255 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +00007256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00007257$as_echo_n "checking for ld used by $CC... " >&6; }
7258 case $host in
7259 *-*-mingw*)
7260 # gcc leaves a trailing carriage return which upsets mingw
7261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7262 *)
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7264 esac
7265 case $ac_prog in
7266 # Accept absolute paths.
7267 [\\/]* | ?:[\\/]*)
7268 re_direlt='/[^/][^/]*/\.\./'
7269 # Canonicalize the pathname of ld
7270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7273 done
7274 test -z "$LD" && LD="$ac_prog"
7275 ;;
7276 "")
7277 # If it fails, then pretend we aren't using GCC.
7278 ac_prog=ld
7279 ;;
7280 *)
7281 # If it is relative, then search for the first ld in PATH.
7282 with_gnu_ld=unknown
7283 ;;
7284 esac
7285elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007287$as_echo_n "checking for GNU ld... " >&6; }
7288else
cristy8b350f62009-11-15 23:12:43 +00007289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007290$as_echo_n "checking for non-GNU ld... " >&6; }
7291fi
cristy8b350f62009-11-15 23:12:43 +00007292if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007293 $as_echo_n "(cached) " >&6
7294else
7295 if test -z "$LD"; then
7296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7297 for ac_dir in $PATH; do
7298 IFS="$lt_save_ifs"
7299 test -z "$ac_dir" && ac_dir=.
7300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7301 lt_cv_path_LD="$ac_dir/$ac_prog"
7302 # Check to see if the program is GNU ld. I'd rather use --version,
7303 # but apparently some variants of GNU ld only accept -v.
7304 # Break only if it was the GNU/non-GNU ld that we prefer.
7305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7306 *GNU* | *'with BFD'*)
7307 test "$with_gnu_ld" != no && break
7308 ;;
7309 *)
7310 test "$with_gnu_ld" != yes && break
7311 ;;
7312 esac
7313 fi
7314 done
7315 IFS="$lt_save_ifs"
7316else
7317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7318fi
7319fi
7320
7321LD="$lt_cv_path_LD"
7322if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +00007323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +00007324$as_echo "$LD" >&6; }
7325else
cristy8b350f62009-11-15 23:12:43 +00007326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007327$as_echo "no" >&6; }
7328fi
cristy8b350f62009-11-15 23:12:43 +00007329test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007331$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007332if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007333 $as_echo_n "(cached) " >&6
7334else
7335 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7336case `$LD -v 2>&1 </dev/null` in
7337*GNU* | *'with BFD'*)
7338 lt_cv_prog_gnu_ld=yes
7339 ;;
7340*)
7341 lt_cv_prog_gnu_ld=no
7342 ;;
7343esac
7344fi
cristy8b350f62009-11-15 23:12:43 +00007345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +00007346$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7347with_gnu_ld=$lt_cv_prog_gnu_ld
7348
7349
7350
7351
7352
7353
7354
7355
7356
cristy3ed852e2009-09-05 21:47:34 +00007357
cristy837d6dc2010-02-27 01:16:57 +00007358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7359$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7360if test "${ac_cv_prog_cc_c99+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362else
7363 ac_cv_prog_cc_c99=no
7364ac_save_CC=$CC
7365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h. */
7367#include <stdarg.h>
7368#include <stdbool.h>
7369#include <stdlib.h>
7370#include <wchar.h>
7371#include <stdio.h>
7372
7373// Check varargs macros. These examples are taken from C99 6.10.3.5.
7374#define debug(...) fprintf (stderr, __VA_ARGS__)
7375#define showlist(...) puts (#__VA_ARGS__)
7376#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7377static void
7378test_varargs_macros (void)
7379{
7380 int x = 1234;
7381 int y = 5678;
7382 debug ("Flag");
7383 debug ("X = %d\n", x);
7384 showlist (The first, second, and third items.);
7385 report (x>y, "x is %d but y is %d", x, y);
7386}
7387
7388// Check long long types.
7389#define BIG64 18446744073709551615ull
7390#define BIG32 4294967295ul
7391#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7392#if !BIG_OK
7393 your preprocessor is broken;
7394#endif
7395#if BIG_OK
7396#else
7397 your preprocessor is broken;
7398#endif
7399static long long int bignum = -9223372036854775807LL;
7400static unsigned long long int ubignum = BIG64;
7401
7402struct incomplete_array
7403{
7404 int datasize;
7405 double data[];
7406};
7407
7408struct named_init {
7409 int number;
7410 const wchar_t *name;
7411 double average;
7412};
7413
7414typedef const char *ccp;
7415
7416static inline int
7417test_restrict (ccp restrict text)
7418{
7419 // See if C++-style comments work.
7420 // Iterate through items via the restricted pointer.
7421 // Also check for declarations in for loops.
7422 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7423 continue;
7424 return 0;
7425}
7426
7427// Check varargs and va_copy.
7428static void
7429test_varargs (const char *format, ...)
7430{
7431 va_list args;
7432 va_start (args, format);
7433 va_list args_copy;
7434 va_copy (args_copy, args);
7435
7436 const char *str;
7437 int number;
7438 float fnumber;
7439
7440 while (*format)
7441 {
7442 switch (*format++)
7443 {
7444 case 's': // string
7445 str = va_arg (args_copy, const char *);
7446 break;
7447 case 'd': // int
7448 number = va_arg (args_copy, int);
7449 break;
7450 case 'f': // float
7451 fnumber = va_arg (args_copy, double);
7452 break;
7453 default:
7454 break;
7455 }
7456 }
7457 va_end (args_copy);
7458 va_end (args);
7459}
7460
7461int
7462main ()
7463{
7464
7465 // Check bool.
7466 _Bool success = false;
7467
7468 // Check restrict.
7469 if (test_restrict ("String literal") == 0)
7470 success = true;
7471 char *restrict newvar = "Another string";
7472
7473 // Check varargs.
7474 test_varargs ("s, d' f .", "string", 65, 34.234);
7475 test_varargs_macros ();
7476
7477 // Check flexible array members.
7478 struct incomplete_array *ia =
7479 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7480 ia->datasize = 10;
7481 for (int i = 0; i < ia->datasize; ++i)
7482 ia->data[i] = i * 1.234;
7483
7484 // Check named initializers.
7485 struct named_init ni = {
7486 .number = 34,
7487 .name = L"Test wide string",
7488 .average = 543.34343,
7489 };
7490
7491 ni.number = 58;
7492
7493 int dynamic_array[ni.number];
7494 dynamic_array[ni.number - 1] = 543;
7495
7496 // work around unused variable warnings
7497 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7498 || dynamic_array[ni.number - 1] != 543);
7499
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7505do
7506 CC="$ac_save_CC $ac_arg"
7507 if ac_fn_c_try_compile "$LINENO"; then :
7508 ac_cv_prog_cc_c99=$ac_arg
7509fi
7510rm -f core conftest.err conftest.$ac_objext
7511 test "x$ac_cv_prog_cc_c99" != "xno" && break
7512done
7513rm -f conftest.$ac_ext
7514CC=$ac_save_CC
7515
7516fi
7517# AC_CACHE_VAL
7518case "x$ac_cv_prog_cc_c99" in
7519 x)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7521$as_echo "none needed" >&6; } ;;
7522 xno)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7524$as_echo "unsupported" >&6; } ;;
7525 *)
7526 CC="$CC $ac_cv_prog_cc_c99"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7528$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7529esac
7530if test "x$ac_cv_prog_cc_c99" != xno; then :
7531
7532fi
7533
7534
cristy3ed852e2009-09-05 21:47:34 +00007535if test "x$CC" != xcc; then
cristy8b350f62009-11-15 23:12:43 +00007536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007537$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7538else
cristy8b350f62009-11-15 23:12:43 +00007539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
cristy3ed852e2009-09-05 21:47:34 +00007540$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7541fi
7542set dummy $CC; ac_cc=`$as_echo "$2" |
7543 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristy8b350f62009-11-15 23:12:43 +00007544if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +00007545 $as_echo_n "(cached) " >&6
7546else
cristy8b350f62009-11-15 23:12:43 +00007547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007548/* end confdefs.h. */
7549
7550int
7551main ()
7552{
7553
7554 ;
7555 return 0;
7556}
7557_ACEOF
7558# Make sure it works both with $CC and with simple cc.
7559# We do the test twice because some compilers refuse to overwrite an
7560# existing .o file with -o, though they will create one.
7561ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7562rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007563if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566esac
cristy8b350f62009-11-15 23:12:43 +00007567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7568$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007569 (eval "$ac_try") 2>&5
7570 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; } &&
7573 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576esac
cristy8b350f62009-11-15 23:12:43 +00007577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7578$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007579 (eval "$ac_try") 2>&5
7580 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007583then
7584 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7585 if test "x$CC" != xcc; then
7586 # Test first that cc exists at all.
7587 if { ac_try='cc -c conftest.$ac_ext >&5'
cristy8b350f62009-11-15 23:12:43 +00007588 { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7591esac
cristy8b350f62009-11-15 23:12:43 +00007592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7593$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007594 (eval "$ac_try") 2>&5
7595 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7597 test $ac_status = 0; }; }; then
cristy3ed852e2009-09-05 21:47:34 +00007598 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7599 rm -f conftest2.*
cristy8b350f62009-11-15 23:12:43 +00007600 if { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7603esac
cristy8b350f62009-11-15 23:12:43 +00007604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7605$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007606 (eval "$ac_try") 2>&5
7607 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; } &&
7610 test -f conftest2.$ac_objext && { { case "(($ac_try" in
cristy3ed852e2009-09-05 21:47:34 +00007611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613esac
cristy8b350f62009-11-15 23:12:43 +00007614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7615$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00007616 (eval "$ac_try") 2>&5
7617 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00007618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; };
cristy3ed852e2009-09-05 21:47:34 +00007620 then
7621 # cc works too.
7622 :
7623 else
7624 # cc exists but doesn't like -o.
7625 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7626 fi
7627 fi
7628 fi
7629else
7630 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7631fi
7632rm -f core conftest*
7633
7634fi
7635if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
cristy8b350f62009-11-15 23:12:43 +00007636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007637$as_echo "yes" >&6; }
7638else
cristy8b350f62009-11-15 23:12:43 +00007639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007640$as_echo "no" >&6; }
7641
cristy8b350f62009-11-15 23:12:43 +00007642$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007643
7644fi
7645
7646# FIXME: we rely on the cache variable name because
7647# there is no other way.
7648set dummy $CC
7649am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7650eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7651if test "$am_t" != yes; then
7652 # Losing compiler, so override with the script.
7653 # FIXME: It is wrong to rewrite CC.
7654 # But if we don't then we get into trouble of one sort or another.
7655 # A longer-term fix would be to have automake use am__CC in this case,
7656 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7657 CC="$am_aux_dir/compile $CC"
7658fi
7659
7660
cristy92703d82010-04-26 00:18:18 +00007661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7662$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7663if test "${ac_cv_cflags_warn_all+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +00007665else
cristy92703d82010-04-26 00:18:18 +00007666 ac_cv_cflags_warn_all="no, unknown"
7667
7668 ac_ext=c
7669ac_cpp='$CPP $CPPFLAGS'
7670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673
7674 ac_save_CFLAGS="$CFLAGS"
7675for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7676do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h. */
7679
7680int
7681main ()
7682{
7683return 0;
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688if ac_fn_c_try_compile "$LINENO"; then :
7689 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
cristy3ed852e2009-09-05 21:47:34 +00007690fi
cristy92703d82010-04-26 00:18:18 +00007691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692done
7693 CFLAGS="$ac_save_CFLAGS"
7694 ac_ext=c
7695ac_cpp='$CPP $CPPFLAGS'
7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7698ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00007699
7700
cristy92703d82010-04-26 00:18:18 +00007701fi
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7703$as_echo "$ac_cv_cflags_warn_all" >&6; }
7704case ".$ac_cv_cflags_warn_all" in
7705 .ok|.ok,*) ;;
7706 .|.no|.no,*)
7707 ;;
7708 *)
7709 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7710 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7711 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7712 ac_status=$?
7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; }
7715 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7716 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }
7720 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7721 fi
7722 ;;
7723esac
cristy3ed852e2009-09-05 21:47:34 +00007724
cristya0b81c32010-01-22 02:54:33 +00007725$ac_includes_default
7726
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7728$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7729set x ${MAKE-make}
7730ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7731if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7732 $as_echo_n "(cached) " >&6
7733else
7734 cat >conftest.make <<\_ACEOF
7735SHELL = /bin/sh
7736all:
7737 @echo '@@@%%%=$(MAKE)=@@@%%%'
7738_ACEOF
7739# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7740case `${MAKE-make} -f conftest.make 2>/dev/null` in
7741 *@@@%%%=?*=@@@%%%*)
7742 eval ac_cv_prog_make_${ac_make}_set=yes;;
7743 *)
7744 eval ac_cv_prog_make_${ac_make}_set=no;;
7745esac
7746rm -f conftest.make
7747fi
7748if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7750$as_echo "yes" >&6; }
7751 SET_MAKE=
7752else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
7755 SET_MAKE="MAKE=${MAKE-make}"
7756fi
7757
cristy8b350f62009-11-15 23:12:43 +00007758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007759$as_echo_n "checking whether ln -s works... " >&6; }
7760LN_S=$as_ln_s
7761if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007763$as_echo "yes" >&6; }
7764else
cristy8b350f62009-11-15 23:12:43 +00007765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007766$as_echo "no, using $LN_S" >&6; }
7767fi
7768
cristy8b350f62009-11-15 23:12:43 +00007769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
cristy3ed852e2009-09-05 21:47:34 +00007770$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7771
7772# Check whether --with-dmalloc was given.
cristy8b350f62009-11-15 23:12:43 +00007773if test "${with_dmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007774 withval=$with_dmalloc; if test "$withval" = yes; then
cristy8b350f62009-11-15 23:12:43 +00007775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007776$as_echo "yes" >&6; }
7777
cristy8b350f62009-11-15 23:12:43 +00007778$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007779
7780 LIBS="$LIBS -ldmalloc"
7781 LDFLAGS="$LDFLAGS -g"
7782else
cristy8b350f62009-11-15 23:12:43 +00007783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784$as_echo "no" >&6; }
7785fi
7786else
cristy8b350f62009-11-15 23:12:43 +00007787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007788$as_echo "no" >&6; }
7789fi
7790
7791
7792
cristy0d3a6382010-04-26 00:45:55 +00007793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7794$as_echo_n "checking for __attribute__... " >&6; }
7795if test "${ax_cv___attribute__+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h. */
7800#include <stdlib.h>
7801 static void foo(void) __attribute__ ((unused));
7802 static void
7803 foo(void) {
7804 exit(1);
7805 }
7806
7807int
7808main ()
7809{
7810
7811 ;
7812 return 0;
7813}
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"; then :
7816 ax_cv___attribute__=yes
7817else
7818 ax_cv___attribute__=no
7819
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822
7823fi
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7825$as_echo "$ax_cv___attribute__" >&6; }
7826 if test "$ax_cv___attribute__" = "yes"; then
7827
7828$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7829
7830 fi
7831
7832
cristy3ed852e2009-09-05 21:47:34 +00007833
7834if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7835 if test -n "$ac_tool_prefix"; then
7836 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7837set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007839$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007840if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007841 $as_echo_n "(cached) " >&6
7842else
7843 case $PKG_CONFIG in
7844 [\\/]* | ?:[\\/]*)
7845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7846 ;;
7847 *)
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007857 break 2
7858 fi
7859done
cristy8b350f62009-11-15 23:12:43 +00007860 done
cristy3ed852e2009-09-05 21:47:34 +00007861IFS=$as_save_IFS
7862
7863 ;;
7864esac
7865fi
7866PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7867if test -n "$PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007869$as_echo "$PKG_CONFIG" >&6; }
7870else
cristy8b350f62009-11-15 23:12:43 +00007871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007872$as_echo "no" >&6; }
7873fi
7874
7875
7876fi
7877if test -z "$ac_cv_path_PKG_CONFIG"; then
7878 ac_pt_PKG_CONFIG=$PKG_CONFIG
7879 # Extract the first word of "pkg-config", so it can be a program name with args.
7880set dummy pkg-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00007881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00007882$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00007883if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007884 $as_echo_n "(cached) " >&6
7885else
7886 case $ac_pt_PKG_CONFIG in
7887 [\\/]* | ?:[\\/]*)
7888 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7889 ;;
7890 *)
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00007896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00007897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +00007899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00007900 break 2
7901 fi
7902done
cristy8b350f62009-11-15 23:12:43 +00007903 done
cristy3ed852e2009-09-05 21:47:34 +00007904IFS=$as_save_IFS
7905
7906 ;;
7907esac
7908fi
7909ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7910if test -n "$ac_pt_PKG_CONFIG"; then
cristy8b350f62009-11-15 23:12:43 +00007911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +00007912$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7913else
cristy8b350f62009-11-15 23:12:43 +00007914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007915$as_echo "no" >&6; }
7916fi
7917
7918 if test "x$ac_pt_PKG_CONFIG" = x; then
7919 PKG_CONFIG=""
7920 else
7921 case $cross_compiling:$ac_tool_warned in
7922yes:)
cristy8b350f62009-11-15 23:12:43 +00007923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00007924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925ac_tool_warned=yes ;;
7926esac
7927 PKG_CONFIG=$ac_pt_PKG_CONFIG
7928 fi
7929else
7930 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7931fi
7932
7933fi
7934if test -n "$PKG_CONFIG"; then
7935 _pkg_min_version=0.9.0
cristy8b350f62009-11-15 23:12:43 +00007936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
cristy3ed852e2009-09-05 21:47:34 +00007937$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7938 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
cristy8b350f62009-11-15 23:12:43 +00007939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007940$as_echo "yes" >&6; }
7941 else
cristy8b350f62009-11-15 23:12:43 +00007942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00007943$as_echo "no" >&6; }
7944 PKG_CONFIG=""
7945 fi
7946
7947fi
7948
7949#
cristy3ed852e2009-09-05 21:47:34 +00007950# Enable run-time checking.
7951#
7952# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007953if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007954 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7955else
7956 enable_bounds_checking='no'
7957fi
7958
7959
7960if test "$enable_bounds_checking" = yes; then
7961
cristy8b350f62009-11-15 23:12:43 +00007962$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007963
7964fi
7965
7966#
7967# Tests for Windows
7968#
7969
7970
cristy0d3a6382010-04-26 00:45:55 +00007971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7972$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7973if test "${ax_cv_c_compiler_ms+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7975else
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h. */
7978
7979int
7980main ()
7981{
7982#ifndef _MSC_VER
7983 choke me
7984#endif
7985
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990if ac_fn_c_try_compile "$LINENO"; then :
7991 ax_compiler_ms=yes
7992else
7993 ax_compiler_ms=no
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996ax_cv_c_compiler_ms=$ax_compiler_ms
7997
7998fi
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8000$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008001
8002GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008003native_win32_build='no'
8004cygwin_build='no'
8005case "${host_os}" in
8006 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008007 cygwin_build='yes'
8008 GDI32_LIBS='-lgdi32'
8009 ;;
8010 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008011 native_win32_build='yes'
8012 GDI32_LIBS='-lgdi32'
8013 ;;
8014esac
8015if test "${GDI32_LIBS}x" != 'x'; then
8016
cristy8b350f62009-11-15 23:12:43 +00008017$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008018
8019fi
8020
8021 if test "${GDI32_LIBS}x" != 'x' ; then
8022 WINGDI32_DELEGATE_TRUE=
8023 WINGDI32_DELEGATE_FALSE='#'
8024else
8025 WINGDI32_DELEGATE_TRUE='#'
8026 WINGDI32_DELEGATE_FALSE=
8027fi
8028
8029 if test "${native_win32_build}" = 'yes' ; then
8030 WIN32_NATIVE_BUILD_TRUE=
8031 WIN32_NATIVE_BUILD_FALSE='#'
8032else
8033 WIN32_NATIVE_BUILD_TRUE='#'
8034 WIN32_NATIVE_BUILD_FALSE=
8035fi
8036
8037 if test "${cygwin_build}" = 'yes' ; then
8038 CYGWIN_BUILD_TRUE=
8039 CYGWIN_BUILD_FALSE='#'
8040else
8041 CYGWIN_BUILD_TRUE='#'
8042 CYGWIN_BUILD_FALSE=
8043fi
8044
8045 if test "x${CC}" = 'xcl.exe' ; then
8046 USING_CL_TRUE=
8047 USING_CL_FALSE='#'
8048else
8049 USING_CL_TRUE='#'
8050 USING_CL_FALSE=
8051fi
8052
8053
8054WinPathScript="${srcdirfull}/winpath.sh"
8055
8056
8057#
8058# Compiler flags tweaks
8059#
8060if test "${GCC}" != "yes"; then
8061 case "${host}" in
8062 *-*-hpux* )
8063 # aCC: HP ANSI C++ B3910B A.03.34
8064 CFLAGS="${CFLAGS} -Wp,-H30000"
8065 if test -n "${CXXFLAGS}"; then
8066 CXXFLAGS='-AA'
8067 else
8068 CXXFLAGS="${CXXFLAGS} -AA"
8069 fi
8070 ;;
8071 *-dec-osf5.* )
8072 # Compaq alphaev68-dec-osf5.1 compiler
8073 if test -n "${CXXFLAGS}"; then
8074 CXXFLAGS='-std strict_ansi -noimplicit_include'
8075 else
8076 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8077 fi
8078 esac
8079fi
8080
8081# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008083$as_echo_n "checking for linker lazyload option... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008084if test "${im_cv_ld_lazyload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008085 $as_echo_n "(cached) " >&6
8086else
8087
8088im_cv_ld_lazyload='none'
8089case "${host}" in
8090 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8091 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8092 im_cv_ld_lazyload='-Wl,-zlazyload'
8093 fi
8094 ;;
8095esac
8096
8097fi
cristy8b350f62009-11-15 23:12:43 +00008098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008099$as_echo "$im_cv_ld_lazyload" >&6; }
8100if test "${im_cv_ld_lazyload}" != 'none' ; then
8101 if test -z "${LDFLAGS}" ; then
8102 LDFLAGS="${im_cv_ld_lazyload}"
8103 else
8104 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8105 fi
8106fi
8107
8108case "$host" in
8109*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008110 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008111if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008112 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8113else
8114 build_osxuniversal=no
8115fi
8116
8117
8118 if test "${build_osxuniversal}" != no ; then
8119 if test "$enable_dependency_tracking" != no ; then
cristy8b350f62009-11-15 23:12:43 +00008120 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008121Please re-run configure with these options:
8122 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008123 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008124 fi
8125 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8126 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8127 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8128 fi
8129 ;;
8130esac
8131
8132# Enable support for threads
8133
8134# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008135if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008136 withval=$with_threads; with_threads=$withval
8137else
8138 with_threads='yes'
8139fi
8140
8141
8142have_threads=no
8143if test "$with_threads" != 'no'; then
8144
8145
8146
8147ac_ext=c
8148ac_cpp='$CPP $CPPFLAGS'
8149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
cristy964cb7f2010-04-25 23:18:00 +00008153ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008154
8155# We used to check for pthread.h first, but this fails if pthread.h
8156# requires special compiler flags (e.g. on True64 or Sequent).
8157# It gets checked for in the link test anyway.
8158
8159# First of all, check if the user has set any of the PTHREAD_LIBS,
8160# etcetera environment variables, and if threads linking works using
8161# them:
8162if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8163 save_CFLAGS="$CFLAGS"
8164 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8165 save_LIBS="$LIBS"
8166 LIBS="$PTHREAD_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +00008167 { $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 +00008168$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008170/* end confdefs.h. */
8171
8172/* Override any GCC internal prototype to avoid an error.
8173 Use char because int might match the return type of a GCC
8174 builtin and then its argument prototype would still apply. */
8175#ifdef __cplusplus
8176extern "C"
8177#endif
8178char pthread_join ();
8179int
8180main ()
8181{
8182return pthread_join ();
8183 ;
8184 return 0;
8185}
8186_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008187if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008188 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008189fi
cristy8b350f62009-11-15 23:12:43 +00008190rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +00008192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8193$as_echo "$ax_pthread_ok" >&6; }
8194 if test x"$ax_pthread_ok" = xno; then
cristy3ed852e2009-09-05 21:47:34 +00008195 PTHREAD_LIBS=""
8196 PTHREAD_CFLAGS=""
8197 fi
8198 LIBS="$save_LIBS"
8199 CFLAGS="$save_CFLAGS"
8200fi
8201
8202# We must check for the threads library under a number of different
8203# names; the ordering is very important because some systems
8204# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8205# libraries is broken (non-POSIX).
8206
8207# Create a list of thread flags to try. Items starting with a "-" are
8208# C compiler flags, and other items are library names, except for "none"
8209# which indicates that we try without any flags at all, and "pthread-config"
8210# which is a program returning the flags for the Pth emulation library.
8211
cristy964cb7f2010-04-25 23:18:00 +00008212ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy3ed852e2009-09-05 21:47:34 +00008213
8214# The ordering *is* (sometimes) important. Some notes on the
8215# individual items follow:
8216
8217# pthreads: AIX (must check this before -lpthread)
8218# none: in case threads are in libc; should be tried before -Kthread and
8219# other compiler flags to prevent continual compiler warnings
8220# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8221# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8222# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8223# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8224# -pthreads: Solaris/gcc
8225# -mthreads: Mingw32/gcc, Lynx/gcc
8226# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8227# doesn't hurt to check since this sometimes defines pthreads too;
8228# also defines -D_REENTRANT)
8229# ... -mt is also the pthreads flag for HP/aCC
8230# pthread: Linux, etcetera
8231# --thread-safe: KAI C++
8232# pthread-config: use pthread-config program (for GNU Pth library)
8233
8234case "${host_cpu}-${host_os}" in
8235 *solaris*)
8236
8237 # On Solaris (at least, for some versions), libc contains stubbed
8238 # (non-functional) versions of the pthreads routines, so link-based
8239 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8240 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8241 # a function called by this macro, so we could check for that, but
8242 # who knows whether they'll stub that too in a future libc.) So,
8243 # we'll just look for -pthreads and -lpthread first:
8244
cristy964cb7f2010-04-25 23:18:00 +00008245 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
cristy3ed852e2009-09-05 21:47:34 +00008246 ;;
cristy964cb7f2010-04-25 23:18:00 +00008247
8248 *-darwin*)
8249 acx_pthread_flags="-pthread $acx_pthread_flags"
8250 ;;
cristy3ed852e2009-09-05 21:47:34 +00008251esac
8252
cristy964cb7f2010-04-25 23:18:00 +00008253if test x"$ax_pthread_ok" = xno; then
8254for flag in $ax_pthread_flags; do
cristy3ed852e2009-09-05 21:47:34 +00008255
8256 case $flag in
8257 none)
cristy8b350f62009-11-15 23:12:43 +00008258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
cristy3ed852e2009-09-05 21:47:34 +00008259$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8260 ;;
8261
8262 -*)
cristy8b350f62009-11-15 23:12:43 +00008263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008264$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8265 PTHREAD_CFLAGS="$flag"
8266 ;;
8267
8268 pthread-config)
8269 # Extract the first word of "pthread-config", so it can be a program name with args.
8270set dummy pthread-config; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008272$as_echo_n "checking for $ac_word... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +00008273if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008274 $as_echo_n "(cached) " >&6
8275else
cristy964cb7f2010-04-25 23:18:00 +00008276 if test -n "$ax_pthread_config"; then
8277 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
cristy3ed852e2009-09-05 21:47:34 +00008278else
8279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008284 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy964cb7f2010-04-25 23:18:00 +00008286 ac_cv_prog_ax_pthread_config="yes"
cristy8b350f62009-11-15 23:12:43 +00008287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008288 break 2
8289 fi
8290done
cristy8b350f62009-11-15 23:12:43 +00008291 done
cristy3ed852e2009-09-05 21:47:34 +00008292IFS=$as_save_IFS
8293
cristy964cb7f2010-04-25 23:18:00 +00008294 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
cristy3ed852e2009-09-05 21:47:34 +00008295fi
8296fi
cristy964cb7f2010-04-25 23:18:00 +00008297ax_pthread_config=$ac_cv_prog_ax_pthread_config
8298if test -n "$ax_pthread_config"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8300$as_echo "$ax_pthread_config" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008301else
cristy8b350f62009-11-15 23:12:43 +00008302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008303$as_echo "no" >&6; }
8304fi
8305
8306
cristy964cb7f2010-04-25 23:18:00 +00008307 if test x"$ax_pthread_config" = xno; then continue; fi
cristy3ed852e2009-09-05 21:47:34 +00008308 PTHREAD_CFLAGS="`pthread-config --cflags`"
8309 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8310 ;;
8311
8312 *)
cristy8b350f62009-11-15 23:12:43 +00008313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00008314$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8315 PTHREAD_LIBS="-l$flag"
8316 ;;
8317 esac
8318
8319 save_LIBS="$LIBS"
8320 save_CFLAGS="$CFLAGS"
8321 LIBS="$PTHREAD_LIBS $LIBS"
8322 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8323
8324 # Check for various functions. We must include pthread.h,
8325 # since some functions may be macros. (On the Sequent, we
8326 # need a special flag -Kthread to make this header compile.)
8327 # We check for pthread_join because it is in -lpthread on IRIX
8328 # while pthread_create is in libc. We check for pthread_attr_init
8329 # due to DEC craziness with -lpthreads. We check for
8330 # pthread_cleanup_push because it is one of the few pthread
8331 # functions on Solaris that doesn't have a non-functional libc stub.
8332 # We try pthread_create on general principles.
cristy8b350f62009-11-15 23:12:43 +00008333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008334/* end confdefs.h. */
8335#include <pthread.h>
cristy964cb7f2010-04-25 23:18:00 +00008336 static void routine(void* a) {a=0;}
8337 static void* start_routine(void* a) {return a;}
cristy3ed852e2009-09-05 21:47:34 +00008338int
8339main ()
8340{
cristy964cb7f2010-04-25 23:18:00 +00008341pthread_t th; pthread_attr_t attr;
8342 pthread_join(th, 0);
8343 pthread_attr_init(&attr);
8344 pthread_cleanup_push(routine, 0);
8345 pthread_create(&th,0,start_routine,0);
8346 pthread_cleanup_pop(0);
cristy3ed852e2009-09-05 21:47:34 +00008347 ;
8348 return 0;
8349}
8350_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008351if ac_fn_c_try_link "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +00008352 ax_pthread_ok=yes
cristy3ed852e2009-09-05 21:47:34 +00008353fi
cristy8b350f62009-11-15 23:12:43 +00008354rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008356
8357 LIBS="$save_LIBS"
8358 CFLAGS="$save_CFLAGS"
8359
cristy964cb7f2010-04-25 23:18:00 +00008360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8361$as_echo "$ax_pthread_ok" >&6; }
8362 if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008363 break;
8364 fi
8365
8366 PTHREAD_LIBS=""
8367 PTHREAD_CFLAGS=""
8368done
8369fi
8370
8371# Various other checks:
cristy964cb7f2010-04-25 23:18:00 +00008372if test "x$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008373 save_LIBS="$LIBS"
8374 LIBS="$PTHREAD_LIBS $LIBS"
8375 save_CFLAGS="$CFLAGS"
8376 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8377
8378 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristy8b350f62009-11-15 23:12:43 +00008379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy3ed852e2009-09-05 21:47:34 +00008380$as_echo_n "checking for joinable pthread attribute... " >&6; }
8381 attr_name=unknown
8382 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
cristy8b350f62009-11-15 23:12:43 +00008383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008384/* end confdefs.h. */
8385#include <pthread.h>
8386int
8387main ()
8388{
8389int attr=$attr; return attr;
8390 ;
8391 return 0;
8392}
8393_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008395 attr_name=$attr; break
cristy3ed852e2009-09-05 21:47:34 +00008396fi
cristy8b350f62009-11-15 23:12:43 +00008397rm -f core conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008399 done
cristy8b350f62009-11-15 23:12:43 +00008400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
cristy3ed852e2009-09-05 21:47:34 +00008401$as_echo "$attr_name" >&6; }
8402 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8403
8404cat >>confdefs.h <<_ACEOF
8405#define PTHREAD_CREATE_JOINABLE $attr_name
8406_ACEOF
8407
8408 fi
8409
cristy8b350f62009-11-15 23:12:43 +00008410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
cristy3ed852e2009-09-05 21:47:34 +00008411$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8412 flag=no
8413 case "${host_cpu}-${host_os}" in
8414 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8415 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8416 esac
cristy8b350f62009-11-15 23:12:43 +00008417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
cristy3ed852e2009-09-05 21:47:34 +00008418$as_echo "${flag}" >&6; }
8419 if test "x$flag" != xno; then
8420 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8421 fi
8422
8423 LIBS="$save_LIBS"
8424 CFLAGS="$save_CFLAGS"
8425
8426 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00008427 if test x"$GCC" != xyes; then
8428 for ac_prog in xlc_r cc_r
8429do
8430 # Extract the first word of "$ac_prog", so it can be a program name with args.
8431set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00008432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00008433$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008434if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008435 $as_echo_n "(cached) " >&6
8436else
8437 if test -n "$PTHREAD_CC"; then
8438 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8439else
8440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441for as_dir in $PATH
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00008445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00008446 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 +00008447 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00008448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00008449 break 2
8450 fi
8451done
cristy8b350f62009-11-15 23:12:43 +00008452 done
cristy3ed852e2009-09-05 21:47:34 +00008453IFS=$as_save_IFS
8454
cristy3ed852e2009-09-05 21:47:34 +00008455fi
8456fi
8457PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8458if test -n "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo "$PTHREAD_CC" >&6; }
8461else
cristy8b350f62009-11-15 23:12:43 +00008462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00008463$as_echo "no" >&6; }
8464fi
8465
cristy736173a2009-09-20 21:18:22 +00008466
8467 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00008468done
cristy736173a2009-09-20 21:18:22 +00008469test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00008470
cristy736173a2009-09-20 21:18:22 +00008471 else
8472 PTHREAD_CC=$CC
8473 fi
cristy3ed852e2009-09-05 21:47:34 +00008474else
cristy736173a2009-09-20 21:18:22 +00008475 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00008476fi
8477
cristy3ed852e2009-09-05 21:47:34 +00008478
8479
8480
8481
8482# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
cristy964cb7f2010-04-25 23:18:00 +00008483if test x"$ax_pthread_ok" = xyes; then
cristy3ed852e2009-09-05 21:47:34 +00008484
cristy8b350f62009-11-15 23:12:43 +00008485$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008486
8487 :
8488else
cristy964cb7f2010-04-25 23:18:00 +00008489 ax_pthread_ok=no
cristy3ed852e2009-09-05 21:47:34 +00008490
8491fi
8492ac_ext=c
8493ac_cpp='$CPP $CPPFLAGS'
8494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497
8498
cristy964cb7f2010-04-25 23:18:00 +00008499 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008500 have_threads=yes
8501 DEF_THREAD="$PTHREAD_CFLAGS"
8502 CFLAGS="$CFLAGS $DEF_THREAD"
8503 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8504 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008505 { $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 +00008506$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8507 CC="$PTHREAD_CC"
8508 fi
8509 fi
8510fi
8511
8512# Enable support for OpenMP
8513if test "$have_threads" != 'yes'; then
8514 ac_cv_prog_c_openmp=unsupported
8515fi
8516
8517 OPENMP_CFLAGS=
8518 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008519if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008520 enableval=$enable_openmp;
8521fi
8522
8523 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008525$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008526if test "${ac_cv_prog_c_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008527 $as_echo_n "(cached) " >&6
8528else
cristy8b350f62009-11-15 23:12:43 +00008529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008531
8532#ifndef _OPENMP
8533 choke me
8534#endif
8535#include <omp.h>
8536int main () { return omp_get_num_threads (); }
8537
8538_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008539if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008540 ac_cv_prog_c_openmp='none needed'
8541else
cristy8b350f62009-11-15 23:12:43 +00008542 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008543 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8544 ac_save_CFLAGS=$CFLAGS
8545 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008548
8549#ifndef _OPENMP
8550 choke me
8551#endif
8552#include <omp.h>
8553int main () { return omp_get_num_threads (); }
8554
8555_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008556if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008557 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008558fi
cristy8b350f62009-11-15 23:12:43 +00008559rm -f core conftest.err conftest.$ac_objext \
8560 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008561 CFLAGS=$ac_save_CFLAGS
8562 if test "$ac_cv_prog_c_openmp" != unsupported; then
8563 break
8564 fi
8565 done
8566fi
cristy8b350f62009-11-15 23:12:43 +00008567rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008569fi
cristy8b350f62009-11-15 23:12:43 +00008570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008571$as_echo "$ac_cv_prog_c_openmp" >&6; }
8572 case $ac_cv_prog_c_openmp in #(
8573 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008574 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008575 *)
cristy8b350f62009-11-15 23:12:43 +00008576 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008577 esac
8578 fi
8579
8580
8581CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8582MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8583
8584
cristy736173a2009-09-20 21:18:22 +00008585# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00008586
cristy964cb7f2010-04-25 23:18:00 +00008587
8588
8589ac_ext=c
8590ac_cpp='$CPP $CPPFLAGS'
8591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8593ac_compiler_gnu=$ac_cv_c_compiler_gnu
8594
8595ax_pthread_ok=no
8596
8597# We used to check for pthread.h first, but this fails if pthread.h
8598# requires special compiler flags (e.g. on True64 or Sequent).
8599# It gets checked for in the link test anyway.
8600
8601# First of all, check if the user has set any of the PTHREAD_LIBS,
8602# etcetera environment variables, and if threads linking works using
8603# them:
8604if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8605 save_CFLAGS="$CFLAGS"
8606 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8607 save_LIBS="$LIBS"
8608 LIBS="$PTHREAD_LIBS $LIBS"
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8610$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h. */
8613
8614/* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8617#ifdef __cplusplus
8618extern "C"
8619#endif
8620char pthread_join ();
8621int
8622main ()
8623{
8624return pthread_join ();
8625 ;
8626 return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_link "$LINENO"; then :
8630 ax_pthread_ok=yes
8631fi
8632rm -f core conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8635$as_echo "$ax_pthread_ok" >&6; }
8636 if test x"$ax_pthread_ok" = xno; then
8637 PTHREAD_LIBS=""
8638 PTHREAD_CFLAGS=""
8639 fi
8640 LIBS="$save_LIBS"
8641 CFLAGS="$save_CFLAGS"
8642fi
8643
8644# We must check for the threads library under a number of different
8645# names; the ordering is very important because some systems
8646# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8647# libraries is broken (non-POSIX).
8648
8649# Create a list of thread flags to try. Items starting with a "-" are
8650# C compiler flags, and other items are library names, except for "none"
8651# which indicates that we try without any flags at all, and "pthread-config"
8652# which is a program returning the flags for the Pth emulation library.
8653
8654ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8655
8656# The ordering *is* (sometimes) important. Some notes on the
8657# individual items follow:
8658
8659# pthreads: AIX (must check this before -lpthread)
8660# none: in case threads are in libc; should be tried before -Kthread and
8661# other compiler flags to prevent continual compiler warnings
8662# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8663# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8664# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8665# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8666# -pthreads: Solaris/gcc
8667# -mthreads: Mingw32/gcc, Lynx/gcc
8668# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8669# doesn't hurt to check since this sometimes defines pthreads too;
8670# also defines -D_REENTRANT)
8671# ... -mt is also the pthreads flag for HP/aCC
8672# pthread: Linux, etcetera
8673# --thread-safe: KAI C++
8674# pthread-config: use pthread-config program (for GNU Pth library)
8675
8676case "${host_cpu}-${host_os}" in
8677 *solaris*)
8678
8679 # On Solaris (at least, for some versions), libc contains stubbed
8680 # (non-functional) versions of the pthreads routines, so link-based
8681 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8682 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8683 # a function called by this macro, so we could check for that, but
8684 # who knows whether they'll stub that too in a future libc.) So,
8685 # we'll just look for -pthreads and -lpthread first:
8686
8687 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8688 ;;
8689
8690 *-darwin*)
8691 acx_pthread_flags="-pthread $acx_pthread_flags"
8692 ;;
8693esac
8694
8695if test x"$ax_pthread_ok" = xno; then
8696for flag in $ax_pthread_flags; do
8697
8698 case $flag in
8699 none)
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8701$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8702 ;;
8703
8704 -*)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8706$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8707 PTHREAD_CFLAGS="$flag"
8708 ;;
8709
8710 pthread-config)
8711 # Extract the first word of "pthread-config", so it can be a program name with args.
8712set dummy pthread-config; ac_word=$2
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714$as_echo_n "checking for $ac_word... " >&6; }
8715if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717else
8718 if test -n "$ax_pthread_config"; then
8719 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8720else
8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722for as_dir in $PATH
8723do
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8728 ac_cv_prog_ax_pthread_config="yes"
8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 break 2
8731 fi
8732done
8733 done
8734IFS=$as_save_IFS
8735
8736 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8737fi
8738fi
8739ax_pthread_config=$ac_cv_prog_ax_pthread_config
8740if test -n "$ax_pthread_config"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8742$as_echo "$ax_pthread_config" >&6; }
8743else
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
8746fi
8747
8748
8749 if test x"$ax_pthread_config" = xno; then continue; fi
8750 PTHREAD_CFLAGS="`pthread-config --cflags`"
8751 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8752 ;;
8753
8754 *)
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8756$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8757 PTHREAD_LIBS="-l$flag"
8758 ;;
8759 esac
8760
8761 save_LIBS="$LIBS"
8762 save_CFLAGS="$CFLAGS"
8763 LIBS="$PTHREAD_LIBS $LIBS"
8764 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8765
8766 # Check for various functions. We must include pthread.h,
8767 # since some functions may be macros. (On the Sequent, we
8768 # need a special flag -Kthread to make this header compile.)
8769 # We check for pthread_join because it is in -lpthread on IRIX
8770 # while pthread_create is in libc. We check for pthread_attr_init
8771 # due to DEC craziness with -lpthreads. We check for
8772 # pthread_cleanup_push because it is one of the few pthread
8773 # functions on Solaris that doesn't have a non-functional libc stub.
8774 # We try pthread_create on general principles.
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h. */
8777#include <pthread.h>
8778 static void routine(void* a) {a=0;}
8779 static void* start_routine(void* a) {return a;}
8780int
8781main ()
8782{
8783pthread_t th; pthread_attr_t attr;
8784 pthread_join(th, 0);
8785 pthread_attr_init(&attr);
8786 pthread_cleanup_push(routine, 0);
8787 pthread_create(&th,0,start_routine,0);
8788 pthread_cleanup_pop(0);
8789 ;
8790 return 0;
8791}
8792_ACEOF
8793if ac_fn_c_try_link "$LINENO"; then :
8794 ax_pthread_ok=yes
8795fi
8796rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798
8799 LIBS="$save_LIBS"
8800 CFLAGS="$save_CFLAGS"
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8803$as_echo "$ax_pthread_ok" >&6; }
8804 if test "x$ax_pthread_ok" = xyes; then
8805 break;
8806 fi
8807
8808 PTHREAD_LIBS=""
8809 PTHREAD_CFLAGS=""
8810done
8811fi
8812
8813# Various other checks:
8814if test "x$ax_pthread_ok" = xyes; then
8815 save_LIBS="$LIBS"
8816 LIBS="$PTHREAD_LIBS $LIBS"
8817 save_CFLAGS="$CFLAGS"
8818 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8819
8820 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8822$as_echo_n "checking for joinable pthread attribute... " >&6; }
8823 attr_name=unknown
8824 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h. */
8827#include <pthread.h>
8828int
8829main ()
8830{
8831int attr=$attr; return attr;
8832 ;
8833 return 0;
8834}
8835_ACEOF
8836if ac_fn_c_try_link "$LINENO"; then :
8837 attr_name=$attr; break
8838fi
8839rm -f core conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 done
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8843$as_echo "$attr_name" >&6; }
8844 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8845
8846cat >>confdefs.h <<_ACEOF
8847#define PTHREAD_CREATE_JOINABLE $attr_name
8848_ACEOF
8849
8850 fi
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8853$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8854 flag=no
8855 case "${host_cpu}-${host_os}" in
8856 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8857 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8858 esac
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8860$as_echo "${flag}" >&6; }
8861 if test "x$flag" != xno; then
8862 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8863 fi
8864
8865 LIBS="$save_LIBS"
8866 CFLAGS="$save_CFLAGS"
8867
8868 # More AIX lossage: must compile with xlc_r or cc_r
8869 if test x"$GCC" != xyes; then
8870 for ac_prog in xlc_r cc_r
8871do
8872 # Extract the first word of "$ac_prog", so it can be a program name with args.
8873set dummy $ac_prog; ac_word=$2
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875$as_echo_n "checking for $ac_word... " >&6; }
8876if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878else
8879 if test -n "$PTHREAD_CC"; then
8880 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8881else
8882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883for as_dir in $PATH
8884do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_PTHREAD_CC="$ac_prog"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893done
8894 done
8895IFS=$as_save_IFS
8896
8897fi
8898fi
8899PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8900if test -n "$PTHREAD_CC"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8902$as_echo "$PTHREAD_CC" >&6; }
8903else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
8906fi
8907
8908
8909 test -n "$PTHREAD_CC" && break
8910done
8911test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8912
8913 else
8914 PTHREAD_CC=$CC
8915 fi
8916else
8917 PTHREAD_CC="$CC"
8918fi
8919
8920
8921
8922
8923
8924# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8925if test x"$ax_pthread_ok" = xyes; then
8926
8927$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8928
8929 :
8930else
8931 ax_pthread_ok=no
8932
8933fi
8934ac_ext=c
8935ac_cpp='$CPP $CPPFLAGS'
8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938ac_compiler_gnu=$ac_cv_c_compiler_gnu
8939
8940
8941
cristy43596fe2010-01-21 16:46:08 +00008942# Check whether --enable-opencl was given.
8943if test "${enable_opencl+set}" = set; then :
8944 enableval=$enable_opencl; disable_opencl=$enableval
8945else
8946 disable_opencl='yes'
8947fi
8948
8949
8950if test "$disable_opencl" = 'yes'; then
8951 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00008952ac_cpp='$CPP $CPPFLAGS'
8953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956
cristy43596fe2010-01-21 16:46:08 +00008957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
cristy736173a2009-09-20 21:18:22 +00008958$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00008959if test "${ax_cv_c_compiler_ms+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00008960 $as_echo_n "(cached) " >&6
8961else
cristy8b350f62009-11-15 23:12:43 +00008962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00008963/* end confdefs.h. */
8964
8965int
8966main ()
8967{
8968#ifndef _MSC_VER
8969 choke me
8970#endif
8971
8972 ;
8973 return 0;
8974}
8975_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008976if ac_fn_c_try_compile "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00008977 ax_compiler_ms=yes
8978else
cristy8b350f62009-11-15 23:12:43 +00008979 ax_compiler_ms=no
cristy736173a2009-09-20 21:18:22 +00008980fi
cristy736173a2009-09-20 21:18:22 +00008981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982ax_cv_c_compiler_ms=$ax_compiler_ms
8983
8984fi
cristy8b350f62009-11-15 23:12:43 +00008985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
cristy736173a2009-09-20 21:18:22 +00008986$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy43596fe2010-01-21 16:46:08 +00008987 if test X$ax_compiler_ms = Xno; then :
cristy736173a2009-09-20 21:18:22 +00008988 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8989fi
8990
cristy43596fe2010-01-21 16:46:08 +00008991 ax_save_CPPFLAGS=$CPPFLAGS
8992 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8993 for ac_header in CL/cl.h OpenCL/cl.h
cristy8b350f62009-11-15 23:12:43 +00008994do :
8995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8997eval as_val=\$$as_ac_Header
8998 if test "x$as_val" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00008999 cat >>confdefs.h <<_ACEOF
9000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9001_ACEOF
9002
9003fi
9004
9005done
9006
cristy43596fe2010-01-21 16:46:08 +00009007 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009008
cristy43596fe2010-01-21 16:46:08 +00009009 for ac_header in windows.h
cristy8b350f62009-11-15 23:12:43 +00009010do :
9011 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9012if test "x$ac_cv_header_windows_h" = x""yes; then :
cristy736173a2009-09-20 21:18:22 +00009013 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009014#define HAVE_WINDOWS_H 1
cristy736173a2009-09-20 21:18:22 +00009015_ACEOF
9016
9017fi
9018
9019done
9020
9021
9022
9023
cristy43596fe2010-01-21 16:46:08 +00009024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
cristy736173a2009-09-20 21:18:22 +00009025$as_echo_n "checking for OpenCL library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009026if test "${ax_cv_check_cl_libcl+set}" = set; then :
cristy736173a2009-09-20 21:18:22 +00009027 $as_echo_n "(cached) " >&6
9028else
9029 ax_cv_check_cl_libcl=no
cristy43596fe2010-01-21 16:46:08 +00009030 case $host_cpu in
9031 x86_64) ax_check_cl_libdir=lib64 ;;
9032 *) ax_check_cl_libdir=lib ;;
9033 esac
9034 ax_save_CPPFLAGS=$CPPFLAGS
9035 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9036 ax_save_LIBS=$LIBS
9037 LIBS=""
9038 ax_check_libs="-lOpenCL -lCL -lclparser"
9039 for ax_lib in $ax_check_libs; do
9040 if test X$ax_compiler_ms = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009041 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9042else
9043 ax_try_lib=$ax_lib
9044fi
cristy43596fe2010-01-21 16:46:08 +00009045 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009047/* end confdefs.h. */
9048
cristy43596fe2010-01-21 16:46:08 +00009049 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9050 # include <windows.h>
9051 # endif
9052 # ifdef HAVE_CL_CL_H
9053 # include <CL/cl.h>
9054 # elif defined(HAVE_OPENCL_CL_H)
9055 # include <OpenCL/cl.h>
9056 # else
9057 # error no CL.h
9058 # endif
cristy736173a2009-09-20 21:18:22 +00009059int
9060main ()
9061{
cristyc7083c12009-10-14 03:16:55 +00009062clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009063 ;
9064 return 0;
9065}
9066_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009067if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009068 ax_cv_check_cl_libcl=$ax_try_lib; break
9069else
cristy8b350f62009-11-15 23:12:43 +00009070 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 +00009071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009072/* end confdefs.h. */
9073
cristy43596fe2010-01-21 16:46:08 +00009074 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9075 # include <windows.h>
9076 # endif
9077 # ifdef HAVE_CL_CL_H
9078 # include <CL/cl.h>
9079 # elif defined(HAVE_OPENCL_CL_H)
9080 # include <OpenCL/cl.h>
9081 # else
9082 # error no CL.h
9083 # endif
cristy736173a2009-09-20 21:18:22 +00009084int
9085main ()
9086{
cristyc7083c12009-10-14 03:16:55 +00009087clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009088 ;
9089 return 0;
9090}
9091_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009092if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009093 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9094else
cristy4dc44432009-12-30 23:30:06 +00009095 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 +00009096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009097/* end confdefs.h. */
9098
cristy43596fe2010-01-21 16:46:08 +00009099 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9100 # include <windows.h>
9101 # endif
9102 # ifdef HAVE_CL_CL_H
9103 # include <CL/cl.h>
9104 # elif defined(HAVE_OPENCL_CL_H)
9105 # include <OpenCL/cl.h>
9106 # else
9107 # error no CL.h
9108 # endif
cristy736173a2009-09-20 21:18:22 +00009109int
9110main ()
9111{
cristyc7083c12009-10-14 03:16:55 +00009112clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009113 ;
9114 return 0;
9115}
9116_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009117if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009118 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristy736173a2009-09-20 21:18:22 +00009119fi
cristy8b350f62009-11-15 23:12:43 +00009120rm -f core conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009122fi
cristy8b350f62009-11-15 23:12:43 +00009123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009125fi
cristy8b350f62009-11-15 23:12:43 +00009126rm -f core conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
cristy43596fe2010-01-21 16:46:08 +00009128 done
cristy736173a2009-09-20 21:18:22 +00009129
cristy43596fe2010-01-21 16:46:08 +00009130 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy736173a2009-09-20 21:18:22 +00009131 LIBS='-framework OpenCL'
cristy43596fe2010-01-21 16:46:08 +00009132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009133/* end confdefs.h. */
9134
cristy43596fe2010-01-21 16:46:08 +00009135 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9136 # include <windows.h>
9137 # endif
9138 # ifdef HAVE_CL_CL_H
9139 # include <CL/cl.h>
9140 # elif defined(HAVE_OPENCL_CL_H)
9141 # include <OpenCL/cl.h>
9142 # else
9143 # error no CL.h
9144 # endif
cristy736173a2009-09-20 21:18:22 +00009145int
9146main ()
9147{
cristyc7083c12009-10-14 03:16:55 +00009148clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00009149 ;
9150 return 0;
9151}
9152_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009153if ac_fn_c_try_link "$LINENO"; then :
cristy736173a2009-09-20 21:18:22 +00009154 ax_cv_check_cl_libcl=$LIBS
cristy736173a2009-09-20 21:18:22 +00009155fi
cristy8b350f62009-11-15 23:12:43 +00009156rm -f core conftest.err conftest.$ac_objext \
9157 conftest$ac_exeext conftest.$ac_ext
cristy736173a2009-09-20 21:18:22 +00009158fi
9159
cristy43596fe2010-01-21 16:46:08 +00009160 LIBS=$ax_save_LIBS
9161 CPPFLAGS=$ax_save_CPPFLAGS
cristy736173a2009-09-20 21:18:22 +00009162fi
cristy8b350f62009-11-15 23:12:43 +00009163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
cristy736173a2009-09-20 21:18:22 +00009164$as_echo "$ax_cv_check_cl_libcl" >&6; }
9165
cristy43596fe2010-01-21 16:46:08 +00009166 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy736173a2009-09-20 21:18:22 +00009167 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9168else
cristy99cc3002010-01-21 14:50:11 +00009169 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9170$as_echo "#define _OPENCL 1" >>confdefs.h
9171
cristy736173a2009-09-20 21:18:22 +00009172fi
cristy43596fe2010-01-21 16:46:08 +00009173 ac_ext=c
cristy736173a2009-09-20 21:18:22 +00009174ac_cpp='$CPP $CPPFLAGS'
9175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177ac_compiler_gnu=$ac_cv_c_compiler_gnu
9178
cristy43596fe2010-01-21 16:46:08 +00009179fi
cristy736173a2009-09-20 21:18:22 +00009180
9181
9182
9183
cristyc7083c12009-10-14 03:16:55 +00009184CFLAGS="$CL_CFLAGS $CFLAGS"
9185LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009186
cristy2e8b51d2009-10-17 18:26:15 +00009187
cristy3ed852e2009-09-05 21:47:34 +00009188########
9189#
9190# Check for large file support
9191#
9192########
9193# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009194if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009195 enableval=$enable_largefile;
9196fi
9197
9198if test "$enable_largefile" != no; then
9199
cristy8b350f62009-11-15 23:12:43 +00009200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009202if test "${ac_cv_sys_largefile_CC+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009203 $as_echo_n "(cached) " >&6
9204else
9205 ac_cv_sys_largefile_CC=no
9206 if test "$GCC" != yes; then
9207 ac_save_CC=$CC
9208 while :; do
9209 # IRIX 6.2 and later do not support large files by default,
9210 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009212/* end confdefs.h. */
9213#include <sys/types.h>
9214 /* Check that off_t can represent 2**63 - 1 correctly.
9215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9216 since some C++ compilers masquerading as C compilers
9217 incorrectly reject 9223372036854775807. */
9218#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9220 && LARGE_OFF_T % 2147483647 == 1)
9221 ? 1 : -1];
9222int
9223main ()
9224{
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009230 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009231 break
cristy3ed852e2009-09-05 21:47:34 +00009232fi
cristy3ed852e2009-09-05 21:47:34 +00009233rm -f core conftest.err conftest.$ac_objext
9234 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009235 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009236 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009237fi
cristy3ed852e2009-09-05 21:47:34 +00009238rm -f core conftest.err conftest.$ac_objext
9239 break
9240 done
9241 CC=$ac_save_CC
9242 rm -f conftest.$ac_ext
9243 fi
9244fi
cristy8b350f62009-11-15 23:12:43 +00009245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009246$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9247 if test "$ac_cv_sys_largefile_CC" != no; then
9248 CC=$CC$ac_cv_sys_largefile_CC
9249 fi
9250
cristy8b350f62009-11-15 23:12:43 +00009251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009252$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009253if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009254 $as_echo_n "(cached) " >&6
9255else
9256 while :; do
cristy8b350f62009-11-15 23:12:43 +00009257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009258/* end confdefs.h. */
9259#include <sys/types.h>
9260 /* Check that off_t can represent 2**63 - 1 correctly.
9261 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9262 since some C++ compilers masquerading as C compilers
9263 incorrectly reject 9223372036854775807. */
9264#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9266 && LARGE_OFF_T % 2147483647 == 1)
9267 ? 1 : -1];
9268int
9269main ()
9270{
9271
9272 ;
9273 return 0;
9274}
9275_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009276if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009277 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009278fi
cristy3ed852e2009-09-05 21:47:34 +00009279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009281/* end confdefs.h. */
9282#define _FILE_OFFSET_BITS 64
9283#include <sys/types.h>
9284 /* Check that off_t can represent 2**63 - 1 correctly.
9285 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9286 since some C++ compilers masquerading as C compilers
9287 incorrectly reject 9223372036854775807. */
9288#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9290 && LARGE_OFF_T % 2147483647 == 1)
9291 ? 1 : -1];
9292int
9293main ()
9294{
9295
9296 ;
9297 return 0;
9298}
9299_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009300if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009301 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009302fi
cristy3ed852e2009-09-05 21:47:34 +00009303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 ac_cv_sys_file_offset_bits=unknown
9305 break
9306done
9307fi
cristy8b350f62009-11-15 23:12:43 +00009308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009309$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9310case $ac_cv_sys_file_offset_bits in #(
9311 no | unknown) ;;
9312 *)
9313cat >>confdefs.h <<_ACEOF
9314#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9315_ACEOF
9316;;
9317esac
9318rm -rf conftest*
9319 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009321$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009322if test "${ac_cv_sys_large_files+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009323 $as_echo_n "(cached) " >&6
9324else
9325 while :; do
cristy8b350f62009-11-15 23:12:43 +00009326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009327/* end confdefs.h. */
9328#include <sys/types.h>
9329 /* Check that off_t can represent 2**63 - 1 correctly.
9330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9331 since some C++ compilers masquerading as C compilers
9332 incorrectly reject 9223372036854775807. */
9333#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9335 && LARGE_OFF_T % 2147483647 == 1)
9336 ? 1 : -1];
9337int
9338main ()
9339{
9340
9341 ;
9342 return 0;
9343}
9344_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009345if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009346 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009347fi
cristy3ed852e2009-09-05 21:47:34 +00009348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009350/* end confdefs.h. */
9351#define _LARGE_FILES 1
9352#include <sys/types.h>
9353 /* Check that off_t can represent 2**63 - 1 correctly.
9354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9355 since some C++ compilers masquerading as C compilers
9356 incorrectly reject 9223372036854775807. */
9357#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9359 && LARGE_OFF_T % 2147483647 == 1)
9360 ? 1 : -1];
9361int
9362main ()
9363{
9364
9365 ;
9366 return 0;
9367}
9368_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009369if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009370 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009371fi
cristy3ed852e2009-09-05 21:47:34 +00009372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 ac_cv_sys_large_files=unknown
9374 break
9375done
9376fi
cristy8b350f62009-11-15 23:12:43 +00009377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009378$as_echo "$ac_cv_sys_large_files" >&6; }
9379case $ac_cv_sys_large_files in #(
9380 no | unknown) ;;
9381 *)
9382cat >>confdefs.h <<_ACEOF
9383#define _LARGE_FILES $ac_cv_sys_large_files
9384_ACEOF
9385;;
9386esac
9387rm -rf conftest*
9388 fi
9389fi
9390
cristy8b350f62009-11-15 23:12:43 +00009391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009392$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009393if test "${ac_cv_sys_largefile_source+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009394 $as_echo_n "(cached) " >&6
9395else
9396 while :; do
cristy8b350f62009-11-15 23:12:43 +00009397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009398/* end confdefs.h. */
9399#include <sys/types.h> /* for off_t */
9400 #include <stdio.h>
9401int
9402main ()
9403{
9404int (*fp) (FILE *, off_t, int) = fseeko;
9405 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9406 ;
9407 return 0;
9408}
9409_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009411 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009412fi
cristy8b350f62009-11-15 23:12:43 +00009413rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009416/* end confdefs.h. */
9417#define _LARGEFILE_SOURCE 1
9418#include <sys/types.h> /* for off_t */
9419 #include <stdio.h>
9420int
9421main ()
9422{
9423int (*fp) (FILE *, off_t, int) = fseeko;
9424 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9425 ;
9426 return 0;
9427}
9428_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009430 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009431fi
cristy8b350f62009-11-15 23:12:43 +00009432rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009434 ac_cv_sys_largefile_source=unknown
9435 break
9436done
9437fi
cristy8b350f62009-11-15 23:12:43 +00009438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009439$as_echo "$ac_cv_sys_largefile_source" >&6; }
9440case $ac_cv_sys_largefile_source in #(
9441 no | unknown) ;;
9442 *)
9443cat >>confdefs.h <<_ACEOF
9444#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9445_ACEOF
9446;;
9447esac
9448rm -rf conftest*
9449
9450# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9451# in glibc 2.1.3, but that breaks too many other things.
9452# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9453if test $ac_cv_sys_largefile_source != unknown; then
9454
cristy8b350f62009-11-15 23:12:43 +00009455$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009456
9457fi
9458
9459LFS_CPPFLAGS=''
9460if test "$enable_largefile" != no; then
9461 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9462 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9463 else
cristy8b350f62009-11-15 23:12:43 +00009464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009465$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009466 if test "$cross_compiling" = yes; then :
9467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00009469as_fn_error "cannot run test program while cross compiling
9470See \`config.log' for more details." "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009471else
cristy8b350f62009-11-15 23:12:43 +00009472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009474#include <unistd.h>
9475 main () {
9476 exit(!(sizeof(off_t) == 8));
9477 }
9478_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009479if ac_fn_c_try_run "$LINENO"; then :
9480 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009481
cristy8b350f62009-11-15 23:12:43 +00009482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009483$as_echo "yes" >&6; }
9484else
cristy8b350f62009-11-15 23:12:43 +00009485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009486$as_echo "no" >&6; }
9487fi
cristy8b350f62009-11-15 23:12:43 +00009488rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9489 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009490fi
9491
cristy3ed852e2009-09-05 21:47:34 +00009492 fi
9493 if test "$ac_cv_sys_large_files" != 'no'; then
9494 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9495 fi
9496 if test "$ac_cv_sys_largefile_source" != 'no'; then
9497 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9498 fi
9499fi
9500
9501
9502#
9503# Configure libtool & libltdl
9504#
9505# Configure libtool
9506enable_dlopen=yes
9507
9508
9509
9510case `pwd` in
9511 *\ * | *\ *)
cristy8b350f62009-11-15 23:12:43 +00009512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
cristy3ed852e2009-09-05 21:47:34 +00009513$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9514esac
9515
9516
9517
cristy18304f92009-11-22 15:48:26 +00009518macro_version='2.2.6b'
9519macro_revision='1.3017'
cristy3ed852e2009-09-05 21:47:34 +00009520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533ltmain="$ac_aux_dir/ltmain.sh"
9534
cristy8b350f62009-11-15 23:12:43 +00009535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
cristy3ed852e2009-09-05 21:47:34 +00009536$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009537if test "${lt_cv_path_NM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009538 $as_echo_n "(cached) " >&6
9539else
9540 if test -n "$NM"; then
9541 # Let the user override the test.
9542 lt_cv_path_NM="$NM"
9543else
9544 lt_nm_to_check="${ac_tool_prefix}nm"
9545 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9546 lt_nm_to_check="$lt_nm_to_check nm"
9547 fi
9548 for lt_tmp_nm in $lt_nm_to_check; do
9549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9550 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9551 IFS="$lt_save_ifs"
9552 test -z "$ac_dir" && ac_dir=.
9553 tmp_nm="$ac_dir/$lt_tmp_nm"
9554 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9555 # Check to see if the nm accepts a BSD-compat flag.
9556 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9557 # nm: unknown option "B" ignored
9558 # Tru64's nm complains that /dev/null is an invalid object file
9559 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9560 */dev/null* | *'Invalid file or object type'*)
9561 lt_cv_path_NM="$tmp_nm -B"
9562 break
9563 ;;
9564 *)
9565 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9566 */dev/null*)
9567 lt_cv_path_NM="$tmp_nm -p"
9568 break
9569 ;;
9570 *)
9571 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9572 continue # so that we can try to find one that supports BSD flags
9573 ;;
9574 esac
9575 ;;
9576 esac
9577 fi
9578 done
9579 IFS="$lt_save_ifs"
9580 done
9581 : ${lt_cv_path_NM=no}
9582fi
9583fi
cristy8b350f62009-11-15 23:12:43 +00009584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
cristy3ed852e2009-09-05 21:47:34 +00009585$as_echo "$lt_cv_path_NM" >&6; }
9586if test "$lt_cv_path_NM" != "no"; then
9587 NM="$lt_cv_path_NM"
9588else
9589 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy18304f92009-11-22 15:48:26 +00009590 if test -n "$ac_tool_prefix"; then
9591 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009592 do
9593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009596$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009597if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009598 $as_echo_n "(cached) " >&6
9599else
9600 if test -n "$DUMPBIN"; then
9601 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9602else
9603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9604for as_dir in $PATH
9605do
9606 IFS=$as_save_IFS
9607 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9610 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009612 break 2
9613 fi
9614done
cristy8b350f62009-11-15 23:12:43 +00009615 done
cristy3ed852e2009-09-05 21:47:34 +00009616IFS=$as_save_IFS
9617
9618fi
9619fi
9620DUMPBIN=$ac_cv_prog_DUMPBIN
9621if test -n "$DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009623$as_echo "$DUMPBIN" >&6; }
9624else
cristy8b350f62009-11-15 23:12:43 +00009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009626$as_echo "no" >&6; }
9627fi
9628
9629
9630 test -n "$DUMPBIN" && break
9631 done
9632fi
9633if test -z "$DUMPBIN"; then
9634 ac_ct_DUMPBIN=$DUMPBIN
cristy18304f92009-11-22 15:48:26 +00009635 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
cristy3ed852e2009-09-05 21:47:34 +00009636do
9637 # Extract the first word of "$ac_prog", so it can be a program name with args.
9638set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009640$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009641if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009642 $as_echo_n "(cached) " >&6
9643else
9644 if test -n "$ac_ct_DUMPBIN"; then
9645 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9646else
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00009655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009656 break 2
9657 fi
9658done
cristy8b350f62009-11-15 23:12:43 +00009659 done
cristy3ed852e2009-09-05 21:47:34 +00009660IFS=$as_save_IFS
9661
9662fi
9663fi
9664ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9665if test -n "$ac_ct_DUMPBIN"; then
cristy8b350f62009-11-15 23:12:43 +00009666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
cristy3ed852e2009-09-05 21:47:34 +00009667$as_echo "$ac_ct_DUMPBIN" >&6; }
9668else
cristy8b350f62009-11-15 23:12:43 +00009669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009670$as_echo "no" >&6; }
9671fi
9672
9673
9674 test -n "$ac_ct_DUMPBIN" && break
9675done
9676
9677 if test "x$ac_ct_DUMPBIN" = x; then
9678 DUMPBIN=":"
9679 else
9680 case $cross_compiling:$ac_tool_warned in
9681yes:)
cristy8b350f62009-11-15 23:12:43 +00009682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00009683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9684ac_tool_warned=yes ;;
9685esac
9686 DUMPBIN=$ac_ct_DUMPBIN
9687 fi
9688fi
9689
9690
9691 if test "$DUMPBIN" != ":"; then
9692 NM="$DUMPBIN"
9693 fi
9694fi
9695test -z "$NM" && NM=nm
9696
9697
9698
9699
9700
9701
cristy8b350f62009-11-15 23:12:43 +00009702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009703$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009704if test "${lt_cv_nm_interface+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009705 $as_echo_n "(cached) " >&6
9706else
9707 lt_cv_nm_interface="BSD nm"
9708 echo "int some_variable = 0;" > conftest.$ac_ext
cristya62cc882010-06-17 00:12:38 +00009709 (eval echo "\"\$as_me:9709: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009710 (eval "$ac_compile" 2>conftest.err)
9711 cat conftest.err >&5
cristya62cc882010-06-17 00:12:38 +00009712 (eval echo "\"\$as_me:9712: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009713 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9714 cat conftest.err >&5
cristya62cc882010-06-17 00:12:38 +00009715 (eval echo "\"\$as_me:9715: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009716 cat conftest.out >&5
9717 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9718 lt_cv_nm_interface="MS dumpbin"
9719 fi
9720 rm -f conftest*
9721fi
cristy8b350f62009-11-15 23:12:43 +00009722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
cristy3ed852e2009-09-05 21:47:34 +00009723$as_echo "$lt_cv_nm_interface" >&6; }
9724
9725# find the maximum length of command line arguments
cristy8b350f62009-11-15 23:12:43 +00009726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
cristy3ed852e2009-09-05 21:47:34 +00009727$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009728if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009729 $as_echo_n "(cached) " >&6
9730else
9731 i=0
9732 teststring="ABCD"
9733
9734 case $build_os in
9735 msdosdjgpp*)
9736 # On DJGPP, this test can blow up pretty badly due to problems in libc
9737 # (any single argument exceeding 2000 bytes causes a buffer overrun
9738 # during glob expansion). Even if it were fixed, the result of this
9739 # check would be larger than it should be.
9740 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9741 ;;
9742
9743 gnu*)
9744 # Under GNU Hurd, this test is not required because there is
9745 # no limit to the length of command line arguments.
9746 # Libtool will interpret -1 as no limit whatsoever
9747 lt_cv_sys_max_cmd_len=-1;
9748 ;;
9749
9750 cygwin* | mingw* | cegcc*)
9751 # On Win9x/ME, this test blows up -- it succeeds, but takes
9752 # about 5 minutes as the teststring grows exponentially.
9753 # Worse, since 9x/ME are not pre-emptively multitasking,
9754 # you end up with a "frozen" computer, even though with patience
9755 # the test eventually succeeds (with a max line length of 256k).
9756 # Instead, let's just punt: use the minimum linelength reported by
9757 # all of the supported platforms: 8192 (on NT/2K/XP).
9758 lt_cv_sys_max_cmd_len=8192;
9759 ;;
9760
9761 amigaos*)
9762 # On AmigaOS with pdksh, this test takes hours, literally.
9763 # So we just punt and use a minimum line length of 8192.
9764 lt_cv_sys_max_cmd_len=8192;
9765 ;;
9766
9767 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9768 # This has been around since 386BSD, at least. Likely further.
9769 if test -x /sbin/sysctl; then
9770 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9771 elif test -x /usr/sbin/sysctl; then
9772 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9773 else
9774 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9775 fi
9776 # And add a safety zone
9777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9779 ;;
9780
9781 interix*)
9782 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9783 lt_cv_sys_max_cmd_len=196608
9784 ;;
9785
9786 osf*)
9787 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9788 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9789 # nice to cause kernel panics so lets avoid the loop below.
9790 # First set a reasonable default.
9791 lt_cv_sys_max_cmd_len=16384
9792 #
9793 if test -x /sbin/sysconfig; then
9794 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9795 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9796 esac
9797 fi
9798 ;;
9799 sco3.2v5*)
9800 lt_cv_sys_max_cmd_len=102400
9801 ;;
9802 sysv5* | sco5v6* | sysv4.2uw2*)
9803 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9804 if test -n "$kargmax"; then
9805 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9806 else
9807 lt_cv_sys_max_cmd_len=32768
9808 fi
9809 ;;
9810 *)
9811 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9812 if test -n "$lt_cv_sys_max_cmd_len"; then
9813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9815 else
9816 # Make teststring a little bigger before we do anything with it.
9817 # a 1K string should be a reasonable start.
9818 for i in 1 2 3 4 5 6 7 8 ; do
9819 teststring=$teststring$teststring
9820 done
9821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9822 # If test is not a shell built-in, we'll probably end up computing a
9823 # maximum length that is only half of the actual maximum length, but
9824 # we can't tell.
cristy18304f92009-11-22 15:48:26 +00009825 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9826 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
cristy3ed852e2009-09-05 21:47:34 +00009827 test $i != 17 # 1/2 MB should be enough
9828 do
9829 i=`expr $i + 1`
9830 teststring=$teststring$teststring
9831 done
9832 # Only check the string length outside the loop.
9833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9834 teststring=
9835 # Add a significant safety factor because C++ compilers can tack on
9836 # massive amounts of additional arguments before passing them to the
9837 # linker. It appears as though 1/2 is a usable value.
9838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9839 fi
9840 ;;
9841 esac
9842
9843fi
9844
9845if test -n $lt_cv_sys_max_cmd_len ; then
cristy8b350f62009-11-15 23:12:43 +00009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
cristy3ed852e2009-09-05 21:47:34 +00009847$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9848else
cristy8b350f62009-11-15 23:12:43 +00009849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
cristy3ed852e2009-09-05 21:47:34 +00009850$as_echo "none" >&6; }
9851fi
9852max_cmd_len=$lt_cv_sys_max_cmd_len
9853
9854
9855
9856
9857
9858
9859: ${CP="cp -f"}
9860: ${MV="mv -f"}
9861: ${RM="rm -f"}
9862
cristy8b350f62009-11-15 23:12:43 +00009863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
cristy3ed852e2009-09-05 21:47:34 +00009864$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9865# Try some XSI features
9866xsi_shell=no
9867( _lt_dummy="a/b/c"
9868 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9869 = c,a/b,, \
9870 && eval 'test $(( 1 + 1 )) -eq 2 \
9871 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9872 && xsi_shell=yes
cristy8b350f62009-11-15 23:12:43 +00009873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
cristy3ed852e2009-09-05 21:47:34 +00009874$as_echo "$xsi_shell" >&6; }
9875
9876
cristy8b350f62009-11-15 23:12:43 +00009877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
cristy3ed852e2009-09-05 21:47:34 +00009878$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9879lt_shell_append=no
9880( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9881 >/dev/null 2>&1 \
9882 && lt_shell_append=yes
cristy8b350f62009-11-15 23:12:43 +00009883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
cristy3ed852e2009-09-05 21:47:34 +00009884$as_echo "$lt_shell_append" >&6; }
9885
9886
9887if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9888 lt_unset=unset
9889else
9890 lt_unset=false
9891fi
9892
9893
9894
9895
9896
9897# test EBCDIC or ASCII
9898case `echo X|tr X '\101'` in
9899 A) # ASCII based system
9900 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9901 lt_SP2NL='tr \040 \012'
9902 lt_NL2SP='tr \015\012 \040\040'
9903 ;;
9904 *) # EBCDIC based system
9905 lt_SP2NL='tr \100 \n'
9906 lt_NL2SP='tr \r\n \100\100'
9907 ;;
9908esac
9909
9910
9911
9912
9913
9914
9915
9916
9917
cristy8b350f62009-11-15 23:12:43 +00009918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009919$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009920if test "${lt_cv_ld_reload_flag+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009921 $as_echo_n "(cached) " >&6
9922else
9923 lt_cv_ld_reload_flag='-r'
9924fi
cristy8b350f62009-11-15 23:12:43 +00009925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
cristy3ed852e2009-09-05 21:47:34 +00009926$as_echo "$lt_cv_ld_reload_flag" >&6; }
9927reload_flag=$lt_cv_ld_reload_flag
9928case $reload_flag in
9929"" | " "*) ;;
9930*) reload_flag=" $reload_flag" ;;
9931esac
9932reload_cmds='$LD$reload_flag -o $output$reload_objs'
9933case $host_os in
9934 darwin*)
9935 if test "$GCC" = yes; then
9936 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9937 else
9938 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9939 fi
9940 ;;
9941esac
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951if test -n "$ac_tool_prefix"; then
9952 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9953set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009955$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009956if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009957 $as_echo_n "(cached) " >&6
9958else
9959 if test -n "$OBJDUMP"; then
9960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9961else
9962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963for as_dir in $PATH
9964do
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00009967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00009968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +00009970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00009971 break 2
9972 fi
9973done
cristy8b350f62009-11-15 23:12:43 +00009974 done
cristy3ed852e2009-09-05 21:47:34 +00009975IFS=$as_save_IFS
9976
9977fi
9978fi
9979OBJDUMP=$ac_cv_prog_OBJDUMP
9980if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +00009981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009982$as_echo "$OBJDUMP" >&6; }
9983else
cristy8b350f62009-11-15 23:12:43 +00009984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009985$as_echo "no" >&6; }
9986fi
9987
9988
9989fi
9990if test -z "$ac_cv_prog_OBJDUMP"; then
9991 ac_ct_OBJDUMP=$OBJDUMP
9992 # Extract the first word of "objdump", so it can be a program name with args.
9993set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00009994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00009995$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009996if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009997 $as_echo_n "(cached) " >&6
9998else
9999 if test -n "$ac_ct_OBJDUMP"; then
10000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10001else
10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003for as_dir in $PATH
10004do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000010010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010011 break 2
10012 fi
10013done
cristy8b350f62009-11-15 23:12:43 +000010014 done
cristy3ed852e2009-09-05 21:47:34 +000010015IFS=$as_save_IFS
10016
10017fi
10018fi
10019ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10020if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000010021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010022$as_echo "$ac_ct_OBJDUMP" >&6; }
10023else
cristy8b350f62009-11-15 23:12:43 +000010024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010025$as_echo "no" >&6; }
10026fi
10027
10028 if test "x$ac_ct_OBJDUMP" = x; then
10029 OBJDUMP="false"
10030 else
10031 case $cross_compiling:$ac_tool_warned in
10032yes:)
cristy8b350f62009-11-15 23:12:43 +000010033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10035ac_tool_warned=yes ;;
10036esac
10037 OBJDUMP=$ac_ct_OBJDUMP
10038 fi
10039else
10040 OBJDUMP="$ac_cv_prog_OBJDUMP"
10041fi
10042
10043test -z "$OBJDUMP" && OBJDUMP=objdump
10044
10045
10046
10047
10048
10049
cristy8b350f62009-11-15 23:12:43 +000010050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000010051$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010052if test "${lt_cv_deplibs_check_method+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010053 $as_echo_n "(cached) " >&6
10054else
10055 lt_cv_file_magic_cmd='$MAGIC_CMD'
10056lt_cv_file_magic_test_file=
10057lt_cv_deplibs_check_method='unknown'
10058# Need to set the preceding variable on all platforms that support
10059# interlibrary dependencies.
10060# 'none' -- dependencies not supported.
10061# `unknown' -- same as none, but documents that we really don't know.
10062# 'pass_all' -- all dependencies passed with no checks.
10063# 'test_compile' -- check by making test program.
10064# 'file_magic [[regex]]' -- check by looking for files in library path
10065# which responds to the $file_magic_cmd with a given extended regex.
10066# If you have `file' or equivalent on your system and you're not sure
10067# whether `pass_all' will *always* work, you probably want this one.
10068
10069case $host_os in
10070aix[4-9]*)
10071 lt_cv_deplibs_check_method=pass_all
10072 ;;
10073
10074beos*)
10075 lt_cv_deplibs_check_method=pass_all
10076 ;;
10077
10078bsdi[45]*)
10079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10080 lt_cv_file_magic_cmd='/usr/bin/file -L'
10081 lt_cv_file_magic_test_file=/shlib/libc.so
10082 ;;
10083
10084cygwin*)
10085 # func_win32_libid is a shell function defined in ltmain.sh
10086 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10087 lt_cv_file_magic_cmd='func_win32_libid'
10088 ;;
10089
10090mingw* | pw32*)
10091 # Base MSYS/MinGW do not provide the 'file' command needed by
10092 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10093 # unless we find 'file', for example because we are cross-compiling.
cristy18304f92009-11-22 15:48:26 +000010094 if ( file / ) >/dev/null 2>&1; then
cristy3ed852e2009-09-05 21:47:34 +000010095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10096 lt_cv_file_magic_cmd='func_win32_libid'
10097 else
10098 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10099 lt_cv_file_magic_cmd='$OBJDUMP -f'
10100 fi
10101 ;;
10102
cristy18304f92009-11-22 15:48:26 +000010103cegcc)
cristy3ed852e2009-09-05 21:47:34 +000010104 # use the weaker test based on 'objdump'. See mingw*.
10105 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10106 lt_cv_file_magic_cmd='$OBJDUMP -f'
10107 ;;
10108
10109darwin* | rhapsody*)
10110 lt_cv_deplibs_check_method=pass_all
10111 ;;
10112
10113freebsd* | dragonfly*)
10114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10115 case $host_cpu in
10116 i*86 )
10117 # Not sure whether the presence of OpenBSD here was a mistake.
10118 # Let's accept both of them until this is cleared up.
10119 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10120 lt_cv_file_magic_cmd=/usr/bin/file
10121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10122 ;;
10123 esac
10124 else
10125 lt_cv_deplibs_check_method=pass_all
10126 fi
10127 ;;
10128
10129gnu*)
10130 lt_cv_deplibs_check_method=pass_all
10131 ;;
10132
10133hpux10.20* | hpux11*)
10134 lt_cv_file_magic_cmd=/usr/bin/file
10135 case $host_cpu in
10136 ia64*)
10137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10139 ;;
10140 hppa*64*)
cristy18304f92009-11-22 15:48:26 +000010141 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 +000010142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10143 ;;
10144 *)
cristy18304f92009-11-22 15:48:26 +000010145 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 +000010146 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10147 ;;
10148 esac
10149 ;;
10150
10151interix[3-9]*)
10152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10154 ;;
10155
10156irix5* | irix6* | nonstopux*)
10157 case $LD in
10158 *-32|*"-32 ") libmagic=32-bit;;
10159 *-n32|*"-n32 ") libmagic=N32;;
10160 *-64|*"-64 ") libmagic=64-bit;;
10161 *) libmagic=never-match;;
10162 esac
10163 lt_cv_deplibs_check_method=pass_all
10164 ;;
10165
10166# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000010167linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000010168 lt_cv_deplibs_check_method=pass_all
10169 ;;
10170
10171netbsd*)
10172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10174 else
10175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10176 fi
10177 ;;
10178
10179newos6*)
10180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10181 lt_cv_file_magic_cmd=/usr/bin/file
10182 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10183 ;;
10184
10185*nto* | *qnx*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189openbsd*)
10190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10192 else
10193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10194 fi
10195 ;;
10196
10197osf3* | osf4* | osf5*)
10198 lt_cv_deplibs_check_method=pass_all
10199 ;;
10200
10201rdos*)
10202 lt_cv_deplibs_check_method=pass_all
10203 ;;
10204
10205solaris*)
10206 lt_cv_deplibs_check_method=pass_all
10207 ;;
10208
10209sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10210 lt_cv_deplibs_check_method=pass_all
10211 ;;
10212
10213sysv4 | sysv4.3*)
10214 case $host_vendor in
10215 motorola)
10216 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]'
10217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10218 ;;
10219 ncr)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222 sequent)
10223 lt_cv_file_magic_cmd='/bin/file'
10224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10225 ;;
10226 sni)
10227 lt_cv_file_magic_cmd='/bin/file'
10228 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10229 lt_cv_file_magic_test_file=/lib/libc.so
10230 ;;
10231 siemens)
10232 lt_cv_deplibs_check_method=pass_all
10233 ;;
10234 pc)
10235 lt_cv_deplibs_check_method=pass_all
10236 ;;
10237 esac
10238 ;;
10239
10240tpf*)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243esac
10244
10245fi
cristy8b350f62009-11-15 23:12:43 +000010246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo "$lt_cv_deplibs_check_method" >&6; }
10248file_magic_cmd=$lt_cv_file_magic_cmd
10249deplibs_check_method=$lt_cv_deplibs_check_method
10250test -z "$deplibs_check_method" && deplibs_check_method=unknown
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263if test -n "$ac_tool_prefix"; then
10264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10265set dummy ${ac_tool_prefix}ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010267$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010268if test "${ac_cv_prog_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010269 $as_echo_n "(cached) " >&6
10270else
10271 if test -n "$AR"; then
10272 ac_cv_prog_AR="$AR" # Let the user override the test.
10273else
10274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275for as_dir in $PATH
10276do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_prog_AR="${ac_tool_prefix}ar"
cristy8b350f62009-11-15 23:12:43 +000010282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010283 break 2
10284 fi
10285done
cristy8b350f62009-11-15 23:12:43 +000010286 done
cristy3ed852e2009-09-05 21:47:34 +000010287IFS=$as_save_IFS
10288
10289fi
10290fi
10291AR=$ac_cv_prog_AR
10292if test -n "$AR"; then
cristy8b350f62009-11-15 23:12:43 +000010293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010294$as_echo "$AR" >&6; }
10295else
cristy8b350f62009-11-15 23:12:43 +000010296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010297$as_echo "no" >&6; }
10298fi
10299
10300
10301fi
10302if test -z "$ac_cv_prog_AR"; then
10303 ac_ct_AR=$AR
10304 # Extract the first word of "ar", so it can be a program name with args.
10305set dummy ar; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010307$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010308if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010309 $as_echo_n "(cached) " >&6
10310else
10311 if test -n "$ac_ct_AR"; then
10312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10313else
10314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315for as_dir in $PATH
10316do
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_prog_ac_ct_AR="ar"
cristy8b350f62009-11-15 23:12:43 +000010322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010323 break 2
10324 fi
10325done
cristy8b350f62009-11-15 23:12:43 +000010326 done
cristy3ed852e2009-09-05 21:47:34 +000010327IFS=$as_save_IFS
10328
10329fi
10330fi
10331ac_ct_AR=$ac_cv_prog_ac_ct_AR
10332if test -n "$ac_ct_AR"; then
cristy8b350f62009-11-15 23:12:43 +000010333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
cristy3ed852e2009-09-05 21:47:34 +000010334$as_echo "$ac_ct_AR" >&6; }
10335else
cristy8b350f62009-11-15 23:12:43 +000010336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010337$as_echo "no" >&6; }
10338fi
10339
10340 if test "x$ac_ct_AR" = x; then
10341 AR="false"
10342 else
10343 case $cross_compiling:$ac_tool_warned in
10344yes:)
cristy8b350f62009-11-15 23:12:43 +000010345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10347ac_tool_warned=yes ;;
10348esac
10349 AR=$ac_ct_AR
10350 fi
10351else
10352 AR="$ac_cv_prog_AR"
10353fi
10354
10355test -z "$AR" && AR=ar
10356test -z "$AR_FLAGS" && AR_FLAGS=cru
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368if test -n "$ac_tool_prefix"; then
10369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10370set dummy ${ac_tool_prefix}strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010372$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010373if test "${ac_cv_prog_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010374 $as_echo_n "(cached) " >&6
10375else
10376 if test -n "$STRIP"; then
10377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10378else
10379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380for as_dir in $PATH
10381do
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
cristy8b350f62009-11-15 23:12:43 +000010387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010388 break 2
10389 fi
10390done
cristy8b350f62009-11-15 23:12:43 +000010391 done
cristy3ed852e2009-09-05 21:47:34 +000010392IFS=$as_save_IFS
10393
10394fi
10395fi
10396STRIP=$ac_cv_prog_STRIP
10397if test -n "$STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010399$as_echo "$STRIP" >&6; }
10400else
cristy8b350f62009-11-15 23:12:43 +000010401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010402$as_echo "no" >&6; }
10403fi
10404
10405
10406fi
10407if test -z "$ac_cv_prog_STRIP"; then
10408 ac_ct_STRIP=$STRIP
10409 # Extract the first word of "strip", so it can be a program name with args.
10410set dummy strip; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010412$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010413if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010414 $as_echo_n "(cached) " >&6
10415else
10416 if test -n "$ac_ct_STRIP"; then
10417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10418else
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_ac_ct_STRIP="strip"
cristy8b350f62009-11-15 23:12:43 +000010427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010428 break 2
10429 fi
10430done
cristy8b350f62009-11-15 23:12:43 +000010431 done
cristy3ed852e2009-09-05 21:47:34 +000010432IFS=$as_save_IFS
10433
10434fi
10435fi
10436ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10437if test -n "$ac_ct_STRIP"; then
cristy8b350f62009-11-15 23:12:43 +000010438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010439$as_echo "$ac_ct_STRIP" >&6; }
10440else
cristy8b350f62009-11-15 23:12:43 +000010441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010442$as_echo "no" >&6; }
10443fi
10444
10445 if test "x$ac_ct_STRIP" = x; then
10446 STRIP=":"
10447 else
10448 case $cross_compiling:$ac_tool_warned in
10449yes:)
cristy8b350f62009-11-15 23:12:43 +000010450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10452ac_tool_warned=yes ;;
10453esac
10454 STRIP=$ac_ct_STRIP
10455 fi
10456else
10457 STRIP="$ac_cv_prog_STRIP"
10458fi
10459
10460test -z "$STRIP" && STRIP=:
10461
10462
10463
10464
10465
10466
10467if test -n "$ac_tool_prefix"; then
10468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10469set dummy ${ac_tool_prefix}ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010471$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010472if test "${ac_cv_prog_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010473 $as_echo_n "(cached) " >&6
10474else
10475 if test -n "$RANLIB"; then
10476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10477else
10478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479for as_dir in $PATH
10480do
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
cristy8b350f62009-11-15 23:12:43 +000010486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010487 break 2
10488 fi
10489done
cristy8b350f62009-11-15 23:12:43 +000010490 done
cristy3ed852e2009-09-05 21:47:34 +000010491IFS=$as_save_IFS
10492
10493fi
10494fi
10495RANLIB=$ac_cv_prog_RANLIB
10496if test -n "$RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010498$as_echo "$RANLIB" >&6; }
10499else
cristy8b350f62009-11-15 23:12:43 +000010500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010501$as_echo "no" >&6; }
10502fi
10503
10504
10505fi
10506if test -z "$ac_cv_prog_RANLIB"; then
10507 ac_ct_RANLIB=$RANLIB
10508 # Extract the first word of "ranlib", so it can be a program name with args.
10509set dummy ranlib; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000010510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000010511$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010512if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010513 $as_echo_n "(cached) " >&6
10514else
10515 if test -n "$ac_ct_RANLIB"; then
10516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10517else
10518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519for as_dir in $PATH
10520do
10521 IFS=$as_save_IFS
10522 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000010523 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000010524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10525 ac_cv_prog_ac_ct_RANLIB="ranlib"
cristy8b350f62009-11-15 23:12:43 +000010526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000010527 break 2
10528 fi
10529done
cristy8b350f62009-11-15 23:12:43 +000010530 done
cristy3ed852e2009-09-05 21:47:34 +000010531IFS=$as_save_IFS
10532
10533fi
10534fi
10535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10536if test -n "$ac_ct_RANLIB"; then
cristy8b350f62009-11-15 23:12:43 +000010537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000010538$as_echo "$ac_ct_RANLIB" >&6; }
10539else
cristy8b350f62009-11-15 23:12:43 +000010540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000010541$as_echo "no" >&6; }
10542fi
10543
10544 if test "x$ac_ct_RANLIB" = x; then
10545 RANLIB=":"
10546 else
10547 case $cross_compiling:$ac_tool_warned in
10548yes:)
cristy8b350f62009-11-15 23:12:43 +000010549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000010550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10551ac_tool_warned=yes ;;
10552esac
10553 RANLIB=$ac_ct_RANLIB
10554 fi
10555else
10556 RANLIB="$ac_cv_prog_RANLIB"
10557fi
10558
10559test -z "$RANLIB" && RANLIB=:
10560
10561
10562
10563
10564
10565
10566# Determine commands to create old-style static archives.
10567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10568old_postinstall_cmds='chmod 644 $oldlib'
10569old_postuninstall_cmds=
10570
10571if test -n "$RANLIB"; then
10572 case $host_os in
10573 openbsd*)
10574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10575 ;;
10576 *)
10577 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10578 ;;
10579 esac
10580 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10581fi
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616# If no C compiler was specified, use CC.
10617LTCC=${LTCC-"$CC"}
10618
10619# If no C compiler flags were specified, use CFLAGS.
10620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10621
10622# Allow CC to be a program name with arguments.
10623compiler=$CC
10624
10625
10626# Check for command to grab the raw symbol name followed by C symbol from nm.
cristy8b350f62009-11-15 23:12:43 +000010627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
cristy3ed852e2009-09-05 21:47:34 +000010628$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010629if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010630 $as_echo_n "(cached) " >&6
10631else
10632
10633# These are sane defaults that work on at least a few old systems.
10634# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10635
10636# Character class describing NM global symbol codes.
10637symcode='[BCDEGRST]'
10638
10639# Regexp to match symbols that can be accessed directly from C.
10640sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10641
10642# Define system-specific variables.
10643case $host_os in
10644aix*)
10645 symcode='[BCDT]'
10646 ;;
10647cygwin* | mingw* | pw32* | cegcc*)
10648 symcode='[ABCDGISTW]'
10649 ;;
10650hpux*)
10651 if test "$host_cpu" = ia64; then
10652 symcode='[ABCDEGRST]'
10653 fi
10654 ;;
10655irix* | nonstopux*)
10656 symcode='[BCDEGRST]'
10657 ;;
10658osf*)
10659 symcode='[BCDEGQRST]'
10660 ;;
10661solaris*)
10662 symcode='[BDRT]'
10663 ;;
10664sco3.2v5*)
10665 symcode='[DT]'
10666 ;;
10667sysv4.2uw2*)
10668 symcode='[DT]'
10669 ;;
10670sysv5* | sco5v6* | unixware* | OpenUNIX*)
10671 symcode='[ABDT]'
10672 ;;
10673sysv4)
10674 symcode='[DFNSTU]'
10675 ;;
10676esac
10677
10678# If we're using GNU nm, then use its standard symbol codes.
10679case `$NM -V 2>&1` in
10680*GNU* | *'with BFD'*)
10681 symcode='[ABCDGIRSTW]' ;;
10682esac
10683
10684# Transform an extracted symbol line into a proper C declaration.
10685# Some systems (esp. on ia64) link data and code symbols differently,
10686# so use this general approach.
10687lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10688
10689# Transform an extracted symbol line into symbol name and symbol address
10690lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10691lt_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'"
10692
10693# Handle CRLF in mingw tool chain
10694opt_cr=
10695case $build_os in
10696mingw*)
10697 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10698 ;;
10699esac
10700
10701# Try without a prefix underscore, then with it.
10702for ac_symprfx in "" "_"; do
10703
10704 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10705 symxfrm="\\1 $ac_symprfx\\2 \\2"
10706
10707 # Write the raw and C identifiers.
10708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10709 # Fake it for dumpbin and say T for any non-static function
10710 # and D for any global variable.
10711 # Also find C++ and __fastcall symbols from MSVC++,
10712 # which start with @ or ?.
10713 lt_cv_sys_global_symbol_pipe="$AWK '"\
10714" {last_section=section; section=\$ 3};"\
10715" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10716" \$ 0!~/External *\|/{next};"\
10717" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10718" {if(hide[section]) next};"\
10719" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10720" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10721" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10722" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10723" ' prfx=^$ac_symprfx"
10724 else
10725 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10726 fi
10727
10728 # Check to see that the pipe works correctly.
10729 pipe_works=no
10730
10731 rm -f conftest*
10732 cat > conftest.$ac_ext <<_LT_EOF
10733#ifdef __cplusplus
10734extern "C" {
10735#endif
10736char nm_test_var;
10737void nm_test_func(void);
10738void nm_test_func(void){}
10739#ifdef __cplusplus
10740}
10741#endif
10742int main(){nm_test_var='a';nm_test_func();return(0);}
10743_LT_EOF
10744
cristy8b350f62009-11-15 23:12:43 +000010745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010746 (eval $ac_compile) 2>&5
10747 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010750 # Now try to grab the symbols.
10751 nlist=conftest.nm
cristy18304f92009-11-22 15:48:26 +000010752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10753 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
cristy3ed852e2009-09-05 21:47:34 +000010754 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756 test $ac_status = 0; } && test -s "$nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000010757 # Try sorting and uniquifying the output.
10758 if sort "$nlist" | uniq > "$nlist"T; then
10759 mv -f "$nlist"T "$nlist"
10760 else
10761 rm -f "$nlist"T
10762 fi
10763
10764 # Make sure that we snagged all the symbols we need.
10765 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10766 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10767 cat <<_LT_EOF > conftest.$ac_ext
10768#ifdef __cplusplus
10769extern "C" {
10770#endif
10771
10772_LT_EOF
10773 # Now generate the symbol file.
10774 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10775
10776 cat <<_LT_EOF >> conftest.$ac_ext
10777
10778/* The mapping between symbol names and symbols. */
10779const struct {
10780 const char *name;
10781 void *address;
10782}
10783lt__PROGRAM__LTX_preloaded_symbols[] =
10784{
10785 { "@PROGRAM@", (void *) 0 },
10786_LT_EOF
10787 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10788 cat <<\_LT_EOF >> conftest.$ac_ext
10789 {0, (void *) 0}
10790};
10791
10792/* This works around a problem in FreeBSD linker */
10793#ifdef FREEBSD_WORKAROUND
10794static const void *lt_preloaded_setup() {
10795 return lt__PROGRAM__LTX_preloaded_symbols;
10796}
10797#endif
10798
10799#ifdef __cplusplus
10800}
10801#endif
10802_LT_EOF
10803 # Now try linking the two files.
10804 mv conftest.$ac_objext conftstm.$ac_objext
10805 lt_save_LIBS="$LIBS"
10806 lt_save_CFLAGS="$CFLAGS"
10807 LIBS="conftstm.$ac_objext"
10808 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
cristy8b350f62009-11-15 23:12:43 +000010809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010810 (eval $ac_link) 2>&5
10811 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10813 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
cristy3ed852e2009-09-05 21:47:34 +000010814 pipe_works=yes
10815 fi
10816 LIBS="$lt_save_LIBS"
10817 CFLAGS="$lt_save_CFLAGS"
10818 else
10819 echo "cannot find nm_test_func in $nlist" >&5
10820 fi
10821 else
10822 echo "cannot find nm_test_var in $nlist" >&5
10823 fi
10824 else
10825 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10826 fi
10827 else
10828 echo "$progname: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10830 fi
10831 rm -rf conftest* conftst*
10832
10833 # Do not use the global_symbol_pipe unless it works.
10834 if test "$pipe_works" = yes; then
10835 break
10836 else
10837 lt_cv_sys_global_symbol_pipe=
10838 fi
10839done
10840
10841fi
10842
10843if test -z "$lt_cv_sys_global_symbol_pipe"; then
10844 lt_cv_sys_global_symbol_to_cdecl=
10845fi
10846if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
cristy8b350f62009-11-15 23:12:43 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
cristy3ed852e2009-09-05 21:47:34 +000010848$as_echo "failed" >&6; }
10849else
cristy8b350f62009-11-15 23:12:43 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000010851$as_echo "ok" >&6; }
10852fi
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875# Check whether --enable-libtool-lock was given.
cristy8b350f62009-11-15 23:12:43 +000010876if test "${enable_libtool_lock+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010877 enableval=$enable_libtool_lock;
10878fi
10879
10880test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10881
10882# Some flags need to be propagated to the compiler or linker for good
10883# libtool support.
10884case $host in
10885ia64-*-hpux*)
10886 # Find out which ABI we are using.
10887 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010889 (eval $ac_compile) 2>&5
10890 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010893 case `/usr/bin/file conftest.$ac_objext` in
10894 *ELF-32*)
10895 HPUX_IA64_MODE="32"
10896 ;;
10897 *ELF-64*)
10898 HPUX_IA64_MODE="64"
10899 ;;
10900 esac
10901 fi
10902 rm -rf conftest*
10903 ;;
10904*-*-irix6*)
10905 # Find out which ABI we are using.
cristya62cc882010-06-17 00:12:38 +000010906 echo '#line 10906 "configure"' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010908 (eval $ac_compile) 2>&5
10909 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010912 if test "$lt_cv_prog_gnu_ld" = yes; then
10913 case `/usr/bin/file conftest.$ac_objext` in
10914 *32-bit*)
10915 LD="${LD-ld} -melf32bsmip"
10916 ;;
10917 *N32*)
10918 LD="${LD-ld} -melf32bmipn32"
10919 ;;
10920 *64-bit*)
10921 LD="${LD-ld} -melf64bmip"
10922 ;;
10923 esac
10924 else
10925 case `/usr/bin/file conftest.$ac_objext` in
10926 *32-bit*)
10927 LD="${LD-ld} -32"
10928 ;;
10929 *N32*)
10930 LD="${LD-ld} -n32"
10931 ;;
10932 *64-bit*)
10933 LD="${LD-ld} -64"
10934 ;;
10935 esac
10936 fi
10937 fi
10938 rm -rf conftest*
10939 ;;
10940
10941x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10942s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10943 # Find out which ABI we are using.
10944 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000010946 (eval $ac_compile) 2>&5
10947 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000010948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10949 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000010950 case `/usr/bin/file conftest.o` in
10951 *32-bit*)
10952 case $host in
10953 x86_64-*kfreebsd*-gnu)
10954 LD="${LD-ld} -m elf_i386_fbsd"
10955 ;;
10956 x86_64-*linux*)
10957 LD="${LD-ld} -m elf_i386"
10958 ;;
10959 ppc64-*linux*|powerpc64-*linux*)
10960 LD="${LD-ld} -m elf32ppclinux"
10961 ;;
10962 s390x-*linux*)
10963 LD="${LD-ld} -m elf_s390"
10964 ;;
10965 sparc64-*linux*)
10966 LD="${LD-ld} -m elf32_sparc"
10967 ;;
10968 esac
10969 ;;
10970 *64-bit*)
10971 case $host in
10972 x86_64-*kfreebsd*-gnu)
10973 LD="${LD-ld} -m elf_x86_64_fbsd"
10974 ;;
10975 x86_64-*linux*)
10976 LD="${LD-ld} -m elf_x86_64"
10977 ;;
10978 ppc*-*linux*|powerpc*-*linux*)
10979 LD="${LD-ld} -m elf64ppc"
10980 ;;
10981 s390*-*linux*|s390*-*tpf*)
10982 LD="${LD-ld} -m elf64_s390"
10983 ;;
10984 sparc*-*linux*)
10985 LD="${LD-ld} -m elf64_sparc"
10986 ;;
10987 esac
10988 ;;
10989 esac
10990 fi
10991 rm -rf conftest*
10992 ;;
10993
10994*-*-sco3.2v5*)
10995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10996 SAVE_CFLAGS="$CFLAGS"
10997 CFLAGS="$CFLAGS -belf"
cristy8b350f62009-11-15 23:12:43 +000010998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000010999$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011000if test "${lt_cv_cc_needs_belf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011001 $as_echo_n "(cached) " >&6
11002else
11003 ac_ext=c
11004ac_cpp='$CPP $CPPFLAGS'
11005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11007ac_compiler_gnu=$ac_cv_c_compiler_gnu
11008
cristy8b350f62009-11-15 23:12:43 +000011009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011010/* end confdefs.h. */
11011
11012int
11013main ()
11014{
11015
11016 ;
11017 return 0;
11018}
11019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011020if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011021 lt_cv_cc_needs_belf=yes
11022else
cristy8b350f62009-11-15 23:12:43 +000011023 lt_cv_cc_needs_belf=no
cristy3ed852e2009-09-05 21:47:34 +000011024fi
cristy8b350f62009-11-15 23:12:43 +000011025rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011027 ac_ext=c
11028ac_cpp='$CPP $CPPFLAGS'
11029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11031ac_compiler_gnu=$ac_cv_c_compiler_gnu
11032
11033fi
cristy8b350f62009-11-15 23:12:43 +000011034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
cristy3ed852e2009-09-05 21:47:34 +000011035$as_echo "$lt_cv_cc_needs_belf" >&6; }
11036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11038 CFLAGS="$SAVE_CFLAGS"
11039 fi
11040 ;;
11041sparc*-*solaris*)
11042 # Find out which ABI we are using.
11043 echo 'int i;' > conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000011045 (eval $ac_compile) 2>&5
11046 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000011047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11048 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000011049 case `/usr/bin/file conftest.o` in
11050 *64-bit*)
11051 case $lt_cv_prog_gnu_ld in
11052 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11053 *)
11054 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11055 LD="${LD-ld} -64"
11056 fi
11057 ;;
11058 esac
11059 ;;
11060 esac
11061 fi
11062 rm -rf conftest*
11063 ;;
11064esac
11065
11066need_locks="$enable_libtool_lock"
11067
11068
11069 case $host_os in
11070 rhapsody* | darwin*)
11071 if test -n "$ac_tool_prefix"; then
11072 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11073set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011075$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011076if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011077 $as_echo_n "(cached) " >&6
11078else
11079 if test -n "$DSYMUTIL"; then
11080 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11081else
11082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083for as_dir in $PATH
11084do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011087 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011091 break 2
11092 fi
11093done
cristy8b350f62009-11-15 23:12:43 +000011094 done
cristy3ed852e2009-09-05 21:47:34 +000011095IFS=$as_save_IFS
11096
11097fi
11098fi
11099DSYMUTIL=$ac_cv_prog_DSYMUTIL
11100if test -n "$DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011102$as_echo "$DSYMUTIL" >&6; }
11103else
cristy8b350f62009-11-15 23:12:43 +000011104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011105$as_echo "no" >&6; }
11106fi
11107
11108
11109fi
11110if test -z "$ac_cv_prog_DSYMUTIL"; then
11111 ac_ct_DSYMUTIL=$DSYMUTIL
11112 # Extract the first word of "dsymutil", so it can be a program name with args.
11113set dummy dsymutil; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011115$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011116if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011117 $as_echo_n "(cached) " >&6
11118else
11119 if test -n "$ac_ct_DSYMUTIL"; then
11120 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11121else
11122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $PATH
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011127 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
cristy8b350f62009-11-15 23:12:43 +000011130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011131 break 2
11132 fi
11133done
cristy8b350f62009-11-15 23:12:43 +000011134 done
cristy3ed852e2009-09-05 21:47:34 +000011135IFS=$as_save_IFS
11136
11137fi
11138fi
11139ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11140if test -n "$ac_ct_DSYMUTIL"; then
cristy8b350f62009-11-15 23:12:43 +000011141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011142$as_echo "$ac_ct_DSYMUTIL" >&6; }
11143else
cristy8b350f62009-11-15 23:12:43 +000011144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011145$as_echo "no" >&6; }
11146fi
11147
11148 if test "x$ac_ct_DSYMUTIL" = x; then
11149 DSYMUTIL=":"
11150 else
11151 case $cross_compiling:$ac_tool_warned in
11152yes:)
cristy8b350f62009-11-15 23:12:43 +000011153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11155ac_tool_warned=yes ;;
11156esac
11157 DSYMUTIL=$ac_ct_DSYMUTIL
11158 fi
11159else
11160 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11161fi
11162
11163 if test -n "$ac_tool_prefix"; then
11164 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11165set dummy ${ac_tool_prefix}nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011167$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011168if test "${ac_cv_prog_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011169 $as_echo_n "(cached) " >&6
11170else
11171 if test -n "$NMEDIT"; then
11172 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11173else
11174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175for as_dir in $PATH
11176do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
cristy8b350f62009-11-15 23:12:43 +000011182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011183 break 2
11184 fi
11185done
cristy8b350f62009-11-15 23:12:43 +000011186 done
cristy3ed852e2009-09-05 21:47:34 +000011187IFS=$as_save_IFS
11188
11189fi
11190fi
11191NMEDIT=$ac_cv_prog_NMEDIT
11192if test -n "$NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011194$as_echo "$NMEDIT" >&6; }
11195else
cristy8b350f62009-11-15 23:12:43 +000011196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011197$as_echo "no" >&6; }
11198fi
11199
11200
11201fi
11202if test -z "$ac_cv_prog_NMEDIT"; then
11203 ac_ct_NMEDIT=$NMEDIT
11204 # Extract the first word of "nmedit", so it can be a program name with args.
11205set dummy nmedit; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011207$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011208if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011209 $as_echo_n "(cached) " >&6
11210else
11211 if test -n "$ac_ct_NMEDIT"; then
11212 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11213else
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011219 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11221 ac_cv_prog_ac_ct_NMEDIT="nmedit"
cristy8b350f62009-11-15 23:12:43 +000011222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011223 break 2
11224 fi
11225done
cristy8b350f62009-11-15 23:12:43 +000011226 done
cristy3ed852e2009-09-05 21:47:34 +000011227IFS=$as_save_IFS
11228
11229fi
11230fi
11231ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11232if test -n "$ac_ct_NMEDIT"; then
cristy8b350f62009-11-15 23:12:43 +000011233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
cristy3ed852e2009-09-05 21:47:34 +000011234$as_echo "$ac_ct_NMEDIT" >&6; }
11235else
cristy8b350f62009-11-15 23:12:43 +000011236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011237$as_echo "no" >&6; }
11238fi
11239
11240 if test "x$ac_ct_NMEDIT" = x; then
11241 NMEDIT=":"
11242 else
11243 case $cross_compiling:$ac_tool_warned in
11244yes:)
cristy8b350f62009-11-15 23:12:43 +000011245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11247ac_tool_warned=yes ;;
11248esac
11249 NMEDIT=$ac_ct_NMEDIT
11250 fi
11251else
11252 NMEDIT="$ac_cv_prog_NMEDIT"
11253fi
11254
11255 if test -n "$ac_tool_prefix"; then
11256 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11257set dummy ${ac_tool_prefix}lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011259$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011260if test "${ac_cv_prog_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011261 $as_echo_n "(cached) " >&6
11262else
11263 if test -n "$LIPO"; then
11264 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11265else
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011271 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11273 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
cristy8b350f62009-11-15 23:12:43 +000011274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011275 break 2
11276 fi
11277done
cristy8b350f62009-11-15 23:12:43 +000011278 done
cristy3ed852e2009-09-05 21:47:34 +000011279IFS=$as_save_IFS
11280
11281fi
11282fi
11283LIPO=$ac_cv_prog_LIPO
11284if test -n "$LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011286$as_echo "$LIPO" >&6; }
11287else
cristy8b350f62009-11-15 23:12:43 +000011288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011289$as_echo "no" >&6; }
11290fi
11291
11292
11293fi
11294if test -z "$ac_cv_prog_LIPO"; then
11295 ac_ct_LIPO=$LIPO
11296 # Extract the first word of "lipo", so it can be a program name with args.
11297set dummy lipo; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011299$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011300if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011301 $as_echo_n "(cached) " >&6
11302else
11303 if test -n "$ac_ct_LIPO"; then
11304 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11305else
11306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313 ac_cv_prog_ac_ct_LIPO="lipo"
cristy8b350f62009-11-15 23:12:43 +000011314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011315 break 2
11316 fi
11317done
cristy8b350f62009-11-15 23:12:43 +000011318 done
cristy3ed852e2009-09-05 21:47:34 +000011319IFS=$as_save_IFS
11320
11321fi
11322fi
11323ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11324if test -n "$ac_ct_LIPO"; then
cristy8b350f62009-11-15 23:12:43 +000011325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
cristy3ed852e2009-09-05 21:47:34 +000011326$as_echo "$ac_ct_LIPO" >&6; }
11327else
cristy8b350f62009-11-15 23:12:43 +000011328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011329$as_echo "no" >&6; }
11330fi
11331
11332 if test "x$ac_ct_LIPO" = x; then
11333 LIPO=":"
11334 else
11335 case $cross_compiling:$ac_tool_warned in
11336yes:)
cristy8b350f62009-11-15 23:12:43 +000011337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11339ac_tool_warned=yes ;;
11340esac
11341 LIPO=$ac_ct_LIPO
11342 fi
11343else
11344 LIPO="$ac_cv_prog_LIPO"
11345fi
11346
11347 if test -n "$ac_tool_prefix"; then
11348 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11349set dummy ${ac_tool_prefix}otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011351$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011352if test "${ac_cv_prog_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011353 $as_echo_n "(cached) " >&6
11354else
11355 if test -n "$OTOOL"; then
11356 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11357else
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11365 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
cristy8b350f62009-11-15 23:12:43 +000011366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011367 break 2
11368 fi
11369done
cristy8b350f62009-11-15 23:12:43 +000011370 done
cristy3ed852e2009-09-05 21:47:34 +000011371IFS=$as_save_IFS
11372
11373fi
11374fi
11375OTOOL=$ac_cv_prog_OTOOL
11376if test -n "$OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011378$as_echo "$OTOOL" >&6; }
11379else
cristy8b350f62009-11-15 23:12:43 +000011380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011381$as_echo "no" >&6; }
11382fi
11383
11384
11385fi
11386if test -z "$ac_cv_prog_OTOOL"; then
11387 ac_ct_OTOOL=$OTOOL
11388 # Extract the first word of "otool", so it can be a program name with args.
11389set dummy otool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011391$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011392if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011393 $as_echo_n "(cached) " >&6
11394else
11395 if test -n "$ac_ct_OTOOL"; then
11396 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11397else
11398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399for as_dir in $PATH
11400do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011403 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11405 ac_cv_prog_ac_ct_OTOOL="otool"
cristy8b350f62009-11-15 23:12:43 +000011406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011407 break 2
11408 fi
11409done
cristy8b350f62009-11-15 23:12:43 +000011410 done
cristy3ed852e2009-09-05 21:47:34 +000011411IFS=$as_save_IFS
11412
11413fi
11414fi
11415ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11416if test -n "$ac_ct_OTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000011417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000011418$as_echo "$ac_ct_OTOOL" >&6; }
11419else
cristy8b350f62009-11-15 23:12:43 +000011420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011421$as_echo "no" >&6; }
11422fi
11423
11424 if test "x$ac_ct_OTOOL" = x; then
11425 OTOOL=":"
11426 else
11427 case $cross_compiling:$ac_tool_warned in
11428yes:)
cristy8b350f62009-11-15 23:12:43 +000011429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11431ac_tool_warned=yes ;;
11432esac
11433 OTOOL=$ac_ct_OTOOL
11434 fi
11435else
11436 OTOOL="$ac_cv_prog_OTOOL"
11437fi
11438
11439 if test -n "$ac_tool_prefix"; then
11440 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11441set dummy ${ac_tool_prefix}otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011443$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011444if test "${ac_cv_prog_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011445 $as_echo_n "(cached) " >&6
11446else
11447 if test -n "$OTOOL64"; then
11448 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11449else
11450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451for as_dir in $PATH
11452do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11457 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
cristy8b350f62009-11-15 23:12:43 +000011458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011459 break 2
11460 fi
11461done
cristy8b350f62009-11-15 23:12:43 +000011462 done
cristy3ed852e2009-09-05 21:47:34 +000011463IFS=$as_save_IFS
11464
11465fi
11466fi
11467OTOOL64=$ac_cv_prog_OTOOL64
11468if test -n "$OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011470$as_echo "$OTOOL64" >&6; }
11471else
cristy8b350f62009-11-15 23:12:43 +000011472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011473$as_echo "no" >&6; }
11474fi
11475
11476
11477fi
11478if test -z "$ac_cv_prog_OTOOL64"; then
11479 ac_ct_OTOOL64=$OTOOL64
11480 # Extract the first word of "otool64", so it can be a program name with args.
11481set dummy otool64; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000011482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000011483$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011484if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011485 $as_echo_n "(cached) " >&6
11486else
11487 if test -n "$ac_ct_OTOOL64"; then
11488 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11489else
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000011495 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000011496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_prog_ac_ct_OTOOL64="otool64"
cristy8b350f62009-11-15 23:12:43 +000011498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000011499 break 2
11500 fi
11501done
cristy8b350f62009-11-15 23:12:43 +000011502 done
cristy3ed852e2009-09-05 21:47:34 +000011503IFS=$as_save_IFS
11504
11505fi
11506fi
11507ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11508if test -n "$ac_ct_OTOOL64"; then
cristy8b350f62009-11-15 23:12:43 +000011509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
cristy3ed852e2009-09-05 21:47:34 +000011510$as_echo "$ac_ct_OTOOL64" >&6; }
11511else
cristy8b350f62009-11-15 23:12:43 +000011512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000011513$as_echo "no" >&6; }
11514fi
11515
11516 if test "x$ac_ct_OTOOL64" = x; then
11517 OTOOL64=":"
11518 else
11519 case $cross_compiling:$ac_tool_warned in
11520yes:)
cristy8b350f62009-11-15 23:12:43 +000011521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000011522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11523ac_tool_warned=yes ;;
11524esac
11525 OTOOL64=$ac_ct_OTOOL64
11526 fi
11527else
11528 OTOOL64="$ac_cv_prog_OTOOL64"
11529fi
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
cristy8b350f62009-11-15 23:12:43 +000011557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011558$as_echo_n "checking for -single_module linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011559if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011560 $as_echo_n "(cached) " >&6
11561else
11562 lt_cv_apple_cc_single_mod=no
11563 if test -z "${LT_MULTI_MODULE}"; then
11564 # By default we will add the -single_module flag. You can override
11565 # by either setting the environment variable LT_MULTI_MODULE
11566 # non-empty at configure time, or by adding -multi_module to the
11567 # link flags.
11568 rm -rf libconftest.dylib*
11569 echo "int foo(void){return 1;}" > conftest.c
11570 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11571-dynamiclib -Wl,-single_module conftest.c" >&5
11572 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11573 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11574 _lt_result=$?
11575 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11576 lt_cv_apple_cc_single_mod=yes
11577 else
11578 cat conftest.err >&5
11579 fi
11580 rm -rf libconftest.dylib*
11581 rm -f conftest.*
11582 fi
11583fi
cristy8b350f62009-11-15 23:12:43 +000011584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
cristy3ed852e2009-09-05 21:47:34 +000011585$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy8b350f62009-11-15 23:12:43 +000011586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
cristy3ed852e2009-09-05 21:47:34 +000011587$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011588if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011589 $as_echo_n "(cached) " >&6
11590else
11591 lt_cv_ld_exported_symbols_list=no
11592 save_LDFLAGS=$LDFLAGS
11593 echo "_main" > conftest.sym
11594 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
cristy8b350f62009-11-15 23:12:43 +000011595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011596/* end confdefs.h. */
11597
11598int
11599main ()
11600{
11601
11602 ;
11603 return 0;
11604}
11605_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011606if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011607 lt_cv_ld_exported_symbols_list=yes
11608else
cristy8b350f62009-11-15 23:12:43 +000011609 lt_cv_ld_exported_symbols_list=no
cristy3ed852e2009-09-05 21:47:34 +000011610fi
cristy8b350f62009-11-15 23:12:43 +000011611rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011613 LDFLAGS="$save_LDFLAGS"
11614
11615fi
cristy8b350f62009-11-15 23:12:43 +000011616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
cristy3ed852e2009-09-05 21:47:34 +000011617$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11618 case $host_os in
11619 rhapsody* | darwin1.[012])
11620 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11621 darwin1.*)
11622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11623 darwin*) # darwin 5.x on
11624 # if running on 10.5 or later, the deployment target defaults
11625 # to the OS version, if on x86, and 10.4, the deployment
11626 # target defaults to 10.4. Don't you love it?
11627 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11628 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11629 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11630 10.[012]*)
11631 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11632 10.*)
11633 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11634 esac
11635 ;;
11636 esac
11637 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11638 _lt_dar_single_mod='$single_module'
11639 fi
11640 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11641 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11642 else
11643 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11644 fi
cristy18304f92009-11-22 15:48:26 +000011645 if test "$DSYMUTIL" != ":"; then
cristy3ed852e2009-09-05 21:47:34 +000011646 _lt_dsymutil='~$DSYMUTIL $lib || :'
11647 else
11648 _lt_dsymutil=
11649 fi
11650 ;;
11651 esac
11652
cristy3ed852e2009-09-05 21:47:34 +000011653for ac_header in dlfcn.h
cristy8b350f62009-11-15 23:12:43 +000011654do :
11655 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11656"
11657if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000011658 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011659#define HAVE_DLFCN_H 1
cristy3ed852e2009-09-05 21:47:34 +000011660_ACEOF
11661
11662fi
11663
11664done
11665
11666
11667
cristy18304f92009-11-22 15:48:26 +000011668ac_ext=cpp
11669ac_cpp='$CXXCPP $CPPFLAGS'
11670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11673if test -z "$CXX"; then
11674 if test -n "$CCC"; then
11675 CXX=$CCC
11676 else
11677 if test -n "$ac_tool_prefix"; then
11678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11679 do
11680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
11684if test "${ac_cv_prog_CXX+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686else
11687 if test -n "$CXX"; then
11688 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11697 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702 done
11703IFS=$as_save_IFS
11704
11705fi
11706fi
11707CXX=$ac_cv_prog_CXX
11708if test -n "$CXX"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11710$as_echo "$CXX" >&6; }
11711else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
11714fi
11715
11716
11717 test -n "$CXX" && break
11718 done
11719fi
11720if test -z "$CXX"; then
11721 ac_ct_CXX=$CXX
11722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11723do
11724 # Extract the first word of "$ac_prog", so it can be a program name with args.
11725set dummy $ac_prog; ac_word=$2
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727$as_echo_n "checking for $ac_word... " >&6; }
11728if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11730else
11731 if test -n "$ac_ct_CXX"; then
11732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11733else
11734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in $PATH
11736do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
11739 for ac_exec_ext in '' $ac_executable_extensions; do
11740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11741 ac_cv_prog_ac_ct_CXX="$ac_prog"
11742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 break 2
11744 fi
11745done
11746 done
11747IFS=$as_save_IFS
11748
11749fi
11750fi
11751ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11752if test -n "$ac_ct_CXX"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11754$as_echo "$ac_ct_CXX" >&6; }
11755else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
11758fi
11759
11760
11761 test -n "$ac_ct_CXX" && break
11762done
11763
11764 if test "x$ac_ct_CXX" = x; then
11765 CXX="g++"
11766 else
11767 case $cross_compiling:$ac_tool_warned in
11768yes:)
11769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11771ac_tool_warned=yes ;;
11772esac
11773 CXX=$ac_ct_CXX
11774 fi
11775fi
11776
11777 fi
11778fi
11779# Provide some information about the compiler.
11780$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11781set X $ac_compile
11782ac_compiler=$2
11783for ac_option in --version -v -V -qversion; do
11784 { { ac_try="$ac_compiler $ac_option >&5"
11785case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11788esac
11789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11790$as_echo "$ac_try_echo"; } >&5
11791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11792 ac_status=$?
11793 if test -s conftest.err; then
11794 sed '10a\
11795... rest of stderr output deleted ...
11796 10q' conftest.err >conftest.er1
11797 cat conftest.er1 >&5
11798 fi
11799 rm -f conftest.er1 conftest.err
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; }
11802done
11803
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11805$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11806if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808else
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h. */
11811
11812int
11813main ()
11814{
11815#ifndef __GNUC__
11816 choke me
11817#endif
11818
11819 ;
11820 return 0;
11821}
11822_ACEOF
11823if ac_fn_cxx_try_compile "$LINENO"; then :
11824 ac_compiler_gnu=yes
11825else
11826 ac_compiler_gnu=no
11827fi
11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11830
11831fi
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11833$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11834if test $ac_compiler_gnu = yes; then
11835 GXX=yes
11836else
11837 GXX=
11838fi
11839ac_test_CXXFLAGS=${CXXFLAGS+set}
11840ac_save_CXXFLAGS=$CXXFLAGS
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11842$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11843if test "${ac_cv_prog_cxx_g+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845else
11846 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11847 ac_cxx_werror_flag=yes
11848 ac_cv_prog_cxx_g=no
11849 CXXFLAGS="-g"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851/* end confdefs.h. */
11852
11853int
11854main ()
11855{
11856
11857 ;
11858 return 0;
11859}
11860_ACEOF
11861if ac_fn_cxx_try_compile "$LINENO"; then :
11862 ac_cv_prog_cxx_g=yes
11863else
11864 CXXFLAGS=""
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h. */
11867
11868int
11869main ()
11870{
11871
11872 ;
11873 return 0;
11874}
11875_ACEOF
11876if ac_fn_cxx_try_compile "$LINENO"; then :
11877
11878else
11879 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11880 CXXFLAGS="-g"
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882/* end confdefs.h. */
11883
11884int
11885main ()
11886{
11887
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892if ac_fn_cxx_try_compile "$LINENO"; then :
11893 ac_cv_prog_cxx_g=yes
11894fi
11895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898fi
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11901fi
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11903$as_echo "$ac_cv_prog_cxx_g" >&6; }
11904if test "$ac_test_CXXFLAGS" = set; then
11905 CXXFLAGS=$ac_save_CXXFLAGS
11906elif test $ac_cv_prog_cxx_g = yes; then
11907 if test "$GXX" = yes; then
11908 CXXFLAGS="-g -O2"
11909 else
11910 CXXFLAGS="-g"
11911 fi
11912else
11913 if test "$GXX" = yes; then
11914 CXXFLAGS="-O2"
11915 else
11916 CXXFLAGS=
11917 fi
11918fi
11919ac_ext=c
11920ac_cpp='$CPP $CPPFLAGS'
11921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11923ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924
11925depcc="$CXX" am_compiler_list=
11926
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11928$as_echo_n "checking dependency style of $depcc... " >&6; }
11929if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931else
11932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11933 # We make a subdir and do the tests there. Otherwise we can end up
11934 # making bogus files that we don't know about and never remove. For
11935 # instance it was reported that on HP-UX the gcc test will end up
11936 # making a dummy file named `D' -- because `-MD' means `put the output
11937 # in D'.
11938 mkdir conftest.dir
11939 # Copy depcomp to subdir because otherwise we won't find it if we're
11940 # using a relative directory.
11941 cp "$am_depcomp" conftest.dir
11942 cd conftest.dir
11943 # We will build objects and dependencies in a subdirectory because
11944 # it helps to detect inapplicable dependency modes. For instance
11945 # both Tru64's cc and ICC support -MD to output dependencies as a
11946 # side effect of compilation, but ICC will put the dependencies in
11947 # the current directory while Tru64 will put them in the object
11948 # directory.
11949 mkdir sub
11950
11951 am_cv_CXX_dependencies_compiler_type=none
11952 if test "$am_compiler_list" = ""; then
11953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11954 fi
11955 am__universal=false
11956 case " $depcc " in #(
11957 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11958 esac
11959
11960 for depmode in $am_compiler_list; do
11961 # Setup a source with many dependencies, because some compilers
11962 # like to wrap large dependency lists on column 80 (with \), and
11963 # we should not choose a depcomp mode which is confused by this.
11964 #
11965 # We need to recreate these files for each test, as the compiler may
11966 # overwrite some of them when testing with obscure command lines.
11967 # This happens at least with the AIX C compiler.
11968 : > sub/conftest.c
11969 for i in 1 2 3 4 5 6; do
11970 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11971 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11972 # Solaris 8's {/usr,}/bin/sh.
11973 touch sub/conftst$i.h
11974 done
11975 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11976
11977 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11978 # mode. It turns out that the SunPro C++ compiler does not properly
11979 # handle `-M -o', and we need to detect this. Also, some Intel
11980 # versions had trouble with output in subdirs
11981 am__obj=sub/conftest.${OBJEXT-o}
11982 am__minus_obj="-o $am__obj"
11983 case $depmode in
11984 gcc)
11985 # This depmode causes a compiler race in universal mode.
11986 test "$am__universal" = false || continue
11987 ;;
11988 nosideeffect)
11989 # after this tag, mechanisms are not by side-effect, so they'll
11990 # only be used when explicitly requested
11991 if test "x$enable_dependency_tracking" = xyes; then
11992 continue
11993 else
11994 break
11995 fi
11996 ;;
11997 msvisualcpp | msvcmsys)
11998 # This compiler won't grok `-c -o', but also, the minuso test has
11999 # not run yet. These depmodes are late enough in the game, and
12000 # so weak that their functioning should not be impacted.
12001 am__obj=conftest.${OBJEXT-o}
12002 am__minus_obj=
12003 ;;
12004 none) break ;;
12005 esac
12006 if depmode=$depmode \
12007 source=sub/conftest.c object=$am__obj \
12008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12009 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12010 >/dev/null 2>conftest.err &&
12011 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12012 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12013 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12014 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12015 # icc doesn't choke on unknown options, it will just issue warnings
12016 # or remarks (even with -Werror). So we grep stderr for any message
12017 # that says an option was ignored or not supported.
12018 # When given -MP, icc 7.0 and 7.1 complain thusly:
12019 # icc: Command line warning: ignoring option '-M'; no argument required
12020 # The diagnosis changed in icc 8.0:
12021 # icc: Command line remark: option '-MP' not supported
12022 if (grep 'ignoring option' conftest.err ||
12023 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12024 am_cv_CXX_dependencies_compiler_type=$depmode
12025 break
12026 fi
12027 fi
12028 done
12029
12030 cd ..
12031 rm -rf conftest.dir
12032else
12033 am_cv_CXX_dependencies_compiler_type=none
12034fi
12035
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12038$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12039CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12040
12041 if
12042 test "x$enable_dependency_tracking" != xno \
12043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12044 am__fastdepCXX_TRUE=
12045 am__fastdepCXX_FALSE='#'
12046else
12047 am__fastdepCXX_TRUE='#'
12048 am__fastdepCXX_FALSE=
12049fi
12050
12051
12052if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12053 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12054 (test "X$CXX" != "Xg++"))) ; then
12055 ac_ext=cpp
12056ac_cpp='$CXXCPP $CPPFLAGS'
12057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12061$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12062if test -z "$CXXCPP"; then
12063 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065else
12066 # Double quotes because CXXCPP needs to be expanded
12067 for CXXCPP in "$CXX -E" "/lib/cpp"
12068 do
12069 ac_preproc_ok=false
12070for ac_cxx_preproc_warn_flag in '' yes
12071do
12072 # Use a header file that comes with gcc, so configuring glibc
12073 # with a fresh cross-compiler works.
12074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 # <limits.h> exists even on freestanding compilers.
12076 # On the NeXT, cc -E runs the code through the compiler's parser,
12077 # not just through cpp. "Syntax error" is here to catch this case.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079/* end confdefs.h. */
12080#ifdef __STDC__
12081# include <limits.h>
12082#else
12083# include <assert.h>
12084#endif
12085 Syntax error
12086_ACEOF
12087if ac_fn_cxx_try_cpp "$LINENO"; then :
12088
12089else
12090 # Broken: fails on valid input.
12091continue
12092fi
12093rm -f conftest.err conftest.$ac_ext
12094
12095 # OK, works on sane cases. Now check whether nonexistent headers
12096 # can be detected and how.
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h. */
12099#include <ac_nonexistent.h>
12100_ACEOF
12101if ac_fn_cxx_try_cpp "$LINENO"; then :
12102 # Broken: success on invalid input.
12103continue
12104else
12105 # Passes both tests.
12106ac_preproc_ok=:
12107break
12108fi
12109rm -f conftest.err conftest.$ac_ext
12110
12111done
12112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12113rm -f conftest.err conftest.$ac_ext
12114if $ac_preproc_ok; then :
12115 break
12116fi
12117
12118 done
12119 ac_cv_prog_CXXCPP=$CXXCPP
12120
12121fi
12122 CXXCPP=$ac_cv_prog_CXXCPP
12123else
12124 ac_cv_prog_CXXCPP=$CXXCPP
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12127$as_echo "$CXXCPP" >&6; }
12128ac_preproc_ok=false
12129for ac_cxx_preproc_warn_flag in '' yes
12130do
12131 # Use a header file that comes with gcc, so configuring glibc
12132 # with a fresh cross-compiler works.
12133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12134 # <limits.h> exists even on freestanding compilers.
12135 # On the NeXT, cc -E runs the code through the compiler's parser,
12136 # not just through cpp. "Syntax error" is here to catch this case.
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138/* end confdefs.h. */
12139#ifdef __STDC__
12140# include <limits.h>
12141#else
12142# include <assert.h>
12143#endif
12144 Syntax error
12145_ACEOF
12146if ac_fn_cxx_try_cpp "$LINENO"; then :
12147
12148else
12149 # Broken: fails on valid input.
12150continue
12151fi
12152rm -f conftest.err conftest.$ac_ext
12153
12154 # OK, works on sane cases. Now check whether nonexistent headers
12155 # can be detected and how.
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h. */
12158#include <ac_nonexistent.h>
12159_ACEOF
12160if ac_fn_cxx_try_cpp "$LINENO"; then :
12161 # Broken: success on invalid input.
12162continue
12163else
12164 # Passes both tests.
12165ac_preproc_ok=:
12166break
12167fi
12168rm -f conftest.err conftest.$ac_ext
12169
12170done
12171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12172rm -f conftest.err conftest.$ac_ext
12173if $ac_preproc_ok; then :
12174
12175else
12176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12178_lt_caught_CXX_error=yes; }
12179fi
12180
12181ac_ext=c
12182ac_cpp='$CPP $CPPFLAGS'
12183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186
12187else
12188 _lt_caught_CXX_error=yes
12189fi
12190
12191
cristy3ed852e2009-09-05 21:47:34 +000012192
12193
12194
12195# Set options
12196enable_win32_dll=yes
12197
12198case $host in
cristy18304f92009-11-22 15:48:26 +000012199*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
cristy3ed852e2009-09-05 21:47:34 +000012200 if test -n "$ac_tool_prefix"; then
12201 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12202set dummy ${ac_tool_prefix}as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012204$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012205if test "${ac_cv_prog_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$AS"; then
12209 ac_cv_prog_AS="$AS" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_AS="${ac_tool_prefix}as"
cristy8b350f62009-11-15 23:12:43 +000012219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012220 break 2
12221 fi
12222done
cristy8b350f62009-11-15 23:12:43 +000012223 done
cristy3ed852e2009-09-05 21:47:34 +000012224IFS=$as_save_IFS
12225
12226fi
12227fi
12228AS=$ac_cv_prog_AS
12229if test -n "$AS"; then
cristy8b350f62009-11-15 23:12:43 +000012230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012231$as_echo "$AS" >&6; }
12232else
cristy8b350f62009-11-15 23:12:43 +000012233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012234$as_echo "no" >&6; }
12235fi
12236
12237
12238fi
12239if test -z "$ac_cv_prog_AS"; then
12240 ac_ct_AS=$AS
12241 # Extract the first word of "as", so it can be a program name with args.
12242set dummy as; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012244$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012245if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012246 $as_echo_n "(cached) " >&6
12247else
12248 if test -n "$ac_ct_AS"; then
12249 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012256 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12258 ac_cv_prog_ac_ct_AS="as"
cristy8b350f62009-11-15 23:12:43 +000012259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012260 break 2
12261 fi
12262done
cristy8b350f62009-11-15 23:12:43 +000012263 done
cristy3ed852e2009-09-05 21:47:34 +000012264IFS=$as_save_IFS
12265
12266fi
12267fi
12268ac_ct_AS=$ac_cv_prog_ac_ct_AS
12269if test -n "$ac_ct_AS"; then
cristy8b350f62009-11-15 23:12:43 +000012270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
cristy3ed852e2009-09-05 21:47:34 +000012271$as_echo "$ac_ct_AS" >&6; }
12272else
cristy8b350f62009-11-15 23:12:43 +000012273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012274$as_echo "no" >&6; }
12275fi
12276
12277 if test "x$ac_ct_AS" = x; then
12278 AS="false"
12279 else
12280 case $cross_compiling:$ac_tool_warned in
12281yes:)
cristy8b350f62009-11-15 23:12:43 +000012282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12284ac_tool_warned=yes ;;
12285esac
12286 AS=$ac_ct_AS
12287 fi
12288else
12289 AS="$ac_cv_prog_AS"
12290fi
12291
12292 if test -n "$ac_tool_prefix"; then
12293 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12294set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012296$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012297if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012298 $as_echo_n "(cached) " >&6
12299else
12300 if test -n "$DLLTOOL"; then
12301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12302else
12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12310 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
cristy8b350f62009-11-15 23:12:43 +000012311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012312 break 2
12313 fi
12314done
cristy8b350f62009-11-15 23:12:43 +000012315 done
cristy3ed852e2009-09-05 21:47:34 +000012316IFS=$as_save_IFS
12317
12318fi
12319fi
12320DLLTOOL=$ac_cv_prog_DLLTOOL
12321if test -n "$DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012323$as_echo "$DLLTOOL" >&6; }
12324else
cristy8b350f62009-11-15 23:12:43 +000012325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012326$as_echo "no" >&6; }
12327fi
12328
12329
12330fi
12331if test -z "$ac_cv_prog_DLLTOOL"; then
12332 ac_ct_DLLTOOL=$DLLTOOL
12333 # Extract the first word of "dlltool", so it can be a program name with args.
12334set dummy dlltool; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012336$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012337if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012338 $as_echo_n "(cached) " >&6
12339else
12340 if test -n "$ac_ct_DLLTOOL"; then
12341 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12342else
12343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344for as_dir in $PATH
12345do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012348 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12350 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
cristy8b350f62009-11-15 23:12:43 +000012351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012352 break 2
12353 fi
12354done
cristy8b350f62009-11-15 23:12:43 +000012355 done
cristy3ed852e2009-09-05 21:47:34 +000012356IFS=$as_save_IFS
12357
12358fi
12359fi
12360ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12361if test -n "$ac_ct_DLLTOOL"; then
cristy8b350f62009-11-15 23:12:43 +000012362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
cristy3ed852e2009-09-05 21:47:34 +000012363$as_echo "$ac_ct_DLLTOOL" >&6; }
12364else
cristy8b350f62009-11-15 23:12:43 +000012365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012366$as_echo "no" >&6; }
12367fi
12368
12369 if test "x$ac_ct_DLLTOOL" = x; then
12370 DLLTOOL="false"
12371 else
12372 case $cross_compiling:$ac_tool_warned in
12373yes:)
cristy8b350f62009-11-15 23:12:43 +000012374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12376ac_tool_warned=yes ;;
12377esac
12378 DLLTOOL=$ac_ct_DLLTOOL
12379 fi
12380else
12381 DLLTOOL="$ac_cv_prog_DLLTOOL"
12382fi
12383
12384 if test -n "$ac_tool_prefix"; then
12385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12386set dummy ${ac_tool_prefix}objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012388$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012389if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012390 $as_echo_n "(cached) " >&6
12391else
12392 if test -n "$OBJDUMP"; then
12393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12394else
12395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396for as_dir in $PATH
12397do
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012400 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
cristy8b350f62009-11-15 23:12:43 +000012403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012404 break 2
12405 fi
12406done
cristy8b350f62009-11-15 23:12:43 +000012407 done
cristy3ed852e2009-09-05 21:47:34 +000012408IFS=$as_save_IFS
12409
12410fi
12411fi
12412OBJDUMP=$ac_cv_prog_OBJDUMP
12413if test -n "$OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012415$as_echo "$OBJDUMP" >&6; }
12416else
cristy8b350f62009-11-15 23:12:43 +000012417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012418$as_echo "no" >&6; }
12419fi
12420
12421
12422fi
12423if test -z "$ac_cv_prog_OBJDUMP"; then
12424 ac_ct_OBJDUMP=$OBJDUMP
12425 # Extract the first word of "objdump", so it can be a program name with args.
12426set dummy objdump; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000012427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000012428$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012429if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012430 $as_echo_n "(cached) " >&6
12431else
12432 if test -n "$ac_ct_OBJDUMP"; then
12433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12434else
12435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436for as_dir in $PATH
12437do
12438 IFS=$as_save_IFS
12439 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000012440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000012441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
cristy8b350f62009-11-15 23:12:43 +000012443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000012444 break 2
12445 fi
12446done
cristy8b350f62009-11-15 23:12:43 +000012447 done
cristy3ed852e2009-09-05 21:47:34 +000012448IFS=$as_save_IFS
12449
12450fi
12451fi
12452ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12453if test -n "$ac_ct_OBJDUMP"; then
cristy8b350f62009-11-15 23:12:43 +000012454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000012455$as_echo "$ac_ct_OBJDUMP" >&6; }
12456else
cristy8b350f62009-11-15 23:12:43 +000012457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012458$as_echo "no" >&6; }
12459fi
12460
12461 if test "x$ac_ct_OBJDUMP" = x; then
12462 OBJDUMP="false"
12463 else
12464 case $cross_compiling:$ac_tool_warned in
12465yes:)
cristy8b350f62009-11-15 23:12:43 +000012466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000012467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12468ac_tool_warned=yes ;;
12469esac
12470 OBJDUMP=$ac_ct_OBJDUMP
12471 fi
12472else
12473 OBJDUMP="$ac_cv_prog_OBJDUMP"
12474fi
12475
12476 ;;
12477esac
12478
12479test -z "$AS" && AS=as
12480
12481
12482
12483
12484
12485test -z "$DLLTOOL" && DLLTOOL=dlltool
12486
12487
12488
12489
12490
12491test -z "$OBJDUMP" && OBJDUMP=objdump
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501 # Check whether --enable-shared was given.
cristy8b350f62009-11-15 23:12:43 +000012502if test "${enable_shared+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012503 enableval=$enable_shared; p=${PACKAGE-default}
12504 case $enableval in
12505 yes) enable_shared=yes ;;
12506 no) enable_shared=no ;;
12507 *)
12508 enable_shared=no
12509 # Look at the argument we got. We use all the common list separators.
12510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12511 for pkg in $enableval; do
12512 IFS="$lt_save_ifs"
12513 if test "X$pkg" = "X$p"; then
12514 enable_shared=yes
12515 fi
12516 done
12517 IFS="$lt_save_ifs"
12518 ;;
12519 esac
12520else
12521 enable_shared=yes
12522fi
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532 # Check whether --enable-static was given.
cristy8b350f62009-11-15 23:12:43 +000012533if test "${enable_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012534 enableval=$enable_static; p=${PACKAGE-default}
12535 case $enableval in
12536 yes) enable_static=yes ;;
12537 no) enable_static=no ;;
12538 *)
12539 enable_static=no
12540 # Look at the argument we got. We use all the common list separators.
12541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12542 for pkg in $enableval; do
12543 IFS="$lt_save_ifs"
12544 if test "X$pkg" = "X$p"; then
12545 enable_static=yes
12546 fi
12547 done
12548 IFS="$lt_save_ifs"
12549 ;;
12550 esac
12551else
12552 enable_static=yes
12553fi
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564# Check whether --with-pic was given.
cristy8b350f62009-11-15 23:12:43 +000012565if test "${with_pic+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012566 withval=$with_pic; pic_mode="$withval"
12567else
12568 pic_mode=default
12569fi
12570
12571
12572test -z "$pic_mode" && pic_mode=default
12573
12574
12575
12576
12577
12578
12579
12580 # Check whether --enable-fast-install was given.
cristy8b350f62009-11-15 23:12:43 +000012581if test "${enable_fast_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012582 enableval=$enable_fast_install; p=${PACKAGE-default}
12583 case $enableval in
12584 yes) enable_fast_install=yes ;;
12585 no) enable_fast_install=no ;;
12586 *)
12587 enable_fast_install=no
12588 # Look at the argument we got. We use all the common list separators.
12589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12590 for pkg in $enableval; do
12591 IFS="$lt_save_ifs"
12592 if test "X$pkg" = "X$p"; then
12593 enable_fast_install=yes
12594 fi
12595 done
12596 IFS="$lt_save_ifs"
12597 ;;
12598 esac
12599else
12600 enable_fast_install=yes
12601fi
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613# This can be used to rebuild libtool when needed
12614LIBTOOL_DEPS="$ltmain"
12615
12616# Always use our own libtool.
12617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643test -z "$LN_S" && LN_S="ln -s"
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658if test -n "${ZSH_VERSION+set}" ; then
12659 setopt NO_GLOB_SUBST
12660fi
12661
cristy8b350f62009-11-15 23:12:43 +000012662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012663$as_echo_n "checking for objdir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012664if test "${lt_cv_objdir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012665 $as_echo_n "(cached) " >&6
12666else
12667 rm -f .libs 2>/dev/null
12668mkdir .libs 2>/dev/null
12669if test -d .libs; then
12670 lt_cv_objdir=.libs
12671else
12672 # MS-DOS does not allow filenames that begin with a dot.
12673 lt_cv_objdir=_libs
12674fi
12675rmdir .libs 2>/dev/null
12676fi
cristy8b350f62009-11-15 23:12:43 +000012677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
cristy3ed852e2009-09-05 21:47:34 +000012678$as_echo "$lt_cv_objdir" >&6; }
12679objdir=$lt_cv_objdir
12680
12681
12682
12683
12684
12685cat >>confdefs.h <<_ACEOF
12686#define LT_OBJDIR "$lt_cv_objdir/"
12687_ACEOF
12688
12689
12690
12691
cristy18304f92009-11-22 15:48:26 +000012692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
cristy3ed852e2009-09-05 21:47:34 +000012705case $host_os in
12706aix3*)
12707 # AIX sometimes has problems with the GCC collect2 program. For some
12708 # reason, if we set the COLLECT_NAMES environment variable, the problems
12709 # vanish in a puff of smoke.
12710 if test "X${COLLECT_NAMES+set}" != Xset; then
12711 COLLECT_NAMES=
12712 export COLLECT_NAMES
12713 fi
12714 ;;
12715esac
12716
cristy18304f92009-11-22 15:48:26 +000012717# Sed substitution that helps us do robust quoting. It backslashifies
12718# metacharacters that are still active within double-quoted strings.
12719sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12720
12721# Same as above, but do not quote variable references.
12722double_quote_subst='s/\(["`\\]\)/\\\1/g'
12723
12724# Sed substitution to delay expansion of an escaped shell variable in a
12725# double_quote_subst'ed string.
12726delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12727
12728# Sed substitution to delay expansion of an escaped single quote.
12729delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12730
12731# Sed substitution to avoid accidental globbing in evaled expressions
12732no_glob_subst='s/\*/\\\*/g'
12733
cristy3ed852e2009-09-05 21:47:34 +000012734# Global variables:
12735ofile=libtool
12736can_build_shared=yes
12737
12738# All known linkers require a `.a' archive for static linking (except MSVC,
12739# which needs '.lib').
12740libext=a
12741
12742with_gnu_ld="$lt_cv_prog_gnu_ld"
12743
12744old_CC="$CC"
12745old_CFLAGS="$CFLAGS"
12746
12747# Set sane defaults for various variables
12748test -z "$CC" && CC=cc
12749test -z "$LTCC" && LTCC=$CC
12750test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12751test -z "$LD" && LD=ld
12752test -z "$ac_objext" && ac_objext=o
12753
12754for cc_temp in $compiler""; do
12755 case $cc_temp in
12756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12758 \-*) ;;
12759 *) break;;
12760 esac
12761done
cristy18304f92009-11-22 15:48:26 +000012762cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000012763
12764
12765# Only perform the check for file, if the check method requires it
12766test -z "$MAGIC_CMD" && MAGIC_CMD=file
12767case $deplibs_check_method in
12768file_magic*)
12769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
cristy8b350f62009-11-15 23:12:43 +000012770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012771$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012773 $as_echo_n "(cached) " >&6
12774else
12775 case $MAGIC_CMD in
12776[\\/*] | ?:[\\/]*)
12777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12778 ;;
12779*)
12780 lt_save_MAGIC_CMD="$MAGIC_CMD"
12781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12783 for ac_dir in $ac_dummy; do
12784 IFS="$lt_save_ifs"
12785 test -z "$ac_dir" && ac_dir=.
12786 if test -f $ac_dir/${ac_tool_prefix}file; then
12787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12788 if test -n "$file_magic_test_file"; then
12789 case $deplibs_check_method in
12790 "file_magic "*)
12791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12794 $EGREP "$file_magic_regex" > /dev/null; then
12795 :
12796 else
12797 cat <<_LT_EOF 1>&2
12798
12799*** Warning: the command libtool uses to detect shared libraries,
12800*** $file_magic_cmd, produces output that libtool cannot recognize.
12801*** The result is that libtool may fail to recognize shared libraries
12802*** as such. This will affect the creation of libtool libraries that
12803*** depend on shared libraries, but programs linked with such libtool
12804*** libraries will work regardless of this problem. Nevertheless, you
12805*** may want to report the problem to your system manager and/or to
12806*** bug-libtool@gnu.org
12807
12808_LT_EOF
12809 fi ;;
12810 esac
12811 fi
12812 break
12813 fi
12814 done
12815 IFS="$lt_save_ifs"
12816 MAGIC_CMD="$lt_save_MAGIC_CMD"
12817 ;;
12818esac
12819fi
12820
12821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12822if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012824$as_echo "$MAGIC_CMD" >&6; }
12825else
cristy8b350f62009-11-15 23:12:43 +000012826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012827$as_echo "no" >&6; }
12828fi
12829
12830
12831
12832
12833
12834if test -z "$lt_cv_path_MAGIC_CMD"; then
12835 if test -n "$ac_tool_prefix"; then
cristy8b350f62009-11-15 23:12:43 +000012836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
cristy3ed852e2009-09-05 21:47:34 +000012837$as_echo_n "checking for file... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012838if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012839 $as_echo_n "(cached) " >&6
12840else
12841 case $MAGIC_CMD in
12842[\\/*] | ?:[\\/]*)
12843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12844 ;;
12845*)
12846 lt_save_MAGIC_CMD="$MAGIC_CMD"
12847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12849 for ac_dir in $ac_dummy; do
12850 IFS="$lt_save_ifs"
12851 test -z "$ac_dir" && ac_dir=.
12852 if test -f $ac_dir/file; then
12853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12854 if test -n "$file_magic_test_file"; then
12855 case $deplibs_check_method in
12856 "file_magic "*)
12857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12860 $EGREP "$file_magic_regex" > /dev/null; then
12861 :
12862 else
12863 cat <<_LT_EOF 1>&2
12864
12865*** Warning: the command libtool uses to detect shared libraries,
12866*** $file_magic_cmd, produces output that libtool cannot recognize.
12867*** The result is that libtool may fail to recognize shared libraries
12868*** as such. This will affect the creation of libtool libraries that
12869*** depend on shared libraries, but programs linked with such libtool
12870*** libraries will work regardless of this problem. Nevertheless, you
12871*** may want to report the problem to your system manager and/or to
12872*** bug-libtool@gnu.org
12873
12874_LT_EOF
12875 fi ;;
12876 esac
12877 fi
12878 break
12879 fi
12880 done
12881 IFS="$lt_save_ifs"
12882 MAGIC_CMD="$lt_save_MAGIC_CMD"
12883 ;;
12884esac
12885fi
12886
12887MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12888if test -n "$MAGIC_CMD"; then
cristy8b350f62009-11-15 23:12:43 +000012889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
cristy3ed852e2009-09-05 21:47:34 +000012890$as_echo "$MAGIC_CMD" >&6; }
12891else
cristy8b350f62009-11-15 23:12:43 +000012892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000012893$as_echo "no" >&6; }
12894fi
12895
12896
12897 else
12898 MAGIC_CMD=:
12899 fi
12900fi
12901
12902 fi
12903 ;;
12904esac
12905
12906# Use C for the default configuration in the libtool script
12907
12908lt_save_CC="$CC"
12909ac_ext=c
12910ac_cpp='$CPP $CPPFLAGS'
12911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914
12915
12916# Source file extension for C test sources.
12917ac_ext=c
12918
12919# Object file extension for compiled C test sources.
12920objext=o
12921objext=$objext
12922
12923# Code to be used in simple compile tests
12924lt_simple_compile_test_code="int some_variable = 0;"
12925
12926# Code to be used in simple link tests
12927lt_simple_link_test_code='int main(){return(0);}'
12928
12929
12930
12931
12932
12933
12934
12935# If no C compiler was specified, use CC.
12936LTCC=${LTCC-"$CC"}
12937
12938# If no C compiler flags were specified, use CFLAGS.
12939LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12940
12941# Allow CC to be a program name with arguments.
12942compiler=$CC
12943
12944# Save the default compiler, since it gets overwritten when the other
12945# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12946compiler_DEFAULT=$CC
12947
12948# save warnings/boilerplate of simple test code
12949ac_outfile=conftest.$ac_objext
12950echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12951eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12952_lt_compiler_boilerplate=`cat conftest.err`
12953$RM conftest*
12954
12955ac_outfile=conftest.$ac_objext
12956echo "$lt_simple_link_test_code" >conftest.$ac_ext
12957eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12958_lt_linker_boilerplate=`cat conftest.err`
12959$RM -r conftest*
12960
12961
12962## CAVEAT EMPTOR:
12963## There is no encapsulation within the following macros, do not change
12964## the running order or otherwise move them around unless you know exactly
12965## what you are doing...
12966if test -n "$compiler"; then
12967
12968lt_prog_compiler_no_builtin_flag=
12969
12970if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000012971 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
cristy3ed852e2009-09-05 21:47:34 +000012972
cristy8b350f62009-11-15 23:12:43 +000012973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000012974$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012975if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012976 $as_echo_n "(cached) " >&6
12977else
12978 lt_cv_prog_compiler_rtti_exceptions=no
12979 ac_outfile=conftest.$ac_objext
12980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12981 lt_compiler_flag="-fno-rtti -fno-exceptions"
12982 # Insert the option either (1) after the last *FLAGS variable, or
12983 # (2) before a word containing "conftest.", or (3) at the end.
12984 # Note that $ac_compile itself does not contain backslashes and begins
12985 # with a dollar sign (not a hyphen), so the echo should work correctly.
12986 # The option is referenced via a variable to avoid confusing sed.
12987 lt_compile=`echo "$ac_compile" | $SED \
12988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12990 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000012991 (eval echo "\"\$as_me:12991: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012992 (eval "$lt_compile" 2>conftest.err)
12993 ac_status=$?
12994 cat conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000012995 echo "$as_me:12995: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012996 if (exit $ac_status) && test -s "$ac_outfile"; then
12997 # The compiler can only warn and ignore the option if not recognized
12998 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000012999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13001 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13002 lt_cv_prog_compiler_rtti_exceptions=yes
13003 fi
13004 fi
13005 $RM conftest*
13006
13007fi
cristy8b350f62009-11-15 23:12:43 +000013008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
cristy3ed852e2009-09-05 21:47:34 +000013009$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13010
13011if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13012 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13013else
13014 :
13015fi
13016
13017fi
13018
13019
13020
13021
13022
13023
13024 lt_prog_compiler_wl=
13025lt_prog_compiler_pic=
13026lt_prog_compiler_static=
13027
cristy8b350f62009-11-15 23:12:43 +000013028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000013029$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13030
13031 if test "$GCC" = yes; then
13032 lt_prog_compiler_wl='-Wl,'
13033 lt_prog_compiler_static='-static'
13034
13035 case $host_os in
13036 aix*)
13037 # All AIX code is PIC.
13038 if test "$host_cpu" = ia64; then
13039 # AIX 5 now supports IA64 processor
13040 lt_prog_compiler_static='-Bstatic'
13041 fi
13042 ;;
13043
13044 amigaos*)
13045 case $host_cpu in
13046 powerpc)
13047 # see comment about AmigaOS4 .so support
13048 lt_prog_compiler_pic='-fPIC'
13049 ;;
13050 m68k)
13051 # FIXME: we need at least 68020 code to build shared libraries, but
13052 # adding the `-m68020' flag to GCC prevents building anything better,
13053 # like `-m68040'.
13054 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13055 ;;
13056 esac
13057 ;;
13058
13059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13060 # PIC is the default for these OSes.
13061 ;;
13062
13063 mingw* | cygwin* | pw32* | os2* | cegcc*)
13064 # This hack is so that the source file can tell whether it is being
13065 # built for inclusion in a dll (and should export symbols for example).
13066 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13067 # (--disable-auto-import) libraries
13068 lt_prog_compiler_pic='-DDLL_EXPORT'
13069 ;;
13070
13071 darwin* | rhapsody*)
13072 # PIC is the default on this platform
13073 # Common symbols not allowed in MH_DYLIB files
13074 lt_prog_compiler_pic='-fno-common'
13075 ;;
13076
13077 hpux*)
13078 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13079 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13080 # sets the default TLS model and affects inlining.
13081 case $host_cpu in
13082 hppa*64*)
13083 # +Z the default
13084 ;;
13085 *)
13086 lt_prog_compiler_pic='-fPIC'
13087 ;;
13088 esac
13089 ;;
13090
13091 interix[3-9]*)
13092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13093 # Instead, we relocate shared libraries at runtime.
13094 ;;
13095
13096 msdosdjgpp*)
13097 # Just because we use GCC doesn't mean we suddenly get shared libraries
13098 # on systems that don't support them.
13099 lt_prog_compiler_can_build_shared=no
13100 enable_shared=no
13101 ;;
13102
13103 *nto* | *qnx*)
13104 # QNX uses GNU C++, but need to define -shared option too, otherwise
13105 # it will coredump.
13106 lt_prog_compiler_pic='-fPIC -shared'
13107 ;;
13108
13109 sysv4*MP*)
13110 if test -d /usr/nec; then
13111 lt_prog_compiler_pic=-Kconform_pic
13112 fi
13113 ;;
13114
13115 *)
13116 lt_prog_compiler_pic='-fPIC'
13117 ;;
13118 esac
13119 else
13120 # PORTME Check for flag to pass linker flags through the system compiler.
13121 case $host_os in
13122 aix*)
13123 lt_prog_compiler_wl='-Wl,'
13124 if test "$host_cpu" = ia64; then
13125 # AIX 5 now supports IA64 processor
13126 lt_prog_compiler_static='-Bstatic'
13127 else
13128 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13129 fi
13130 ;;
13131
13132 mingw* | cygwin* | pw32* | os2* | cegcc*)
13133 # This hack is so that the source file can tell whether it is being
13134 # built for inclusion in a dll (and should export symbols for example).
13135 lt_prog_compiler_pic='-DDLL_EXPORT'
13136 ;;
13137
13138 hpux9* | hpux10* | hpux11*)
13139 lt_prog_compiler_wl='-Wl,'
13140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13141 # not for PA HP-UX.
13142 case $host_cpu in
13143 hppa*64*|ia64*)
13144 # +Z the default
13145 ;;
13146 *)
13147 lt_prog_compiler_pic='+Z'
13148 ;;
13149 esac
13150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13151 lt_prog_compiler_static='${wl}-a ${wl}archive'
13152 ;;
13153
13154 irix5* | irix6* | nonstopux*)
13155 lt_prog_compiler_wl='-Wl,'
13156 # PIC (with -KPIC) is the default.
13157 lt_prog_compiler_static='-non_shared'
13158 ;;
13159
cristy18304f92009-11-22 15:48:26 +000013160 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013161 case $cc_basename in
13162 # old Intel for x86_64 which still supported -KPIC.
13163 ecc*)
13164 lt_prog_compiler_wl='-Wl,'
13165 lt_prog_compiler_pic='-KPIC'
13166 lt_prog_compiler_static='-static'
13167 ;;
13168 # icc used to be incompatible with GCC.
13169 # ICC 10 doesn't accept -KPIC any more.
13170 icc* | ifort*)
13171 lt_prog_compiler_wl='-Wl,'
13172 lt_prog_compiler_pic='-fPIC'
13173 lt_prog_compiler_static='-static'
13174 ;;
13175 # Lahey Fortran 8.1.
13176 lf95*)
13177 lt_prog_compiler_wl='-Wl,'
13178 lt_prog_compiler_pic='--shared'
13179 lt_prog_compiler_static='--static'
13180 ;;
cristy18304f92009-11-22 15:48:26 +000013181 pgcc* | pgf77* | pgf90* | pgf95*)
cristy3ed852e2009-09-05 21:47:34 +000013182 # Portland Group compilers (*not* the Pentium gcc compiler,
13183 # which looks to be a dead project)
13184 lt_prog_compiler_wl='-Wl,'
13185 lt_prog_compiler_pic='-fpic'
13186 lt_prog_compiler_static='-Bstatic'
13187 ;;
13188 ccc*)
13189 lt_prog_compiler_wl='-Wl,'
13190 # All Alpha code is PIC.
13191 lt_prog_compiler_static='-non_shared'
13192 ;;
cristy18304f92009-11-22 15:48:26 +000013193 xl*)
13194 # IBM XL C 8.0/Fortran 10.1 on PPC
cristy3ed852e2009-09-05 21:47:34 +000013195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_pic='-qpic'
13197 lt_prog_compiler_static='-qstaticlink'
13198 ;;
13199 *)
13200 case `$CC -V 2>&1 | sed 5q` in
13201 *Sun\ C*)
13202 # Sun C 5.9
13203 lt_prog_compiler_pic='-KPIC'
13204 lt_prog_compiler_static='-Bstatic'
13205 lt_prog_compiler_wl='-Wl,'
13206 ;;
cristy18304f92009-11-22 15:48:26 +000013207 *Sun\ F*)
13208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13209 lt_prog_compiler_pic='-KPIC'
13210 lt_prog_compiler_static='-Bstatic'
13211 lt_prog_compiler_wl=''
13212 ;;
cristy3ed852e2009-09-05 21:47:34 +000013213 esac
13214 ;;
13215 esac
13216 ;;
13217
13218 newsos6)
13219 lt_prog_compiler_pic='-KPIC'
13220 lt_prog_compiler_static='-Bstatic'
13221 ;;
13222
13223 *nto* | *qnx*)
13224 # QNX uses GNU C++, but need to define -shared option too, otherwise
13225 # it will coredump.
13226 lt_prog_compiler_pic='-fPIC -shared'
13227 ;;
13228
13229 osf3* | osf4* | osf5*)
13230 lt_prog_compiler_wl='-Wl,'
13231 # All OSF/1 code is PIC.
13232 lt_prog_compiler_static='-non_shared'
13233 ;;
13234
13235 rdos*)
13236 lt_prog_compiler_static='-non_shared'
13237 ;;
13238
13239 solaris*)
13240 lt_prog_compiler_pic='-KPIC'
13241 lt_prog_compiler_static='-Bstatic'
13242 case $cc_basename in
13243 f77* | f90* | f95*)
13244 lt_prog_compiler_wl='-Qoption ld ';;
13245 *)
13246 lt_prog_compiler_wl='-Wl,';;
13247 esac
13248 ;;
13249
13250 sunos4*)
13251 lt_prog_compiler_wl='-Qoption ld '
13252 lt_prog_compiler_pic='-PIC'
13253 lt_prog_compiler_static='-Bstatic'
13254 ;;
13255
13256 sysv4 | sysv4.2uw2* | sysv4.3*)
13257 lt_prog_compiler_wl='-Wl,'
13258 lt_prog_compiler_pic='-KPIC'
13259 lt_prog_compiler_static='-Bstatic'
13260 ;;
13261
13262 sysv4*MP*)
13263 if test -d /usr/nec ;then
13264 lt_prog_compiler_pic='-Kconform_pic'
13265 lt_prog_compiler_static='-Bstatic'
13266 fi
13267 ;;
13268
13269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13270 lt_prog_compiler_wl='-Wl,'
13271 lt_prog_compiler_pic='-KPIC'
13272 lt_prog_compiler_static='-Bstatic'
13273 ;;
13274
13275 unicos*)
13276 lt_prog_compiler_wl='-Wl,'
13277 lt_prog_compiler_can_build_shared=no
13278 ;;
13279
13280 uts4*)
13281 lt_prog_compiler_pic='-pic'
13282 lt_prog_compiler_static='-Bstatic'
13283 ;;
13284
13285 *)
13286 lt_prog_compiler_can_build_shared=no
13287 ;;
13288 esac
13289 fi
13290
13291case $host_os in
13292 # For platforms which do not support PIC, -DPIC is meaningless:
13293 *djgpp*)
13294 lt_prog_compiler_pic=
13295 ;;
13296 *)
13297 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13298 ;;
13299esac
cristy8b350f62009-11-15 23:12:43 +000013300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
cristy3ed852e2009-09-05 21:47:34 +000013301$as_echo "$lt_prog_compiler_pic" >&6; }
13302
13303
13304
13305
13306
13307
13308#
13309# Check to make sure the PIC flag actually works.
13310#
13311if test -n "$lt_prog_compiler_pic"; then
cristy8b350f62009-11-15 23:12:43 +000013312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013313$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013314if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013315 $as_echo_n "(cached) " >&6
13316else
13317 lt_cv_prog_compiler_pic_works=no
13318 ac_outfile=conftest.$ac_objext
13319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13320 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13321 # Insert the option either (1) after the last *FLAGS variable, or
13322 # (2) before a word containing "conftest.", or (3) at the end.
13323 # Note that $ac_compile itself does not contain backslashes and begins
13324 # with a dollar sign (not a hyphen), so the echo should work correctly.
13325 # The option is referenced via a variable to avoid confusing sed.
13326 lt_compile=`echo "$ac_compile" | $SED \
13327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13329 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000013330 (eval echo "\"\$as_me:13330: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013331 (eval "$lt_compile" 2>conftest.err)
13332 ac_status=$?
13333 cat conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000013334 echo "$as_me:13334: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013335 if (exit $ac_status) && test -s "$ac_outfile"; then
13336 # The compiler can only warn and ignore the option if not recognized
13337 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000013338 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13341 lt_cv_prog_compiler_pic_works=yes
13342 fi
13343 fi
13344 $RM conftest*
13345
13346fi
cristy8b350f62009-11-15 23:12:43 +000013347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013348$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13349
13350if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13351 case $lt_prog_compiler_pic in
13352 "" | " "*) ;;
13353 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13354 esac
13355else
13356 lt_prog_compiler_pic=
13357 lt_prog_compiler_can_build_shared=no
13358fi
13359
13360fi
13361
13362
13363
13364
13365
13366
13367#
13368# Check to make sure the static flag actually works.
13369#
13370wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000013371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013373if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013374 $as_echo_n "(cached) " >&6
13375else
13376 lt_cv_prog_compiler_static_works=no
13377 save_LDFLAGS="$LDFLAGS"
13378 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13381 # The linker can only warn and ignore the option if not recognized
13382 # So say no if there are warnings
13383 if test -s conftest.err; then
13384 # Append any errors to the config.log.
13385 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000013386 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13388 if diff conftest.exp conftest.er2 >/dev/null; then
13389 lt_cv_prog_compiler_static_works=yes
13390 fi
13391 else
13392 lt_cv_prog_compiler_static_works=yes
13393 fi
13394 fi
13395 $RM -r conftest*
13396 LDFLAGS="$save_LDFLAGS"
13397
13398fi
cristy8b350f62009-11-15 23:12:43 +000013399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000013400$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13401
13402if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13403 :
13404else
13405 lt_prog_compiler_static=
13406fi
13407
13408
13409
13410
13411
13412
13413
cristy8b350f62009-11-15 23:12:43 +000013414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013416if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013417 $as_echo_n "(cached) " >&6
13418else
13419 lt_cv_prog_compiler_c_o=no
13420 $RM -r conftest 2>/dev/null
13421 mkdir conftest
13422 cd conftest
13423 mkdir out
13424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13425
13426 lt_compiler_flag="-o out/conftest2.$ac_objext"
13427 # Insert the option either (1) after the last *FLAGS variable, or
13428 # (2) before a word containing "conftest.", or (3) at the end.
13429 # Note that $ac_compile itself does not contain backslashes and begins
13430 # with a dollar sign (not a hyphen), so the echo should work correctly.
13431 lt_compile=`echo "$ac_compile" | $SED \
13432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13434 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000013435 (eval echo "\"\$as_me:13435: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013436 (eval "$lt_compile" 2>out/conftest.err)
13437 ac_status=$?
13438 cat out/conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000013439 echo "$as_me:13439: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13441 then
13442 # The compiler can only warn and ignore the option if not recognized
13443 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013444 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13447 lt_cv_prog_compiler_c_o=yes
13448 fi
13449 fi
13450 chmod u+w . 2>&5
13451 $RM conftest*
13452 # SGI C++ compiler will create directory out/ii_files/ for
13453 # template instantiation
13454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13455 $RM out/* && rmdir out
13456 cd ..
13457 $RM -r conftest
13458 $RM conftest*
13459
13460fi
cristy8b350f62009-11-15 23:12:43 +000013461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013462$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13463
13464
13465
13466
13467
13468
cristy8b350f62009-11-15 23:12:43 +000013469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000013470$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000013471if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000013472 $as_echo_n "(cached) " >&6
13473else
13474 lt_cv_prog_compiler_c_o=no
13475 $RM -r conftest 2>/dev/null
13476 mkdir conftest
13477 cd conftest
13478 mkdir out
13479 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13480
13481 lt_compiler_flag="-o out/conftest2.$ac_objext"
13482 # Insert the option either (1) after the last *FLAGS variable, or
13483 # (2) before a word containing "conftest.", or (3) at the end.
13484 # Note that $ac_compile itself does not contain backslashes and begins
13485 # with a dollar sign (not a hyphen), so the echo should work correctly.
13486 lt_compile=`echo "$ac_compile" | $SED \
13487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13489 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000013490 (eval echo "\"\$as_me:13490: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013491 (eval "$lt_compile" 2>out/conftest.err)
13492 ac_status=$?
13493 cat out/conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000013494 echo "$as_me:13494: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013495 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13496 then
13497 # The compiler can only warn and ignore the option if not recognized
13498 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000013499 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000013500 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13501 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13502 lt_cv_prog_compiler_c_o=yes
13503 fi
13504 fi
13505 chmod u+w . 2>&5
13506 $RM conftest*
13507 # SGI C++ compiler will create directory out/ii_files/ for
13508 # template instantiation
13509 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13510 $RM out/* && rmdir out
13511 cd ..
13512 $RM -r conftest
13513 $RM conftest*
13514
13515fi
cristy8b350f62009-11-15 23:12:43 +000013516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
cristy3ed852e2009-09-05 21:47:34 +000013517$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13518
13519
13520
13521
13522hard_links="nottested"
13523if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13524 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000013525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013526$as_echo_n "checking if we can lock with hard links... " >&6; }
13527 hard_links=yes
13528 $RM conftest*
13529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13530 touch conftest.a
13531 ln conftest.a conftest.b 2>&5 || hard_links=no
13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000013533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000013534$as_echo "$hard_links" >&6; }
13535 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000013536 { $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 +000013537$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13538 need_locks=warn
13539 fi
13540else
13541 need_locks=no
13542fi
13543
13544
13545
13546
13547
13548
cristy8b350f62009-11-15 23:12:43 +000013549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000013550$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13551
13552 runpath_var=
13553 allow_undefined_flag=
13554 always_export_symbols=no
13555 archive_cmds=
13556 archive_expsym_cmds=
13557 compiler_needs_object=no
13558 enable_shared_with_static_runtimes=no
13559 export_dynamic_flag_spec=
13560 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13561 hardcode_automatic=no
13562 hardcode_direct=no
13563 hardcode_direct_absolute=no
13564 hardcode_libdir_flag_spec=
13565 hardcode_libdir_flag_spec_ld=
13566 hardcode_libdir_separator=
13567 hardcode_minus_L=no
13568 hardcode_shlibpath_var=unsupported
13569 inherit_rpath=no
13570 link_all_deplibs=unknown
13571 module_cmds=
13572 module_expsym_cmds=
13573 old_archive_from_new_cmds=
13574 old_archive_from_expsyms_cmds=
13575 thread_safe_flag_spec=
13576 whole_archive_flag_spec=
13577 # include_expsyms should be a list of space-separated symbols to be *always*
13578 # included in the symbol list
13579 include_expsyms=
13580 # exclude_expsyms can be an extended regexp of symbols to exclude
13581 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13582 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13583 # as well as any symbol that contains `d'.
13584 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13585 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13586 # platforms (ab)use it in PIC code, but their linkers get confused if
13587 # the symbol is explicitly referenced. Since portable code cannot
13588 # rely on this symbol name, it's probably fine to never include it in
13589 # preloaded symbol tables.
13590 # Exclude shared library initialization/finalization symbols.
13591 extract_expsyms_cmds=
13592
13593 case $host_os in
13594 cygwin* | mingw* | pw32* | cegcc*)
13595 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13596 # When not using gcc, we currently assume that we are using
13597 # Microsoft Visual C++.
13598 if test "$GCC" != yes; then
13599 with_gnu_ld=no
13600 fi
13601 ;;
13602 interix*)
13603 # we just hope/assume this is gcc and not c89 (= MSVC++)
13604 with_gnu_ld=yes
13605 ;;
13606 openbsd*)
13607 with_gnu_ld=no
13608 ;;
13609 esac
13610
13611 ld_shlibs=yes
13612 if test "$with_gnu_ld" = yes; then
13613 # If archive_cmds runs LD, not CC, wlarc should be empty
13614 wlarc='${wl}'
13615
13616 # Set some defaults for GNU ld with shared library support. These
13617 # are reset later if shared libraries are not supported. Putting them
13618 # here allows them to be overridden if necessary.
13619 runpath_var=LD_RUN_PATH
13620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13621 export_dynamic_flag_spec='${wl}--export-dynamic'
13622 # ancient GNU ld didn't support --whole-archive et. al.
13623 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13624 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13625 else
13626 whole_archive_flag_spec=
13627 fi
13628 supports_anon_versioning=no
13629 case `$LD -v 2>&1` in
13630 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13631 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13632 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13633 *\ 2.11.*) ;; # other 2.11 versions
13634 *) supports_anon_versioning=yes ;;
13635 esac
13636
13637 # See if GNU ld supports shared libraries.
13638 case $host_os in
13639 aix[3-9]*)
13640 # On AIX/PPC, the GNU linker is very broken
13641 if test "$host_cpu" != ia64; then
13642 ld_shlibs=no
13643 cat <<_LT_EOF 1>&2
13644
cristy18304f92009-11-22 15:48:26 +000013645*** Warning: the GNU linker, at least up to release 2.9.1, is reported
cristy3ed852e2009-09-05 21:47:34 +000013646*** to be unable to reliably create shared libraries on AIX.
13647*** Therefore, libtool is disabling shared libraries support. If you
cristy18304f92009-11-22 15:48:26 +000013648*** really care for shared libraries, you may want to modify your PATH
13649*** so that a non-GNU linker is found, and then restart.
cristy3ed852e2009-09-05 21:47:34 +000013650
13651_LT_EOF
13652 fi
13653 ;;
13654
13655 amigaos*)
13656 case $host_cpu in
13657 powerpc)
13658 # see comment about AmigaOS4 .so support
13659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 archive_expsym_cmds=''
13661 ;;
13662 m68k)
13663 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)'
13664 hardcode_libdir_flag_spec='-L$libdir'
13665 hardcode_minus_L=yes
13666 ;;
13667 esac
13668 ;;
13669
13670 beos*)
13671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13672 allow_undefined_flag=unsupported
13673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13674 # support --undefined. This deserves some investigation. FIXME
13675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13676 else
13677 ld_shlibs=no
13678 fi
13679 ;;
13680
13681 cygwin* | mingw* | pw32* | cegcc*)
13682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13683 # as there is no search path for DLLs.
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 allow_undefined_flag=unsupported
13686 always_export_symbols=no
13687 enable_shared_with_static_runtimes=yes
13688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13689
13690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13692 # If the export-symbols file already is a .def file (1st line
13693 # is EXPORTS), use it as is; otherwise, prepend...
13694 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13695 cp $export_symbols $output_objdir/$soname.def;
13696 else
13697 echo EXPORTS > $output_objdir/$soname.def;
13698 cat $export_symbols >> $output_objdir/$soname.def;
13699 fi~
13700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13701 else
13702 ld_shlibs=no
13703 fi
13704 ;;
13705
13706 interix[3-9]*)
13707 hardcode_direct=no
13708 hardcode_shlibpath_var=no
13709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13710 export_dynamic_flag_spec='${wl}-E'
13711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13712 # Instead, shared libraries are loaded at an image base (0x10000000 by
13713 # default) and relocated if they conflict, which is a slow very memory
13714 # consuming and fragmenting process. To avoid this, we pick a random,
13715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13716 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13718 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'
13719 ;;
13720
cristy18304f92009-11-22 15:48:26 +000013721 gnu* | linux* | tpf* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000013722 tmp_diet=no
13723 if test "$host_os" = linux-dietlibc; then
13724 case $cc_basename in
13725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13726 esac
13727 fi
13728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13729 && test "$tmp_diet" = no
13730 then
13731 tmp_addflag=
13732 tmp_sharedflag='-shared'
13733 case $cc_basename,$host_cpu in
13734 pgcc*) # Portland Group C compiler
cristy18304f92009-11-22 15:48:26 +000013735 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 +000013736 tmp_addflag=' $pic_flag'
13737 ;;
cristy18304f92009-11-22 15:48:26 +000013738 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13739 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 +000013740 tmp_addflag=' $pic_flag -Mnomain' ;;
13741 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13742 tmp_addflag=' -i_dynamic' ;;
13743 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13744 tmp_addflag=' -i_dynamic -nofor_main' ;;
13745 ifc* | ifort*) # Intel Fortran compiler
13746 tmp_addflag=' -nofor_main' ;;
13747 lf95*) # Lahey Fortran 8.1
13748 whole_archive_flag_spec=
13749 tmp_sharedflag='--shared' ;;
cristy18304f92009-11-22 15:48:26 +000013750 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy3ed852e2009-09-05 21:47:34 +000013751 tmp_sharedflag='-qmkshrobj'
13752 tmp_addflag= ;;
13753 esac
13754 case `$CC -V 2>&1 | sed 5q` in
13755 *Sun\ C*) # Sun C 5.9
cristy18304f92009-11-22 15:48:26 +000013756 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 +000013757 compiler_needs_object=yes
13758 tmp_sharedflag='-G' ;;
13759 *Sun\ F*) # Sun Fortran 8.3
13760 tmp_sharedflag='-G' ;;
13761 esac
13762 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763
13764 if test "x$supports_anon_versioning" = xyes; then
13765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13767 echo "local: *; };" >> $output_objdir/$libname.ver~
13768 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13769 fi
13770
13771 case $cc_basename in
cristy18304f92009-11-22 15:48:26 +000013772 xlf*)
cristy3ed852e2009-09-05 21:47:34 +000013773 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13774 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13775 hardcode_libdir_flag_spec=
13776 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13777 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13778 if test "x$supports_anon_versioning" = xyes; then
13779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13780 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13781 echo "local: *; };" >> $output_objdir/$libname.ver~
13782 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13783 fi
13784 ;;
13785 esac
13786 else
13787 ld_shlibs=no
13788 fi
13789 ;;
13790
13791 netbsd*)
13792 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13793 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13794 wlarc=
13795 else
13796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13798 fi
13799 ;;
13800
13801 solaris*)
13802 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13803 ld_shlibs=no
13804 cat <<_LT_EOF 1>&2
13805
13806*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13807*** create shared libraries on Solaris systems. Therefore, libtool
13808*** is disabling shared libraries support. We urge you to upgrade GNU
13809*** binutils to release 2.9.1 or newer. Another option is to modify
13810*** your PATH or compiler configuration so that the native linker is
13811*** used, and then restart.
13812
13813_LT_EOF
13814 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13817 else
13818 ld_shlibs=no
13819 fi
13820 ;;
13821
13822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13823 case `$LD -v 2>&1` in
13824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13825 ld_shlibs=no
13826 cat <<_LT_EOF 1>&2
13827
13828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13829*** reliably create shared libraries on SCO systems. Therefore, libtool
13830*** is disabling shared libraries support. We urge you to upgrade GNU
13831*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13832*** your PATH or compiler configuration so that the native linker is
13833*** used, and then restart.
13834
13835_LT_EOF
13836 ;;
13837 *)
13838 # For security reasons, it is highly recommended that you always
13839 # use absolute paths for naming shared libraries, and exclude the
13840 # DT_RUNPATH tag from executables and libraries. But doing so
13841 # requires that you compile everything twice, which is a pain.
13842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13846 else
13847 ld_shlibs=no
13848 fi
13849 ;;
13850 esac
13851 ;;
13852
13853 sunos4*)
13854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13855 wlarc=
13856 hardcode_direct=yes
13857 hardcode_shlibpath_var=no
13858 ;;
13859
13860 *)
13861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13864 else
13865 ld_shlibs=no
13866 fi
13867 ;;
13868 esac
13869
13870 if test "$ld_shlibs" = no; then
13871 runpath_var=
13872 hardcode_libdir_flag_spec=
13873 export_dynamic_flag_spec=
13874 whole_archive_flag_spec=
13875 fi
13876 else
13877 # PORTME fill in a description of your system's linker (not GNU ld)
13878 case $host_os in
13879 aix3*)
13880 allow_undefined_flag=unsupported
13881 always_export_symbols=yes
13882 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'
13883 # Note: this linker hardcodes the directories in LIBPATH if there
13884 # are no directories specified by -L.
13885 hardcode_minus_L=yes
13886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13887 # Neither direct hardcoding nor static linking is supported with a
13888 # broken collect2.
13889 hardcode_direct=unsupported
13890 fi
13891 ;;
13892
13893 aix[4-9]*)
13894 if test "$host_cpu" = ia64; then
13895 # On IA64, the linker does run time linking by default, so we don't
13896 # have to do anything special.
13897 aix_use_runtimelinking=no
13898 exp_sym_flag='-Bexport'
13899 no_entry_flag=""
13900 else
13901 # If we're using GNU nm, then we don't want the "-C" option.
13902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13903 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000013904 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 +000013905 else
13906 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'
13907 fi
13908 aix_use_runtimelinking=no
13909
13910 # Test if we are trying to use run time linking or normal
13911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13912 # need to do runtime linking.
13913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13914 for ld_flag in $LDFLAGS; do
13915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13916 aix_use_runtimelinking=yes
13917 break
13918 fi
13919 done
13920 ;;
13921 esac
13922
13923 exp_sym_flag='-bexport'
13924 no_entry_flag='-bnoentry'
13925 fi
13926
13927 # When large executables or shared objects are built, AIX ld can
13928 # have problems creating the table of contents. If linking a library
13929 # or program results in "error TOC overflow" add -mminimal-toc to
13930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13932
13933 archive_cmds=''
13934 hardcode_direct=yes
13935 hardcode_direct_absolute=yes
13936 hardcode_libdir_separator=':'
13937 link_all_deplibs=yes
13938 file_list_spec='${wl}-f,'
13939
13940 if test "$GCC" = yes; then
13941 case $host_os in aix4.[012]|aix4.[012].*)
13942 # We only want to do this on AIX 4.2 and lower, the check
13943 # below for broken collect2 doesn't work under 4.3+
13944 collect2name=`${CC} -print-prog-name=collect2`
13945 if test -f "$collect2name" &&
13946 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13947 then
13948 # We have reworked collect2
13949 :
13950 else
13951 # We have old collect2
13952 hardcode_direct=unsupported
13953 # It fails to find uninstalled libraries when the uninstalled
13954 # path is not listed in the libpath. Setting hardcode_minus_L
13955 # to unsupported forces relinking
13956 hardcode_minus_L=yes
13957 hardcode_libdir_flag_spec='-L$libdir'
13958 hardcode_libdir_separator=
13959 fi
13960 ;;
13961 esac
13962 shared_flag='-shared'
13963 if test "$aix_use_runtimelinking" = yes; then
13964 shared_flag="$shared_flag "'${wl}-G'
13965 fi
13966 else
13967 # not using gcc
13968 if test "$host_cpu" = ia64; then
13969 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13970 # chokes on -Wl,-G. The following line is correct:
13971 shared_flag='-G'
13972 else
13973 if test "$aix_use_runtimelinking" = yes; then
13974 shared_flag='${wl}-G'
13975 else
13976 shared_flag='${wl}-bM:SRE'
13977 fi
13978 fi
13979 fi
13980
13981 export_dynamic_flag_spec='${wl}-bexpall'
13982 # It seems that -bexpall does not export symbols beginning with
13983 # underscore (_), so it is better to generate a list of symbols to export.
13984 always_export_symbols=yes
13985 if test "$aix_use_runtimelinking" = yes; then
13986 # Warning - without using the other runtime loading flags (-brtl),
13987 # -berok will link without error, but may produce a broken library.
13988 allow_undefined_flag='-berok'
13989 # Determine the default libpath from the value encoded in an
13990 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000013991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000013992/* end confdefs.h. */
13993
13994int
13995main ()
13996{
13997
13998 ;
13999 return 0;
14000}
14001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014003
14004lt_aix_libpath_sed='
14005 /Import File Strings/,/^$/ {
14006 /^0/ {
14007 s/^0 *\(.*\)$/\1/
14008 p
14009 }
14010 }'
14011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14012# Check for a 64-bit object if we didn't find anything.
14013if test -z "$aix_libpath"; then
14014 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14015fi
cristy3ed852e2009-09-05 21:47:34 +000014016fi
cristy8b350f62009-11-15 23:12:43 +000014017rm -f core conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14020
14021 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy18304f92009-11-22 15:48:26 +000014022 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 +000014023 else
14024 if test "$host_cpu" = ia64; then
14025 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14026 allow_undefined_flag="-z nodefs"
14027 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"
14028 else
14029 # Determine the default libpath from the value encoded in an
14030 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000014031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014032/* end confdefs.h. */
14033
14034int
14035main ()
14036{
14037
14038 ;
14039 return 0;
14040}
14041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000014043
14044lt_aix_libpath_sed='
14045 /Import File Strings/,/^$/ {
14046 /^0/ {
14047 s/^0 *\(.*\)$/\1/
14048 p
14049 }
14050 }'
14051aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052# Check for a 64-bit object if we didn't find anything.
14053if test -z "$aix_libpath"; then
14054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055fi
cristy3ed852e2009-09-05 21:47:34 +000014056fi
cristy8b350f62009-11-15 23:12:43 +000014057rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14060
14061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14062 # Warning - without using the other run time loading flags,
14063 # -berok will link without error, but may produce a broken library.
14064 no_undefined_flag=' ${wl}-bernotok'
14065 allow_undefined_flag=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000014066 # Exported symbols can be pulled into shared objects from archives
14067 whole_archive_flag_spec='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000014068 archive_cmds_need_lc=yes
14069 # This is similar to how AIX traditionally builds its shared libraries.
14070 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'
14071 fi
14072 fi
14073 ;;
14074
14075 amigaos*)
14076 case $host_cpu in
14077 powerpc)
14078 # see comment about AmigaOS4 .so support
14079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14080 archive_expsym_cmds=''
14081 ;;
14082 m68k)
14083 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)'
14084 hardcode_libdir_flag_spec='-L$libdir'
14085 hardcode_minus_L=yes
14086 ;;
14087 esac
14088 ;;
14089
14090 bsdi[45]*)
14091 export_dynamic_flag_spec=-rdynamic
14092 ;;
14093
14094 cygwin* | mingw* | pw32* | cegcc*)
14095 # When not using gcc, we currently assume that we are using
14096 # Microsoft Visual C++.
14097 # hardcode_libdir_flag_spec is actually meaningless, as there is
14098 # no search path for DLLs.
14099 hardcode_libdir_flag_spec=' '
14100 allow_undefined_flag=unsupported
14101 # Tell ltmain to make .lib files, not .a files.
14102 libext=lib
14103 # Tell ltmain to make .dll files, not .so files.
14104 shrext_cmds=".dll"
14105 # FIXME: Setting linknames here is a bad hack.
cristy18304f92009-11-22 15:48:26 +000014106 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
cristy3ed852e2009-09-05 21:47:34 +000014107 # The linker will automatically build a .lib file if we build a DLL.
14108 old_archive_from_new_cmds='true'
14109 # FIXME: Should let the user specify the lib program.
14110 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14111 fix_srcfile_path='`cygpath -w "$srcfile"`'
14112 enable_shared_with_static_runtimes=yes
14113 ;;
14114
14115 darwin* | rhapsody*)
14116
14117
14118 archive_cmds_need_lc=no
14119 hardcode_direct=no
14120 hardcode_automatic=yes
14121 hardcode_shlibpath_var=unsupported
cristy18304f92009-11-22 15:48:26 +000014122 whole_archive_flag_spec=''
cristy3ed852e2009-09-05 21:47:34 +000014123 link_all_deplibs=yes
14124 allow_undefined_flag="$_lt_dar_allow_undefined"
14125 case $cc_basename in
14126 ifort*) _lt_dar_can_shared=yes ;;
14127 *) _lt_dar_can_shared=$GCC ;;
14128 esac
14129 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000014130 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000014131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14133 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}"
14134 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}"
14135
14136 else
14137 ld_shlibs=no
14138 fi
14139
14140 ;;
14141
14142 dgux*)
14143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14144 hardcode_libdir_flag_spec='-L$libdir'
14145 hardcode_shlibpath_var=no
14146 ;;
14147
14148 freebsd1*)
14149 ld_shlibs=no
14150 ;;
14151
14152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14153 # support. Future versions do this automatically, but an explicit c++rt0.o
14154 # does not break anything, and helps significantly (at the cost of a little
14155 # extra space).
14156 freebsd2.2*)
14157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14158 hardcode_libdir_flag_spec='-R$libdir'
14159 hardcode_direct=yes
14160 hardcode_shlibpath_var=no
14161 ;;
14162
14163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14164 freebsd2*)
14165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14166 hardcode_direct=yes
14167 hardcode_minus_L=yes
14168 hardcode_shlibpath_var=no
14169 ;;
14170
14171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14172 freebsd* | dragonfly*)
14173 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14174 hardcode_libdir_flag_spec='-R$libdir'
14175 hardcode_direct=yes
14176 hardcode_shlibpath_var=no
14177 ;;
14178
14179 hpux9*)
14180 if test "$GCC" = yes; then
14181 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'
14182 else
14183 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'
14184 fi
14185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14186 hardcode_libdir_separator=:
14187 hardcode_direct=yes
14188
14189 # hardcode_minus_L: Not really in the search PATH,
14190 # but as the default location of the library.
14191 hardcode_minus_L=yes
14192 export_dynamic_flag_spec='${wl}-E'
14193 ;;
14194
14195 hpux10*)
cristy18304f92009-11-22 15:48:26 +000014196 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14198 else
14199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14200 fi
14201 if test "$with_gnu_ld" = no; then
14202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14203 hardcode_libdir_flag_spec_ld='+b $libdir'
14204 hardcode_libdir_separator=:
14205 hardcode_direct=yes
14206 hardcode_direct_absolute=yes
14207 export_dynamic_flag_spec='${wl}-E'
14208 # hardcode_minus_L: Not really in the search PATH,
14209 # but as the default location of the library.
14210 hardcode_minus_L=yes
14211 fi
14212 ;;
14213
14214 hpux11*)
cristy18304f92009-11-22 15:48:26 +000014215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
cristy3ed852e2009-09-05 21:47:34 +000014216 case $host_cpu in
14217 hppa*64*)
14218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 ;;
14220 ia64*)
14221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14222 ;;
14223 *)
14224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14225 ;;
14226 esac
14227 else
14228 case $host_cpu in
14229 hppa*64*)
14230 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14231 ;;
14232 ia64*)
14233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14234 ;;
14235 *)
cristy18304f92009-11-22 15:48:26 +000014236 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 +000014237 ;;
14238 esac
14239 fi
14240 if test "$with_gnu_ld" = no; then
14241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14242 hardcode_libdir_separator=:
14243
14244 case $host_cpu in
14245 hppa*64*|ia64*)
14246 hardcode_direct=no
14247 hardcode_shlibpath_var=no
14248 ;;
14249 *)
14250 hardcode_direct=yes
14251 hardcode_direct_absolute=yes
14252 export_dynamic_flag_spec='${wl}-E'
14253
14254 # hardcode_minus_L: Not really in the search PATH,
14255 # but as the default location of the library.
14256 hardcode_minus_L=yes
14257 ;;
14258 esac
14259 fi
14260 ;;
14261
14262 irix5* | irix6* | nonstopux*)
14263 if test "$GCC" = yes; then
cristy18304f92009-11-22 15:48:26 +000014264 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 +000014265 # Try to use the -exported_symbol ld option, if it does not
14266 # work, assume that -exports_file does not work either and
14267 # implicitly export all symbols.
14268 save_LDFLAGS="$LDFLAGS"
14269 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
cristy8b350f62009-11-15 23:12:43 +000014270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000014272int foo(void) {}
14273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000014274if ac_fn_c_try_link "$LINENO"; then :
cristy18304f92009-11-22 15:48:26 +000014275 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 +000014276
cristy3ed852e2009-09-05 21:47:34 +000014277fi
cristy8b350f62009-11-15 23:12:43 +000014278rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014280 LDFLAGS="$save_LDFLAGS"
14281 else
cristy18304f92009-11-22 15:48:26 +000014282 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'
14283 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 +000014284 fi
14285 archive_cmds_need_lc='no'
14286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14287 hardcode_libdir_separator=:
14288 inherit_rpath=yes
14289 link_all_deplibs=yes
14290 ;;
14291
14292 netbsd*)
14293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14295 else
14296 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14297 fi
14298 hardcode_libdir_flag_spec='-R$libdir'
14299 hardcode_direct=yes
14300 hardcode_shlibpath_var=no
14301 ;;
14302
14303 newsos6)
14304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14305 hardcode_direct=yes
14306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14307 hardcode_libdir_separator=:
14308 hardcode_shlibpath_var=no
14309 ;;
14310
14311 *nto* | *qnx*)
14312 ;;
14313
14314 openbsd*)
14315 if test -f /usr/libexec/ld.so; then
14316 hardcode_direct=yes
14317 hardcode_shlibpath_var=no
14318 hardcode_direct_absolute=yes
14319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14321 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14323 export_dynamic_flag_spec='${wl}-E'
14324 else
14325 case $host_os in
14326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14328 hardcode_libdir_flag_spec='-R$libdir'
14329 ;;
14330 *)
14331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14333 ;;
14334 esac
14335 fi
14336 else
14337 ld_shlibs=no
14338 fi
14339 ;;
14340
14341 os2*)
14342 hardcode_libdir_flag_spec='-L$libdir'
14343 hardcode_minus_L=yes
14344 allow_undefined_flag=unsupported
cristy18304f92009-11-22 15:48:26 +000014345 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 +000014346 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14347 ;;
14348
14349 osf3*)
14350 if test "$GCC" = yes; then
14351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014352 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 +000014353 else
14354 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014355 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 +000014356 fi
14357 archive_cmds_need_lc='no'
14358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14359 hardcode_libdir_separator=:
14360 ;;
14361
14362 osf4* | osf5*) # as osf3* with the addition of -msym flag
14363 if test "$GCC" = yes; then
14364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000014365 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 +000014366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14367 else
14368 allow_undefined_flag=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000014369 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 +000014370 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 +000014371 $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 +000014372
14373 # Both c and cxx compiler support -rpath directly
14374 hardcode_libdir_flag_spec='-rpath $libdir'
14375 fi
14376 archive_cmds_need_lc='no'
14377 hardcode_libdir_separator=:
14378 ;;
14379
14380 solaris*)
14381 no_undefined_flag=' -z defs'
14382 if test "$GCC" = yes; then
14383 wlarc='${wl}'
14384 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14386 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14387 else
14388 case `$CC -V 2>&1` in
14389 *"Compilers 5.0"*)
14390 wlarc=''
14391 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14394 ;;
14395 *)
14396 wlarc='${wl}'
14397 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14400 ;;
14401 esac
14402 fi
14403 hardcode_libdir_flag_spec='-R$libdir'
14404 hardcode_shlibpath_var=no
14405 case $host_os in
14406 solaris2.[0-5] | solaris2.[0-5].*) ;;
14407 *)
14408 # The compiler driver will combine and reorder linker options,
14409 # but understands `-z linker_flag'. GCC discards it without `$wl',
14410 # but is careful enough not to reorder.
14411 # Supported since Solaris 2.6 (maybe 2.5.1?)
14412 if test "$GCC" = yes; then
14413 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14414 else
14415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14416 fi
14417 ;;
14418 esac
14419 link_all_deplibs=yes
14420 ;;
14421
14422 sunos4*)
14423 if test "x$host_vendor" = xsequent; then
14424 # Use $CC to link under sequent, because it throws in some extra .o
14425 # files that make .init and .fini sections work.
14426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14427 else
14428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14429 fi
14430 hardcode_libdir_flag_spec='-L$libdir'
14431 hardcode_direct=yes
14432 hardcode_minus_L=yes
14433 hardcode_shlibpath_var=no
14434 ;;
14435
14436 sysv4)
14437 case $host_vendor in
14438 sni)
14439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14440 hardcode_direct=yes # is this really true???
14441 ;;
14442 siemens)
14443 ## LD is ld it makes a PLAMLIB
14444 ## CC just makes a GrossModule.
14445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14446 reload_cmds='$CC -r -o $output$reload_objs'
14447 hardcode_direct=no
14448 ;;
14449 motorola)
14450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14452 ;;
14453 esac
14454 runpath_var='LD_RUN_PATH'
14455 hardcode_shlibpath_var=no
14456 ;;
14457
14458 sysv4.3*)
14459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14460 hardcode_shlibpath_var=no
14461 export_dynamic_flag_spec='-Bexport'
14462 ;;
14463
14464 sysv4*MP*)
14465 if test -d /usr/nec; then
14466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14467 hardcode_shlibpath_var=no
14468 runpath_var=LD_RUN_PATH
14469 hardcode_runpath_var=yes
14470 ld_shlibs=yes
14471 fi
14472 ;;
14473
14474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14475 no_undefined_flag='${wl}-z,text'
14476 archive_cmds_need_lc=no
14477 hardcode_shlibpath_var=no
14478 runpath_var='LD_RUN_PATH'
14479
14480 if test "$GCC" = yes; then
14481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14483 else
14484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 fi
14487 ;;
14488
14489 sysv5* | sco3.2v5* | sco5v6*)
14490 # Note: We can NOT use -z defs as we might desire, because we do not
14491 # link with -lc, and that would cause any symbols used from libc to
14492 # always be unresolved, which means just about no library would
14493 # ever link correctly. If we're not using GNU ld we use -z text
14494 # though, which does catch some bad symbols but isn't as heavy-handed
14495 # as -z defs.
14496 no_undefined_flag='${wl}-z,text'
14497 allow_undefined_flag='${wl}-z,nodefs'
14498 archive_cmds_need_lc=no
14499 hardcode_shlibpath_var=no
14500 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14501 hardcode_libdir_separator=':'
14502 link_all_deplibs=yes
14503 export_dynamic_flag_spec='${wl}-Bexport'
14504 runpath_var='LD_RUN_PATH'
14505
14506 if test "$GCC" = yes; then
14507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14509 else
14510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 fi
14513 ;;
14514
14515 uts4*)
14516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_libdir_flag_spec='-L$libdir'
14518 hardcode_shlibpath_var=no
14519 ;;
14520
14521 *)
14522 ld_shlibs=no
14523 ;;
14524 esac
14525
14526 if test x$host_vendor = xsni; then
14527 case $host in
14528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14529 export_dynamic_flag_spec='${wl}-Blargedynsym'
14530 ;;
14531 esac
14532 fi
14533 fi
14534
cristy8b350f62009-11-15 23:12:43 +000014535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000014536$as_echo "$ld_shlibs" >&6; }
14537test "$ld_shlibs" = no && can_build_shared=no
14538
14539with_gnu_ld=$with_gnu_ld
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555#
14556# Do we need to explicitly link libc?
14557#
14558case "x$archive_cmds_need_lc" in
14559x|xyes)
14560 # Assume -lc should be added
14561 archive_cmds_need_lc=yes
14562
14563 if test "$enable_shared" = yes && test "$GCC" = yes; then
14564 case $archive_cmds in
14565 *'~'*)
14566 # FIXME: we may have to deal with multi-command sequences.
14567 ;;
14568 '$CC '*)
14569 # Test whether the compiler implicitly links with -lc since on some
14570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14571 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000014572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000014573$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000014574 $RM conftest*
14575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000014576
cristy18304f92009-11-22 15:48:26 +000014577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000014578 (eval $ac_compile) 2>&5
14579 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14581 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000014582 soname=conftest
14583 lib=conftest
14584 libobjs=conftest.$ac_objext
14585 deplibs=
14586 wl=$lt_prog_compiler_wl
14587 pic_flag=$lt_prog_compiler_pic
14588 compiler_flags=-v
14589 linker_flags=-v
14590 verstring=
14591 output_objdir=.
14592 libname=conftest
14593 lt_save_allow_undefined_flag=$allow_undefined_flag
14594 allow_undefined_flag=
14595 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 +000014596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14597 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000014598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000014600 then
14601 archive_cmds_need_lc=no
14602 else
14603 archive_cmds_need_lc=yes
14604 fi
14605 allow_undefined_flag=$lt_save_allow_undefined_flag
14606 else
14607 cat conftest.err 1>&5
14608 fi
14609 $RM conftest*
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14611$as_echo "$archive_cmds_need_lc" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000014612 ;;
14613 esac
14614 fi
14615 ;;
14616esac
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
cristy8b350f62009-11-15 23:12:43 +000014774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000014775$as_echo_n "checking dynamic linker characteristics... " >&6; }
14776
14777if test "$GCC" = yes; then
14778 case $host_os in
14779 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14780 *) lt_awk_arg="/^libraries:/" ;;
14781 esac
cristy18304f92009-11-22 15:48:26 +000014782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14783 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
cristy3ed852e2009-09-05 21:47:34 +000014784 # if the path contains ";" then we assume it to be the separator
14785 # otherwise default to the standard path separator (i.e. ":") - it is
14786 # assumed that no part of a normal pathname contains ";" but that should
14787 # okay in the real world where ";" in dirpaths is itself problematic.
cristy18304f92009-11-22 15:48:26 +000014788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14789 else
14790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14791 fi
cristy3ed852e2009-09-05 21:47:34 +000014792 # Ok, now we have the path, separated by spaces, we can step through it
14793 # and add multilib dir if necessary.
14794 lt_tmp_lt_search_path_spec=
14795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14796 for lt_sys_path in $lt_search_path_spec; do
14797 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14799 else
14800 test -d "$lt_sys_path" && \
14801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14802 fi
14803 done
cristy18304f92009-11-22 15:48:26 +000014804 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
cristy3ed852e2009-09-05 21:47:34 +000014805BEGIN {RS=" "; FS="/|\n";} {
14806 lt_foo="";
14807 lt_count=0;
14808 for (lt_i = NF; lt_i > 0; lt_i--) {
14809 if ($lt_i != "" && $lt_i != ".") {
14810 if ($lt_i == "..") {
14811 lt_count++;
14812 } else {
14813 if (lt_count == 0) {
14814 lt_foo="/" $lt_i lt_foo;
14815 } else {
14816 lt_count--;
14817 }
14818 }
14819 }
14820 }
14821 if (lt_foo != "") { lt_freq[lt_foo]++; }
14822 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14823}'`
cristy18304f92009-11-22 15:48:26 +000014824 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
cristy3ed852e2009-09-05 21:47:34 +000014825else
14826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14827fi
14828library_names_spec=
14829libname_spec='lib$name'
14830soname_spec=
14831shrext_cmds=".so"
14832postinstall_cmds=
14833postuninstall_cmds=
14834finish_cmds=
14835finish_eval=
14836shlibpath_var=
14837shlibpath_overrides_runpath=unknown
14838version_type=none
14839dynamic_linker="$host_os ld.so"
14840sys_lib_dlsearch_path_spec="/lib /usr/lib"
14841need_lib_prefix=unknown
14842hardcode_into_libs=no
14843
14844# when you set need_version to no, make sure it does not cause -set_version
14845# flags to be left without arguments
14846need_version=unknown
14847
14848case $host_os in
14849aix3*)
14850 version_type=linux
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14852 shlibpath_var=LIBPATH
14853
14854 # AIX 3 has no versioning support, so we append a major version to the name.
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 ;;
14857
14858aix[4-9]*)
14859 version_type=linux
14860 need_lib_prefix=no
14861 need_version=no
14862 hardcode_into_libs=yes
14863 if test "$host_cpu" = ia64; then
14864 # AIX 5 supports IA64
14865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 else
14868 # With GCC up to 2.95.x, collect2 would create an import file
14869 # for dependence libraries. The import file would start with
14870 # the line `#! .'. This would cause the generated library to
14871 # depend on `.', always an invalid library. This was fixed in
14872 # development snapshots of GCC prior to 3.0.
14873 case $host_os in
14874 aix4 | aix4.[01] | aix4.[01].*)
14875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14876 echo ' yes '
14877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14878 :
14879 else
14880 can_build_shared=no
14881 fi
14882 ;;
14883 esac
14884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14885 # soname into executable. Probably we can add versioning support to
14886 # collect2, so additional links can be useful in future.
14887 if test "$aix_use_runtimelinking" = yes; then
14888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14889 # instead of lib<name>.a to let people know that these are not
14890 # typical AIX shared libraries.
14891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892 else
14893 # We preserve .a as extension for shared libraries through AIX4.2
14894 # and later when we are not doing run time linking.
14895 library_names_spec='${libname}${release}.a $libname.a'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 fi
14898 shlibpath_var=LIBPATH
14899 fi
14900 ;;
14901
14902amigaos*)
14903 case $host_cpu in
14904 powerpc)
14905 # Since July 2007 AmigaOS4 officially supports .so libraries.
14906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908 ;;
14909 m68k)
14910 library_names_spec='$libname.ixlibrary $libname.a'
14911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000014912 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 +000014913 ;;
14914 esac
14915 ;;
14916
14917beos*)
14918 library_names_spec='${libname}${shared_ext}'
14919 dynamic_linker="$host_os ld.so"
14920 shlibpath_var=LIBRARY_PATH
14921 ;;
14922
14923bsdi[45]*)
14924 version_type=linux
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14932 # the default ld.so.conf also contains /usr/contrib/lib and
14933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14934 # libtool to hard-code these into programs
14935 ;;
14936
14937cygwin* | mingw* | pw32* | cegcc*)
14938 version_type=windows
14939 shrext_cmds=".dll"
14940 need_version=no
14941 need_lib_prefix=no
14942
14943 case $GCC,$host_os in
14944 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14945 library_names_spec='$libname.dll.a'
14946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14947 postinstall_cmds='base_file=`basename \${file}`~
14948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14949 dldir=$destdir/`dirname \$dlpath`~
14950 test -d \$dldir || mkdir -p \$dldir~
14951 $install_prog $dir/$dlname \$dldir/$dlname~
14952 chmod a+x \$dldir/$dlname~
14953 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14954 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14955 fi'
14956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14957 dlpath=$dir/\$dldll~
14958 $RM \$dlpath'
14959 shlibpath_overrides_runpath=yes
14960
14961 case $host_os in
14962 cygwin*)
14963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000014966 ;;
14967 mingw* | cegcc*)
14968 # MinGW DLLs use traditional 'lib' prefix
14969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000014970 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14971 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14972 # It is most probably a Windows format PATH printed by
14973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14974 # path with ; separators, and with drive letters. We can handle the
14975 # drive letters (cygwin fileutils understands them), so leave them,
14976 # especially as we might pass files found there to a mingw objdump,
14977 # which wouldn't understand a cygwinified path. Ahh.
14978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14979 else
14980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14981 fi
cristy3ed852e2009-09-05 21:47:34 +000014982 ;;
14983 pw32*)
14984 # pw32 DLLs use 'pw' prefix rather than 'lib'
14985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14986 ;;
14987 esac
14988 ;;
14989
14990 *)
14991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14992 ;;
14993 esac
14994 dynamic_linker='Win32 ld.exe'
14995 # FIXME: first we should search . and the directory the executable is in
14996 shlibpath_var=PATH
14997 ;;
14998
14999darwin* | rhapsody*)
15000 dynamic_linker="$host_os dyld"
15001 version_type=darwin
15002 need_lib_prefix=no
15003 need_version=no
15004 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15005 soname_spec='${libname}${release}${major}$shared_ext'
15006 shlibpath_overrides_runpath=yes
15007 shlibpath_var=DYLD_LIBRARY_PATH
15008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15009
15010 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15012 ;;
15013
15014dgux*)
15015 version_type=linux
15016 need_lib_prefix=no
15017 need_version=no
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 ;;
15022
15023freebsd1*)
15024 dynamic_linker=no
15025 ;;
15026
15027freebsd* | dragonfly*)
15028 # DragonFly does not have aout. When/if they implement a new
15029 # versioning mechanism, adjust this.
15030 if test -x /usr/bin/objformat; then
15031 objformat=`/usr/bin/objformat`
15032 else
15033 case $host_os in
15034 freebsd[123]*) objformat=aout ;;
15035 *) objformat=elf ;;
15036 esac
15037 fi
15038 version_type=freebsd-$objformat
15039 case $version_type in
15040 freebsd-elf*)
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15042 need_version=no
15043 need_lib_prefix=no
15044 ;;
15045 freebsd-*)
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15047 need_version=yes
15048 ;;
15049 esac
15050 shlibpath_var=LD_LIBRARY_PATH
15051 case $host_os in
15052 freebsd2*)
15053 shlibpath_overrides_runpath=yes
15054 ;;
15055 freebsd3.[01]* | freebsdelf3.[01]*)
15056 shlibpath_overrides_runpath=yes
15057 hardcode_into_libs=yes
15058 ;;
15059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15061 shlibpath_overrides_runpath=no
15062 hardcode_into_libs=yes
15063 ;;
15064 *) # from 4.6 on, and DragonFly
15065 shlibpath_overrides_runpath=yes
15066 hardcode_into_libs=yes
15067 ;;
15068 esac
15069 ;;
15070
15071gnu*)
15072 version_type=linux
15073 need_lib_prefix=no
15074 need_version=no
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 hardcode_into_libs=yes
15079 ;;
15080
15081hpux9* | hpux10* | hpux11*)
15082 # Give a soname corresponding to the major version so that dld.sl refuses to
15083 # link against other versions.
15084 version_type=sunos
15085 need_lib_prefix=no
15086 need_version=no
15087 case $host_cpu in
15088 ia64*)
15089 shrext_cmds='.so'
15090 hardcode_into_libs=yes
15091 dynamic_linker="$host_os dld.so"
15092 shlibpath_var=LD_LIBRARY_PATH
15093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 soname_spec='${libname}${release}${shared_ext}$major'
15096 if test "X$HPUX_IA64_MODE" = X32; then
15097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15098 else
15099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15100 fi
15101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15102 ;;
15103 hppa*64*)
15104 shrext_cmds='.sl'
15105 hardcode_into_libs=yes
15106 dynamic_linker="$host_os dld.sl"
15107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15110 soname_spec='${libname}${release}${shared_ext}$major'
15111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15113 ;;
15114 *)
15115 shrext_cmds='.sl'
15116 dynamic_linker="$host_os dld.sl"
15117 shlibpath_var=SHLIB_PATH
15118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15120 soname_spec='${libname}${release}${shared_ext}$major'
15121 ;;
15122 esac
cristy18304f92009-11-22 15:48:26 +000015123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000015124 postinstall_cmds='chmod 555 $lib'
15125 ;;
15126
15127interix[3-9]*)
15128 version_type=linux
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15134 shlibpath_var=LD_LIBRARY_PATH
15135 shlibpath_overrides_runpath=no
15136 hardcode_into_libs=yes
15137 ;;
15138
15139irix5* | irix6* | nonstopux*)
15140 case $host_os in
15141 nonstopux*) version_type=nonstopux ;;
15142 *)
15143 if test "$lt_cv_prog_gnu_ld" = yes; then
15144 version_type=linux
15145 else
15146 version_type=irix
15147 fi ;;
15148 esac
15149 need_lib_prefix=no
15150 need_version=no
15151 soname_spec='${libname}${release}${shared_ext}$major'
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15153 case $host_os in
15154 irix5* | nonstopux*)
15155 libsuff= shlibsuff=
15156 ;;
15157 *)
15158 case $LD in # libtool.m4 will add one of these switches to LD
15159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15160 libsuff= shlibsuff= libmagic=32-bit;;
15161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15162 libsuff=32 shlibsuff=N32 libmagic=N32;;
15163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15165 *) libsuff= shlibsuff= libmagic=never-match;;
15166 esac
15167 ;;
15168 esac
15169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15170 shlibpath_overrides_runpath=no
15171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15173 hardcode_into_libs=yes
15174 ;;
15175
15176# No shared lib support for Linux oldld, aout, or coff.
15177linux*oldld* | linux*aout* | linux*coff*)
15178 dynamic_linker=no
15179 ;;
15180
15181# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000015182linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000015183 version_type=linux
15184 need_lib_prefix=no
15185 need_version=no
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=no
15191 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000015192 save_LDFLAGS=$LDFLAGS
15193 save_libdir=$libdir
15194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015197/* end confdefs.h. */
15198
15199int
15200main ()
15201{
15202
15203 ;
15204 return 0;
15205}
15206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015207if ac_fn_c_try_link "$LINENO"; then :
15208 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000015209 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000015210fi
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
cristy18304f92009-11-22 15:48:26 +000015214 LDFLAGS=$save_LDFLAGS
15215 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000015216
15217 # This implies no fast_install, which is unacceptable.
15218 # Some rework will be needed to allow for fast_install
15219 # before this can be enabled.
15220 hardcode_into_libs=yes
15221
cristy679ed8e2009-12-05 02:37:41 +000015222 # Add ABI-specific directories to the system library path.
15223 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15224
cristy3ed852e2009-09-05 21:47:34 +000015225 # Append ld.so.conf contents to the search path
15226 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000015227 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 +000015228 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000015229 fi
15230
15231 # We used to test for /lib/ld.so.1 and disable shared libraries on
15232 # powerpc, because MkLinux only supported shared libraries with the
15233 # GNU dynamic linker. Since this was broken with cross compilers,
15234 # most powerpc-linux boxes support dynamic linking these days and
15235 # people can always --disable-shared, the test was removed, and we
15236 # assume the GNU/Linux dynamic linker is in use.
15237 dynamic_linker='GNU/Linux ld.so'
15238 ;;
15239
15240netbsd*)
15241 version_type=sunos
15242 need_lib_prefix=no
15243 need_version=no
15244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15247 dynamic_linker='NetBSD (a.out) ld.so'
15248 else
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 dynamic_linker='NetBSD ld.elf_so'
15252 fi
15253 shlibpath_var=LD_LIBRARY_PATH
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257
15258newsos6)
15259 version_type=linux
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=yes
15263 ;;
15264
15265*nto* | *qnx*)
15266 version_type=qnx
15267 need_lib_prefix=no
15268 need_version=no
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=no
15273 hardcode_into_libs=yes
15274 dynamic_linker='ldqnx.so'
15275 ;;
15276
15277openbsd*)
15278 version_type=sunos
15279 sys_lib_dlsearch_path_spec="/usr/lib"
15280 need_lib_prefix=no
15281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15282 case $host_os in
15283 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15284 *) need_version=no ;;
15285 esac
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15290 case $host_os in
15291 openbsd2.[89] | openbsd2.[89].*)
15292 shlibpath_overrides_runpath=no
15293 ;;
15294 *)
15295 shlibpath_overrides_runpath=yes
15296 ;;
15297 esac
15298 else
15299 shlibpath_overrides_runpath=yes
15300 fi
15301 ;;
15302
15303os2*)
15304 libname_spec='$name'
15305 shrext_cmds=".dll"
15306 need_lib_prefix=no
15307 library_names_spec='$libname${shared_ext} $libname.a'
15308 dynamic_linker='OS/2 ld.exe'
15309 shlibpath_var=LIBPATH
15310 ;;
15311
15312osf3* | osf4* | osf5*)
15313 version_type=osf
15314 need_lib_prefix=no
15315 need_version=no
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15321 ;;
15322
15323rdos*)
15324 dynamic_linker=no
15325 ;;
15326
15327solaris*)
15328 version_type=linux
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 hardcode_into_libs=yes
15336 # ldd complains unless libraries are executable
15337 postinstall_cmds='chmod +x $lib'
15338 ;;
15339
15340sunos4*)
15341 version_type=sunos
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=yes
15346 if test "$with_gnu_ld" = yes; then
15347 need_lib_prefix=no
15348 fi
15349 need_version=yes
15350 ;;
15351
15352sysv4 | sysv4.3*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 case $host_vendor in
15358 sni)
15359 shlibpath_overrides_runpath=no
15360 need_lib_prefix=no
15361 runpath_var=LD_RUN_PATH
15362 ;;
15363 siemens)
15364 need_lib_prefix=no
15365 ;;
15366 motorola)
15367 need_lib_prefix=no
15368 need_version=no
15369 shlibpath_overrides_runpath=no
15370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15371 ;;
15372 esac
15373 ;;
15374
15375sysv4*MP*)
15376 if test -d /usr/nec ;then
15377 version_type=linux
15378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15379 soname_spec='$libname${shared_ext}.$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 fi
15382 ;;
15383
15384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15385 version_type=freebsd-elf
15386 need_lib_prefix=no
15387 need_version=no
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389 soname_spec='${libname}${release}${shared_ext}$major'
15390 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15392 hardcode_into_libs=yes
15393 if test "$with_gnu_ld" = yes; then
15394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15395 else
15396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15397 case $host_os in
15398 sco3.2v5*)
15399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15400 ;;
15401 esac
15402 fi
15403 sys_lib_dlsearch_path_spec='/usr/lib'
15404 ;;
15405
15406tpf*)
15407 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15408 version_type=linux
15409 need_lib_prefix=no
15410 need_version=no
15411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=no
15414 hardcode_into_libs=yes
15415 ;;
15416
15417uts4*)
15418 version_type=linux
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 ;;
15423
15424*)
15425 dynamic_linker=no
15426 ;;
15427esac
cristy8b350f62009-11-15 23:12:43 +000015428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000015429$as_echo "$dynamic_linker" >&6; }
15430test "$dynamic_linker" = no && can_build_shared=no
15431
15432variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15433if test "$GCC" = yes; then
15434 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15435fi
15436
15437if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15438 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15439fi
15440if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15441 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15442fi
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
cristy8b350f62009-11-15 23:12:43 +000015530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000015531$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15532hardcode_action=
15533if test -n "$hardcode_libdir_flag_spec" ||
15534 test -n "$runpath_var" ||
15535 test "X$hardcode_automatic" = "Xyes" ; then
15536
15537 # We can hardcode non-existent directories.
15538 if test "$hardcode_direct" != no &&
15539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15540 # have to relink, otherwise we might link with an installed library
15541 # when we should be linking with a yet-to-be-installed one
15542 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15543 test "$hardcode_minus_L" != no; then
15544 # Linking always hardcodes the temporary library directory.
15545 hardcode_action=relink
15546 else
15547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15548 hardcode_action=immediate
15549 fi
15550else
15551 # We cannot hardcode anything, or else we can only hardcode existing
15552 # directories.
15553 hardcode_action=unsupported
15554fi
cristy8b350f62009-11-15 23:12:43 +000015555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
cristy3ed852e2009-09-05 21:47:34 +000015556$as_echo "$hardcode_action" >&6; }
15557
15558if test "$hardcode_action" = relink ||
15559 test "$inherit_rpath" = yes; then
15560 # Fast installation is not supported
15561 enable_fast_install=no
15562elif test "$shlibpath_overrides_runpath" = yes ||
15563 test "$enable_shared" = no; then
15564 # Fast installation is not necessary
15565 enable_fast_install=needless
15566fi
15567
15568
15569
15570
15571
15572
15573 if test "x$enable_dlopen" != xyes; then
15574 enable_dlopen=unknown
15575 enable_dlopen_self=unknown
15576 enable_dlopen_self_static=unknown
15577else
15578 lt_cv_dlopen=no
15579 lt_cv_dlopen_libs=
15580
15581 case $host_os in
15582 beos*)
15583 lt_cv_dlopen="load_add_on"
15584 lt_cv_dlopen_libs=
15585 lt_cv_dlopen_self=yes
15586 ;;
15587
15588 mingw* | pw32* | cegcc*)
15589 lt_cv_dlopen="LoadLibrary"
15590 lt_cv_dlopen_libs=
15591 ;;
15592
15593 cygwin*)
15594 lt_cv_dlopen="dlopen"
15595 lt_cv_dlopen_libs=
15596 ;;
15597
15598 darwin*)
15599 # if libdl is installed we need to link against it
cristy8b350f62009-11-15 23:12:43 +000015600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015601$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015602if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015603 $as_echo_n "(cached) " >&6
15604else
15605 ac_check_lib_save_LIBS=$LIBS
15606LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015608/* end confdefs.h. */
15609
15610/* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15613#ifdef __cplusplus
15614extern "C"
15615#endif
15616char dlopen ();
15617int
15618main ()
15619{
15620return dlopen ();
15621 ;
15622 return 0;
15623}
15624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015626 ac_cv_lib_dl_dlopen=yes
15627else
cristy8b350f62009-11-15 23:12:43 +000015628 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015629fi
cristy8b350f62009-11-15 23:12:43 +000015630rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015632LIBS=$ac_check_lib_save_LIBS
15633fi
cristy8b350f62009-11-15 23:12:43 +000015634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015636if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15638else
15639
15640 lt_cv_dlopen="dyld"
15641 lt_cv_dlopen_libs=
15642 lt_cv_dlopen_self=yes
15643
15644fi
15645
15646 ;;
15647
15648 *)
cristy8b350f62009-11-15 23:12:43 +000015649 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15650if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015651 lt_cv_dlopen="shl_load"
15652else
cristy8b350f62009-11-15 23:12:43 +000015653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015654$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015655if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015656 $as_echo_n "(cached) " >&6
15657else
15658 ac_check_lib_save_LIBS=$LIBS
15659LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015661/* end confdefs.h. */
15662
15663/* Override any GCC internal prototype to avoid an error.
15664 Use char because int might match the return type of a GCC
15665 builtin and then its argument prototype would still apply. */
15666#ifdef __cplusplus
15667extern "C"
15668#endif
15669char shl_load ();
15670int
15671main ()
15672{
15673return shl_load ();
15674 ;
15675 return 0;
15676}
15677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015679 ac_cv_lib_dld_shl_load=yes
15680else
cristy8b350f62009-11-15 23:12:43 +000015681 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000015682fi
cristy8b350f62009-11-15 23:12:43 +000015683rm -f core conftest.err conftest.$ac_objext \
15684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015685LIBS=$ac_check_lib_save_LIBS
15686fi
cristy8b350f62009-11-15 23:12:43 +000015687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000015688$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015689if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015690 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15691else
cristy8b350f62009-11-15 23:12:43 +000015692 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15693if test "x$ac_cv_func_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015694 lt_cv_dlopen="dlopen"
15695else
cristy8b350f62009-11-15 23:12:43 +000015696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000015697$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015698if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015699 $as_echo_n "(cached) " >&6
15700else
15701 ac_check_lib_save_LIBS=$LIBS
15702LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015704/* end confdefs.h. */
15705
15706/* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15709#ifdef __cplusplus
15710extern "C"
15711#endif
15712char dlopen ();
15713int
15714main ()
15715{
15716return dlopen ();
15717 ;
15718 return 0;
15719}
15720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015722 ac_cv_lib_dl_dlopen=yes
15723else
cristy8b350f62009-11-15 23:12:43 +000015724 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015725fi
cristy8b350f62009-11-15 23:12:43 +000015726rm -f core conftest.err conftest.$ac_objext \
15727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015728LIBS=$ac_check_lib_save_LIBS
15729fi
cristy8b350f62009-11-15 23:12:43 +000015730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015731$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015732if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15734else
cristy8b350f62009-11-15 23:12:43 +000015735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015736$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015737if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015738 $as_echo_n "(cached) " >&6
15739else
15740 ac_check_lib_save_LIBS=$LIBS
15741LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015743/* end confdefs.h. */
15744
15745/* Override any GCC internal prototype to avoid an error.
15746 Use char because int might match the return type of a GCC
15747 builtin and then its argument prototype would still apply. */
15748#ifdef __cplusplus
15749extern "C"
15750#endif
15751char dlopen ();
15752int
15753main ()
15754{
15755return dlopen ();
15756 ;
15757 return 0;
15758}
15759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015761 ac_cv_lib_svld_dlopen=yes
15762else
cristy8b350f62009-11-15 23:12:43 +000015763 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000015764fi
cristy8b350f62009-11-15 23:12:43 +000015765rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015767LIBS=$ac_check_lib_save_LIBS
15768fi
cristy8b350f62009-11-15 23:12:43 +000015769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000015770$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015771if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15773else
cristy8b350f62009-11-15 23:12:43 +000015774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000015775$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015776if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015777 $as_echo_n "(cached) " >&6
15778else
15779 ac_check_lib_save_LIBS=$LIBS
15780LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000015781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015782/* end confdefs.h. */
15783
15784/* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15787#ifdef __cplusplus
15788extern "C"
15789#endif
15790char dld_link ();
15791int
15792main ()
15793{
15794return dld_link ();
15795 ;
15796 return 0;
15797}
15798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000015799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000015800 ac_cv_lib_dld_dld_link=yes
15801else
cristy8b350f62009-11-15 23:12:43 +000015802 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000015803fi
cristy8b350f62009-11-15 23:12:43 +000015804rm -f core conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000015806LIBS=$ac_check_lib_save_LIBS
15807fi
cristy8b350f62009-11-15 23:12:43 +000015808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000015809$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000015810if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000015811 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15812fi
15813
15814
15815fi
15816
15817
15818fi
15819
15820
15821fi
15822
15823
15824fi
15825
15826
15827fi
15828
15829 ;;
15830 esac
15831
15832 if test "x$lt_cv_dlopen" != xno; then
15833 enable_dlopen=yes
15834 else
15835 enable_dlopen=no
15836 fi
15837
15838 case $lt_cv_dlopen in
15839 dlopen)
15840 save_CPPFLAGS="$CPPFLAGS"
15841 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15842
15843 save_LDFLAGS="$LDFLAGS"
15844 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15845
15846 save_LIBS="$LIBS"
15847 LIBS="$lt_cv_dlopen_libs $LIBS"
15848
cristy8b350f62009-11-15 23:12:43 +000015849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015850$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015851if test "${lt_cv_dlopen_self+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015852 $as_echo_n "(cached) " >&6
15853else
15854 if test "$cross_compiling" = yes; then :
15855 lt_cv_dlopen_self=cross
15856else
15857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15858 lt_status=$lt_dlunknown
15859 cat > conftest.$ac_ext <<_LT_EOF
cristya62cc882010-06-17 00:12:38 +000015860#line 15860 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015861#include "confdefs.h"
15862
15863#if HAVE_DLFCN_H
15864#include <dlfcn.h>
15865#endif
15866
15867#include <stdio.h>
15868
15869#ifdef RTLD_GLOBAL
15870# define LT_DLGLOBAL RTLD_GLOBAL
15871#else
15872# ifdef DL_GLOBAL
15873# define LT_DLGLOBAL DL_GLOBAL
15874# else
15875# define LT_DLGLOBAL 0
15876# endif
15877#endif
15878
15879/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15880 find out it does not work in some platform. */
15881#ifndef LT_DLLAZY_OR_NOW
15882# ifdef RTLD_LAZY
15883# define LT_DLLAZY_OR_NOW RTLD_LAZY
15884# else
15885# ifdef DL_LAZY
15886# define LT_DLLAZY_OR_NOW DL_LAZY
15887# else
15888# ifdef RTLD_NOW
15889# define LT_DLLAZY_OR_NOW RTLD_NOW
15890# else
15891# ifdef DL_NOW
15892# define LT_DLLAZY_OR_NOW DL_NOW
15893# else
15894# define LT_DLLAZY_OR_NOW 0
15895# endif
15896# endif
15897# endif
15898# endif
15899#endif
15900
cristy18304f92009-11-22 15:48:26 +000015901void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015902int main ()
15903{
15904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15905 int status = $lt_dlunknown;
15906
15907 if (self)
15908 {
15909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000015910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000015911 /* dlclose (self); */
15912 }
15913 else
15914 puts (dlerror ());
15915
15916 return status;
15917}
15918_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000015919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000015920 (eval $ac_link) 2>&5
15921 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000015922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000015924 (./conftest; exit; ) >&5 2>/dev/null
15925 lt_status=$?
15926 case x$lt_status in
15927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15930 esac
15931 else :
15932 # compilation failed
15933 lt_cv_dlopen_self=no
15934 fi
15935fi
15936rm -fr conftest*
15937
15938
15939fi
cristy8b350f62009-11-15 23:12:43 +000015940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
cristy3ed852e2009-09-05 21:47:34 +000015941$as_echo "$lt_cv_dlopen_self" >&6; }
15942
15943 if test "x$lt_cv_dlopen_self" = xyes; then
15944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
cristy8b350f62009-11-15 23:12:43 +000015945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
cristy3ed852e2009-09-05 21:47:34 +000015946$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000015947if test "${lt_cv_dlopen_self_static+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000015948 $as_echo_n "(cached) " >&6
15949else
15950 if test "$cross_compiling" = yes; then :
15951 lt_cv_dlopen_self_static=cross
15952else
15953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15954 lt_status=$lt_dlunknown
15955 cat > conftest.$ac_ext <<_LT_EOF
cristya62cc882010-06-17 00:12:38 +000015956#line 15956 "configure"
cristy3ed852e2009-09-05 21:47:34 +000015957#include "confdefs.h"
15958
15959#if HAVE_DLFCN_H
15960#include <dlfcn.h>
15961#endif
15962
15963#include <stdio.h>
15964
15965#ifdef RTLD_GLOBAL
15966# define LT_DLGLOBAL RTLD_GLOBAL
15967#else
15968# ifdef DL_GLOBAL
15969# define LT_DLGLOBAL DL_GLOBAL
15970# else
15971# define LT_DLGLOBAL 0
15972# endif
15973#endif
15974
15975/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15976 find out it does not work in some platform. */
15977#ifndef LT_DLLAZY_OR_NOW
15978# ifdef RTLD_LAZY
15979# define LT_DLLAZY_OR_NOW RTLD_LAZY
15980# else
15981# ifdef DL_LAZY
15982# define LT_DLLAZY_OR_NOW DL_LAZY
15983# else
15984# ifdef RTLD_NOW
15985# define LT_DLLAZY_OR_NOW RTLD_NOW
15986# else
15987# ifdef DL_NOW
15988# define LT_DLLAZY_OR_NOW DL_NOW
15989# else
15990# define LT_DLLAZY_OR_NOW 0
15991# endif
15992# endif
15993# endif
15994# endif
15995#endif
15996
cristy18304f92009-11-22 15:48:26 +000015997void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000015998int main ()
15999{
16000 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16001 int status = $lt_dlunknown;
16002
16003 if (self)
16004 {
16005 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000016006 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000016007 /* dlclose (self); */
16008 }
16009 else
16010 puts (dlerror ());
16011
16012 return status;
16013}
16014_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000016015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000016016 (eval $ac_link) 2>&5
16017 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000016018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16019 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000016020 (./conftest; exit; ) >&5 2>/dev/null
16021 lt_status=$?
16022 case x$lt_status in
16023 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16024 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16025 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16026 esac
16027 else :
16028 # compilation failed
16029 lt_cv_dlopen_self_static=no
16030 fi
16031fi
16032rm -fr conftest*
16033
16034
16035fi
cristy8b350f62009-11-15 23:12:43 +000016036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016037$as_echo "$lt_cv_dlopen_self_static" >&6; }
16038 fi
16039
16040 CPPFLAGS="$save_CPPFLAGS"
16041 LDFLAGS="$save_LDFLAGS"
16042 LIBS="$save_LIBS"
16043 ;;
16044 esac
16045
16046 case $lt_cv_dlopen_self in
16047 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16048 *) enable_dlopen_self=unknown ;;
16049 esac
16050
16051 case $lt_cv_dlopen_self_static in
16052 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16053 *) enable_dlopen_self_static=unknown ;;
16054 esac
16055fi
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073striplib=
16074old_striplib=
cristy8b350f62009-11-15 23:12:43 +000016075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
cristy3ed852e2009-09-05 21:47:34 +000016076$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16077if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16079 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
cristy8b350f62009-11-15 23:12:43 +000016080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016081$as_echo "yes" >&6; }
16082else
16083# FIXME - insert some real tests, host_os isn't really good enough
16084 case $host_os in
16085 darwin*)
16086 if test -n "$STRIP" ; then
16087 striplib="$STRIP -x"
16088 old_striplib="$STRIP -S"
cristy8b350f62009-11-15 23:12:43 +000016089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000016090$as_echo "yes" >&6; }
16091 else
cristy8b350f62009-11-15 23:12:43 +000016092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016093$as_echo "no" >&6; }
16094 fi
16095 ;;
16096 *)
cristy8b350f62009-11-15 23:12:43 +000016097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016098$as_echo "no" >&6; }
16099 ;;
16100 esac
16101fi
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114 # Report which library types will actually be built
cristy8b350f62009-11-15 23:12:43 +000016115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016116$as_echo_n "checking if libtool supports shared libraries... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016118$as_echo "$can_build_shared" >&6; }
16119
cristy8b350f62009-11-15 23:12:43 +000016120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016121$as_echo_n "checking whether to build shared libraries... " >&6; }
16122 test "$can_build_shared" = "no" && enable_shared=no
16123
16124 # On AIX, shared libraries and static libraries use the same namespace, and
16125 # are all built from PIC.
16126 case $host_os in
16127 aix3*)
16128 test "$enable_shared" = yes && enable_static=no
16129 if test -n "$RANLIB"; then
16130 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16131 postinstall_cmds='$RANLIB $lib'
16132 fi
16133 ;;
16134
16135 aix[4-9]*)
16136 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16137 test "$enable_shared" = yes && enable_static=no
16138 fi
16139 ;;
16140 esac
cristy8b350f62009-11-15 23:12:43 +000016141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
cristy3ed852e2009-09-05 21:47:34 +000016142$as_echo "$enable_shared" >&6; }
16143
cristy8b350f62009-11-15 23:12:43 +000016144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016145$as_echo_n "checking whether to build static libraries... " >&6; }
16146 # Make sure either enable_shared or enable_static is yes.
16147 test "$enable_shared" = yes || enable_static=yes
cristy8b350f62009-11-15 23:12:43 +000016148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
cristy3ed852e2009-09-05 21:47:34 +000016149$as_echo "$enable_static" >&6; }
16150
16151
16152
16153
16154fi
16155ac_ext=c
16156ac_cpp='$CPP $CPPFLAGS'
16157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159ac_compiler_gnu=$ac_cv_c_compiler_gnu
16160
16161CC="$lt_save_CC"
16162
16163
16164ac_ext=cpp
16165ac_cpp='$CXXCPP $CPPFLAGS'
16166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16169
16170archive_cmds_need_lc_CXX=no
16171allow_undefined_flag_CXX=
16172always_export_symbols_CXX=no
16173archive_expsym_cmds_CXX=
16174compiler_needs_object_CXX=no
16175export_dynamic_flag_spec_CXX=
16176hardcode_direct_CXX=no
16177hardcode_direct_absolute_CXX=no
16178hardcode_libdir_flag_spec_CXX=
16179hardcode_libdir_flag_spec_ld_CXX=
16180hardcode_libdir_separator_CXX=
16181hardcode_minus_L_CXX=no
16182hardcode_shlibpath_var_CXX=unsupported
16183hardcode_automatic_CXX=no
16184inherit_rpath_CXX=no
16185module_cmds_CXX=
16186module_expsym_cmds_CXX=
16187link_all_deplibs_CXX=unknown
16188old_archive_cmds_CXX=$old_archive_cmds
16189no_undefined_flag_CXX=
16190whole_archive_flag_spec_CXX=
16191enable_shared_with_static_runtimes_CXX=no
16192
16193# Source file extension for C++ test sources.
16194ac_ext=cpp
16195
16196# Object file extension for compiled C++ test sources.
16197objext=o
16198objext_CXX=$objext
16199
16200# No sense in running all these tests if we already determined that
16201# the CXX compiler isn't working. Some variables (like enable_shared)
16202# are currently assumed to apply to all compilers on this platform,
16203# and will be corrupted by setting them based on a non-working compiler.
16204if test "$_lt_caught_CXX_error" != yes; then
16205 # Code to be used in simple compile tests
16206 lt_simple_compile_test_code="int some_variable = 0;"
16207
16208 # Code to be used in simple link tests
16209 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16210
16211 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16212
16213
16214
16215
16216
16217
16218# If no C compiler was specified, use CC.
16219LTCC=${LTCC-"$CC"}
16220
16221# If no C compiler flags were specified, use CFLAGS.
16222LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16223
16224# Allow CC to be a program name with arguments.
16225compiler=$CC
16226
16227
16228 # save warnings/boilerplate of simple test code
16229 ac_outfile=conftest.$ac_objext
16230echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16231eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16232_lt_compiler_boilerplate=`cat conftest.err`
16233$RM conftest*
16234
16235 ac_outfile=conftest.$ac_objext
16236echo "$lt_simple_link_test_code" >conftest.$ac_ext
16237eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16238_lt_linker_boilerplate=`cat conftest.err`
16239$RM -r conftest*
16240
16241
16242 # Allow CC to be a program name with arguments.
16243 lt_save_CC=$CC
16244 lt_save_LD=$LD
16245 lt_save_GCC=$GCC
16246 GCC=$GXX
16247 lt_save_with_gnu_ld=$with_gnu_ld
16248 lt_save_path_LD=$lt_cv_path_LD
16249 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16250 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16251 else
16252 $as_unset lt_cv_prog_gnu_ld
16253 fi
16254 if test -n "${lt_cv_path_LDCXX+set}"; then
16255 lt_cv_path_LD=$lt_cv_path_LDCXX
16256 else
16257 $as_unset lt_cv_path_LD
16258 fi
16259 test -z "${LDCXX+set}" || LD=$LDCXX
16260 CC=${CXX-"c++"}
16261 compiler=$CC
16262 compiler_CXX=$CC
16263 for cc_temp in $compiler""; do
16264 case $cc_temp in
16265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16267 \-*) ;;
16268 *) break;;
16269 esac
16270done
cristy18304f92009-11-22 15:48:26 +000016271cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
cristy3ed852e2009-09-05 21:47:34 +000016272
16273
16274 if test -n "$compiler"; then
16275 # We don't want -fno-exception when compiling C++ code, so set the
16276 # no_builtin_flag separately
16277 if test "$GXX" = yes; then
16278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16279 else
16280 lt_prog_compiler_no_builtin_flag_CXX=
16281 fi
16282
16283 if test "$GXX" = yes; then
16284 # Set up default GNU C++ configuration
16285
16286
16287
16288# Check whether --with-gnu-ld was given.
cristy8b350f62009-11-15 23:12:43 +000016289if test "${with_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16291else
16292 with_gnu_ld=no
16293fi
16294
16295ac_prog=ld
16296if test "$GCC" = yes; then
16297 # Check if gcc -print-prog-name=ld gives a path.
cristy8b350f62009-11-15 23:12:43 +000016298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000016299$as_echo_n "checking for ld used by $CC... " >&6; }
16300 case $host in
16301 *-*-mingw*)
16302 # gcc leaves a trailing carriage return which upsets mingw
16303 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16304 *)
16305 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16306 esac
16307 case $ac_prog in
16308 # Accept absolute paths.
16309 [\\/]* | ?:[\\/]*)
16310 re_direlt='/[^/][^/]*/\.\./'
16311 # Canonicalize the pathname of ld
16312 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16313 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16314 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16315 done
16316 test -z "$LD" && LD="$ac_prog"
16317 ;;
16318 "")
16319 # If it fails, then pretend we aren't using GCC.
16320 ac_prog=ld
16321 ;;
16322 *)
16323 # If it is relative, then search for the first ld in PATH.
16324 with_gnu_ld=unknown
16325 ;;
16326 esac
16327elif test "$with_gnu_ld" = yes; then
cristy8b350f62009-11-15 23:12:43 +000016328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016329$as_echo_n "checking for GNU ld... " >&6; }
16330else
cristy8b350f62009-11-15 23:12:43 +000016331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016332$as_echo_n "checking for non-GNU ld... " >&6; }
16333fi
cristy8b350f62009-11-15 23:12:43 +000016334if test "${lt_cv_path_LD+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016335 $as_echo_n "(cached) " >&6
16336else
16337 if test -z "$LD"; then
16338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16339 for ac_dir in $PATH; do
16340 IFS="$lt_save_ifs"
16341 test -z "$ac_dir" && ac_dir=.
16342 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16343 lt_cv_path_LD="$ac_dir/$ac_prog"
16344 # Check to see if the program is GNU ld. I'd rather use --version,
16345 # but apparently some variants of GNU ld only accept -v.
16346 # Break only if it was the GNU/non-GNU ld that we prefer.
16347 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16348 *GNU* | *'with BFD'*)
16349 test "$with_gnu_ld" != no && break
16350 ;;
16351 *)
16352 test "$with_gnu_ld" != yes && break
16353 ;;
16354 esac
16355 fi
16356 done
16357 IFS="$lt_save_ifs"
16358else
16359 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16360fi
16361fi
16362
16363LD="$lt_cv_path_LD"
16364if test -n "$LD"; then
cristy8b350f62009-11-15 23:12:43 +000016365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
cristy3ed852e2009-09-05 21:47:34 +000016366$as_echo "$LD" >&6; }
16367else
cristy8b350f62009-11-15 23:12:43 +000016368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000016369$as_echo "no" >&6; }
16370fi
cristy8b350f62009-11-15 23:12:43 +000016371test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016373$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000016374if test "${lt_cv_prog_gnu_ld+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000016375 $as_echo_n "(cached) " >&6
16376else
16377 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16378case `$LD -v 2>&1 </dev/null` in
16379*GNU* | *'with BFD'*)
16380 lt_cv_prog_gnu_ld=yes
16381 ;;
16382*)
16383 lt_cv_prog_gnu_ld=no
16384 ;;
16385esac
16386fi
cristy8b350f62009-11-15 23:12:43 +000016387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
cristy3ed852e2009-09-05 21:47:34 +000016388$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16389with_gnu_ld=$lt_cv_prog_gnu_ld
16390
16391
16392
16393
16394
16395
16396
16397 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16398 # archiving commands below assume that GNU ld is being used.
16399 if test "$with_gnu_ld" = yes; then
16400 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16401 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'
16402
16403 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16405
16406 # If archive_cmds runs LD, not CC, wlarc should be empty
16407 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16408 # investigate it a little bit more. (MM)
16409 wlarc='${wl}'
16410
16411 # ancient GNU ld didn't support --whole-archive et. al.
16412 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16413 $GREP 'no-whole-archive' > /dev/null; then
16414 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16415 else
16416 whole_archive_flag_spec_CXX=
16417 fi
16418 else
16419 with_gnu_ld=no
16420 wlarc=
16421
16422 # A generic and very simple default shared library creation
16423 # command for GNU C++ for the case where it uses the native
16424 # linker, instead of GNU ld. If possible, this setting should
16425 # overridden to take advantage of the native linker features on
16426 # the platform it is being used on.
16427 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16428 fi
16429
16430 # Commands to make compiler produce verbose output that lists
16431 # what "hidden" libraries, object files and flags are used when
16432 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000016433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000016434
16435 else
16436 GXX=no
16437 with_gnu_ld=no
16438 wlarc=
16439 fi
16440
16441 # PORTME: fill in a description of your system's C++ link characteristics
cristy8b350f62009-11-15 23:12:43 +000016442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000016443$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16444 ld_shlibs_CXX=yes
16445 case $host_os in
16446 aix3*)
16447 # FIXME: insert proper C++ library support
16448 ld_shlibs_CXX=no
16449 ;;
16450 aix[4-9]*)
16451 if test "$host_cpu" = ia64; then
16452 # On IA64, the linker does run time linking by default, so we don't
16453 # have to do anything special.
16454 aix_use_runtimelinking=no
16455 exp_sym_flag='-Bexport'
16456 no_entry_flag=""
16457 else
16458 aix_use_runtimelinking=no
16459
16460 # Test if we are trying to use run time linking or normal
16461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16462 # need to do runtime linking.
16463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16464 for ld_flag in $LDFLAGS; do
16465 case $ld_flag in
16466 *-brtl*)
16467 aix_use_runtimelinking=yes
16468 break
16469 ;;
16470 esac
16471 done
16472 ;;
16473 esac
16474
16475 exp_sym_flag='-bexport'
16476 no_entry_flag='-bnoentry'
16477 fi
16478
16479 # When large executables or shared objects are built, AIX ld can
16480 # have problems creating the table of contents. If linking a library
16481 # or program results in "error TOC overflow" add -mminimal-toc to
16482 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16483 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16484
16485 archive_cmds_CXX=''
16486 hardcode_direct_CXX=yes
16487 hardcode_direct_absolute_CXX=yes
16488 hardcode_libdir_separator_CXX=':'
16489 link_all_deplibs_CXX=yes
16490 file_list_spec_CXX='${wl}-f,'
16491
16492 if test "$GXX" = yes; then
16493 case $host_os in aix4.[012]|aix4.[012].*)
16494 # We only want to do this on AIX 4.2 and lower, the check
16495 # below for broken collect2 doesn't work under 4.3+
16496 collect2name=`${CC} -print-prog-name=collect2`
16497 if test -f "$collect2name" &&
16498 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16499 then
16500 # We have reworked collect2
16501 :
16502 else
16503 # We have old collect2
16504 hardcode_direct_CXX=unsupported
16505 # It fails to find uninstalled libraries when the uninstalled
16506 # path is not listed in the libpath. Setting hardcode_minus_L
16507 # to unsupported forces relinking
16508 hardcode_minus_L_CXX=yes
16509 hardcode_libdir_flag_spec_CXX='-L$libdir'
16510 hardcode_libdir_separator_CXX=
16511 fi
16512 esac
16513 shared_flag='-shared'
16514 if test "$aix_use_runtimelinking" = yes; then
16515 shared_flag="$shared_flag "'${wl}-G'
16516 fi
16517 else
16518 # not using gcc
16519 if test "$host_cpu" = ia64; then
16520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16521 # chokes on -Wl,-G. The following line is correct:
16522 shared_flag='-G'
16523 else
16524 if test "$aix_use_runtimelinking" = yes; then
16525 shared_flag='${wl}-G'
16526 else
16527 shared_flag='${wl}-bM:SRE'
16528 fi
16529 fi
16530 fi
16531
16532 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16533 # It seems that -bexpall does not export symbols beginning with
16534 # underscore (_), so it is better to generate a list of symbols to
16535 # export.
16536 always_export_symbols_CXX=yes
16537 if test "$aix_use_runtimelinking" = yes; then
16538 # Warning - without using the other runtime loading flags (-brtl),
16539 # -berok will link without error, but may produce a broken library.
16540 allow_undefined_flag_CXX='-berok'
16541 # Determine the default libpath from the value encoded in an empty
16542 # executable.
cristy8b350f62009-11-15 23:12:43 +000016543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016544/* end confdefs.h. */
16545
16546int
16547main ()
16548{
16549
16550 ;
16551 return 0;
16552}
16553_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016554if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016555
16556lt_aix_libpath_sed='
16557 /Import File Strings/,/^$/ {
16558 /^0/ {
16559 s/^0 *\(.*\)$/\1/
16560 p
16561 }
16562 }'
16563aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16564# Check for a 64-bit object if we didn't find anything.
16565if test -z "$aix_libpath"; then
16566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16567fi
cristy3ed852e2009-09-05 21:47:34 +000016568fi
cristy8b350f62009-11-15 23:12:43 +000016569rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016571if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16572
16573 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16574
cristy18304f92009-11-22 15:48:26 +000016575 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 +000016576 else
16577 if test "$host_cpu" = ia64; then
16578 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16579 allow_undefined_flag_CXX="-z nodefs"
16580 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"
16581 else
16582 # Determine the default libpath from the value encoded in an
16583 # empty executable.
cristy8b350f62009-11-15 23:12:43 +000016584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016585/* end confdefs.h. */
16586
16587int
16588main ()
16589{
16590
16591 ;
16592 return 0;
16593}
16594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000016595if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000016596
16597lt_aix_libpath_sed='
16598 /Import File Strings/,/^$/ {
16599 /^0/ {
16600 s/^0 *\(.*\)$/\1/
16601 p
16602 }
16603 }'
16604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16605# Check for a 64-bit object if we didn't find anything.
16606if test -z "$aix_libpath"; then
16607 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16608fi
cristy3ed852e2009-09-05 21:47:34 +000016609fi
cristy8b350f62009-11-15 23:12:43 +000016610rm -f core conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000016612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16613
16614 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16615 # Warning - without using the other run time loading flags,
16616 # -berok will link without error, but may produce a broken library.
16617 no_undefined_flag_CXX=' ${wl}-bernotok'
16618 allow_undefined_flag_CXX=' ${wl}-berok'
cristy18304f92009-11-22 15:48:26 +000016619 # Exported symbols can be pulled into shared objects from archives
16620 whole_archive_flag_spec_CXX='$convenience'
cristy3ed852e2009-09-05 21:47:34 +000016621 archive_cmds_need_lc_CXX=yes
16622 # This is similar to how AIX traditionally builds its shared
16623 # libraries.
16624 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'
16625 fi
16626 fi
16627 ;;
16628
16629 beos*)
16630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16631 allow_undefined_flag_CXX=unsupported
16632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16633 # support --undefined. This deserves some investigation. FIXME
16634 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16635 else
16636 ld_shlibs_CXX=no
16637 fi
16638 ;;
16639
16640 chorus*)
16641 case $cc_basename in
16642 *)
16643 # FIXME: insert proper C++ library support
16644 ld_shlibs_CXX=no
16645 ;;
16646 esac
16647 ;;
16648
16649 cygwin* | mingw* | pw32* | cegcc*)
16650 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16651 # as there is no search path for DLLs.
16652 hardcode_libdir_flag_spec_CXX='-L$libdir'
16653 allow_undefined_flag_CXX=unsupported
16654 always_export_symbols_CXX=no
16655 enable_shared_with_static_runtimes_CXX=yes
16656
16657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16658 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'
16659 # If the export-symbols file already is a .def file (1st line
16660 # is EXPORTS), use it as is; otherwise, prepend...
16661 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16662 cp $export_symbols $output_objdir/$soname.def;
16663 else
16664 echo EXPORTS > $output_objdir/$soname.def;
16665 cat $export_symbols >> $output_objdir/$soname.def;
16666 fi~
16667 $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'
16668 else
16669 ld_shlibs_CXX=no
16670 fi
16671 ;;
16672 darwin* | rhapsody*)
16673
16674
16675 archive_cmds_need_lc_CXX=no
16676 hardcode_direct_CXX=no
16677 hardcode_automatic_CXX=yes
16678 hardcode_shlibpath_var_CXX=unsupported
cristy18304f92009-11-22 15:48:26 +000016679 whole_archive_flag_spec_CXX=''
cristy3ed852e2009-09-05 21:47:34 +000016680 link_all_deplibs_CXX=yes
16681 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16682 case $cc_basename in
16683 ifort*) _lt_dar_can_shared=yes ;;
16684 *) _lt_dar_can_shared=$GCC ;;
16685 esac
16686 if test "$_lt_dar_can_shared" = "yes"; then
cristy18304f92009-11-22 15:48:26 +000016687 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000016688 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}"
16689 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16690 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}"
16691 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}"
16692 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16693 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}"
16694 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}"
16695 fi
16696
16697 else
16698 ld_shlibs_CXX=no
16699 fi
16700
16701 ;;
16702
16703 dgux*)
16704 case $cc_basename in
16705 ec++*)
16706 # FIXME: insert proper C++ library support
16707 ld_shlibs_CXX=no
16708 ;;
16709 ghcx*)
16710 # Green Hills C++ Compiler
16711 # FIXME: insert proper C++ library support
16712 ld_shlibs_CXX=no
16713 ;;
16714 *)
16715 # FIXME: insert proper C++ library support
16716 ld_shlibs_CXX=no
16717 ;;
16718 esac
16719 ;;
16720
16721 freebsd[12]*)
16722 # C++ shared libraries reported to be fairly broken before
16723 # switch to ELF
16724 ld_shlibs_CXX=no
16725 ;;
16726
16727 freebsd-elf*)
16728 archive_cmds_need_lc_CXX=no
16729 ;;
16730
16731 freebsd* | dragonfly*)
16732 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16733 # conventions
16734 ld_shlibs_CXX=yes
16735 ;;
16736
16737 gnu*)
16738 ;;
16739
16740 hpux9*)
16741 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16742 hardcode_libdir_separator_CXX=:
16743 export_dynamic_flag_spec_CXX='${wl}-E'
16744 hardcode_direct_CXX=yes
16745 hardcode_minus_L_CXX=yes # Not in the search PATH,
16746 # but as the default
16747 # location of the library.
16748
16749 case $cc_basename in
16750 CC*)
16751 # FIXME: insert proper C++ library support
16752 ld_shlibs_CXX=no
16753 ;;
16754 aCC*)
16755 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'
16756 # Commands to make compiler produce verbose output that lists
16757 # what "hidden" libraries, object files and flags are used when
16758 # linking a shared library.
16759 #
16760 # There doesn't appear to be a way to prevent this compiler from
16761 # explicitly linking system object files so we need to strip them
16762 # from the output so that they don't get included in the library
16763 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016764 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 +000016765 ;;
16766 *)
16767 if test "$GXX" = yes; then
16768 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'
16769 else
16770 # FIXME: insert proper C++ library support
16771 ld_shlibs_CXX=no
16772 fi
16773 ;;
16774 esac
16775 ;;
16776
16777 hpux10*|hpux11*)
16778 if test $with_gnu_ld = no; then
16779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16780 hardcode_libdir_separator_CXX=:
16781
16782 case $host_cpu in
16783 hppa*64*|ia64*)
16784 ;;
16785 *)
16786 export_dynamic_flag_spec_CXX='${wl}-E'
16787 ;;
16788 esac
16789 fi
16790 case $host_cpu in
16791 hppa*64*|ia64*)
16792 hardcode_direct_CXX=no
16793 hardcode_shlibpath_var_CXX=no
16794 ;;
16795 *)
16796 hardcode_direct_CXX=yes
16797 hardcode_direct_absolute_CXX=yes
16798 hardcode_minus_L_CXX=yes # Not in the search PATH,
16799 # but as the default
16800 # location of the library.
16801 ;;
16802 esac
16803
16804 case $cc_basename in
16805 CC*)
16806 # FIXME: insert proper C++ library support
16807 ld_shlibs_CXX=no
16808 ;;
16809 aCC*)
16810 case $host_cpu in
16811 hppa*64*)
16812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16813 ;;
16814 ia64*)
16815 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16816 ;;
16817 *)
16818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16819 ;;
16820 esac
16821 # Commands to make compiler produce verbose output that lists
16822 # what "hidden" libraries, object files and flags are used when
16823 # linking a shared library.
16824 #
16825 # There doesn't appear to be a way to prevent this compiler from
16826 # explicitly linking system object files so we need to strip them
16827 # from the output so that they don't get included in the library
16828 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016829 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 +000016830 ;;
16831 *)
16832 if test "$GXX" = yes; then
16833 if test $with_gnu_ld = no; then
16834 case $host_cpu in
16835 hppa*64*)
16836 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16837 ;;
16838 ia64*)
16839 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16840 ;;
16841 *)
16842 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'
16843 ;;
16844 esac
16845 fi
16846 else
16847 # FIXME: insert proper C++ library support
16848 ld_shlibs_CXX=no
16849 fi
16850 ;;
16851 esac
16852 ;;
16853
16854 interix[3-9]*)
16855 hardcode_direct_CXX=no
16856 hardcode_shlibpath_var_CXX=no
16857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16858 export_dynamic_flag_spec_CXX='${wl}-E'
16859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16860 # Instead, shared libraries are loaded at an image base (0x10000000 by
16861 # default) and relocated if they conflict, which is a slow very memory
16862 # consuming and fragmenting process. To avoid this, we pick a random,
16863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16865 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'
16866 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'
16867 ;;
16868 irix5* | irix6*)
16869 case $cc_basename in
16870 CC*)
16871 # SGI C++
cristy18304f92009-11-22 15:48:26 +000016872 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 +000016873
16874 # Archives containing C++ object files must be created using
16875 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16876 # necessary to make sure instantiated templates are included
16877 # in the archive.
16878 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16879 ;;
16880 *)
16881 if test "$GXX" = yes; then
16882 if test "$with_gnu_ld" = no; then
cristy18304f92009-11-22 15:48:26 +000016883 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 +000016884 else
cristy18304f92009-11-22 15:48:26 +000016885 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 +000016886 fi
16887 fi
16888 link_all_deplibs_CXX=yes
16889 ;;
16890 esac
16891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16892 hardcode_libdir_separator_CXX=:
16893 inherit_rpath_CXX=yes
16894 ;;
16895
cristy18304f92009-11-22 15:48:26 +000016896 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000016897 case $cc_basename in
16898 KCC*)
16899 # Kuck and Associates, Inc. (KAI) C++ Compiler
16900
16901 # KCC will only create a shared library if the output file
16902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16903 # to its proper name (with version) after linking.
16904 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'
16905 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'
16906 # Commands to make compiler produce verbose output that lists
16907 # what "hidden" libraries, object files and flags are used when
16908 # linking a shared library.
16909 #
16910 # There doesn't appear to be a way to prevent this compiler from
16911 # explicitly linking system object files so we need to strip them
16912 # from the output so that they don't get included in the library
16913 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016914 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 +000016915
16916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16918
16919 # Archives containing C++ object files must be created using
16920 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16921 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16922 ;;
16923 icpc* | ecpc* )
16924 # Intel C++
16925 with_gnu_ld=yes
16926 # version 8.0 and above of icpc choke on multiply defined symbols
16927 # if we add $predep_objects and $postdep_objects, however 7.1 and
16928 # earlier do not add the objects themselves.
16929 case `$CC -V 2>&1` in
16930 *"Version 7."*)
16931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16932 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'
16933 ;;
16934 *) # Version 8.0 or newer
16935 tmp_idyn=
16936 case $host_cpu in
16937 ia64*) tmp_idyn=' -i_dynamic';;
16938 esac
16939 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16940 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'
16941 ;;
16942 esac
16943 archive_cmds_need_lc_CXX=no
16944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16946 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16947 ;;
16948 pgCC* | pgcpp*)
16949 # Portland Group C++ compiler
16950 case `$CC -V` in
16951 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16952 prelink_cmds_CXX='tpldir=Template.dir~
16953 rm -rf $tpldir~
16954 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16955 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16956 old_archive_cmds_CXX='tpldir=Template.dir~
16957 rm -rf $tpldir~
16958 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16959 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16960 $RANLIB $oldlib'
16961 archive_cmds_CXX='tpldir=Template.dir~
16962 rm -rf $tpldir~
16963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16964 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16965 archive_expsym_cmds_CXX='tpldir=Template.dir~
16966 rm -rf $tpldir~
16967 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16968 $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'
16969 ;;
16970 *) # Version 6 will use weak symbols
16971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16972 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'
16973 ;;
16974 esac
16975
16976 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy18304f92009-11-22 15:48:26 +000016978 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 +000016979 ;;
16980 cxx*)
16981 # Compaq C++
16982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16983 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'
16984
16985 runpath_var=LD_RUN_PATH
16986 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16987 hardcode_libdir_separator_CXX=:
16988
16989 # Commands to make compiler produce verbose output that lists
16990 # what "hidden" libraries, object files and flags are used when
16991 # linking a shared library.
16992 #
16993 # There doesn't appear to be a way to prevent this compiler from
16994 # explicitly linking system object files so we need to strip them
16995 # from the output so that they don't get included in the library
16996 # dependencies.
cristy18304f92009-11-22 15:48:26 +000016997 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 +000016998 ;;
cristy18304f92009-11-22 15:48:26 +000016999 xl*)
cristy3ed852e2009-09-05 21:47:34 +000017000 # IBM XL 8.0 on PPC, with GNU ld
17001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17003 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004 if test "x$supports_anon_versioning" = xyes; then
17005 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17007 echo "local: *; };" >> $output_objdir/$libname.ver~
17008 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17009 fi
17010 ;;
17011 *)
17012 case `$CC -V 2>&1 | sed 5q` in
17013 *Sun\ C*)
17014 # Sun C++ 5.9
17015 no_undefined_flag_CXX=' -zdefs'
17016 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17017 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'
17018 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy18304f92009-11-22 15:48:26 +000017019 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 +000017020 compiler_needs_object_CXX=yes
17021
17022 # Not sure whether something based on
17023 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17024 # would be better.
cristy18304f92009-11-22 15:48:26 +000017025 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017026
17027 # Archives containing C++ object files must be created using
17028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17029 # necessary to make sure instantiated templates are included
17030 # in the archive.
17031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17032 ;;
17033 esac
17034 ;;
17035 esac
17036 ;;
17037
17038 lynxos*)
17039 # FIXME: insert proper C++ library support
17040 ld_shlibs_CXX=no
17041 ;;
17042
17043 m88k*)
17044 # FIXME: insert proper C++ library support
17045 ld_shlibs_CXX=no
17046 ;;
17047
17048 mvs*)
17049 case $cc_basename in
17050 cxx*)
17051 # FIXME: insert proper C++ library support
17052 ld_shlibs_CXX=no
17053 ;;
17054 *)
17055 # FIXME: insert proper C++ library support
17056 ld_shlibs_CXX=no
17057 ;;
17058 esac
17059 ;;
17060
17061 netbsd*)
17062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17063 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17064 wlarc=
17065 hardcode_libdir_flag_spec_CXX='-R$libdir'
17066 hardcode_direct_CXX=yes
17067 hardcode_shlibpath_var_CXX=no
17068 fi
17069 # Workaround some broken pre-1.5 toolchains
17070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17071 ;;
17072
17073 *nto* | *qnx*)
17074 ld_shlibs_CXX=yes
17075 ;;
17076
17077 openbsd2*)
17078 # C++ shared libraries are fairly broken
17079 ld_shlibs_CXX=no
17080 ;;
17081
17082 openbsd*)
17083 if test -f /usr/libexec/ld.so; then
17084 hardcode_direct_CXX=yes
17085 hardcode_shlibpath_var_CXX=no
17086 hardcode_direct_absolute_CXX=yes
17087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17090 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17091 export_dynamic_flag_spec_CXX='${wl}-E'
17092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17093 fi
cristy18304f92009-11-22 15:48:26 +000017094 output_verbose_link_cmd=echo
cristy3ed852e2009-09-05 21:47:34 +000017095 else
17096 ld_shlibs_CXX=no
17097 fi
17098 ;;
17099
17100 osf3* | osf4* | osf5*)
17101 case $cc_basename in
17102 KCC*)
17103 # Kuck and Associates, Inc. (KAI) C++ Compiler
17104
17105 # KCC will only create a shared library if the output file
17106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17107 # to its proper name (with version) after linking.
17108 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'
17109
17110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17111 hardcode_libdir_separator_CXX=:
17112
17113 # Archives containing C++ object files must be created using
17114 # the KAI C++ compiler.
17115 case $host in
17116 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17117 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17118 esac
17119 ;;
17120 RCC*)
17121 # Rational C++ 2.4.1
17122 # FIXME: insert proper C++ library support
17123 ld_shlibs_CXX=no
17124 ;;
17125 cxx*)
17126 case $host in
17127 osf3*)
17128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy18304f92009-11-22 15:48:26 +000017129 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 +000017130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17131 ;;
17132 *)
17133 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy18304f92009-11-22 15:48:26 +000017134 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 +000017135 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17136 echo "-hidden">> $lib.exp~
cristy18304f92009-11-22 15:48:26 +000017137 $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 +000017138 $RM $lib.exp'
17139 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17140 ;;
17141 esac
17142
17143 hardcode_libdir_separator_CXX=:
17144
17145 # Commands to make compiler produce verbose output that lists
17146 # what "hidden" libraries, object files and flags are used when
17147 # linking a shared library.
17148 #
17149 # There doesn't appear to be a way to prevent this compiler from
17150 # explicitly linking system object files so we need to strip them
17151 # from the output so that they don't get included in the library
17152 # dependencies.
cristy18304f92009-11-22 15:48:26 +000017153 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 +000017154 ;;
17155 *)
17156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17158 case $host in
17159 osf3*)
cristy18304f92009-11-22 15:48:26 +000017160 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 +000017161 ;;
17162 *)
cristy18304f92009-11-22 15:48:26 +000017163 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 +000017164 ;;
17165 esac
17166
17167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17168 hardcode_libdir_separator_CXX=:
17169
17170 # Commands to make compiler produce verbose output that lists
17171 # what "hidden" libraries, object files and flags are used when
17172 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017174
17175 else
17176 # FIXME: insert proper C++ library support
17177 ld_shlibs_CXX=no
17178 fi
17179 ;;
17180 esac
17181 ;;
17182
17183 psos*)
17184 # FIXME: insert proper C++ library support
17185 ld_shlibs_CXX=no
17186 ;;
17187
17188 sunos4*)
17189 case $cc_basename in
17190 CC*)
17191 # Sun C++ 4.x
17192 # FIXME: insert proper C++ library support
17193 ld_shlibs_CXX=no
17194 ;;
17195 lcc*)
17196 # Lucid
17197 # FIXME: insert proper C++ library support
17198 ld_shlibs_CXX=no
17199 ;;
17200 *)
17201 # FIXME: insert proper C++ library support
17202 ld_shlibs_CXX=no
17203 ;;
17204 esac
17205 ;;
17206
17207 solaris*)
17208 case $cc_basename in
17209 CC*)
17210 # Sun C++ 4.2, 5.x and Centerline C++
17211 archive_cmds_need_lc_CXX=yes
17212 no_undefined_flag_CXX=' -zdefs'
17213 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17214 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17215 $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'
17216
17217 hardcode_libdir_flag_spec_CXX='-R$libdir'
17218 hardcode_shlibpath_var_CXX=no
17219 case $host_os in
17220 solaris2.[0-5] | solaris2.[0-5].*) ;;
17221 *)
17222 # The compiler driver will combine and reorder linker options,
17223 # but understands `-z linker_flag'.
17224 # Supported since Solaris 2.6 (maybe 2.5.1?)
17225 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17226 ;;
17227 esac
17228 link_all_deplibs_CXX=yes
17229
cristy18304f92009-11-22 15:48:26 +000017230 output_verbose_link_cmd='echo'
cristy3ed852e2009-09-05 21:47:34 +000017231
17232 # Archives containing C++ object files must be created using
17233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17234 # necessary to make sure instantiated templates are included
17235 # in the archive.
17236 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17237 ;;
17238 gcx*)
17239 # Green Hills C++ Compiler
17240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17241
17242 # The C++ compiler must be used to create the archive.
17243 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17244 ;;
17245 *)
17246 # GNU C++ compiler with Solaris linker
17247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17248 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17249 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17250 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17252 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17253
17254 # Commands to make compiler produce verbose output that lists
17255 # what "hidden" libraries, object files and flags are used when
17256 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017258 else
17259 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17260 # platform.
17261 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17262 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17263 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17264
17265 # Commands to make compiler produce verbose output that lists
17266 # what "hidden" libraries, object files and flags are used when
17267 # linking a shared library.
cristy18304f92009-11-22 15:48:26 +000017268 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
cristy3ed852e2009-09-05 21:47:34 +000017269 fi
17270
17271 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17272 case $host_os in
17273 solaris2.[0-5] | solaris2.[0-5].*) ;;
17274 *)
17275 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17276 ;;
17277 esac
17278 fi
17279 ;;
17280 esac
17281 ;;
17282
17283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17284 no_undefined_flag_CXX='${wl}-z,text'
17285 archive_cmds_need_lc_CXX=no
17286 hardcode_shlibpath_var_CXX=no
17287 runpath_var='LD_RUN_PATH'
17288
17289 case $cc_basename in
17290 CC*)
17291 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17292 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17293 ;;
17294 *)
17295 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17296 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17297 ;;
17298 esac
17299 ;;
17300
17301 sysv5* | sco3.2v5* | sco5v6*)
17302 # Note: We can NOT use -z defs as we might desire, because we do not
17303 # link with -lc, and that would cause any symbols used from libc to
17304 # always be unresolved, which means just about no library would
17305 # ever link correctly. If we're not using GNU ld we use -z text
17306 # though, which does catch some bad symbols but isn't as heavy-handed
17307 # as -z defs.
17308 no_undefined_flag_CXX='${wl}-z,text'
17309 allow_undefined_flag_CXX='${wl}-z,nodefs'
17310 archive_cmds_need_lc_CXX=no
17311 hardcode_shlibpath_var_CXX=no
17312 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17313 hardcode_libdir_separator_CXX=':'
17314 link_all_deplibs_CXX=yes
17315 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17316 runpath_var='LD_RUN_PATH'
17317
17318 case $cc_basename in
17319 CC*)
17320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17322 ;;
17323 *)
17324 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17326 ;;
17327 esac
17328 ;;
17329
17330 tandem*)
17331 case $cc_basename in
17332 NCC*)
17333 # NonStop-UX NCC 3.20
17334 # FIXME: insert proper C++ library support
17335 ld_shlibs_CXX=no
17336 ;;
17337 *)
17338 # FIXME: insert proper C++ library support
17339 ld_shlibs_CXX=no
17340 ;;
17341 esac
17342 ;;
17343
17344 vxworks*)
17345 # FIXME: insert proper C++ library support
17346 ld_shlibs_CXX=no
17347 ;;
17348
17349 *)
17350 # FIXME: insert proper C++ library support
17351 ld_shlibs_CXX=no
17352 ;;
17353 esac
17354
cristy8b350f62009-11-15 23:12:43 +000017355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017356$as_echo "$ld_shlibs_CXX" >&6; }
17357 test "$ld_shlibs_CXX" = no && can_build_shared=no
17358
17359 GCC_CXX="$GXX"
17360 LD_CXX="$LD"
17361
17362 ## CAVEAT EMPTOR:
17363 ## There is no encapsulation within the following macros, do not change
17364 ## the running order or otherwise move them around unless you know exactly
17365 ## what you are doing...
17366 # Dependencies to place before and after the object being linked:
17367predep_objects_CXX=
17368postdep_objects_CXX=
17369predeps_CXX=
17370postdeps_CXX=
17371compiler_lib_search_path_CXX=
17372
17373cat > conftest.$ac_ext <<_LT_EOF
17374class Foo
17375{
17376public:
17377 Foo (void) { a = 0; }
17378private:
17379 int a;
17380};
17381_LT_EOF
17382
cristy8b350f62009-11-15 23:12:43 +000017383if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000017384 (eval $ac_compile) 2>&5
17385 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000017386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17387 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000017388 # Parse the compiler output and extract the necessary
17389 # objects, libraries and library flags.
17390
17391 # Sentinel used to keep track of whether or not we are before
17392 # the conftest object file.
17393 pre_test_object_deps_done=no
17394
17395 for p in `eval "$output_verbose_link_cmd"`; do
17396 case $p in
17397
17398 -L* | -R* | -l*)
17399 # Some compilers place space between "-{L,R}" and the path.
17400 # Remove the space.
17401 if test $p = "-L" ||
17402 test $p = "-R"; then
17403 prev=$p
17404 continue
17405 else
17406 prev=
17407 fi
17408
17409 if test "$pre_test_object_deps_done" = no; then
17410 case $p in
17411 -L* | -R*)
17412 # Internal compiler library paths should come after those
17413 # provided the user. The postdeps already come after the
17414 # user supplied libs so there is no need to process them.
17415 if test -z "$compiler_lib_search_path_CXX"; then
17416 compiler_lib_search_path_CXX="${prev}${p}"
17417 else
17418 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17419 fi
17420 ;;
17421 # The "-l" case would never come before the object being
17422 # linked, so don't bother handling this case.
17423 esac
17424 else
17425 if test -z "$postdeps_CXX"; then
17426 postdeps_CXX="${prev}${p}"
17427 else
17428 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17429 fi
17430 fi
17431 ;;
17432
17433 *.$objext)
17434 # This assumes that the test object file only shows up
17435 # once in the compiler output.
17436 if test "$p" = "conftest.$objext"; then
17437 pre_test_object_deps_done=yes
17438 continue
17439 fi
17440
17441 if test "$pre_test_object_deps_done" = no; then
17442 if test -z "$predep_objects_CXX"; then
17443 predep_objects_CXX="$p"
17444 else
17445 predep_objects_CXX="$predep_objects_CXX $p"
17446 fi
17447 else
17448 if test -z "$postdep_objects_CXX"; then
17449 postdep_objects_CXX="$p"
17450 else
17451 postdep_objects_CXX="$postdep_objects_CXX $p"
17452 fi
17453 fi
17454 ;;
17455
17456 *) ;; # Ignore the rest.
17457
17458 esac
17459 done
17460
17461 # Clean up.
17462 rm -f a.out a.exe
17463else
17464 echo "libtool.m4: error: problem compiling CXX test program"
17465fi
17466
17467$RM -f confest.$objext
17468
17469# PORTME: override above test on systems where it is broken
17470case $host_os in
17471interix[3-9]*)
17472 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17473 # hack all around it, let's just trust "g++" to DTRT.
17474 predep_objects_CXX=
17475 postdep_objects_CXX=
17476 postdeps_CXX=
17477 ;;
17478
17479linux*)
17480 case `$CC -V 2>&1 | sed 5q` in
17481 *Sun\ C*)
17482 # Sun C++ 5.9
17483
17484 # The more standards-conforming stlport4 library is
17485 # incompatible with the Cstd library. Avoid specifying
17486 # it if it's in CXXFLAGS. Ignore libCrun as
17487 # -library=stlport4 depends on it.
17488 case " $CXX $CXXFLAGS " in
17489 *" -library=stlport4 "*)
17490 solaris_use_stlport4=yes
17491 ;;
17492 esac
17493
17494 if test "$solaris_use_stlport4" != yes; then
17495 postdeps_CXX='-library=Cstd -library=Crun'
17496 fi
17497 ;;
17498 esac
17499 ;;
17500
17501solaris*)
17502 case $cc_basename in
17503 CC*)
17504 # The more standards-conforming stlport4 library is
17505 # incompatible with the Cstd library. Avoid specifying
17506 # it if it's in CXXFLAGS. Ignore libCrun as
17507 # -library=stlport4 depends on it.
17508 case " $CXX $CXXFLAGS " in
17509 *" -library=stlport4 "*)
17510 solaris_use_stlport4=yes
17511 ;;
17512 esac
17513
17514 # Adding this requires a known-good setup of shared libraries for
17515 # Sun compiler versions before 5.6, else PIC objects from an old
17516 # archive will be linked into the output, leading to subtle bugs.
17517 if test "$solaris_use_stlport4" != yes; then
17518 postdeps_CXX='-library=Cstd -library=Crun'
17519 fi
17520 ;;
17521 esac
17522 ;;
17523esac
17524
17525
17526case " $postdeps_CXX " in
17527*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17528esac
17529 compiler_lib_search_dirs_CXX=
17530if test -n "${compiler_lib_search_path_CXX}"; then
17531 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17532fi
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564 lt_prog_compiler_wl_CXX=
17565lt_prog_compiler_pic_CXX=
17566lt_prog_compiler_static_CXX=
17567
cristy8b350f62009-11-15 23:12:43 +000017568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
cristy3ed852e2009-09-05 21:47:34 +000017569$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17570
17571 # C++ specific cases for pic, static, wl, etc.
17572 if test "$GXX" = yes; then
17573 lt_prog_compiler_wl_CXX='-Wl,'
17574 lt_prog_compiler_static_CXX='-static'
17575
17576 case $host_os in
17577 aix*)
17578 # All AIX code is PIC.
17579 if test "$host_cpu" = ia64; then
17580 # AIX 5 now supports IA64 processor
17581 lt_prog_compiler_static_CXX='-Bstatic'
17582 fi
17583 ;;
17584
17585 amigaos*)
17586 case $host_cpu in
17587 powerpc)
17588 # see comment about AmigaOS4 .so support
17589 lt_prog_compiler_pic_CXX='-fPIC'
17590 ;;
17591 m68k)
17592 # FIXME: we need at least 68020 code to build shared libraries, but
17593 # adding the `-m68020' flag to GCC prevents building anything better,
17594 # like `-m68040'.
17595 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17596 ;;
17597 esac
17598 ;;
17599
17600 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17601 # PIC is the default for these OSes.
17602 ;;
17603 mingw* | cygwin* | os2* | pw32* | cegcc*)
17604 # This hack is so that the source file can tell whether it is being
17605 # built for inclusion in a dll (and should export symbols for example).
17606 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17607 # (--disable-auto-import) libraries
17608 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17609 ;;
17610 darwin* | rhapsody*)
17611 # PIC is the default on this platform
17612 # Common symbols not allowed in MH_DYLIB files
17613 lt_prog_compiler_pic_CXX='-fno-common'
17614 ;;
17615 *djgpp*)
17616 # DJGPP does not support shared libraries at all
17617 lt_prog_compiler_pic_CXX=
17618 ;;
17619 interix[3-9]*)
17620 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17621 # Instead, we relocate shared libraries at runtime.
17622 ;;
17623 sysv4*MP*)
17624 if test -d /usr/nec; then
17625 lt_prog_compiler_pic_CXX=-Kconform_pic
17626 fi
17627 ;;
17628 hpux*)
17629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17631 # sets the default TLS model and affects inlining.
17632 case $host_cpu in
17633 hppa*64*)
17634 ;;
17635 *)
17636 lt_prog_compiler_pic_CXX='-fPIC'
17637 ;;
17638 esac
17639 ;;
17640 *qnx* | *nto*)
17641 # QNX uses GNU C++, but need to define -shared option too, otherwise
17642 # it will coredump.
17643 lt_prog_compiler_pic_CXX='-fPIC -shared'
17644 ;;
17645 *)
17646 lt_prog_compiler_pic_CXX='-fPIC'
17647 ;;
17648 esac
17649 else
17650 case $host_os in
17651 aix[4-9]*)
17652 # All AIX code is PIC.
17653 if test "$host_cpu" = ia64; then
17654 # AIX 5 now supports IA64 processor
17655 lt_prog_compiler_static_CXX='-Bstatic'
17656 else
17657 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17658 fi
17659 ;;
17660 chorus*)
17661 case $cc_basename in
17662 cxch68*)
17663 # Green Hills C++ Compiler
17664 # _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"
17665 ;;
17666 esac
17667 ;;
17668 dgux*)
17669 case $cc_basename in
17670 ec++*)
17671 lt_prog_compiler_pic_CXX='-KPIC'
17672 ;;
17673 ghcx*)
17674 # Green Hills C++ Compiler
17675 lt_prog_compiler_pic_CXX='-pic'
17676 ;;
17677 *)
17678 ;;
17679 esac
17680 ;;
17681 freebsd* | dragonfly*)
17682 # FreeBSD uses GNU C++
17683 ;;
17684 hpux9* | hpux10* | hpux11*)
17685 case $cc_basename in
17686 CC*)
17687 lt_prog_compiler_wl_CXX='-Wl,'
17688 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17689 if test "$host_cpu" != ia64; then
17690 lt_prog_compiler_pic_CXX='+Z'
17691 fi
17692 ;;
17693 aCC*)
17694 lt_prog_compiler_wl_CXX='-Wl,'
17695 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17696 case $host_cpu in
17697 hppa*64*|ia64*)
17698 # +Z the default
17699 ;;
17700 *)
17701 lt_prog_compiler_pic_CXX='+Z'
17702 ;;
17703 esac
17704 ;;
17705 *)
17706 ;;
17707 esac
17708 ;;
17709 interix*)
17710 # This is c89, which is MS Visual C++ (no shared libs)
17711 # Anyone wants to do a port?
17712 ;;
17713 irix5* | irix6* | nonstopux*)
17714 case $cc_basename in
17715 CC*)
17716 lt_prog_compiler_wl_CXX='-Wl,'
17717 lt_prog_compiler_static_CXX='-non_shared'
17718 # CC pic flag -KPIC is the default.
17719 ;;
17720 *)
17721 ;;
17722 esac
17723 ;;
cristy18304f92009-11-22 15:48:26 +000017724 linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000017725 case $cc_basename in
17726 KCC*)
17727 # KAI C++ Compiler
17728 lt_prog_compiler_wl_CXX='--backend -Wl,'
17729 lt_prog_compiler_pic_CXX='-fPIC'
17730 ;;
17731 ecpc* )
17732 # old Intel C++ for x86_64 which still supported -KPIC.
17733 lt_prog_compiler_wl_CXX='-Wl,'
17734 lt_prog_compiler_pic_CXX='-KPIC'
17735 lt_prog_compiler_static_CXX='-static'
17736 ;;
17737 icpc* )
17738 # Intel C++, used to be incompatible with GCC.
17739 # ICC 10 doesn't accept -KPIC any more.
17740 lt_prog_compiler_wl_CXX='-Wl,'
17741 lt_prog_compiler_pic_CXX='-fPIC'
17742 lt_prog_compiler_static_CXX='-static'
17743 ;;
17744 pgCC* | pgcpp*)
17745 # Portland Group C++ compiler
17746 lt_prog_compiler_wl_CXX='-Wl,'
17747 lt_prog_compiler_pic_CXX='-fpic'
17748 lt_prog_compiler_static_CXX='-Bstatic'
17749 ;;
17750 cxx*)
17751 # Compaq C++
17752 # Make sure the PIC flag is empty. It appears that all Alpha
17753 # Linux and Compaq Tru64 Unix objects are PIC.
17754 lt_prog_compiler_pic_CXX=
17755 lt_prog_compiler_static_CXX='-non_shared'
17756 ;;
cristy18304f92009-11-22 15:48:26 +000017757 xlc* | xlC*)
17758 # IBM XL 8.0 on PPC
cristy3ed852e2009-09-05 21:47:34 +000017759 lt_prog_compiler_wl_CXX='-Wl,'
17760 lt_prog_compiler_pic_CXX='-qpic'
17761 lt_prog_compiler_static_CXX='-qstaticlink'
17762 ;;
17763 *)
17764 case `$CC -V 2>&1 | sed 5q` in
17765 *Sun\ C*)
17766 # Sun C++ 5.9
17767 lt_prog_compiler_pic_CXX='-KPIC'
17768 lt_prog_compiler_static_CXX='-Bstatic'
17769 lt_prog_compiler_wl_CXX='-Qoption ld '
17770 ;;
17771 esac
17772 ;;
17773 esac
17774 ;;
17775 lynxos*)
17776 ;;
17777 m88k*)
17778 ;;
17779 mvs*)
17780 case $cc_basename in
17781 cxx*)
17782 lt_prog_compiler_pic_CXX='-W c,exportall'
17783 ;;
17784 *)
17785 ;;
17786 esac
17787 ;;
17788 netbsd*)
17789 ;;
17790 *qnx* | *nto*)
17791 # QNX uses GNU C++, but need to define -shared option too, otherwise
17792 # it will coredump.
17793 lt_prog_compiler_pic_CXX='-fPIC -shared'
17794 ;;
17795 osf3* | osf4* | osf5*)
17796 case $cc_basename in
17797 KCC*)
17798 lt_prog_compiler_wl_CXX='--backend -Wl,'
17799 ;;
17800 RCC*)
17801 # Rational C++ 2.4.1
17802 lt_prog_compiler_pic_CXX='-pic'
17803 ;;
17804 cxx*)
17805 # Digital/Compaq C++
17806 lt_prog_compiler_wl_CXX='-Wl,'
17807 # Make sure the PIC flag is empty. It appears that all Alpha
17808 # Linux and Compaq Tru64 Unix objects are PIC.
17809 lt_prog_compiler_pic_CXX=
17810 lt_prog_compiler_static_CXX='-non_shared'
17811 ;;
17812 *)
17813 ;;
17814 esac
17815 ;;
17816 psos*)
17817 ;;
17818 solaris*)
17819 case $cc_basename in
17820 CC*)
17821 # Sun C++ 4.2, 5.x and Centerline C++
17822 lt_prog_compiler_pic_CXX='-KPIC'
17823 lt_prog_compiler_static_CXX='-Bstatic'
17824 lt_prog_compiler_wl_CXX='-Qoption ld '
17825 ;;
17826 gcx*)
17827 # Green Hills C++ Compiler
17828 lt_prog_compiler_pic_CXX='-PIC'
17829 ;;
17830 *)
17831 ;;
17832 esac
17833 ;;
17834 sunos4*)
17835 case $cc_basename in
17836 CC*)
17837 # Sun C++ 4.x
17838 lt_prog_compiler_pic_CXX='-pic'
17839 lt_prog_compiler_static_CXX='-Bstatic'
17840 ;;
17841 lcc*)
17842 # Lucid
17843 lt_prog_compiler_pic_CXX='-pic'
17844 ;;
17845 *)
17846 ;;
17847 esac
17848 ;;
17849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17850 case $cc_basename in
17851 CC*)
17852 lt_prog_compiler_wl_CXX='-Wl,'
17853 lt_prog_compiler_pic_CXX='-KPIC'
17854 lt_prog_compiler_static_CXX='-Bstatic'
17855 ;;
17856 esac
17857 ;;
17858 tandem*)
17859 case $cc_basename in
17860 NCC*)
17861 # NonStop-UX NCC 3.20
17862 lt_prog_compiler_pic_CXX='-KPIC'
17863 ;;
17864 *)
17865 ;;
17866 esac
17867 ;;
17868 vxworks*)
17869 ;;
17870 *)
17871 lt_prog_compiler_can_build_shared_CXX=no
17872 ;;
17873 esac
17874 fi
17875
17876case $host_os in
17877 # For platforms which do not support PIC, -DPIC is meaningless:
17878 *djgpp*)
17879 lt_prog_compiler_pic_CXX=
17880 ;;
17881 *)
17882 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17883 ;;
17884esac
cristy8b350f62009-11-15 23:12:43 +000017885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017886$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17887
17888
17889
17890#
17891# Check to make sure the PIC flag actually works.
17892#
17893if test -n "$lt_prog_compiler_pic_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000017894 { $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 +000017895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017896if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017897 $as_echo_n "(cached) " >&6
17898else
17899 lt_cv_prog_compiler_pic_works_CXX=no
17900 ac_outfile=conftest.$ac_objext
17901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17902 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17903 # Insert the option either (1) after the last *FLAGS variable, or
17904 # (2) before a word containing "conftest.", or (3) at the end.
17905 # Note that $ac_compile itself does not contain backslashes and begins
17906 # with a dollar sign (not a hyphen), so the echo should work correctly.
17907 # The option is referenced via a variable to avoid confusing sed.
17908 lt_compile=`echo "$ac_compile" | $SED \
17909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17911 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000017912 (eval echo "\"\$as_me:17912: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000017913 (eval "$lt_compile" 2>conftest.err)
17914 ac_status=$?
17915 cat conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000017916 echo "$as_me:17916: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000017917 if (exit $ac_status) && test -s "$ac_outfile"; then
17918 # The compiler can only warn and ignore the option if not recognized
17919 # So say no if there are warnings other than the usual output.
cristy18304f92009-11-22 15:48:26 +000017920 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17923 lt_cv_prog_compiler_pic_works_CXX=yes
17924 fi
17925 fi
17926 $RM conftest*
17927
17928fi
cristy8b350f62009-11-15 23:12:43 +000017929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017930$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17931
17932if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17933 case $lt_prog_compiler_pic_CXX in
17934 "" | " "*) ;;
17935 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17936 esac
17937else
17938 lt_prog_compiler_pic_CXX=
17939 lt_prog_compiler_can_build_shared_CXX=no
17940fi
17941
17942fi
17943
17944
17945
17946#
17947# Check to make sure the static flag actually works.
17948#
17949wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
cristy8b350f62009-11-15 23:12:43 +000017950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
cristy3ed852e2009-09-05 21:47:34 +000017951$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017952if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017953 $as_echo_n "(cached) " >&6
17954else
17955 lt_cv_prog_compiler_static_works_CXX=no
17956 save_LDFLAGS="$LDFLAGS"
17957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17960 # The linker can only warn and ignore the option if not recognized
17961 # So say no if there are warnings
17962 if test -s conftest.err; then
17963 # Append any errors to the config.log.
17964 cat conftest.err 1>&5
cristy18304f92009-11-22 15:48:26 +000017965 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000017966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17967 if diff conftest.exp conftest.er2 >/dev/null; then
17968 lt_cv_prog_compiler_static_works_CXX=yes
17969 fi
17970 else
17971 lt_cv_prog_compiler_static_works_CXX=yes
17972 fi
17973 fi
17974 $RM -r conftest*
17975 LDFLAGS="$save_LDFLAGS"
17976
17977fi
cristy8b350f62009-11-15 23:12:43 +000017978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000017979$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17980
17981if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17982 :
17983else
17984 lt_prog_compiler_static_CXX=
17985fi
17986
17987
17988
17989
cristy8b350f62009-11-15 23:12:43 +000017990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000017991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000017992if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000017993 $as_echo_n "(cached) " >&6
17994else
17995 lt_cv_prog_compiler_c_o_CXX=no
17996 $RM -r conftest 2>/dev/null
17997 mkdir conftest
17998 cd conftest
17999 mkdir out
18000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18001
18002 lt_compiler_flag="-o out/conftest2.$ac_objext"
18003 # Insert the option either (1) after the last *FLAGS variable, or
18004 # (2) before a word containing "conftest.", or (3) at the end.
18005 # Note that $ac_compile itself does not contain backslashes and begins
18006 # with a dollar sign (not a hyphen), so the echo should work correctly.
18007 lt_compile=`echo "$ac_compile" | $SED \
18008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18010 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000018011 (eval echo "\"\$as_me:18011: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018012 (eval "$lt_compile" 2>out/conftest.err)
18013 ac_status=$?
18014 cat out/conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000018015 echo "$as_me:18015: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18017 then
18018 # The compiler can only warn and ignore the option if not recognized
18019 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018020 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18023 lt_cv_prog_compiler_c_o_CXX=yes
18024 fi
18025 fi
18026 chmod u+w . 2>&5
18027 $RM conftest*
18028 # SGI C++ compiler will create directory out/ii_files/ for
18029 # template instantiation
18030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18031 $RM out/* && rmdir out
18032 cd ..
18033 $RM -r conftest
18034 $RM conftest*
18035
18036fi
cristy8b350f62009-11-15 23:12:43 +000018037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018038$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18039
18040
18041
cristy8b350f62009-11-15 23:12:43 +000018042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +000018043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000018044if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000018045 $as_echo_n "(cached) " >&6
18046else
18047 lt_cv_prog_compiler_c_o_CXX=no
18048 $RM -r conftest 2>/dev/null
18049 mkdir conftest
18050 cd conftest
18051 mkdir out
18052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18053
18054 lt_compiler_flag="-o out/conftest2.$ac_objext"
18055 # Insert the option either (1) after the last *FLAGS variable, or
18056 # (2) before a word containing "conftest.", or (3) at the end.
18057 # Note that $ac_compile itself does not contain backslashes and begins
18058 # with a dollar sign (not a hyphen), so the echo should work correctly.
18059 lt_compile=`echo "$ac_compile" | $SED \
18060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18062 -e 's:$: $lt_compiler_flag:'`
cristya62cc882010-06-17 00:12:38 +000018063 (eval echo "\"\$as_me:18063: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018064 (eval "$lt_compile" 2>out/conftest.err)
18065 ac_status=$?
18066 cat out/conftest.err >&5
cristya62cc882010-06-17 00:12:38 +000018067 echo "$as_me:18067: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18069 then
18070 # The compiler can only warn and ignore the option if not recognized
18071 # So say no if there are warnings
cristy18304f92009-11-22 15:48:26 +000018072 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
cristy3ed852e2009-09-05 21:47:34 +000018073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18075 lt_cv_prog_compiler_c_o_CXX=yes
18076 fi
18077 fi
18078 chmod u+w . 2>&5
18079 $RM conftest*
18080 # SGI C++ compiler will create directory out/ii_files/ for
18081 # template instantiation
18082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18083 $RM out/* && rmdir out
18084 cd ..
18085 $RM -r conftest
18086 $RM conftest*
18087
18088fi
cristy8b350f62009-11-15 23:12:43 +000018089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018090$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18091
18092
18093
18094
18095hard_links="nottested"
18096if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18097 # do not overwrite the value of need_locks provided by the user
cristy8b350f62009-11-15 23:12:43 +000018098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018099$as_echo_n "checking if we can lock with hard links... " >&6; }
18100 hard_links=yes
18101 $RM conftest*
18102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18103 touch conftest.a
18104 ln conftest.a conftest.b 2>&5 || hard_links=no
18105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
cristy8b350f62009-11-15 23:12:43 +000018106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
cristy3ed852e2009-09-05 21:47:34 +000018107$as_echo "$hard_links" >&6; }
18108 if test "$hard_links" = no; then
cristy8b350f62009-11-15 23:12:43 +000018109 { $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 +000018110$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18111 need_locks=warn
18112 fi
18113else
18114 need_locks=no
18115fi
18116
18117
18118
cristy8b350f62009-11-15 23:12:43 +000018119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
cristy3ed852e2009-09-05 21:47:34 +000018120$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18121
18122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18123 case $host_os in
18124 aix[4-9]*)
18125 # If we're using GNU nm, then we don't want the "-C" option.
18126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18127 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy18304f92009-11-22 15:48:26 +000018128 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 +000018129 else
18130 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'
18131 fi
18132 ;;
18133 pw32*)
18134 export_symbols_cmds_CXX="$ltdll_cmds"
18135 ;;
18136 cygwin* | mingw* | cegcc*)
18137 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'
18138 ;;
18139 *)
18140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18141 ;;
18142 esac
18143 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18144
cristy8b350f62009-11-15 23:12:43 +000018145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018146$as_echo "$ld_shlibs_CXX" >&6; }
18147test "$ld_shlibs_CXX" = no && can_build_shared=no
18148
18149with_gnu_ld_CXX=$with_gnu_ld
18150
18151
18152
18153
18154
18155
18156#
18157# Do we need to explicitly link libc?
18158#
18159case "x$archive_cmds_need_lc_CXX" in
18160x|xyes)
18161 # Assume -lc should be added
18162 archive_cmds_need_lc_CXX=yes
18163
18164 if test "$enable_shared" = yes && test "$GCC" = yes; then
18165 case $archive_cmds_CXX in
18166 *'~'*)
18167 # FIXME: we may have to deal with multi-command sequences.
18168 ;;
18169 '$CC '*)
18170 # Test whether the compiler implicitly links with -lc since on some
18171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18172 # to ld, don't add -lc before -lgcc.
cristy8b350f62009-11-15 23:12:43 +000018173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
cristy3ed852e2009-09-05 21:47:34 +000018174$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristy18304f92009-11-22 15:48:26 +000018175 $RM conftest*
18176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018177
cristy18304f92009-11-22 15:48:26 +000018178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000018179 (eval $ac_compile) 2>&5
18180 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; } 2>conftest.err; then
cristy18304f92009-11-22 15:48:26 +000018183 soname=conftest
18184 lib=conftest
18185 libobjs=conftest.$ac_objext
18186 deplibs=
18187 wl=$lt_prog_compiler_wl_CXX
18188 pic_flag=$lt_prog_compiler_pic_CXX
18189 compiler_flags=-v
18190 linker_flags=-v
18191 verstring=
18192 output_objdir=.
18193 libname=conftest
18194 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18195 allow_undefined_flag_CXX=
18196 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 +000018197 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18198 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000018199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; }
cristy18304f92009-11-22 15:48:26 +000018201 then
18202 archive_cmds_need_lc_CXX=no
18203 else
18204 archive_cmds_need_lc_CXX=yes
18205 fi
18206 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18207 else
18208 cat conftest.err 1>&5
18209 fi
18210 $RM conftest*
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18212$as_echo "$archive_cmds_need_lc_CXX" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000018213 ;;
18214 esac
18215 fi
18216 ;;
18217esac
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
cristy8b350f62009-11-15 23:12:43 +000018282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
cristy3ed852e2009-09-05 21:47:34 +000018283$as_echo_n "checking dynamic linker characteristics... " >&6; }
18284
18285library_names_spec=
18286libname_spec='lib$name'
18287soname_spec=
18288shrext_cmds=".so"
18289postinstall_cmds=
18290postuninstall_cmds=
18291finish_cmds=
18292finish_eval=
18293shlibpath_var=
18294shlibpath_overrides_runpath=unknown
18295version_type=none
18296dynamic_linker="$host_os ld.so"
18297sys_lib_dlsearch_path_spec="/lib /usr/lib"
18298need_lib_prefix=unknown
18299hardcode_into_libs=no
18300
18301# when you set need_version to no, make sure it does not cause -set_version
18302# flags to be left without arguments
18303need_version=unknown
18304
18305case $host_os in
18306aix3*)
18307 version_type=linux
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18309 shlibpath_var=LIBPATH
18310
18311 # AIX 3 has no versioning support, so we append a major version to the name.
18312 soname_spec='${libname}${release}${shared_ext}$major'
18313 ;;
18314
18315aix[4-9]*)
18316 version_type=linux
18317 need_lib_prefix=no
18318 need_version=no
18319 hardcode_into_libs=yes
18320 if test "$host_cpu" = ia64; then
18321 # AIX 5 supports IA64
18322 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18323 shlibpath_var=LD_LIBRARY_PATH
18324 else
18325 # With GCC up to 2.95.x, collect2 would create an import file
18326 # for dependence libraries. The import file would start with
18327 # the line `#! .'. This would cause the generated library to
18328 # depend on `.', always an invalid library. This was fixed in
18329 # development snapshots of GCC prior to 3.0.
18330 case $host_os in
18331 aix4 | aix4.[01] | aix4.[01].*)
18332 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18333 echo ' yes '
18334 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18335 :
18336 else
18337 can_build_shared=no
18338 fi
18339 ;;
18340 esac
18341 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18342 # soname into executable. Probably we can add versioning support to
18343 # collect2, so additional links can be useful in future.
18344 if test "$aix_use_runtimelinking" = yes; then
18345 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18346 # instead of lib<name>.a to let people know that these are not
18347 # typical AIX shared libraries.
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349 else
18350 # We preserve .a as extension for shared libraries through AIX4.2
18351 # and later when we are not doing run time linking.
18352 library_names_spec='${libname}${release}.a $libname.a'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 fi
18355 shlibpath_var=LIBPATH
18356 fi
18357 ;;
18358
18359amigaos*)
18360 case $host_cpu in
18361 powerpc)
18362 # Since July 2007 AmigaOS4 officially supports .so libraries.
18363 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 ;;
18366 m68k)
18367 library_names_spec='$libname.ixlibrary $libname.a'
18368 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy18304f92009-11-22 15:48:26 +000018369 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 +000018370 ;;
18371 esac
18372 ;;
18373
18374beos*)
18375 library_names_spec='${libname}${shared_ext}'
18376 dynamic_linker="$host_os ld.so"
18377 shlibpath_var=LIBRARY_PATH
18378 ;;
18379
18380bsdi[45]*)
18381 version_type=linux
18382 need_version=no
18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18384 soname_spec='${libname}${release}${shared_ext}$major'
18385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18386 shlibpath_var=LD_LIBRARY_PATH
18387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18389 # the default ld.so.conf also contains /usr/contrib/lib and
18390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18391 # libtool to hard-code these into programs
18392 ;;
18393
18394cygwin* | mingw* | pw32* | cegcc*)
18395 version_type=windows
18396 shrext_cmds=".dll"
18397 need_version=no
18398 need_lib_prefix=no
18399
18400 case $GCC,$host_os in
18401 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18402 library_names_spec='$libname.dll.a'
18403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18404 postinstall_cmds='base_file=`basename \${file}`~
18405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18406 dldir=$destdir/`dirname \$dlpath`~
18407 test -d \$dldir || mkdir -p \$dldir~
18408 $install_prog $dir/$dlname \$dldir/$dlname~
18409 chmod a+x \$dldir/$dlname~
18410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18412 fi'
18413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18414 dlpath=$dir/\$dldll~
18415 $RM \$dlpath'
18416 shlibpath_overrides_runpath=yes
18417
18418 case $host_os in
18419 cygwin*)
18420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018422 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
cristy3ed852e2009-09-05 21:47:34 +000018423 ;;
18424 mingw* | cegcc*)
18425 # MinGW DLLs use traditional 'lib' prefix
18426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy18304f92009-11-22 15:48:26 +000018427 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18428 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18429 # It is most probably a Windows format PATH printed by
18430 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18431 # path with ; separators, and with drive letters. We can handle the
18432 # drive letters (cygwin fileutils understands them), so leave them,
18433 # especially as we might pass files found there to a mingw objdump,
18434 # which wouldn't understand a cygwinified path. Ahh.
18435 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18436 else
18437 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18438 fi
cristy3ed852e2009-09-05 21:47:34 +000018439 ;;
18440 pw32*)
18441 # pw32 DLLs use 'pw' prefix rather than 'lib'
18442 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443 ;;
18444 esac
18445 ;;
18446
18447 *)
18448 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18449 ;;
18450 esac
18451 dynamic_linker='Win32 ld.exe'
18452 # FIXME: first we should search . and the directory the executable is in
18453 shlibpath_var=PATH
18454 ;;
18455
18456darwin* | rhapsody*)
18457 dynamic_linker="$host_os dyld"
18458 version_type=darwin
18459 need_lib_prefix=no
18460 need_version=no
18461 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18462 soname_spec='${libname}${release}${major}$shared_ext'
18463 shlibpath_overrides_runpath=yes
18464 shlibpath_var=DYLD_LIBRARY_PATH
18465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18466
18467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18468 ;;
18469
18470dgux*)
18471 version_type=linux
18472 need_lib_prefix=no
18473 need_version=no
18474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18475 soname_spec='${libname}${release}${shared_ext}$major'
18476 shlibpath_var=LD_LIBRARY_PATH
18477 ;;
18478
18479freebsd1*)
18480 dynamic_linker=no
18481 ;;
18482
18483freebsd* | dragonfly*)
18484 # DragonFly does not have aout. When/if they implement a new
18485 # versioning mechanism, adjust this.
18486 if test -x /usr/bin/objformat; then
18487 objformat=`/usr/bin/objformat`
18488 else
18489 case $host_os in
18490 freebsd[123]*) objformat=aout ;;
18491 *) objformat=elf ;;
18492 esac
18493 fi
18494 version_type=freebsd-$objformat
18495 case $version_type in
18496 freebsd-elf*)
18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18498 need_version=no
18499 need_lib_prefix=no
18500 ;;
18501 freebsd-*)
18502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18503 need_version=yes
18504 ;;
18505 esac
18506 shlibpath_var=LD_LIBRARY_PATH
18507 case $host_os in
18508 freebsd2*)
18509 shlibpath_overrides_runpath=yes
18510 ;;
18511 freebsd3.[01]* | freebsdelf3.[01]*)
18512 shlibpath_overrides_runpath=yes
18513 hardcode_into_libs=yes
18514 ;;
18515 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18516 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18517 shlibpath_overrides_runpath=no
18518 hardcode_into_libs=yes
18519 ;;
18520 *) # from 4.6 on, and DragonFly
18521 shlibpath_overrides_runpath=yes
18522 hardcode_into_libs=yes
18523 ;;
18524 esac
18525 ;;
18526
18527gnu*)
18528 version_type=linux
18529 need_lib_prefix=no
18530 need_version=no
18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18532 soname_spec='${libname}${release}${shared_ext}$major'
18533 shlibpath_var=LD_LIBRARY_PATH
18534 hardcode_into_libs=yes
18535 ;;
18536
18537hpux9* | hpux10* | hpux11*)
18538 # Give a soname corresponding to the major version so that dld.sl refuses to
18539 # link against other versions.
18540 version_type=sunos
18541 need_lib_prefix=no
18542 need_version=no
18543 case $host_cpu in
18544 ia64*)
18545 shrext_cmds='.so'
18546 hardcode_into_libs=yes
18547 dynamic_linker="$host_os dld.so"
18548 shlibpath_var=LD_LIBRARY_PATH
18549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551 soname_spec='${libname}${release}${shared_ext}$major'
18552 if test "X$HPUX_IA64_MODE" = X32; then
18553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18554 else
18555 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18556 fi
18557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18558 ;;
18559 hppa*64*)
18560 shrext_cmds='.sl'
18561 hardcode_into_libs=yes
18562 dynamic_linker="$host_os dld.sl"
18563 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18569 ;;
18570 *)
18571 shrext_cmds='.sl'
18572 dynamic_linker="$host_os dld.sl"
18573 shlibpath_var=SHLIB_PATH
18574 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576 soname_spec='${libname}${release}${shared_ext}$major'
18577 ;;
18578 esac
cristy18304f92009-11-22 15:48:26 +000018579 # HP-UX runs *really* slowly unless shared libraries are mode 555.
cristy3ed852e2009-09-05 21:47:34 +000018580 postinstall_cmds='chmod 555 $lib'
18581 ;;
18582
18583interix[3-9]*)
18584 version_type=linux
18585 need_lib_prefix=no
18586 need_version=no
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18588 soname_spec='${libname}${release}${shared_ext}$major'
18589 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18590 shlibpath_var=LD_LIBRARY_PATH
18591 shlibpath_overrides_runpath=no
18592 hardcode_into_libs=yes
18593 ;;
18594
18595irix5* | irix6* | nonstopux*)
18596 case $host_os in
18597 nonstopux*) version_type=nonstopux ;;
18598 *)
18599 if test "$lt_cv_prog_gnu_ld" = yes; then
18600 version_type=linux
18601 else
18602 version_type=irix
18603 fi ;;
18604 esac
18605 need_lib_prefix=no
18606 need_version=no
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18609 case $host_os in
18610 irix5* | nonstopux*)
18611 libsuff= shlibsuff=
18612 ;;
18613 *)
18614 case $LD in # libtool.m4 will add one of these switches to LD
18615 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18616 libsuff= shlibsuff= libmagic=32-bit;;
18617 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18618 libsuff=32 shlibsuff=N32 libmagic=N32;;
18619 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18620 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18621 *) libsuff= shlibsuff= libmagic=never-match;;
18622 esac
18623 ;;
18624 esac
18625 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18626 shlibpath_overrides_runpath=no
18627 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18628 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18629 hardcode_into_libs=yes
18630 ;;
18631
18632# No shared lib support for Linux oldld, aout, or coff.
18633linux*oldld* | linux*aout* | linux*coff*)
18634 dynamic_linker=no
18635 ;;
18636
18637# This must be Linux ELF.
cristy18304f92009-11-22 15:48:26 +000018638linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000018639 version_type=linux
18640 need_lib_prefix=no
18641 need_version=no
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18645 shlibpath_var=LD_LIBRARY_PATH
18646 shlibpath_overrides_runpath=no
18647 # Some binutils ld are patched to set DT_RUNPATH
cristy18304f92009-11-22 15:48:26 +000018648 save_LDFLAGS=$LDFLAGS
18649 save_libdir=$libdir
18650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000018653/* end confdefs.h. */
18654
18655int
18656main ()
18657{
18658
18659 ;
18660 return 0;
18661}
18662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000018663if ac_fn_cxx_try_link "$LINENO"; then :
18664 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy18304f92009-11-22 15:48:26 +000018665 shlibpath_overrides_runpath=yes
cristy3ed852e2009-09-05 21:47:34 +000018666fi
cristy3ed852e2009-09-05 21:47:34 +000018667fi
cristy8b350f62009-11-15 23:12:43 +000018668rm -f core conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
cristy18304f92009-11-22 15:48:26 +000018670 LDFLAGS=$save_LDFLAGS
18671 libdir=$save_libdir
cristy3ed852e2009-09-05 21:47:34 +000018672
18673 # This implies no fast_install, which is unacceptable.
18674 # Some rework will be needed to allow for fast_install
18675 # before this can be enabled.
18676 hardcode_into_libs=yes
18677
cristy679ed8e2009-12-05 02:37:41 +000018678 # Add ABI-specific directories to the system library path.
18679 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18680
cristy3ed852e2009-09-05 21:47:34 +000018681 # Append ld.so.conf contents to the search path
18682 if test -f /etc/ld.so.conf; then
cristy18304f92009-11-22 15:48:26 +000018683 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 +000018684 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy3ed852e2009-09-05 21:47:34 +000018685 fi
18686
18687 # We used to test for /lib/ld.so.1 and disable shared libraries on
18688 # powerpc, because MkLinux only supported shared libraries with the
18689 # GNU dynamic linker. Since this was broken with cross compilers,
18690 # most powerpc-linux boxes support dynamic linking these days and
18691 # people can always --disable-shared, the test was removed, and we
18692 # assume the GNU/Linux dynamic linker is in use.
18693 dynamic_linker='GNU/Linux ld.so'
18694 ;;
18695
18696netbsd*)
18697 version_type=sunos
18698 need_lib_prefix=no
18699 need_version=no
18700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18703 dynamic_linker='NetBSD (a.out) ld.so'
18704 else
18705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18706 soname_spec='${libname}${release}${shared_ext}$major'
18707 dynamic_linker='NetBSD ld.elf_so'
18708 fi
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18711 hardcode_into_libs=yes
18712 ;;
18713
18714newsos6)
18715 version_type=linux
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 shlibpath_overrides_runpath=yes
18719 ;;
18720
18721*nto* | *qnx*)
18722 version_type=qnx
18723 need_lib_prefix=no
18724 need_version=no
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 shlibpath_overrides_runpath=no
18729 hardcode_into_libs=yes
18730 dynamic_linker='ldqnx.so'
18731 ;;
18732
18733openbsd*)
18734 version_type=sunos
18735 sys_lib_dlsearch_path_spec="/usr/lib"
18736 need_lib_prefix=no
18737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18738 case $host_os in
18739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18740 *) need_version=no ;;
18741 esac
18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18744 shlibpath_var=LD_LIBRARY_PATH
18745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18746 case $host_os in
18747 openbsd2.[89] | openbsd2.[89].*)
18748 shlibpath_overrides_runpath=no
18749 ;;
18750 *)
18751 shlibpath_overrides_runpath=yes
18752 ;;
18753 esac
18754 else
18755 shlibpath_overrides_runpath=yes
18756 fi
18757 ;;
18758
18759os2*)
18760 libname_spec='$name'
18761 shrext_cmds=".dll"
18762 need_lib_prefix=no
18763 library_names_spec='$libname${shared_ext} $libname.a'
18764 dynamic_linker='OS/2 ld.exe'
18765 shlibpath_var=LIBPATH
18766 ;;
18767
18768osf3* | osf4* | osf5*)
18769 version_type=osf
18770 need_lib_prefix=no
18771 need_version=no
18772 soname_spec='${libname}${release}${shared_ext}$major'
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 shlibpath_var=LD_LIBRARY_PATH
18775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18777 ;;
18778
18779rdos*)
18780 dynamic_linker=no
18781 ;;
18782
18783solaris*)
18784 version_type=linux
18785 need_lib_prefix=no
18786 need_version=no
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788 soname_spec='${libname}${release}${shared_ext}$major'
18789 shlibpath_var=LD_LIBRARY_PATH
18790 shlibpath_overrides_runpath=yes
18791 hardcode_into_libs=yes
18792 # ldd complains unless libraries are executable
18793 postinstall_cmds='chmod +x $lib'
18794 ;;
18795
18796sunos4*)
18797 version_type=sunos
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18800 shlibpath_var=LD_LIBRARY_PATH
18801 shlibpath_overrides_runpath=yes
18802 if test "$with_gnu_ld" = yes; then
18803 need_lib_prefix=no
18804 fi
18805 need_version=yes
18806 ;;
18807
18808sysv4 | sysv4.3*)
18809 version_type=linux
18810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18811 soname_spec='${libname}${release}${shared_ext}$major'
18812 shlibpath_var=LD_LIBRARY_PATH
18813 case $host_vendor in
18814 sni)
18815 shlibpath_overrides_runpath=no
18816 need_lib_prefix=no
18817 runpath_var=LD_RUN_PATH
18818 ;;
18819 siemens)
18820 need_lib_prefix=no
18821 ;;
18822 motorola)
18823 need_lib_prefix=no
18824 need_version=no
18825 shlibpath_overrides_runpath=no
18826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18827 ;;
18828 esac
18829 ;;
18830
18831sysv4*MP*)
18832 if test -d /usr/nec ;then
18833 version_type=linux
18834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18835 soname_spec='$libname${shared_ext}.$major'
18836 shlibpath_var=LD_LIBRARY_PATH
18837 fi
18838 ;;
18839
18840sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18841 version_type=freebsd-elf
18842 need_lib_prefix=no
18843 need_version=no
18844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18845 soname_spec='${libname}${release}${shared_ext}$major'
18846 shlibpath_var=LD_LIBRARY_PATH
18847 shlibpath_overrides_runpath=yes
18848 hardcode_into_libs=yes
18849 if test "$with_gnu_ld" = yes; then
18850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18851 else
18852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18853 case $host_os in
18854 sco3.2v5*)
18855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18856 ;;
18857 esac
18858 fi
18859 sys_lib_dlsearch_path_spec='/usr/lib'
18860 ;;
18861
18862tpf*)
18863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18864 version_type=linux
18865 need_lib_prefix=no
18866 need_version=no
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868 shlibpath_var=LD_LIBRARY_PATH
18869 shlibpath_overrides_runpath=no
18870 hardcode_into_libs=yes
18871 ;;
18872
18873uts4*)
18874 version_type=linux
18875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876 soname_spec='${libname}${release}${shared_ext}$major'
18877 shlibpath_var=LD_LIBRARY_PATH
18878 ;;
18879
18880*)
18881 dynamic_linker=no
18882 ;;
18883esac
cristy8b350f62009-11-15 23:12:43 +000018884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
cristy3ed852e2009-09-05 21:47:34 +000018885$as_echo "$dynamic_linker" >&6; }
18886test "$dynamic_linker" = no && can_build_shared=no
18887
18888variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18889if test "$GCC" = yes; then
18890 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18891fi
18892
18893if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18894 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18895fi
18896if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18897 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18898fi
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
cristy8b350f62009-11-15 23:12:43 +000018935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000018936$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18937hardcode_action_CXX=
18938if test -n "$hardcode_libdir_flag_spec_CXX" ||
18939 test -n "$runpath_var_CXX" ||
18940 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18941
18942 # We can hardcode non-existent directories.
18943 if test "$hardcode_direct_CXX" != no &&
18944 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18945 # have to relink, otherwise we might link with an installed library
18946 # when we should be linking with a yet-to-be-installed one
18947 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18948 test "$hardcode_minus_L_CXX" != no; then
18949 # Linking always hardcodes the temporary library directory.
18950 hardcode_action_CXX=relink
18951 else
18952 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18953 hardcode_action_CXX=immediate
18954 fi
18955else
18956 # We cannot hardcode anything, or else we can only hardcode existing
18957 # directories.
18958 hardcode_action_CXX=unsupported
18959fi
cristy8b350f62009-11-15 23:12:43 +000018960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000018961$as_echo "$hardcode_action_CXX" >&6; }
18962
18963if test "$hardcode_action_CXX" = relink ||
18964 test "$inherit_rpath_CXX" = yes; then
18965 # Fast installation is not supported
18966 enable_fast_install=no
18967elif test "$shlibpath_overrides_runpath" = yes ||
18968 test "$enable_shared" = no; then
18969 # Fast installation is not necessary
18970 enable_fast_install=needless
18971fi
18972
18973
18974
18975
18976
18977
18978
18979 fi # test -n "$compiler"
18980
18981 CC=$lt_save_CC
18982 LDCXX=$LD
18983 LD=$lt_save_LD
18984 GCC=$lt_save_GCC
18985 with_gnu_ld=$lt_save_with_gnu_ld
18986 lt_cv_path_LDCXX=$lt_cv_path_LD
18987 lt_cv_path_LD=$lt_save_path_LD
18988 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18989 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18990fi # test "$_lt_caught_CXX_error" != yes
18991
18992ac_ext=c
18993ac_cpp='$CPP $CPPFLAGS'
18994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18996ac_compiler_gnu=$ac_cv_c_compiler_gnu
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010 ac_config_commands="$ac_config_commands libtool"
19011
19012
19013
19014
19015# Only expand once:
19016
19017
19018
19019
19020
19021# Configure libltdl
19022
19023
19024
19025
19026
19027
19028
cristy18304f92009-11-22 15:48:26 +000019029
cristy8b350f62009-11-15 23:12:43 +000019030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
cristy3ed852e2009-09-05 21:47:34 +000019031$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019032if test "${libltdl_cv_shlibext+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019033 $as_echo_n "(cached) " >&6
19034else
19035
19036module=yes
19037eval libltdl_cv_shlibext=$shrext_cmds
19038
19039fi
cristy8b350f62009-11-15 23:12:43 +000019040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
cristy3ed852e2009-09-05 21:47:34 +000019041$as_echo "$libltdl_cv_shlibext" >&6; }
19042if test -n "$libltdl_cv_shlibext"; then
19043
19044cat >>confdefs.h <<_ACEOF
19045#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19046_ACEOF
19047
19048fi
19049
cristy8b350f62009-11-15 23:12:43 +000019050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019051$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019052if test "${lt_cv_module_path_var+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019053 $as_echo_n "(cached) " >&6
19054else
19055 lt_cv_module_path_var="$shlibpath_var"
19056fi
cristy8b350f62009-11-15 23:12:43 +000019057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
cristy3ed852e2009-09-05 21:47:34 +000019058$as_echo "$lt_cv_module_path_var" >&6; }
19059if test -n "$lt_cv_module_path_var"; then
19060
19061cat >>confdefs.h <<_ACEOF
19062#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19063_ACEOF
19064
19065fi
19066
cristy8b350f62009-11-15 23:12:43 +000019067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019068$as_echo_n "checking for the default library search path... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019069if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019070 $as_echo_n "(cached) " >&6
19071else
19072 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19073fi
cristy8b350f62009-11-15 23:12:43 +000019074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
cristy3ed852e2009-09-05 21:47:34 +000019075$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19076if test -n "$lt_cv_sys_dlsearch_path"; then
19077 sys_dlsearch_path=
19078 for dir in $lt_cv_sys_dlsearch_path; do
19079 if test -z "$sys_dlsearch_path"; then
19080 sys_dlsearch_path="$dir"
19081 else
19082 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19083 fi
19084 done
19085
19086cat >>confdefs.h <<_ACEOF
19087#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19088_ACEOF
19089
19090fi
19091
19092
19093LT_DLLOADERS=
19094
19095
19096ac_ext=c
19097ac_cpp='$CPP $CPPFLAGS'
19098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19100ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101
19102
19103LIBADD_DLOPEN=
cristy8b350f62009-11-15 23:12:43 +000019104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019105$as_echo_n "checking for library containing dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019106if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019107 $as_echo_n "(cached) " >&6
19108else
19109 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000019110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019111/* end confdefs.h. */
19112
19113/* Override any GCC internal prototype to avoid an error.
19114 Use char because int might match the return type of a GCC
19115 builtin and then its argument prototype would still apply. */
19116#ifdef __cplusplus
19117extern "C"
19118#endif
19119char dlopen ();
19120int
19121main ()
19122{
19123return dlopen ();
19124 ;
19125 return 0;
19126}
19127_ACEOF
19128for ac_lib in '' dl; do
19129 if test -z "$ac_lib"; then
19130 ac_res="none required"
19131 else
19132 ac_res=-l$ac_lib
19133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19134 fi
cristy8b350f62009-11-15 23:12:43 +000019135 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019136 ac_cv_search_dlopen=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000019137fi
cristy8b350f62009-11-15 23:12:43 +000019138rm -f core conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext
19140 if test "${ac_cv_search_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019141 break
19142fi
19143done
cristy8b350f62009-11-15 23:12:43 +000019144if test "${ac_cv_search_dlopen+set}" = set; then :
19145
cristy3ed852e2009-09-05 21:47:34 +000019146else
19147 ac_cv_search_dlopen=no
19148fi
19149rm conftest.$ac_ext
19150LIBS=$ac_func_search_save_LIBS
19151fi
cristy8b350f62009-11-15 23:12:43 +000019152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019153$as_echo "$ac_cv_search_dlopen" >&6; }
19154ac_res=$ac_cv_search_dlopen
cristy8b350f62009-11-15 23:12:43 +000019155if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000019156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19157
cristy8b350f62009-11-15 23:12:43 +000019158$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019159
19160 if test "$ac_cv_search_dlopen" != "none required" ; then
19161 LIBADD_DLOPEN="-ldl"
19162 fi
19163 libltdl_cv_lib_dl_dlopen="yes"
19164 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19165else
cristy8b350f62009-11-15 23:12:43 +000019166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019167/* end confdefs.h. */
19168#if HAVE_DLFCN_H
19169# include <dlfcn.h>
19170#endif
19171
19172int
19173main ()
19174{
19175dlopen(0, 0);
19176 ;
19177 return 0;
19178}
19179_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019180if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019181
cristy8b350f62009-11-15 23:12:43 +000019182$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019183
19184 libltdl_cv_func_dlopen="yes"
19185 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19186else
cristy8b350f62009-11-15 23:12:43 +000019187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019188$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019189if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019190 $as_echo_n "(cached) " >&6
19191else
19192 ac_check_lib_save_LIBS=$LIBS
19193LIBS="-lsvld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019195/* end confdefs.h. */
19196
19197/* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19200#ifdef __cplusplus
19201extern "C"
19202#endif
19203char dlopen ();
19204int
19205main ()
19206{
19207return dlopen ();
19208 ;
19209 return 0;
19210}
19211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019213 ac_cv_lib_svld_dlopen=yes
19214else
cristy8b350f62009-11-15 23:12:43 +000019215 ac_cv_lib_svld_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000019216fi
cristy8b350f62009-11-15 23:12:43 +000019217rm -f core conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019219LIBS=$ac_check_lib_save_LIBS
19220fi
cristy8b350f62009-11-15 23:12:43 +000019221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019222$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019223if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019224
cristy8b350f62009-11-15 23:12:43 +000019225$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019226
19227 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19228 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19229fi
19230
19231fi
cristy8b350f62009-11-15 23:12:43 +000019232rm -f core conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019234fi
19235
19236if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19237then
19238 lt_save_LIBS="$LIBS"
19239 LIBS="$LIBS $LIBADD_DLOPEN"
cristy8b350f62009-11-15 23:12:43 +000019240 for ac_func in dlerror
19241do :
19242 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19243if test "x$ac_cv_func_dlerror" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019244 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019245#define HAVE_DLERROR 1
cristy3ed852e2009-09-05 21:47:34 +000019246_ACEOF
19247
19248fi
19249done
19250
19251 LIBS="$lt_save_LIBS"
19252fi
19253
19254
19255LIBADD_SHL_LOAD=
cristy8b350f62009-11-15 23:12:43 +000019256ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19257if test "x$ac_cv_func_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019258
cristy8b350f62009-11-15 23:12:43 +000019259$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019260
19261 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19262else
cristy8b350f62009-11-15 23:12:43 +000019263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019264$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019265if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019266 $as_echo_n "(cached) " >&6
19267else
19268 ac_check_lib_save_LIBS=$LIBS
19269LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019271/* end confdefs.h. */
19272
19273/* Override any GCC internal prototype to avoid an error.
19274 Use char because int might match the return type of a GCC
19275 builtin and then its argument prototype would still apply. */
19276#ifdef __cplusplus
19277extern "C"
19278#endif
19279char shl_load ();
19280int
19281main ()
19282{
19283return shl_load ();
19284 ;
19285 return 0;
19286}
19287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019289 ac_cv_lib_dld_shl_load=yes
19290else
cristy8b350f62009-11-15 23:12:43 +000019291 ac_cv_lib_dld_shl_load=no
cristy3ed852e2009-09-05 21:47:34 +000019292fi
cristy8b350f62009-11-15 23:12:43 +000019293rm -f core conftest.err conftest.$ac_objext \
19294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019295LIBS=$ac_check_lib_save_LIBS
19296fi
cristy8b350f62009-11-15 23:12:43 +000019297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
cristy3ed852e2009-09-05 21:47:34 +000019298$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019299if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019300
cristy8b350f62009-11-15 23:12:43 +000019301$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019302
19303 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19304 LIBADD_SHL_LOAD="-ldld"
19305fi
19306
19307fi
19308
19309
19310
19311case $host_os in
19312darwin[1567].*)
19313# We only want this for pre-Mac OS X 10.4.
cristy8b350f62009-11-15 23:12:43 +000019314 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19315if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019316
cristy8b350f62009-11-15 23:12:43 +000019317$as_echo "#define HAVE_DYLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019318
19319 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19320fi
19321
19322 ;;
19323beos*)
19324 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19325 ;;
19326cygwin* | mingw* | os2* | pw32*)
cristy8b350f62009-11-15 23:12:43 +000019327 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19328"
19329if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19330 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000019331else
cristy8b350f62009-11-15 23:12:43 +000019332 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000019333fi
19334
cristy3ed852e2009-09-05 21:47:34 +000019335cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019336#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000019337_ACEOF
19338
cristy3ed852e2009-09-05 21:47:34 +000019339 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19340 ;;
19341esac
19342
cristy8b350f62009-11-15 23:12:43 +000019343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
cristy3ed852e2009-09-05 21:47:34 +000019344$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019345if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019346 $as_echo_n "(cached) " >&6
19347else
19348 ac_check_lib_save_LIBS=$LIBS
19349LIBS="-ldld $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019351/* end confdefs.h. */
19352
19353/* Override any GCC internal prototype to avoid an error.
19354 Use char because int might match the return type of a GCC
19355 builtin and then its argument prototype would still apply. */
19356#ifdef __cplusplus
19357extern "C"
19358#endif
19359char dld_link ();
19360int
19361main ()
19362{
19363return dld_link ();
19364 ;
19365 return 0;
19366}
19367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019369 ac_cv_lib_dld_dld_link=yes
19370else
cristy8b350f62009-11-15 23:12:43 +000019371 ac_cv_lib_dld_dld_link=no
cristy3ed852e2009-09-05 21:47:34 +000019372fi
cristy8b350f62009-11-15 23:12:43 +000019373rm -f core conftest.err conftest.$ac_objext \
19374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019375LIBS=$ac_check_lib_save_LIBS
19376fi
cristy8b350f62009-11-15 23:12:43 +000019377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
cristy3ed852e2009-09-05 21:47:34 +000019378$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019379if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019380
cristy8b350f62009-11-15 23:12:43 +000019381$as_echo "#define HAVE_DLD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019382
19383 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19384fi
19385
19386
19387
19388
19389LT_DLPREOPEN=
19390if test -n "$LT_DLLOADERS"
19391then
19392 for lt_loader in $LT_DLLOADERS; do
19393 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19394 done
19395
cristy8b350f62009-11-15 23:12:43 +000019396$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019397
19398fi
19399
19400
19401LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19402
19403
19404ac_ext=c
19405ac_cpp='$CPP $CPPFLAGS'
19406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409
19410
cristy8b350f62009-11-15 23:12:43 +000019411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019412$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019413if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019414 $as_echo_n "(cached) " >&6
19415else
19416 lt_cv_sys_symbol_underscore=no
19417 cat > conftest.$ac_ext <<_LT_EOF
19418void nm_test_func(){}
19419int main(){nm_test_func;return 0;}
19420_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019422 (eval $ac_compile) 2>&5
19423 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19425 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000019426 # Now try to grab the symbols.
19427 ac_nlist=conftest.nm
cristy8b350f62009-11-15 23:12:43 +000019428 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 +000019429 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19430 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19432 test $ac_status = 0; } && test -s "$ac_nlist"; then
cristy3ed852e2009-09-05 21:47:34 +000019433 # See whether the symbols have a leading underscore.
19434 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19435 lt_cv_sys_symbol_underscore=yes
19436 else
19437 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19438 :
19439 else
19440 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19441 fi
19442 fi
19443 else
19444 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19445 fi
19446 else
19447 echo "configure: failed program was:" >&5
19448 cat conftest.c >&5
19449 fi
19450 rm -rf conftest*
19451
19452fi
cristy8b350f62009-11-15 23:12:43 +000019453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019454$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19455 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19456
19457
19458if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19459 if test x"$libltdl_cv_func_dlopen" = xyes ||
19460 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
cristy8b350f62009-11-15 23:12:43 +000019461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
cristy3ed852e2009-09-05 21:47:34 +000019462$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019463if test "${libltdl_cv_need_uscore+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019464 $as_echo_n "(cached) " >&6
19465else
19466 libltdl_cv_need_uscore=unknown
19467 save_LIBS="$LIBS"
19468 LIBS="$LIBS $LIBADD_DLOPEN"
19469 if test "$cross_compiling" = yes; then :
19470 libltdl_cv_need_uscore=cross
19471else
19472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19473 lt_status=$lt_dlunknown
19474 cat > conftest.$ac_ext <<_LT_EOF
cristya62cc882010-06-17 00:12:38 +000019475#line 19475 "configure"
cristy3ed852e2009-09-05 21:47:34 +000019476#include "confdefs.h"
19477
19478#if HAVE_DLFCN_H
19479#include <dlfcn.h>
19480#endif
19481
19482#include <stdio.h>
19483
19484#ifdef RTLD_GLOBAL
19485# define LT_DLGLOBAL RTLD_GLOBAL
19486#else
19487# ifdef DL_GLOBAL
19488# define LT_DLGLOBAL DL_GLOBAL
19489# else
19490# define LT_DLGLOBAL 0
19491# endif
19492#endif
19493
19494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19495 find out it does not work in some platform. */
19496#ifndef LT_DLLAZY_OR_NOW
19497# ifdef RTLD_LAZY
19498# define LT_DLLAZY_OR_NOW RTLD_LAZY
19499# else
19500# ifdef DL_LAZY
19501# define LT_DLLAZY_OR_NOW DL_LAZY
19502# else
19503# ifdef RTLD_NOW
19504# define LT_DLLAZY_OR_NOW RTLD_NOW
19505# else
19506# ifdef DL_NOW
19507# define LT_DLLAZY_OR_NOW DL_NOW
19508# else
19509# define LT_DLLAZY_OR_NOW 0
19510# endif
19511# endif
19512# endif
19513# endif
19514#endif
19515
cristy18304f92009-11-22 15:48:26 +000019516void fnord() { int i=42;}
cristy3ed852e2009-09-05 21:47:34 +000019517int main ()
19518{
19519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19520 int status = $lt_dlunknown;
19521
19522 if (self)
19523 {
19524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy18304f92009-11-22 15:48:26 +000019525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
cristy3ed852e2009-09-05 21:47:34 +000019526 /* dlclose (self); */
19527 }
19528 else
19529 puts (dlerror ());
19530
19531 return status;
19532}
19533_LT_EOF
cristy8b350f62009-11-15 23:12:43 +000019534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000019535 (eval $ac_link) 2>&5
19536 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000019537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000019539 (./conftest; exit; ) >&5 2>/dev/null
19540 lt_status=$?
19541 case x$lt_status in
19542 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19543 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19544 x$lt_dlunknown|x*) ;;
19545 esac
19546 else :
19547 # compilation failed
19548
19549 fi
19550fi
19551rm -fr conftest*
19552
19553 LIBS="$save_LIBS"
19554
19555fi
cristy8b350f62009-11-15 23:12:43 +000019556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
cristy3ed852e2009-09-05 21:47:34 +000019557$as_echo "$libltdl_cv_need_uscore" >&6; }
19558 fi
19559fi
19560
19561if test x"$libltdl_cv_need_uscore" = xyes; then
19562
cristy8b350f62009-11-15 23:12:43 +000019563$as_echo "#define NEED_USCORE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019564
19565fi
19566
cristy8b350f62009-11-15 23:12:43 +000019567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019568$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019569if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019570 $as_echo_n "(cached) " >&6
19571else
19572 # PORTME does your system automatically load deplibs for dlopen?
19573 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19574 # For now, we just catch OSes we know something about -- in the
19575 # future, we'll try test this programmatically.
19576 lt_cv_sys_dlopen_deplibs=unknown
19577 case $host_os in
19578 aix3*|aix4.1.*|aix4.2.*)
19579 # Unknown whether this is true for these versions of AIX, but
19580 # we want this `case' here to explicitly catch those versions.
19581 lt_cv_sys_dlopen_deplibs=unknown
19582 ;;
19583 aix[4-9]*)
19584 lt_cv_sys_dlopen_deplibs=yes
19585 ;;
19586 amigaos*)
19587 case $host_cpu in
19588 powerpc)
19589 lt_cv_sys_dlopen_deplibs=no
19590 ;;
19591 esac
19592 ;;
19593 darwin*)
19594 # Assuming the user has installed a libdl from somewhere, this is true
19595 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19596 lt_cv_sys_dlopen_deplibs=yes
19597 ;;
19598 freebsd* | dragonfly*)
19599 lt_cv_sys_dlopen_deplibs=yes
19600 ;;
cristy18304f92009-11-22 15:48:26 +000019601 gnu* | linux* | k*bsd*-gnu)
cristy3ed852e2009-09-05 21:47:34 +000019602 # GNU and its variants, using gnu ld.so (Glibc)
19603 lt_cv_sys_dlopen_deplibs=yes
19604 ;;
19605 hpux10*|hpux11*)
19606 lt_cv_sys_dlopen_deplibs=yes
19607 ;;
19608 interix*)
19609 lt_cv_sys_dlopen_deplibs=yes
19610 ;;
19611 irix[12345]*|irix6.[01]*)
19612 # Catch all versions of IRIX before 6.2, and indicate that we don't
19613 # know how it worked for any of those versions.
19614 lt_cv_sys_dlopen_deplibs=unknown
19615 ;;
19616 irix*)
19617 # The case above catches anything before 6.2, and it's known that
19618 # at 6.2 and later dlopen does load deplibs.
19619 lt_cv_sys_dlopen_deplibs=yes
19620 ;;
19621 netbsd*)
19622 lt_cv_sys_dlopen_deplibs=yes
19623 ;;
19624 openbsd*)
19625 lt_cv_sys_dlopen_deplibs=yes
19626 ;;
19627 osf[1234]*)
19628 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19629 # it did *not* use an RPATH in a shared library to find objects the
19630 # library depends on, so we explicitly say `no'.
19631 lt_cv_sys_dlopen_deplibs=no
19632 ;;
19633 osf5.0|osf5.0a|osf5.1)
19634 # dlopen *does* load deplibs and with the right loader patch applied
19635 # it even uses RPATH in a shared library to search for shared objects
19636 # that the library depends on, but there's no easy way to know if that
19637 # patch is installed. Since this is the case, all we can really
19638 # say is unknown -- it depends on the patch being installed. If
19639 # it is, this changes to `yes'. Without it, it would be `no'.
19640 lt_cv_sys_dlopen_deplibs=unknown
19641 ;;
19642 osf*)
19643 # the two cases above should catch all versions of osf <= 5.1. Read
19644 # the comments above for what we know about them.
19645 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19646 # is used to find them so we can finally say `yes'.
19647 lt_cv_sys_dlopen_deplibs=yes
19648 ;;
19649 qnx*)
19650 lt_cv_sys_dlopen_deplibs=yes
19651 ;;
19652 solaris*)
19653 lt_cv_sys_dlopen_deplibs=yes
19654 ;;
19655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19656 libltdl_cv_sys_dlopen_deplibs=yes
19657 ;;
19658 esac
19659
19660fi
cristy8b350f62009-11-15 23:12:43 +000019661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
cristy3ed852e2009-09-05 21:47:34 +000019662$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19663if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19664
cristy8b350f62009-11-15 23:12:43 +000019665$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019666
19667fi
19668
19669:
19670
cristy3ed852e2009-09-05 21:47:34 +000019671for ac_header in argz.h
cristy8b350f62009-11-15 23:12:43 +000019672do :
19673 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19674"
19675if test "x$ac_cv_header_argz_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019676 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019677#define HAVE_ARGZ_H 1
cristy3ed852e2009-09-05 21:47:34 +000019678_ACEOF
19679
19680fi
19681
19682done
19683
19684
cristy8b350f62009-11-15 23:12:43 +000019685ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
cristy3ed852e2009-09-05 21:47:34 +000019686# include <argz.h>
19687#endif
cristy8b350f62009-11-15 23:12:43 +000019688"
19689if test "x$ac_cv_type_error_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019690
19691cat >>confdefs.h <<_ACEOF
19692#define HAVE_ERROR_T 1
19693_ACEOF
19694
19695
19696else
19697
cristy8b350f62009-11-15 23:12:43 +000019698$as_echo "#define error_t int" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019699
19700
cristy8b350f62009-11-15 23:12:43 +000019701$as_echo "#define __error_t_defined 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019702
19703fi
19704
19705
19706ARGZ_H=
cristy3ed852e2009-09-05 21:47:34 +000019707for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19708 argz_next argz_stringify
cristy8b350f62009-11-15 23:12:43 +000019709do :
19710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19711ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19712eval as_val=\$$as_ac_var
19713 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019714 cat >>confdefs.h <<_ACEOF
19715#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19716_ACEOF
19717
19718else
19719 ARGZ_H=argz.h;
19720
19721 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19722
19723fi
19724done
19725
19726
cristy8b350f62009-11-15 23:12:43 +000019727if test -z "$ARGZ_H"; then :
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019729$as_echo_n "checking if argz actually works... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019730if test "${lt_cv_sys_argz_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019731 $as_echo_n "(cached) " >&6
19732else
19733 case $host_os in #(
19734 *cygwin*)
19735 lt_cv_sys_argz_works=no
19736 if test "$cross_compiling" != no; then
19737 lt_cv_sys_argz_works="guessing no"
19738 else
19739 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19740 save_IFS=$IFS
19741 IFS=-.
19742 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19743 IFS=$save_IFS
19744 lt_os_major=${2-0}
19745 lt_os_minor=${3-0}
19746 lt_os_micro=${4-0}
19747 if test "$lt_os_major" -gt 1 \
19748 || { test "$lt_os_major" -eq 1 \
19749 && { test "$lt_os_minor" -gt 5 \
19750 || { test "$lt_os_minor" -eq 5 \
19751 && test "$lt_os_micro" -gt 24; }; }; }; then
19752 lt_cv_sys_argz_works=yes
19753 fi
19754 fi
19755 ;; #(
19756 *) lt_cv_sys_argz_works=yes ;;
19757 esac
19758fi
cristy8b350f62009-11-15 23:12:43 +000019759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000019760$as_echo "$lt_cv_sys_argz_works" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019761 if test $lt_cv_sys_argz_works = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019762
cristy8b350f62009-11-15 23:12:43 +000019763$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019764
19765else
19766 ARGZ_H=argz.h
19767
19768
19769 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19770
19771fi
cristy3ed852e2009-09-05 21:47:34 +000019772fi
19773
19774
19775
cristy8b350f62009-11-15 23:12:43 +000019776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000019777$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019778if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019779 $as_echo_n "(cached) " >&6
19780else
19781 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19782 libltdl_cv_preloaded_symbols=yes
19783 else
19784 libltdl_cv_preloaded_symbols=no
19785 fi
19786
19787fi
cristy8b350f62009-11-15 23:12:43 +000019788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
cristy3ed852e2009-09-05 21:47:34 +000019789$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19790if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19791
cristy8b350f62009-11-15 23:12:43 +000019792$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019793
19794fi
19795
19796# Set options
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808# Check whether --with-included_ltdl was given.
cristy8b350f62009-11-15 23:12:43 +000019809if test "${with_included_ltdl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019810 withval=$with_included_ltdl;
19811fi
19812
19813
19814if test "x$with_included_ltdl" != xyes; then
19815 # We are not being forced to use the included libltdl sources, so
19816 # decide whether there is a useful installed version we can use.
cristy8b350f62009-11-15 23:12:43 +000019817 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
cristy3ed852e2009-09-05 21:47:34 +000019818
cristy8b350f62009-11-15 23:12:43 +000019819"
19820if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19821 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 +000019822 #include <ltdl.h>
cristy8b350f62009-11-15 23:12:43 +000019823"
19824if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
cristy3ed852e2009-09-05 21:47:34 +000019826$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019827if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019828 $as_echo_n "(cached) " >&6
19829else
19830 ac_check_lib_save_LIBS=$LIBS
19831LIBS="-lltdl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000019832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019833/* end confdefs.h. */
19834
19835/* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838#ifdef __cplusplus
19839extern "C"
19840#endif
19841char lt_dladvise_preload ();
19842int
19843main ()
19844{
19845return lt_dladvise_preload ();
19846 ;
19847 return 0;
19848}
19849_ACEOF
cristy8b350f62009-11-15 23:12:43 +000019850if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000019851 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19852else
cristy8b350f62009-11-15 23:12:43 +000019853 ac_cv_lib_ltdl_lt_dladvise_preload=no
cristy3ed852e2009-09-05 21:47:34 +000019854fi
cristy8b350f62009-11-15 23:12:43 +000019855rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000019857LIBS=$ac_check_lib_save_LIBS
19858fi
cristy8b350f62009-11-15 23:12:43 +000019859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
cristy3ed852e2009-09-05 21:47:34 +000019860$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019861if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000019862 with_included_ltdl=no
19863else
19864 with_included_ltdl=yes
19865fi
19866
19867else
19868 with_included_ltdl=yes
19869fi
19870
19871else
19872 with_included_ltdl=yes
19873fi
19874
19875
19876fi
19877
19878
19879
19880
19881# Check whether --with-ltdl_include was given.
cristy8b350f62009-11-15 23:12:43 +000019882if test "${with_ltdl_include+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019883 withval=$with_ltdl_include;
19884fi
19885
19886
19887if test -n "$with_ltdl_include"; then
19888 if test -f "$with_ltdl_include/ltdl.h"; then :
19889 else
cristy8b350f62009-11-15 23:12:43 +000019890 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019891 fi
19892else
19893 with_ltdl_include=no
19894fi
19895
19896
19897# Check whether --with-ltdl_lib was given.
cristy8b350f62009-11-15 23:12:43 +000019898if test "${with_ltdl_lib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019899 withval=$with_ltdl_lib;
19900fi
19901
19902
19903if test -n "$with_ltdl_lib"; then
19904 if test -f "$with_ltdl_lib/libltdl.la"; then :
19905 else
cristy8b350f62009-11-15 23:12:43 +000019906 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019907 fi
19908else
19909 with_ltdl_lib=no
19910fi
19911
19912case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19913 ,yes,no,no,)
19914 case $enable_ltdl_convenience in
cristy8b350f62009-11-15 23:12:43 +000019915 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000019916 "") enable_ltdl_convenience=yes
19917 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19918esac
19919LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19920LTDLDEPS=$LIBLTDL
19921LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19922
19923
19924
19925
19926
19927# For backwards non-gettext consistent compatibility...
19928INCLTDL="$LTDLINCL"
19929
19930
19931 ;;
19932 ,no,no,no,)
19933 # If the included ltdl is not to be used, then use the
19934 # preinstalled libltdl we found.
19935
cristy8b350f62009-11-15 23:12:43 +000019936$as_echo "#define HAVE_LTDL 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000019937
19938 LIBLTDL=-lltdl
19939 LTDLDEPS=
19940 LTDLINCL=
19941 ;;
19942 ,no*,no,*)
cristy8b350f62009-11-15 23:12:43 +000019943 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000019944 ;;
19945 *) with_included_ltdl=no
19946 LIBLTDL="-L$with_ltdl_lib -lltdl"
19947 LTDLDEPS=
19948 LTDLINCL="-I$with_ltdl_include"
19949 ;;
19950esac
19951INCLTDL="$LTDLINCL"
19952
19953# Report our decision...
cristy8b350f62009-11-15 23:12:43 +000019954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
cristy3ed852e2009-09-05 21:47:34 +000019955$as_echo_n "checking where to find libltdl headers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019957$as_echo "$LTDLINCL" >&6; }
cristy8b350f62009-11-15 23:12:43 +000019958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
cristy3ed852e2009-09-05 21:47:34 +000019959$as_echo_n "checking where to find libltdl library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000019960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
cristy3ed852e2009-09-05 21:47:34 +000019961$as_echo "$LIBLTDL" >&6; }
19962
19963
19964
19965# Check whether --enable-ltdl-install was given.
cristy8b350f62009-11-15 23:12:43 +000019966if test "${enable_ltdl_install+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000019967 enableval=$enable_ltdl_install;
19968fi
19969
19970
19971case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19972 *yes*) ;;
19973 *) enable_ltdl_convenience=yes ;;
19974esac
19975
19976 if test x"${enable_ltdl_install-no}" != xno; then
19977 INSTALL_LTDL_TRUE=
19978 INSTALL_LTDL_FALSE='#'
19979else
19980 INSTALL_LTDL_TRUE='#'
19981 INSTALL_LTDL_FALSE=
19982fi
19983
19984 if test x"${enable_ltdl_convenience-no}" != xno; then
19985 CONVENIENCE_LTDL_TRUE=
19986 CONVENIENCE_LTDL_FALSE='#'
19987else
19988 CONVENIENCE_LTDL_TRUE='#'
19989 CONVENIENCE_LTDL_FALSE=
19990fi
19991
19992
19993
19994
19995
19996
cristy18304f92009-11-22 15:48:26 +000019997
cristy3ed852e2009-09-05 21:47:34 +000019998# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19999# the user used. This is so that ltdl.h can pick up the parent projects
20000# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20001# definitions required by ltdl.c.
20002# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20003
20004
20005
cristy3ed852e2009-09-05 21:47:34 +000020006for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
cristy8b350f62009-11-15 23:12:43 +000020007do :
20008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20009ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20010"
20011eval as_val=\$$as_ac_Header
20012 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020013 cat >>confdefs.h <<_ACEOF
20014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20015_ACEOF
20016
20017fi
20018
20019done
20020
20021
cristy3ed852e2009-09-05 21:47:34 +000020022for ac_func in closedir opendir readdir
cristy8b350f62009-11-15 23:12:43 +000020023do :
20024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20025ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20026eval as_val=\$$as_ac_var
20027 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020028 cat >>confdefs.h <<_ACEOF
20029#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20030_ACEOF
20031
20032else
20033
20034
20035 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20036
20037fi
20038done
20039
cristy3ed852e2009-09-05 21:47:34 +000020040for ac_func in strlcat strlcpy
cristy8b350f62009-11-15 23:12:43 +000020041do :
20042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20044eval as_val=\$$as_ac_var
20045 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020046 cat >>confdefs.h <<_ACEOF
20047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048_ACEOF
20049
20050else
20051
20052
20053 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20054
20055fi
20056done
20057
20058
20059
20060cat >>confdefs.h <<_ACEOF
20061#define LT_LIBEXT "$libext"
20062_ACEOF
20063
20064
20065name=ltdl
20066LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20067
20068
20069
20070
20071
20072
20073
20074
20075# Only expand once:
20076
20077
20078
20079# Check to see if building shared libraries
20080libtool_build_shared_libs='no'
20081if test "$enable_shared" = 'yes'; then
20082 libtool_build_shared_libs='yes'
20083fi
20084
20085# Check to see if building static libraries
20086libtool_build_static_libs='no'
20087if test "$enable_static" = 'yes'; then
20088 libtool_build_static_libs='yes'
20089fi
20090
cristyfa112112010-01-04 17:48:07 +000020091 if test "${libtool_build_shared_libs}" = 'yes'; then
20092 WITH_SHARED_LIBS_TRUE=
20093 WITH_SHARED_LIBS_FALSE='#'
20094else
20095 WITH_SHARED_LIBS_TRUE='#'
20096 WITH_SHARED_LIBS_FALSE=
cristy3ed852e2009-09-05 21:47:34 +000020097fi
20098
20099#
20100# Enable support for building loadable modules
20101#
20102
20103# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020104if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020105 withval=$with_modules; with_modules=$withval
20106else
cristy5a1cefd2010-01-06 20:42:35 +000020107 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020108fi
20109
20110
20111# Only allow building loadable modules if we are building shared libraries
20112if test "$with_modules" != 'no' ; then
20113 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020114 { $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 +000020115$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20116 with_modules='no'
20117 fi
20118fi
20119if test "$with_modules" != 'no'; then
20120
cristy8b350f62009-11-15 23:12:43 +000020121$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020122
20123fi
20124 if test "$with_modules" != 'no'; then
20125 WITH_MODULES_TRUE=
20126 WITH_MODULES_FALSE='#'
20127else
20128 WITH_MODULES_TRUE='#'
20129 WITH_MODULES_FALSE=
20130fi
20131
20132
20133# Enable building/use of libltdl if we are building shared libraries regardless
20134# of whether modules are built or not.
20135with_ltdl='no'
20136if test "$libtool_build_shared_libs" != 'no'; then
20137 with_ltdl='yes'
20138fi
20139
20140 if test "$with_ltdl" != 'no'; then
20141 WITH_LTDL_TRUE=
20142 WITH_LTDL_FALSE='#'
20143else
20144 WITH_LTDL_TRUE='#'
20145 WITH_LTDL_FALSE=
20146fi
20147
20148if test "$with_ltdl" != 'no'; then
20149
cristy8b350f62009-11-15 23:12:43 +000020150$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020151
20152
20153 # Set DLLDFLAGS
20154 if test X"$enable_shared" = Xyes; then
20155 DLLDFLAGS=-export-dynamic
20156
20157 fi
20158fi
20159
20160# Enable build using delegate libraries built in subdirectories rather than installed
cristy5850e4b2010-01-08 14:28:24 +000020161# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020162# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020163if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020164 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20165else
20166 enable_delegate_build='no'
20167fi
20168
20169
20170# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020171if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020172 enableval=$enable_deprecated; enable_deprecated=$enableval
20173else
20174 enable_deprecated='no'
20175fi
20176
20177
20178if test "$enable_deprecated" = 'yes'; then
20179
cristy8b350f62009-11-15 23:12:43 +000020180$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020181
20182else
20183 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20184fi
20185
20186# Build a version of ImageMagick which operates uninstalled.
20187# Used to build distributions located via MAGICK_HOME / executable path
20188# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020189if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020190 enableval=$enable_installed; enable_installed=$enableval
20191else
20192 enable_installed='yes'
20193fi
20194
20195
20196if test "$enable_installed" = 'yes'; then
20197
cristy8b350f62009-11-15 23:12:43 +000020198$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020199
20200else
20201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20202fi
20203
20204# Permit enciphering and deciphering image pixels.
20205# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020206if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020207 enableval=$enable_cipher; enable_cipher=$enableval
20208else
20209 enable_cipher='yes'
20210fi
20211
20212
20213if test "$enable_cipher" = 'yes'; then
20214
cristy8b350f62009-11-15 23:12:43 +000020215$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020216
20217fi
20218
20219# Build an embeddable version of ImageMagick.
20220# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020221if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020222 enableval=$enable_embeddable; enable_embeddable=$enableval
20223else
20224 enable_embeddable='no'
20225fi
20226
20227
20228if test "$enable_embeddable" = 'yes'; then
20229
cristy8b350f62009-11-15 23:12:43 +000020230$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020231
20232fi
20233
20234# Build a high dynamic range version of ImageMagick.
20235# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020236if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020237 enableval=$enable_hdri; enable_hdri=$enableval
20238else
20239 enable_hdri='no'
20240fi
20241
20242
20243MAGICK_HDRI=""
20244if test "$enable_hdri" = 'yes'; then
20245 MAGICK_HDRI="HDRI"
20246
cristy8b350f62009-11-15 23:12:43 +000020247$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020248
20249fi
20250
cristy3ed852e2009-09-05 21:47:34 +000020251# Build a version of ImageMagick with assert statements.
20252# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020253if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020254 enableval=$enable_assert; enable_assert=$enableval
20255else
20256 enable_assert='yes'
20257fi
20258
20259
20260if test "$enable_assert" = 'no'; then
20261
cristy8b350f62009-11-15 23:12:43 +000020262$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020263
20264fi
20265
20266# Add configure option --enable-maintainer-mode which enables dependency
20267# checking and generation useful to package maintainers. This is made an
20268# option to avoid confusing end users.
20269
cristy8b350f62009-11-15 23:12:43 +000020270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
cristy3ed852e2009-09-05 21:47:34 +000020271$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20272 # Check whether --enable-maintainer-mode was given.
cristy8b350f62009-11-15 23:12:43 +000020273if test "${enable_maintainer_mode+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020274 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20275else
20276 USE_MAINTAINER_MODE=no
20277fi
20278
cristy8b350f62009-11-15 23:12:43 +000020279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
cristy3ed852e2009-09-05 21:47:34 +000020280$as_echo "$USE_MAINTAINER_MODE" >&6; }
20281 if test $USE_MAINTAINER_MODE = yes; then
20282 MAINTAINER_MODE_TRUE=
20283 MAINTAINER_MODE_FALSE='#'
20284else
20285 MAINTAINER_MODE_TRUE='#'
20286 MAINTAINER_MODE_FALSE=
20287fi
20288
20289 MAINT=$MAINTAINER_MODE_TRUE
20290
20291
20292
20293
20294# Enable ccmalloc memory debugging support
20295# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020296if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020297 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20298else
20299 enable_ccmalloc='no'
20300fi
20301
20302
20303# Enable Electric Fence memory debugging support
20304# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020305if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020306 enableval=$enable_efence; enable_efence=$enableval
20307else
20308 enable_efence='no'
20309fi
20310
20311
20312# Enable prof-based profiling support
20313# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020314if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020315 enableval=$enable_prof; enable_prof=$enableval
20316else
20317 enable_prof='no'
20318fi
20319
20320
20321# Enable gprof-based profiling support
20322# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020323if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020324 enableval=$enable_gprof; enable_gprof=$enableval
20325else
20326 enable_gprof='no'
20327fi
20328
20329
20330# Enable gcov-based profiling support
20331# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020332if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020333 enableval=$enable_gcov; enable_gcov=$enableval
20334else
20335 enable_gcov='no'
20336fi
20337
20338
20339enable_profiling='no'
20340if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20341 enable_profiling='yes'
20342 if test "$libtool_build_shared_libs" = 'yes'; then
20343 echo "Warning: Can not profile code using shared libraries"
20344 fi
20345fi
20346
20347# Magick API method prefix
20348
20349# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020350if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020351 withval=$with_method_prefix; with_method_prefix=$enableval
20352else
20353 with_method_prefix=''
20354fi
20355
20356
20357if test "$with_method_prefix" != ''; then
20358
20359cat >>confdefs.h <<_ACEOF
20360#define NAMESPACE_PREFIX $with_method_prefix
20361_ACEOF
20362
20363fi
20364
20365# Number of bits in a Quantum
20366
20367# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020368if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020369 withval=$with_quantum_depth; with_quantum_depth=$withval
20370else
20371 with_quantum_depth=16
20372fi
20373
20374
20375if test "$with_quantum_depth" != '8'; then
20376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20377fi
20378
20379case "${with_quantum_depth}" in
20380 8 ) ;;
20381 16 ) ;;
20382 32 ) ;;
20383 64 ) ;;
cristy8b350f62009-11-15 23:12:43 +000020384 * ) { as_fn_set_status 16
20385as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
cristy3ed852e2009-09-05 21:47:34 +000020386esac
20387QUANTUM_DEPTH="$with_quantum_depth"
20388
20389cat >>confdefs.h <<_ACEOF
20390#define QUANTUM_DEPTH $QUANTUM_DEPTH
20391_ACEOF
20392
20393
20394# Set pixel cache threshold
20395
20396# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000020397if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020398 withval=$with_cache; with_cache=$withval
20399else
20400 with_cache=''
20401fi
20402
20403
20404if test "$with_cache" != ''; then
20405
20406cat >>confdefs.h <<_ACEOF
20407#define PixelCacheThreshold $with_cache
20408_ACEOF
20409
20410 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20411fi
20412
20413# Disable/Enable support for full delegate paths
20414
20415# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000020416if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020417 withval=$with_frozenpaths; with_frozenpaths=$withval
20418else
20419 with_frozenpaths='no'
20420fi
20421
20422
20423# Enable build/install of Magick++
20424
20425# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000020426if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020427 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20428else
20429 with_magick_plus_plus='yes'
20430fi
20431
20432
20433# Disable build/install of PerlMagick.
20434
20435# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000020436if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020437 withval=$with_perl; with_perl=$withval
20438else
cristyb5f4e2f2010-04-25 00:49:11 +000020439 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000020440fi
20441
20442
20443# Options to pass when configuring PerlMagick
20444
20445# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000020446if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000020447 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000020448fi
20449
20450
cristy3ed852e2009-09-05 21:47:34 +000020451
20452# Enable umem, object-caching memory allocation library.
20453
20454# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000020455if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020456 withval=$with_umem; with_umem=$withval
20457else
20458 with_umem='no'
20459fi
20460
20461if test "$with_umem" != 'yes' ; then
20462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20463fi
20464
20465#
20466# Specify path to shared libstdc++ if not in normal location
20467#
20468
20469# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000020470if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020471 withval=$with_libstdc; with_libstdc=$withval
20472else
20473 with_libstdc=''
20474fi
20475
20476
20477if test "$with_libstdc" != ''; then
20478 if test -d "$with_libstdc"; then
20479 LIBSTDCLDFLAGS="-L$with_libstdc"
20480 fi
20481fi
20482
20483
20484# Does gcc required -traditional?
20485if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000020486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020487$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020488if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020489 $as_echo_n "(cached) " >&6
20490else
20491 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000020492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020493/* end confdefs.h. */
20494#include <sgtty.h>
20495Autoconf TIOCGETP
20496_ACEOF
20497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020498 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020499 ac_cv_prog_gcc_traditional=yes
20500else
20501 ac_cv_prog_gcc_traditional=no
20502fi
20503rm -f conftest*
20504
20505
20506 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000020507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020508/* end confdefs.h. */
20509#include <termio.h>
20510Autoconf TCGETA
20511_ACEOF
20512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020513 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020514 ac_cv_prog_gcc_traditional=yes
20515fi
20516rm -f conftest*
20517
20518 fi
20519fi
cristy8b350f62009-11-15 23:12:43 +000020520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000020521$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20522 if test $ac_cv_prog_gcc_traditional = yes; then
20523 CC="$CC -traditional"
20524 fi
20525fi
20526
20527
20528########
20529#
20530# Set defines required to build DLLs and modules using MinGW
20531#
20532########
20533# These options are set for multi-thread DLL module build
20534# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20535# module: _DLL
20536# executable/Magick++: _DLL _MAGICKMOD_
20537MODULE_EXTRA_CPPFLAGS=''
20538LIBRARY_EXTRA_CPPFLAGS=''
20539if test "${native_win32_build}" = 'yes'; then
20540 if test "${libtool_build_shared_libs}" = 'yes'; then
20541 CPPFLAGS="$CPPFLAGS -D_DLL"
20542 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20543 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20544 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20545 if test "$with_modules" = 'yes'; then
20546 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20547 else
20548 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20549 fi
20550 else
20551 CPPFLAGS="$CPPFLAGS -D_LIB"
20552 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20553 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20554 fi
20555 if test "$with_threads" = 'yes'; then
20556 CPPFLAGS="$CPPFLAGS -D_MT"
20557 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20558 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20559 fi
20560fi
20561
20562
20563
20564# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000020565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000020566$as_echo_n "checking for ANSI C header files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020567if test "${ac_cv_header_stdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020568 $as_echo_n "(cached) " >&6
20569else
cristy8b350f62009-11-15 23:12:43 +000020570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020571/* end confdefs.h. */
20572#include <stdlib.h>
20573#include <stdarg.h>
20574#include <string.h>
20575#include <float.h>
20576
20577int
20578main ()
20579{
20580
20581 ;
20582 return 0;
20583}
20584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020585if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020586 ac_cv_header_stdc=yes
20587else
cristy8b350f62009-11-15 23:12:43 +000020588 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020589fi
cristy3ed852e2009-09-05 21:47:34 +000020590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591
20592if test $ac_cv_header_stdc = yes; then
20593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
20597
20598_ACEOF
20599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020600 $EGREP "memchr" >/dev/null 2>&1; then :
20601
cristy3ed852e2009-09-05 21:47:34 +000020602else
20603 ac_cv_header_stdc=no
20604fi
20605rm -f conftest*
20606
20607fi
20608
20609if test $ac_cv_header_stdc = yes; then
20610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000020611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020612/* end confdefs.h. */
20613#include <stdlib.h>
20614
20615_ACEOF
20616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000020617 $EGREP "free" >/dev/null 2>&1; then :
20618
cristy3ed852e2009-09-05 21:47:34 +000020619else
20620 ac_cv_header_stdc=no
20621fi
20622rm -f conftest*
20623
20624fi
20625
20626if test $ac_cv_header_stdc = yes; then
20627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000020628 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020629 :
20630else
cristy8b350f62009-11-15 23:12:43 +000020631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020632/* end confdefs.h. */
20633#include <ctype.h>
20634#include <stdlib.h>
20635#if ((' ' & 0x0FF) == 0x020)
20636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20638#else
20639# define ISLOWER(c) \
20640 (('a' <= (c) && (c) <= 'i') \
20641 || ('j' <= (c) && (c) <= 'r') \
20642 || ('s' <= (c) && (c) <= 'z'))
20643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20644#endif
20645
20646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20647int
20648main ()
20649{
20650 int i;
20651 for (i = 0; i < 256; i++)
20652 if (XOR (islower (i), ISLOWER (i))
20653 || toupper (i) != TOUPPER (i))
20654 return 2;
20655 return 0;
20656}
20657_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020658if ac_fn_c_try_run "$LINENO"; then :
20659
cristy3ed852e2009-09-05 21:47:34 +000020660else
cristy8b350f62009-11-15 23:12:43 +000020661 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000020662fi
cristy8b350f62009-11-15 23:12:43 +000020663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20664 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020665fi
20666
cristy3ed852e2009-09-05 21:47:34 +000020667fi
20668fi
cristy8b350f62009-11-15 23:12:43 +000020669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000020670$as_echo "$ac_cv_header_stdc" >&6; }
20671if test $ac_cv_header_stdc = yes; then
20672
cristy8b350f62009-11-15 23:12:43 +000020673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020674
20675fi
20676
20677if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000020678 { $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 +000020679 header files. Compilation cannot proceed. Please install the ANSI C
20680 headers and rerun this script." >&5
20681$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20682 header files. Compilation cannot proceed. Please install the ANSI C
20683 headers and rerun this script." >&2;};
20684fi
cristya0b81c32010-01-22 02:54:33 +000020685
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20687$as_echo_n "checking whether to enable assertions... " >&6; }
20688 # Check whether --enable-assert was given.
20689if test "${enable_assert+set}" = set; then :
20690 enableval=$enable_assert; ac_enable_assert=$enableval
20691 if test "x$enableval" = xno; then :
20692
20693$as_echo "#define NDEBUG 1" >>confdefs.h
20694
20695elif test "x$enableval" != xyes; then :
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20697$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20698 ac_enable_assert=yes
20699fi
20700else
20701 ac_enable_assert=yes
20702fi
20703
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20705$as_echo "$ac_enable_assert" >&6; }
20706
cristy3ed852e2009-09-05 21:47:34 +000020707ac_header_dirent=no
20708for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20709 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000020710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000020711$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
cristy3ed852e2009-09-05 21:47:34 +000020713 $as_echo_n "(cached) " >&6
20714else
cristy8b350f62009-11-15 23:12:43 +000020715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020716/* end confdefs.h. */
20717#include <sys/types.h>
20718#include <$ac_hdr>
20719
20720int
20721main ()
20722{
20723if ((DIR *) 0)
20724return 0;
20725 ;
20726 return 0;
20727}
20728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020729if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020730 eval "$as_ac_Header=yes"
20731else
cristy8b350f62009-11-15 23:12:43 +000020732 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000020733fi
cristy3ed852e2009-09-05 21:47:34 +000020734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735fi
cristy8b350f62009-11-15 23:12:43 +000020736eval ac_res=\$$as_ac_Header
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000020738$as_echo "$ac_res" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020739eval as_val=\$$as_ac_Header
20740 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020741 cat >>confdefs.h <<_ACEOF
20742#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20743_ACEOF
20744
20745ac_header_dirent=$ac_hdr; break
20746fi
20747
20748done
20749# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20750if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000020751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020752$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020753if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020754 $as_echo_n "(cached) " >&6
20755else
20756 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020758/* end confdefs.h. */
20759
20760/* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763#ifdef __cplusplus
20764extern "C"
20765#endif
20766char opendir ();
20767int
20768main ()
20769{
20770return opendir ();
20771 ;
20772 return 0;
20773}
20774_ACEOF
20775for ac_lib in '' dir; do
20776 if test -z "$ac_lib"; then
20777 ac_res="none required"
20778 else
20779 ac_res=-l$ac_lib
20780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20781 fi
cristy8b350f62009-11-15 23:12:43 +000020782 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020783 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020784fi
cristy8b350f62009-11-15 23:12:43 +000020785rm -f core conftest.err conftest.$ac_objext \
20786 conftest$ac_exeext
20787 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020788 break
20789fi
20790done
cristy8b350f62009-11-15 23:12:43 +000020791if test "${ac_cv_search_opendir+set}" = set; then :
20792
cristy3ed852e2009-09-05 21:47:34 +000020793else
20794 ac_cv_search_opendir=no
20795fi
20796rm conftest.$ac_ext
20797LIBS=$ac_func_search_save_LIBS
20798fi
cristy8b350f62009-11-15 23:12:43 +000020799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020800$as_echo "$ac_cv_search_opendir" >&6; }
20801ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020802if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20804
20805fi
20806
20807else
cristy8b350f62009-11-15 23:12:43 +000020808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020809$as_echo_n "checking for library containing opendir... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020810if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020811 $as_echo_n "(cached) " >&6
20812else
20813 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000020814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020815/* end confdefs.h. */
20816
20817/* Override any GCC internal prototype to avoid an error.
20818 Use char because int might match the return type of a GCC
20819 builtin and then its argument prototype would still apply. */
20820#ifdef __cplusplus
20821extern "C"
20822#endif
20823char opendir ();
20824int
20825main ()
20826{
20827return opendir ();
20828 ;
20829 return 0;
20830}
20831_ACEOF
20832for ac_lib in '' x; do
20833 if test -z "$ac_lib"; then
20834 ac_res="none required"
20835 else
20836 ac_res=-l$ac_lib
20837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20838 fi
cristy8b350f62009-11-15 23:12:43 +000020839 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020840 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000020841fi
cristy8b350f62009-11-15 23:12:43 +000020842rm -f core conftest.err conftest.$ac_objext \
20843 conftest$ac_exeext
20844 if test "${ac_cv_search_opendir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020845 break
20846fi
20847done
cristy8b350f62009-11-15 23:12:43 +000020848if test "${ac_cv_search_opendir+set}" = set; then :
20849
cristy3ed852e2009-09-05 21:47:34 +000020850else
20851 ac_cv_search_opendir=no
20852fi
20853rm conftest.$ac_ext
20854LIBS=$ac_func_search_save_LIBS
20855fi
cristy8b350f62009-11-15 23:12:43 +000020856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000020857$as_echo "$ac_cv_search_opendir" >&6; }
20858ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000020859if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000020860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20861
20862fi
20863
20864fi
20865
20866
20867# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000020868for 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 +000020869do :
20870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872eval as_val=\$$as_ac_Header
20873 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020874 cat >>confdefs.h <<_ACEOF
20875#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20876_ACEOF
20877
20878fi
20879
20880done
20881
20882
20883########
20884#
20885# Checks for typedefs, structures, and compiler characteristics.
20886#
20887########
20888
cristy8b350f62009-11-15 23:12:43 +000020889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000020890$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000020891if test "${ac_cv_header_stdbool_h+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020892 $as_echo_n "(cached) " >&6
20893else
cristy8b350f62009-11-15 23:12:43 +000020894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000020895/* end confdefs.h. */
20896
20897#include <stdbool.h>
20898#ifndef bool
20899 "error: bool is not defined"
20900#endif
20901#ifndef false
20902 "error: false is not defined"
20903#endif
20904#if false
20905 "error: false is not 0"
20906#endif
20907#ifndef true
20908 "error: true is not defined"
20909#endif
20910#if true != 1
20911 "error: true is not 1"
20912#endif
20913#ifndef __bool_true_false_are_defined
20914 "error: __bool_true_false_are_defined is not defined"
20915#endif
20916
20917 struct s { _Bool s: 1; _Bool t; } s;
20918
20919 char a[true == 1 ? 1 : -1];
20920 char b[false == 0 ? 1 : -1];
20921 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20922 char d[(bool) 0.5 == true ? 1 : -1];
20923 bool e = &s;
20924 char f[(_Bool) 0.0 == false ? 1 : -1];
20925 char g[true];
20926 char h[sizeof (_Bool)];
20927 char i[sizeof s.t];
20928 enum { j = false, k = true, l = false * true, m = true * 256 };
20929 /* The following fails for
20930 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20931 _Bool n[m];
20932 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20933 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20934# if defined __xlc__ || defined __GNUC__
20935 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20936 reported by James Lemley on 2005-10-05; see
20937 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20938 This test is not quite right, since xlc is allowed to
20939 reject this program, as the initializer for xlcbug is
20940 not one of the forms that C requires support for.
20941 However, doing the test right would require a runtime
20942 test, and that would make cross-compilation harder.
20943 Let us hope that IBM fixes the xlc bug, and also adds
20944 support for this kind of constant expression. In the
20945 meantime, this test will reject xlc, which is OK, since
20946 our stdbool.h substitute should suffice. We also test
20947 this with GCC, where it should work, to detect more
20948 quickly whether someone messes up the test in the
20949 future. */
20950 char digs[] = "0123456789";
20951 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20952# endif
20953 /* Catch a bug in an HP-UX C compiler. See
20954 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20955 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20956 */
20957 _Bool q = true;
20958 _Bool *pq = &q;
20959
20960int
20961main ()
20962{
20963
20964 *pq |= q;
20965 *pq |= ! q;
20966 /* Refer to every declared value, to avoid compiler optimizations. */
20967 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20968 + !m + !n + !o + !p + !q + !pq);
20969
20970 ;
20971 return 0;
20972}
20973_ACEOF
cristy8b350f62009-11-15 23:12:43 +000020974if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000020975 ac_cv_header_stdbool_h=yes
20976else
cristy8b350f62009-11-15 23:12:43 +000020977 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000020978fi
cristy3ed852e2009-09-05 21:47:34 +000020979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980fi
cristy8b350f62009-11-15 23:12:43 +000020981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000020982$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000020983ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20984if test "x$ac_cv_type__Bool" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000020985
20986cat >>confdefs.h <<_ACEOF
20987#define HAVE__BOOL 1
20988_ACEOF
20989
20990
20991fi
20992
20993if test $ac_cv_header_stdbool_h = yes; then
20994
cristy8b350f62009-11-15 23:12:43 +000020995$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020996
20997fi
20998
cristy8b350f62009-11-15 23:12:43 +000020999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021000$as_echo_n "checking for working volatile... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021001if test "${ac_cv_c_volatile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021002 $as_echo_n "(cached) " >&6
21003else
cristy8b350f62009-11-15 23:12:43 +000021004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021005/* end confdefs.h. */
21006
21007int
21008main ()
21009{
21010
21011volatile int x;
21012int * volatile y = (int *) 0;
21013return !x && !y;
21014 ;
21015 return 0;
21016}
21017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021018if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021019 ac_cv_c_volatile=yes
21020else
cristy8b350f62009-11-15 23:12:43 +000021021 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021022fi
cristy3ed852e2009-09-05 21:47:34 +000021023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024fi
cristy8b350f62009-11-15 23:12:43 +000021025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021026$as_echo "$ac_cv_c_volatile" >&6; }
21027if test $ac_cv_c_volatile = no; then
21028
cristy8b350f62009-11-15 23:12:43 +000021029$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021030
21031fi
21032
cristy8b350f62009-11-15 23:12:43 +000021033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021034$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021035if test "${ac_cv_c_stringize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021036 $as_echo_n "(cached) " >&6
21037else
cristy8b350f62009-11-15 23:12:43 +000021038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021039/* end confdefs.h. */
21040#define x(y) #y
21041
21042char *s = x(teststring);
21043_ACEOF
21044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021045 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021046 ac_cv_c_stringize=no
21047else
21048 ac_cv_c_stringize=yes
21049fi
21050rm -f conftest*
21051
21052fi
cristy8b350f62009-11-15 23:12:43 +000021053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021054$as_echo "$ac_cv_c_stringize" >&6; }
21055if test $ac_cv_c_stringize = yes; then
21056
cristy8b350f62009-11-15 23:12:43 +000021057$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021058
21059fi
21060
cristy8b350f62009-11-15 23:12:43 +000021061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021062$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021063if test "${ac_cv_header_stat_broken+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021064 $as_echo_n "(cached) " >&6
21065else
cristy8b350f62009-11-15 23:12:43 +000021066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021067/* end confdefs.h. */
21068#include <sys/types.h>
21069#include <sys/stat.h>
21070
21071#if defined S_ISBLK && defined S_IFDIR
21072extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21073#endif
21074
21075#if defined S_ISBLK && defined S_IFCHR
21076extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21077#endif
21078
21079#if defined S_ISLNK && defined S_IFREG
21080extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21081#endif
21082
21083#if defined S_ISSOCK && defined S_IFREG
21084extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21085#endif
21086
21087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021089 ac_cv_header_stat_broken=no
21090else
cristy8b350f62009-11-15 23:12:43 +000021091 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021092fi
cristy3ed852e2009-09-05 21:47:34 +000021093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21094fi
cristy8b350f62009-11-15 23:12:43 +000021095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021096$as_echo "$ac_cv_header_stat_broken" >&6; }
21097if test $ac_cv_header_stat_broken = yes; then
21098
cristy8b350f62009-11-15 23:12:43 +000021099$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021100
21101fi
21102
cristy8b350f62009-11-15 23:12:43 +000021103{ $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 +000021104$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021105if test "${ac_cv_header_time+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021106 $as_echo_n "(cached) " >&6
21107else
cristy8b350f62009-11-15 23:12:43 +000021108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021109/* end confdefs.h. */
21110#include <sys/types.h>
21111#include <sys/time.h>
21112#include <time.h>
21113
21114int
21115main ()
21116{
21117if ((struct tm *) 0)
21118return 0;
21119 ;
21120 return 0;
21121}
21122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021123if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021124 ac_cv_header_time=yes
21125else
cristy8b350f62009-11-15 23:12:43 +000021126 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021127fi
cristy3ed852e2009-09-05 21:47:34 +000021128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21129fi
cristy8b350f62009-11-15 23:12:43 +000021130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021131$as_echo "$ac_cv_header_time" >&6; }
21132if test $ac_cv_header_time = yes; then
21133
cristy8b350f62009-11-15 23:12:43 +000021134$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021135
21136fi
21137
cristy8b350f62009-11-15 23:12:43 +000021138{ $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 +000021139$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021140if test "${ac_cv_struct_tm+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021141 $as_echo_n "(cached) " >&6
21142else
cristy8b350f62009-11-15 23:12:43 +000021143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021144/* end confdefs.h. */
21145#include <sys/types.h>
21146#include <time.h>
21147
21148int
21149main ()
21150{
21151struct tm tm;
21152 int *p = &tm.tm_sec;
21153 return !p;
21154 ;
21155 return 0;
21156}
21157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021158if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021159 ac_cv_struct_tm=time.h
21160else
cristy8b350f62009-11-15 23:12:43 +000021161 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021162fi
cristy3ed852e2009-09-05 21:47:34 +000021163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164fi
cristy8b350f62009-11-15 23:12:43 +000021165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021166$as_echo "$ac_cv_struct_tm" >&6; }
21167if test $ac_cv_struct_tm = sys/time.h; then
21168
cristy8b350f62009-11-15 23:12:43 +000021169$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021170
21171fi
21172
cristy92703d82010-04-26 00:18:18 +000021173ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21174#include <$ac_cv_struct_tm>
21175
21176"
21177if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21178
21179cat >>confdefs.h <<_ACEOF
21180#define HAVE_STRUCT_TM_TM_ZONE 1
21181_ACEOF
21182
21183
21184fi
21185
21186if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21187
21188$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21189
21190else
21191 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21192"
21193if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21194 ac_have_decl=1
21195else
21196 ac_have_decl=0
21197fi
21198
21199cat >>confdefs.h <<_ACEOF
21200#define HAVE_DECL_TZNAME $ac_have_decl
21201_ACEOF
21202
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21204$as_echo_n "checking for tzname... " >&6; }
21205if test "${ac_cv_var_tzname+set}" = set; then :
21206 $as_echo_n "(cached) " >&6
21207else
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209/* end confdefs.h. */
21210#include <time.h>
21211#if !HAVE_DECL_TZNAME
21212extern char *tzname[];
21213#endif
21214
21215int
21216main ()
21217{
21218return tzname[0][0];
21219 ;
21220 return 0;
21221}
21222_ACEOF
21223if ac_fn_c_try_link "$LINENO"; then :
21224 ac_cv_var_tzname=yes
21225else
21226 ac_cv_var_tzname=no
21227fi
21228rm -f core conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21230fi
21231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21232$as_echo "$ac_cv_var_tzname" >&6; }
21233 if test $ac_cv_var_tzname = yes; then
21234
21235$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21236
21237 fi
21238fi
21239
cristy8b350f62009-11-15 23:12:43 +000021240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021241$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021242if test "${ac_cv_sys_interpreter+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021243 $as_echo_n "(cached) " >&6
21244else
21245 echo '#! /bin/cat
21246exit 69
21247' >conftest
21248chmod u+x conftest
21249(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21250if test $? -ne 69; then
21251 ac_cv_sys_interpreter=yes
21252else
21253 ac_cv_sys_interpreter=no
21254fi
21255rm -f conftest
21256fi
cristy8b350f62009-11-15 23:12:43 +000021257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021258$as_echo "$ac_cv_sys_interpreter" >&6; }
21259interpval=$ac_cv_sys_interpreter
21260
21261
cristy3ed852e2009-09-05 21:47:34 +000021262# If the C compiler supports the keyword inline, do nothing. Otherwise
21263# define inline to __inline__ or __inline if it accepts one of those,
21264# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021266$as_echo_n "checking for inline... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021267if test "${ac_cv_c_inline+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021268 $as_echo_n "(cached) " >&6
21269else
21270 ac_cv_c_inline=no
21271for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021273/* end confdefs.h. */
21274#ifndef __cplusplus
21275typedef int foo_t;
21276static $ac_kw foo_t static_foo () {return 0; }
21277$ac_kw foo_t foo () {return 0; }
21278#endif
21279
21280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021282 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021283fi
cristy3ed852e2009-09-05 21:47:34 +000021284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 test "$ac_cv_c_inline" != no && break
21286done
21287
21288fi
cristy8b350f62009-11-15 23:12:43 +000021289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021290$as_echo "$ac_cv_c_inline" >&6; }
21291
cristy3ed852e2009-09-05 21:47:34 +000021292case $ac_cv_c_inline in
21293 inline | yes) ;;
21294 *)
21295 case $ac_cv_c_inline in
21296 no) ac_val=;;
21297 *) ac_val=$ac_cv_c_inline;;
21298 esac
21299 cat >>confdefs.h <<_ACEOF
21300#ifndef __cplusplus
21301#define inline $ac_val
21302#endif
21303_ACEOF
21304 ;;
21305esac
21306
21307
21308# If the C compiler supports the keyword restrict, do nothing. Otherwise
21309# define restrict to __restrict__ or __restrict if it accepts one of those,
21310# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021312$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021313if test "${ac_cv_c_restrict+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021314 $as_echo_n "(cached) " >&6
21315else
21316 ac_cv_c_restrict=no
21317 # The order here caters to the fact that C++ does not require restrict.
21318 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021320/* end confdefs.h. */
21321typedef int * int_ptr;
21322 int foo (int_ptr $ac_kw ip) {
21323 return ip[0];
21324 }
21325int
21326main ()
21327{
21328int s[1];
21329 int * $ac_kw t = s;
21330 t[0] = 0;
21331 return foo(t)
21332 ;
21333 return 0;
21334}
21335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021336if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021337 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021338fi
cristy3ed852e2009-09-05 21:47:34 +000021339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340 test "$ac_cv_c_restrict" != no && break
21341 done
21342
21343fi
cristy8b350f62009-11-15 23:12:43 +000021344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021345$as_echo "$ac_cv_c_restrict" >&6; }
21346
cristy3ed852e2009-09-05 21:47:34 +000021347 case $ac_cv_c_restrict in
21348 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021349 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021350 ;;
21351 *) cat >>confdefs.h <<_ACEOF
21352#define restrict $ac_cv_c_restrict
21353_ACEOF
21354 ;;
21355 esac
21356
21357
21358# If words are stored with the most significant byte first (like
21359# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021361$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021362if test "${ac_cv_c_bigendian+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021363 $as_echo_n "(cached) " >&6
21364else
21365 ac_cv_c_bigendian=unknown
21366 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021368/* end confdefs.h. */
21369#ifndef __APPLE_CC__
21370 not a universal capable compiler
21371 #endif
21372 typedef int dummy;
21373
21374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021375if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021376
21377 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021378 # there are at least two -arch flags with different values.
21379 ac_arch=
21380 ac_prev=
21381 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21382 if test -n "$ac_prev"; then
21383 case $ac_word in
21384 i?86 | x86_64 | ppc | ppc64)
21385 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21386 ac_arch=$ac_word
21387 else
21388 ac_cv_c_bigendian=universal
21389 break
21390 fi
21391 ;;
21392 esac
21393 ac_prev=
21394 elif test "x$ac_word" = "x-arch"; then
21395 ac_prev=arch
21396 fi
21397 done
cristy3ed852e2009-09-05 21:47:34 +000021398fi
cristy3ed852e2009-09-05 21:47:34 +000021399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 if test $ac_cv_c_bigendian = unknown; then
21401 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021403/* end confdefs.h. */
21404#include <sys/types.h>
21405 #include <sys/param.h>
21406
21407int
21408main ()
21409{
21410#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21411 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21412 && LITTLE_ENDIAN)
21413 bogus endian macros
21414 #endif
21415
21416 ;
21417 return 0;
21418}
21419_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021420if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021421 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021423/* end confdefs.h. */
21424#include <sys/types.h>
21425 #include <sys/param.h>
21426
21427int
21428main ()
21429{
21430#if BYTE_ORDER != BIG_ENDIAN
21431 not big endian
21432 #endif
21433
21434 ;
21435 return 0;
21436}
21437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021438if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021439 ac_cv_c_bigendian=yes
21440else
cristy8b350f62009-11-15 23:12:43 +000021441 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021442fi
cristy3ed852e2009-09-05 21:47:34 +000021443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021444fi
cristy3ed852e2009-09-05 21:47:34 +000021445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21446 fi
21447 if test $ac_cv_c_bigendian = unknown; then
21448 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000021449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021450/* end confdefs.h. */
21451#include <limits.h>
21452
21453int
21454main ()
21455{
21456#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21457 bogus endian macros
21458 #endif
21459
21460 ;
21461 return 0;
21462}
21463_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021464if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000021466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021467/* end confdefs.h. */
21468#include <limits.h>
21469
21470int
21471main ()
21472{
21473#ifndef _BIG_ENDIAN
21474 not big endian
21475 #endif
21476
21477 ;
21478 return 0;
21479}
21480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021481if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021482 ac_cv_c_bigendian=yes
21483else
cristy8b350f62009-11-15 23:12:43 +000021484 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000021485fi
cristy3ed852e2009-09-05 21:47:34 +000021486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021487fi
cristy3ed852e2009-09-05 21:47:34 +000021488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21489 fi
21490 if test $ac_cv_c_bigendian = unknown; then
21491 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000021492 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000021494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021495/* end confdefs.h. */
21496short int ascii_mm[] =
21497 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21498 short int ascii_ii[] =
21499 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21500 int use_ascii (int i) {
21501 return ascii_mm[i] + ascii_ii[i];
21502 }
21503 short int ebcdic_ii[] =
21504 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21505 short int ebcdic_mm[] =
21506 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21507 int use_ebcdic (int i) {
21508 return ebcdic_mm[i] + ebcdic_ii[i];
21509 }
21510 extern int foo;
21511
21512int
21513main ()
21514{
21515return use_ascii (foo) == use_ebcdic (foo);
21516 ;
21517 return 0;
21518}
21519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021520if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021521 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21522 ac_cv_c_bigendian=yes
21523 fi
21524 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21525 if test "$ac_cv_c_bigendian" = unknown; then
21526 ac_cv_c_bigendian=no
21527 else
21528 # finding both strings is unlikely to happen, but who knows?
21529 ac_cv_c_bigendian=unknown
21530 fi
21531 fi
cristy3ed852e2009-09-05 21:47:34 +000021532fi
cristy3ed852e2009-09-05 21:47:34 +000021533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534else
cristy8b350f62009-11-15 23:12:43 +000021535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021536/* end confdefs.h. */
21537$ac_includes_default
21538int
21539main ()
21540{
21541
21542 /* Are we little or big endian? From Harbison&Steele. */
21543 union
21544 {
21545 long int l;
21546 char c[sizeof (long int)];
21547 } u;
21548 u.l = 1;
21549 return u.c[sizeof (long int) - 1] == 1;
21550
21551 ;
21552 return 0;
21553}
21554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021555if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 ac_cv_c_bigendian=no
21557else
cristy8b350f62009-11-15 23:12:43 +000021558 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000021559fi
cristy8b350f62009-11-15 23:12:43 +000021560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21561 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021562fi
21563
cristy3ed852e2009-09-05 21:47:34 +000021564 fi
21565fi
cristy8b350f62009-11-15 23:12:43 +000021566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021567$as_echo "$ac_cv_c_bigendian" >&6; }
21568 case $ac_cv_c_bigendian in #(
21569 yes)
cristy8b350f62009-11-15 23:12:43 +000021570 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021571;; #(
21572 no)
21573 ;; #(
21574 universal)
21575
cristy8b350f62009-11-15 23:12:43 +000021576$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021577
21578 ;; #(
21579 *)
cristy8b350f62009-11-15 23:12:43 +000021580 as_fn_error "unknown endianness
21581 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021582 esac
21583
21584
21585# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021586ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21587if test "x$ac_cv_type_mode_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021588
cristy3ed852e2009-09-05 21:47:34 +000021589else
21590
21591cat >>confdefs.h <<_ACEOF
21592#define mode_t int
21593_ACEOF
21594
21595fi
21596
21597
21598# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021599ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21600if test "x$ac_cv_type_off_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021601
cristy3ed852e2009-09-05 21:47:34 +000021602else
21603
21604cat >>confdefs.h <<_ACEOF
21605#define off_t long int
21606_ACEOF
21607
21608fi
21609
21610
21611# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021612ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21613if test "x$ac_cv_type_pid_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021614
cristy3ed852e2009-09-05 21:47:34 +000021615else
21616
21617cat >>confdefs.h <<_ACEOF
21618#define pid_t int
21619_ACEOF
21620
21621fi
21622
21623
21624# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021625ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21626if test "x$ac_cv_type_size_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021627
cristy3ed852e2009-09-05 21:47:34 +000021628else
21629
21630cat >>confdefs.h <<_ACEOF
21631#define size_t unsigned int
21632_ACEOF
21633
21634fi
21635
21636
21637# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000021638ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21639if test "x$ac_cv_type_ssize_t" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021640
cristy3ed852e2009-09-05 21:47:34 +000021641else
21642
21643cat >>confdefs.h <<_ACEOF
21644#define ssize_t int
21645_ACEOF
21646
21647fi
21648
21649
21650# If the C compiler supports a working long double type with more range
21651# or precision than the double type, define HAVE_LONG_DOUBLE.
21652
cristy8b350f62009-11-15 23:12:43 +000021653 { $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 +000021654$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021655if test "${ac_cv_type_long_double_wider+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021656 $as_echo_n "(cached) " >&6
21657else
cristy8b350f62009-11-15 23:12:43 +000021658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021659/* end confdefs.h. */
21660#include <float.h>
21661 long double const a[] =
21662 {
21663 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21664 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21665 };
21666 long double
21667 f (long double x)
21668 {
21669 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21670 + (x ? f (x) : 'c'));
21671 }
21672
21673int
21674main ()
21675{
21676static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21677 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21678 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21679 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21680 && (int) LDBL_EPSILON == 0
21681 )];
21682test_array [0] = 0
21683
21684 ;
21685 return 0;
21686}
21687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021689 ac_cv_type_long_double_wider=yes
21690else
cristy8b350f62009-11-15 23:12:43 +000021691 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000021692fi
cristy3ed852e2009-09-05 21:47:34 +000021693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694fi
cristy8b350f62009-11-15 23:12:43 +000021695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000021696$as_echo "$ac_cv_type_long_double_wider" >&6; }
21697 if test $ac_cv_type_long_double_wider = yes; then
21698
cristy8b350f62009-11-15 23:12:43 +000021699$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021700
21701 fi
21702
21703
21704# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21705# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000021706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021707$as_echo_n "checking whether char is unsigned... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021708if test "${ac_cv_c_char_unsigned+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 $as_echo_n "(cached) " >&6
21710else
cristy8b350f62009-11-15 23:12:43 +000021711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021712/* end confdefs.h. */
21713$ac_includes_default
21714int
21715main ()
21716{
21717static int test_array [1 - 2 * !(((char) -1) < 0)];
21718test_array [0] = 0
21719
21720 ;
21721 return 0;
21722}
21723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021724if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021725 ac_cv_c_char_unsigned=no
21726else
cristy8b350f62009-11-15 23:12:43 +000021727 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000021728fi
cristy3ed852e2009-09-05 21:47:34 +000021729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730fi
cristy8b350f62009-11-15 23:12:43 +000021731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000021732$as_echo "$ac_cv_c_char_unsigned" >&6; }
21733if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000021734 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021735
21736fi
21737
21738
21739# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21740# The cast to long int works around a bug in the HP C Compiler
21741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21743# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021745$as_echo_n "checking size of signed short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021746if test "${ac_cv_sizeof_signed_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 $as_echo_n "(cached) " >&6
21748else
cristy8b350f62009-11-15 23:12:43 +000021749 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 +000021750
cristy3ed852e2009-09-05 21:47:34 +000021751else
cristy8b350f62009-11-15 23:12:43 +000021752 if test "$ac_cv_type_signed_short" = yes; then
21753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021755{ as_fn_set_status 77
21756as_fn_error "cannot compute sizeof (signed short)
21757See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021758 else
21759 ac_cv_sizeof_signed_short=0
21760 fi
21761fi
cristy8b350f62009-11-15 23:12:43 +000021762
cristy3ed852e2009-09-05 21:47:34 +000021763fi
cristy8b350f62009-11-15 23:12:43 +000021764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021765$as_echo "$ac_cv_sizeof_signed_short" >&6; }
21766
21767
21768
21769cat >>confdefs.h <<_ACEOF
21770#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21771_ACEOF
21772
21773
21774
21775# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21776# The cast to long int works around a bug in the HP C Compiler
21777# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21778# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21779# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021781$as_echo_n "checking size of unsigned short... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021782if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021783 $as_echo_n "(cached) " >&6
21784else
cristy8b350f62009-11-15 23:12:43 +000021785 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 +000021786
cristy3ed852e2009-09-05 21:47:34 +000021787else
cristy8b350f62009-11-15 23:12:43 +000021788 if test "$ac_cv_type_unsigned_short" = yes; then
21789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021791{ as_fn_set_status 77
21792as_fn_error "cannot compute sizeof (unsigned short)
21793See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021794 else
21795 ac_cv_sizeof_unsigned_short=0
21796 fi
21797fi
cristy8b350f62009-11-15 23:12:43 +000021798
cristy3ed852e2009-09-05 21:47:34 +000021799fi
cristy8b350f62009-11-15 23:12:43 +000021800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000021801$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21802
21803
21804
21805cat >>confdefs.h <<_ACEOF
21806#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21807_ACEOF
21808
21809
21810
21811# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21812# The cast to long int works around a bug in the HP C Compiler
21813# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21814# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21815# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021817$as_echo_n "checking size of signed int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021818if test "${ac_cv_sizeof_signed_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021819 $as_echo_n "(cached) " >&6
21820else
cristy8b350f62009-11-15 23:12:43 +000021821 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 +000021822
cristy3ed852e2009-09-05 21:47:34 +000021823else
cristy8b350f62009-11-15 23:12:43 +000021824 if test "$ac_cv_type_signed_int" = yes; then
21825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021826$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021827{ as_fn_set_status 77
21828as_fn_error "cannot compute sizeof (signed int)
21829See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021830 else
21831 ac_cv_sizeof_signed_int=0
21832 fi
21833fi
cristy8b350f62009-11-15 23:12:43 +000021834
cristy3ed852e2009-09-05 21:47:34 +000021835fi
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo "$ac_cv_sizeof_signed_int" >&6; }
21838
21839
21840
21841cat >>confdefs.h <<_ACEOF
21842#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21843_ACEOF
21844
21845
21846
21847# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21848# The cast to long int works around a bug in the HP C Compiler
21849# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21850# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21851# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021853$as_echo_n "checking size of unsigned int... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021854if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021855 $as_echo_n "(cached) " >&6
21856else
cristy8b350f62009-11-15 23:12:43 +000021857 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 +000021858
cristy3ed852e2009-09-05 21:47:34 +000021859else
cristy8b350f62009-11-15 23:12:43 +000021860 if test "$ac_cv_type_unsigned_int" = yes; then
21861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021863{ as_fn_set_status 77
21864as_fn_error "cannot compute sizeof (unsigned int)
21865See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021866 else
21867 ac_cv_sizeof_unsigned_int=0
21868 fi
21869fi
cristy8b350f62009-11-15 23:12:43 +000021870
cristy3ed852e2009-09-05 21:47:34 +000021871fi
cristy8b350f62009-11-15 23:12:43 +000021872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000021873$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21874
21875
21876
21877cat >>confdefs.h <<_ACEOF
21878#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21879_ACEOF
21880
21881
21882
21883# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21884# The cast to long int works around a bug in the HP C Compiler
21885# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21886# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21887# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021889$as_echo_n "checking size of signed long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021890if test "${ac_cv_sizeof_signed_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021891 $as_echo_n "(cached) " >&6
21892else
cristy8b350f62009-11-15 23:12:43 +000021893 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 +000021894
cristy3ed852e2009-09-05 21:47:34 +000021895else
cristy8b350f62009-11-15 23:12:43 +000021896 if test "$ac_cv_type_signed_long" = yes; then
21897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021899{ as_fn_set_status 77
21900as_fn_error "cannot compute sizeof (signed long)
21901See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021902 else
21903 ac_cv_sizeof_signed_long=0
21904 fi
21905fi
cristy8b350f62009-11-15 23:12:43 +000021906
cristy3ed852e2009-09-05 21:47:34 +000021907fi
cristy8b350f62009-11-15 23:12:43 +000021908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021909$as_echo "$ac_cv_sizeof_signed_long" >&6; }
21910
21911
21912
21913cat >>confdefs.h <<_ACEOF
21914#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21915_ACEOF
21916
21917
21918
21919# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21920# The cast to long int works around a bug in the HP C Compiler
21921# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21922# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21923# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021925$as_echo_n "checking size of unsigned long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021926if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021927 $as_echo_n "(cached) " >&6
21928else
cristy8b350f62009-11-15 23:12:43 +000021929 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 +000021930
cristy3ed852e2009-09-05 21:47:34 +000021931else
cristy8b350f62009-11-15 23:12:43 +000021932 if test "$ac_cv_type_unsigned_long" = yes; then
21933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021935{ as_fn_set_status 77
21936as_fn_error "cannot compute sizeof (unsigned long)
21937See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021938 else
21939 ac_cv_sizeof_unsigned_long=0
21940 fi
21941fi
cristy8b350f62009-11-15 23:12:43 +000021942
cristy3ed852e2009-09-05 21:47:34 +000021943fi
cristy8b350f62009-11-15 23:12:43 +000021944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021945$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21946
21947
21948
21949cat >>confdefs.h <<_ACEOF
21950#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21951_ACEOF
21952
21953
21954
21955# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21956# 'signed long long' is not supported then the value defined is zero.
21957# The cast to long int works around a bug in the HP C Compiler
21958# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21959# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21960# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021962$as_echo_n "checking size of signed long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000021963if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 $as_echo_n "(cached) " >&6
21965else
cristy8b350f62009-11-15 23:12:43 +000021966 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 +000021967
cristy3ed852e2009-09-05 21:47:34 +000021968else
cristy8b350f62009-11-15 23:12:43 +000021969 if test "$ac_cv_type_signed_long_long" = yes; then
21970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000021971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000021972{ as_fn_set_status 77
21973as_fn_error "cannot compute sizeof (signed long long)
21974See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000021975 else
21976 ac_cv_sizeof_signed_long_long=0
21977 fi
21978fi
cristy8b350f62009-11-15 23:12:43 +000021979
cristy3ed852e2009-09-05 21:47:34 +000021980fi
cristy8b350f62009-11-15 23:12:43 +000021981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000021982$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21983
21984
21985
21986cat >>confdefs.h <<_ACEOF
21987#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21988_ACEOF
21989
21990
21991
21992# Obtain size of a 'unsigned long long' and define as
21993# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21994# supported then the value defined is zero.
21995# The cast to long int works around a bug in the HP C Compiler
21996# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21997# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21998# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000021999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022000$as_echo_n "checking size of unsigned long long... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022001if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022002 $as_echo_n "(cached) " >&6
22003else
cristy8b350f62009-11-15 23:12:43 +000022004 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 +000022005
cristy3ed852e2009-09-05 21:47:34 +000022006else
cristy8b350f62009-11-15 23:12:43 +000022007 if test "$ac_cv_type_unsigned_long_long" = yes; then
22008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022010{ as_fn_set_status 77
22011as_fn_error "cannot compute sizeof (unsigned long long)
22012See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022013 else
22014 ac_cv_sizeof_unsigned_long_long=0
22015 fi
22016fi
cristy8b350f62009-11-15 23:12:43 +000022017
cristy3ed852e2009-09-05 21:47:34 +000022018fi
cristy8b350f62009-11-15 23:12:43 +000022019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022020$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22021
22022
22023
22024cat >>confdefs.h <<_ACEOF
22025#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22026_ACEOF
22027
22028
22029
22030# Obtain size of off_t and define as SIZEOF_OFF_T
22031# The cast to long int works around a bug in the HP C Compiler
22032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22034# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022036$as_echo_n "checking size of off_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022037if test "${ac_cv_sizeof_off_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022038 $as_echo_n "(cached) " >&6
22039else
cristy8b350f62009-11-15 23:12:43 +000022040 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 +000022041
cristy3ed852e2009-09-05 21:47:34 +000022042else
cristy8b350f62009-11-15 23:12:43 +000022043 if test "$ac_cv_type_off_t" = yes; then
22044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022046{ as_fn_set_status 77
22047as_fn_error "cannot compute sizeof (off_t)
22048See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022049 else
22050 ac_cv_sizeof_off_t=0
22051 fi
22052fi
cristy8b350f62009-11-15 23:12:43 +000022053
cristy3ed852e2009-09-05 21:47:34 +000022054fi
cristy8b350f62009-11-15 23:12:43 +000022055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022056$as_echo "$ac_cv_sizeof_off_t" >&6; }
22057
22058
22059
22060cat >>confdefs.h <<_ACEOF
22061#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22062_ACEOF
22063
22064
22065
22066# Obtain size of size_t and define as SIZEOF_SIZE_T
22067# The cast to long int works around a bug in the HP C Compiler
22068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22070# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022072$as_echo_n "checking size of size_t... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022073if test "${ac_cv_sizeof_size_t+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 $as_echo_n "(cached) " >&6
22075else
cristy8b350f62009-11-15 23:12:43 +000022076 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 +000022077
cristy3ed852e2009-09-05 21:47:34 +000022078else
cristy8b350f62009-11-15 23:12:43 +000022079 if test "$ac_cv_type_size_t" = yes; then
22080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022082{ as_fn_set_status 77
22083as_fn_error "cannot compute sizeof (size_t)
22084See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022085 else
22086 ac_cv_sizeof_size_t=0
22087 fi
22088fi
cristy8b350f62009-11-15 23:12:43 +000022089
cristy3ed852e2009-09-05 21:47:34 +000022090fi
cristy8b350f62009-11-15 23:12:43 +000022091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022092$as_echo "$ac_cv_sizeof_size_t" >&6; }
22093
22094
22095
22096cat >>confdefs.h <<_ACEOF
22097#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22098_ACEOF
22099
22100
22101
cristy330e9352010-06-01 18:42:49 +000022102# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22103# The cast to long int works around a bug in the HP C Compiler
22104# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22105# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22106# This bug is HP SR number 8606223364.
22107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22108$as_echo_n "checking size of ssize_t... " >&6; }
22109if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22111else
22112 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22113
22114else
22115 if test "$ac_cv_type_ssize_t" = yes; then
22116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22118{ as_fn_set_status 77
22119as_fn_error "cannot compute sizeof (ssize_t)
22120See \`config.log' for more details." "$LINENO" 5; }; }
22121 else
22122 ac_cv_sizeof_ssize_t=0
22123 fi
22124fi
22125
22126fi
22127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22128$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22129
22130
22131
22132cat >>confdefs.h <<_ACEOF
22133#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22134_ACEOF
22135
22136
22137
cristy3ed852e2009-09-05 21:47:34 +000022138# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22139# The cast to long int works around a bug in the HP C Compiler
22140# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22141# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22142# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022144$as_echo_n "checking size of unsigned int*... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022145if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022146 $as_echo_n "(cached) " >&6
22147else
cristy8b350f62009-11-15 23:12:43 +000022148 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 +000022149
cristy3ed852e2009-09-05 21:47:34 +000022150else
cristy8b350f62009-11-15 23:12:43 +000022151 if test "$ac_cv_type_unsigned_intp" = yes; then
22152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +000022154{ as_fn_set_status 77
22155as_fn_error "cannot compute sizeof (unsigned int*)
22156See \`config.log' for more details." "$LINENO" 5; }; }
cristy3ed852e2009-09-05 21:47:34 +000022157 else
22158 ac_cv_sizeof_unsigned_intp=0
22159 fi
22160fi
cristy8b350f62009-11-15 23:12:43 +000022161
cristy3ed852e2009-09-05 21:47:34 +000022162fi
cristy8b350f62009-11-15 23:12:43 +000022163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022164$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22165
22166
22167
22168cat >>confdefs.h <<_ACEOF
22169#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22170_ACEOF
22171
22172
22173
22174#
22175# Compute sized types for current CPU and compiler options.
22176#
22177
cristy8b350f62009-11-15 23:12:43 +000022178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022179$as_echo_n "checking for signed 8-bit type... " >&6; }
22180INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022182$as_echo "$INT8_T" >&6; }
22183
22184
cristy8b350f62009-11-15 23:12:43 +000022185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022186$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22187UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022189$as_echo "$UINT8_T" >&6; }
22190
22191
cristy8b350f62009-11-15 23:12:43 +000022192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022193$as_echo_n "checking for signed 16-bit type... " >&6; }
22194INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022196$as_echo "$INT16_T" >&6; }
22197
22198
cristy8b350f62009-11-15 23:12:43 +000022199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022200$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22201UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022203$as_echo "$UINT16_T" >&6; }
22204
22205
cristy8b350f62009-11-15 23:12:43 +000022206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022207$as_echo_n "checking for signed 32-bit type... " >&6; }
22208INT32_T='none'
22209if test $ac_cv_sizeof_signed_int -eq 4; then
22210 INT32_T='signed int'
22211elif test $ac_cv_sizeof_signed_long -eq 4; then
22212 INT32_T='signed long'
22213fi
cristy8b350f62009-11-15 23:12:43 +000022214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022215$as_echo "$INT32_T" >&6; }
22216
22217
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22220UINT32_T='none'
22221if test $ac_cv_sizeof_unsigned_int -eq 4; then
22222 UINT32_T='unsigned int'
22223elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22224 UINT32_T='unsigned long'
22225fi
cristy8b350f62009-11-15 23:12:43 +000022226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022227$as_echo "$UINT32_T" >&6; }
22228
22229
cristy8b350f62009-11-15 23:12:43 +000022230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022231$as_echo_n "checking for signed 64-bit type... " >&6; }
22232INT64_T='none'
22233if test $ac_cv_sizeof_signed_long -eq 8; then
22234 INT64_T='signed long'
22235elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22236 INT64_T='signed long long'
22237fi
cristy8b350f62009-11-15 23:12:43 +000022238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022239$as_echo "$INT64_T" >&6; }
22240
22241
cristy8b350f62009-11-15 23:12:43 +000022242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022243$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22244UINT64_T='none'
22245if test $ac_cv_sizeof_unsigned_long -eq 8; then
22246 UINT64_T='unsigned long'
22247elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22248 UINT64_T='unsigned long long'
22249fi
cristy8b350f62009-11-15 23:12:43 +000022250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022251$as_echo "$UINT64_T" >&6; }
22252
22253
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo_n "checking for unsigned maximum type... " >&6; }
22256UINTMAX_T='none'
22257if test "$UINT64_T" != 'none'; then
22258 UINTMAX_T=$UINT64_T
22259elif test "$UINT32_T" != 'none'; then
22260 UINTMAX_T=$UINT32_T
22261fi
cristy8b350f62009-11-15 23:12:43 +000022262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022263$as_echo "$UINTMAX_T" >&6; }
22264
22265
cristy8b350f62009-11-15 23:12:43 +000022266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022267$as_echo_n "checking for pointer difference type... " >&6; }
22268UINTPTR_T='none'
22269if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22270 UINTPTR_T='unsigned long'
22271elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22272 UINTPTR_T='unsigned long long'
22273fi
cristy8b350f62009-11-15 23:12:43 +000022274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022275$as_echo "$UINTPTR_T" >&6; }
22276
22277
cristy8b350f62009-11-15 23:12:43 +000022278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022279$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022281/* end confdefs.h. */
22282
22283int
22284main ()
22285{
22286{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22287 ;
22288 return 0;
22289}
22290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022291if ac_fn_c_try_compile "$LINENO"; then :
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022293$as_echo "yes" >&6; }
22294else
cristy8b350f62009-11-15 23:12:43 +000022295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022296$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022298$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022300/* end confdefs.h. */
22301
22302int
22303main ()
22304{
22305{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22306 ;
22307 return 0;
22308}
22309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022310if ac_fn_c_try_compile "$LINENO"; then :
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022312$as_echo "yes" >&6; }
22313
cristy8b350f62009-11-15 23:12:43 +000022314$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022315
22316else
cristy8b350f62009-11-15 23:12:43 +000022317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022318$as_echo "no" >&6; }
22319
cristy8b350f62009-11-15 23:12:43 +000022320$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022321
22322fi
cristy3ed852e2009-09-05 21:47:34 +000022323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324fi
cristy3ed852e2009-09-05 21:47:34 +000022325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326
22327########
22328#
22329# Check for functions
22330#
22331########
cristy3ed852e2009-09-05 21:47:34 +000022332for ac_header in stdlib.h unistd.h
cristy8b350f62009-11-15 23:12:43 +000022333do :
22334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22335ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22336eval as_val=\$$as_ac_Header
22337 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022338 cat >>confdefs.h <<_ACEOF
22339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22340_ACEOF
22341
22342fi
22343
22344done
22345
cristy3ed852e2009-09-05 21:47:34 +000022346for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022347do :
22348 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22349if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022350 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022351#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022352_ACEOF
22353
22354fi
22355done
22356
cristy8b350f62009-11-15 23:12:43 +000022357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
cristy3ed852e2009-09-05 21:47:34 +000022358$as_echo_n "checking for working mmap file i/o... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022359if test "${magick_cv_func_mmap_fileio+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022360 $as_echo_n "(cached) " >&6
22361else
cristy8b350f62009-11-15 23:12:43 +000022362 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 magick_cv_func_mmap_fileio=no
22364else
cristy8b350f62009-11-15 23:12:43 +000022365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022366/* end confdefs.h. */
22367$ac_includes_default
22368/* malloc might have been renamed as rpl_malloc. */
22369#undef malloc
22370
22371/*
22372 This test is derived from GNU Autoconf's similar macro.
22373 The purpose of this test is to verify that files may be memory
22374 mapped, and that memory mapping and file I/O are coherent.
22375
22376 The test creates a test file, memory maps the file, updates
22377 the file using the memory map, and then reads the file using
22378 file I/O to verify that the file contains the updates.
22379*/
22380
22381#include <fcntl.h>
22382#include <sys/mman.h>
22383
22384#if !STDC_HEADERS && !HAVE_STDLIB_H
22385char *malloc ();
22386#endif
22387
22388/* This mess was copied from the GNU getpagesize.h. */
22389#if !HAVE_GETPAGESIZE
22390/* Assume that all systems that can run configure have sys/param.h. */
22391# if !HAVE_SYS_PARAM_H
22392# define HAVE_SYS_PARAM_H 1
22393# endif
22394
22395# ifdef _SC_PAGESIZE
22396# define getpagesize() sysconf(_SC_PAGESIZE)
22397# else /* no _SC_PAGESIZE */
22398# if HAVE_SYS_PARAM_H
22399# include <sys/param.h>
22400# ifdef EXEC_PAGESIZE
22401# define getpagesize() EXEC_PAGESIZE
22402# else /* no EXEC_PAGESIZE */
22403# ifdef NBPG
22404# define getpagesize() NBPG * CLSIZE
22405# ifndef CLSIZE
22406# define CLSIZE 1
22407# endif /* no CLSIZE */
22408# else /* no NBPG */
22409# ifdef NBPC
22410# define getpagesize() NBPC
22411# else /* no NBPC */
22412# ifdef PAGESIZE
22413# define getpagesize() PAGESIZE
22414# endif /* PAGESIZE */
22415# endif /* no NBPC */
22416# endif /* no NBPG */
22417# endif /* no EXEC_PAGESIZE */
22418# else /* no HAVE_SYS_PARAM_H */
22419# define getpagesize() 8192 /* punt totally */
22420# endif /* no HAVE_SYS_PARAM_H */
22421# endif /* no _SC_PAGESIZE */
22422
22423#endif /* no HAVE_GETPAGESIZE */
22424
22425int
22426main ()
22427{
22428 char *data, *data2, *data3;
22429 int i, pagesize;
22430 int fd;
22431
22432 pagesize = getpagesize ();
22433
22434 /* First, make a file with some known garbage in it. */
22435 data = (char *) malloc (pagesize);
22436 if (!data)
22437 exit (1);
22438 for (i = 0; i < pagesize; ++i)
22439 *(data + i) = rand ();
22440 umask (0);
22441 fd = creat ("conftest.mmap", 0600);
22442 if (fd < 0)
22443 exit (1);
22444 if (write (fd, data, pagesize) != pagesize)
22445 exit (1);
22446 close (fd);
22447
22448 /* Mmap the file as read/write/shared and verify that we see the
22449 same garbage. */
22450 fd = open ("conftest.mmap", O_RDWR);
22451 if (fd < 0)
22452 exit (1);
22453 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22454 if (data2 == 0)
22455 exit (1);
22456 for (i = 0; i < pagesize; ++i)
22457 if (*(data + i) != *(data2 + i))
22458 exit (1);
22459
22460 /* Finally, make sure that changes to the mapped area
22461 percolate back to the file as seen by read(). */
22462 for (i = 0; i < pagesize; ++i)
22463 *(data2 + i) = *(data2 + i) + 1;
22464 data3 = (char *) malloc (pagesize);
22465 if (!data3)
22466 exit (1);
22467 if (read (fd, data3, pagesize) != pagesize)
22468 exit (1);
22469 for (i = 0; i < pagesize; ++i)
22470 if (*(data2 + i) != *(data3 + i))
22471 exit (1);
22472 close (fd);
22473 exit (0);
22474}
22475_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022476if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022477 magick_cv_func_mmap_fileio=yes
22478else
cristy8b350f62009-11-15 23:12:43 +000022479 magick_cv_func_mmap_fileio=no
cristy3ed852e2009-09-05 21:47:34 +000022480fi
cristy8b350f62009-11-15 23:12:43 +000022481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22482 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022483fi
22484
cristy3ed852e2009-09-05 21:47:34 +000022485fi
cristy8b350f62009-11-15 23:12:43 +000022486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
cristy3ed852e2009-09-05 21:47:34 +000022487$as_echo "$magick_cv_func_mmap_fileio" >&6; }
22488if test $magick_cv_func_mmap_fileio = yes; then
22489
cristy8b350f62009-11-15 23:12:43 +000022490$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022491
22492fi
22493rm -f conftest.mmap
22494
cristy8b350f62009-11-15 23:12:43 +000022495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022496$as_echo_n "checking whether closedir returns void... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022497if test "${ac_cv_func_closedir_void+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022498 $as_echo_n "(cached) " >&6
22499else
cristy8b350f62009-11-15 23:12:43 +000022500 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022501 ac_cv_func_closedir_void=yes
22502else
cristy8b350f62009-11-15 23:12:43 +000022503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022504/* end confdefs.h. */
22505$ac_includes_default
22506#include <$ac_header_dirent>
22507#ifndef __cplusplus
22508int closedir ();
22509#endif
22510
22511int
22512main ()
22513{
22514return closedir (opendir (".")) != 0;
22515 ;
22516 return 0;
22517}
22518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022519if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022520 ac_cv_func_closedir_void=no
22521else
cristy8b350f62009-11-15 23:12:43 +000022522 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000022523fi
cristy8b350f62009-11-15 23:12:43 +000022524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22525 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022526fi
22527
cristy3ed852e2009-09-05 21:47:34 +000022528fi
cristy8b350f62009-11-15 23:12:43 +000022529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000022530$as_echo "$ac_cv_func_closedir_void" >&6; }
22531if test $ac_cv_func_closedir_void = yes; then
22532
cristy8b350f62009-11-15 23:12:43 +000022533$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022534
22535fi
22536
cristycd4c5312009-11-22 01:19:08 +000022537
22538
22539
22540 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000022541do :
22542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000022543ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22544"
cristy8b350f62009-11-15 23:12:43 +000022545eval as_val=\$$as_ac_Header
22546 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022547 cat >>confdefs.h <<_ACEOF
22548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22549_ACEOF
22550
22551fi
22552
22553done
22554
cristycd4c5312009-11-22 01:19:08 +000022555
22556
22557
22558
22559
22560
22561
cristy3ed852e2009-09-05 21:47:34 +000022562for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000022563do :
22564 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22565if test "x$ac_cv_func_getpagesize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022566 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022567#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000022568_ACEOF
22569
22570fi
22571done
22572
cristy8b350f62009-11-15 23:12:43 +000022573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000022574$as_echo_n "checking for working mmap... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022575if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022576 $as_echo_n "(cached) " >&6
22577else
cristy8b350f62009-11-15 23:12:43 +000022578 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022579 ac_cv_func_mmap_fixed_mapped=no
22580else
cristy8b350f62009-11-15 23:12:43 +000022581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022582/* end confdefs.h. */
22583$ac_includes_default
22584/* malloc might have been renamed as rpl_malloc. */
22585#undef malloc
22586
22587/* Thanks to Mike Haertel and Jim Avera for this test.
22588 Here is a matrix of mmap possibilities:
22589 mmap private not fixed
22590 mmap private fixed at somewhere currently unmapped
22591 mmap private fixed at somewhere already mapped
22592 mmap shared not fixed
22593 mmap shared fixed at somewhere currently unmapped
22594 mmap shared fixed at somewhere already mapped
22595 For private mappings, we should verify that changes cannot be read()
22596 back from the file, nor mmap's back from the file at a different
22597 address. (There have been systems where private was not correctly
22598 implemented like the infamous i386 svr4.0, and systems where the
22599 VM page cache was not coherent with the file system buffer cache
22600 like early versions of FreeBSD and possibly contemporary NetBSD.)
22601 For shared mappings, we should conversely verify that changes get
22602 propagated back to all the places they're supposed to be.
22603
22604 Grep wants private fixed already mapped.
22605 The main things grep needs to know about mmap are:
22606 * does it exist and is it safe to write into the mmap'd area
22607 * how to use it (BSD variants) */
22608
22609#include <fcntl.h>
22610#include <sys/mman.h>
22611
22612#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22613char *malloc ();
22614#endif
22615
22616/* This mess was copied from the GNU getpagesize.h. */
22617#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000022618# ifdef _SC_PAGESIZE
22619# define getpagesize() sysconf(_SC_PAGESIZE)
22620# else /* no _SC_PAGESIZE */
22621# ifdef HAVE_SYS_PARAM_H
22622# include <sys/param.h>
22623# ifdef EXEC_PAGESIZE
22624# define getpagesize() EXEC_PAGESIZE
22625# else /* no EXEC_PAGESIZE */
22626# ifdef NBPG
22627# define getpagesize() NBPG * CLSIZE
22628# ifndef CLSIZE
22629# define CLSIZE 1
22630# endif /* no CLSIZE */
22631# else /* no NBPG */
22632# ifdef NBPC
22633# define getpagesize() NBPC
22634# else /* no NBPC */
22635# ifdef PAGESIZE
22636# define getpagesize() PAGESIZE
22637# endif /* PAGESIZE */
22638# endif /* no NBPC */
22639# endif /* no NBPG */
22640# endif /* no EXEC_PAGESIZE */
22641# else /* no HAVE_SYS_PARAM_H */
22642# define getpagesize() 8192 /* punt totally */
22643# endif /* no HAVE_SYS_PARAM_H */
22644# endif /* no _SC_PAGESIZE */
22645
22646#endif /* no HAVE_GETPAGESIZE */
22647
22648int
22649main ()
22650{
22651 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000022652 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000022653 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000022654 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000022655
22656 pagesize = getpagesize ();
22657
22658 /* First, make a file with some known garbage in it. */
22659 data = (char *) malloc (pagesize);
22660 if (!data)
22661 return 1;
22662 for (i = 0; i < pagesize; ++i)
22663 *(data + i) = rand ();
22664 umask (0);
22665 fd = creat ("conftest.mmap", 0600);
22666 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022667 return 2;
cristy3ed852e2009-09-05 21:47:34 +000022668 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022669 return 3;
cristy3ed852e2009-09-05 21:47:34 +000022670 close (fd);
22671
cristycd4c5312009-11-22 01:19:08 +000022672 /* Next, check that the tail of a page is zero-filled. File must have
22673 non-zero length, otherwise we risk SIGBUS for entire page. */
22674 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22675 if (fd2 < 0)
22676 return 4;
cristyc54f5d42009-11-27 21:36:31 +000022677 cdata2 = "";
22678 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000022679 return 5;
cristyc54f5d42009-11-27 21:36:31 +000022680 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000022681 if (data2 == MAP_FAILED)
22682 return 6;
22683 for (i = 0; i < pagesize; ++i)
22684 if (*(data2 + i))
22685 return 7;
22686 close (fd2);
22687 if (munmap (data2, pagesize))
22688 return 8;
22689
cristy3ed852e2009-09-05 21:47:34 +000022690 /* Next, try to mmap the file at a fixed address which already has
22691 something else allocated at it. If we can, also make sure that
22692 we see the same garbage. */
22693 fd = open ("conftest.mmap", O_RDWR);
22694 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000022695 return 9;
cristy3ed852e2009-09-05 21:47:34 +000022696 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22697 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000022698 return 10;
cristy3ed852e2009-09-05 21:47:34 +000022699 for (i = 0; i < pagesize; ++i)
22700 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000022701 return 11;
cristy3ed852e2009-09-05 21:47:34 +000022702
22703 /* Finally, make sure that changes to the mapped area do not
22704 percolate back to the file as seen by read(). (This is a bug on
22705 some variants of i386 svr4.0.) */
22706 for (i = 0; i < pagesize; ++i)
22707 *(data2 + i) = *(data2 + i) + 1;
22708 data3 = (char *) malloc (pagesize);
22709 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000022710 return 12;
cristy3ed852e2009-09-05 21:47:34 +000022711 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000022712 return 13;
cristy3ed852e2009-09-05 21:47:34 +000022713 for (i = 0; i < pagesize; ++i)
22714 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000022715 return 14;
cristy3ed852e2009-09-05 21:47:34 +000022716 close (fd);
22717 return 0;
22718}
22719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022720if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022721 ac_cv_func_mmap_fixed_mapped=yes
22722else
cristy8b350f62009-11-15 23:12:43 +000022723 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000022724fi
cristy8b350f62009-11-15 23:12:43 +000022725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22726 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022727fi
22728
cristy3ed852e2009-09-05 21:47:34 +000022729fi
cristy8b350f62009-11-15 23:12:43 +000022730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000022731$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22732if test $ac_cv_func_mmap_fixed_mapped = yes; then
22733
cristy8b350f62009-11-15 23:12:43 +000022734$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022735
22736fi
cristycd4c5312009-11-22 01:19:08 +000022737rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000022738
cristy3ed852e2009-09-05 21:47:34 +000022739for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000022740do :
22741 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22742if test "x$ac_cv_header_vfork_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022743 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022744#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000022745_ACEOF
22746
22747fi
22748
22749done
22750
cristy3ed852e2009-09-05 21:47:34 +000022751for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000022752do :
22753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22754ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22755eval as_val=\$$as_ac_var
22756 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022757 cat >>confdefs.h <<_ACEOF
22758#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22759_ACEOF
22760
22761fi
22762done
22763
22764if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022766$as_echo_n "checking for working fork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022767if test "${ac_cv_func_fork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022768 $as_echo_n "(cached) " >&6
22769else
cristy8b350f62009-11-15 23:12:43 +000022770 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022771 ac_cv_func_fork_works=cross
22772else
cristy8b350f62009-11-15 23:12:43 +000022773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022774/* end confdefs.h. */
22775$ac_includes_default
22776int
22777main ()
22778{
22779
22780 /* By Ruediger Kuhlmann. */
22781 return fork () < 0;
22782
22783 ;
22784 return 0;
22785}
22786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022787if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022788 ac_cv_func_fork_works=yes
22789else
cristy8b350f62009-11-15 23:12:43 +000022790 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022791fi
cristy8b350f62009-11-15 23:12:43 +000022792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22793 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022794fi
22795
cristy3ed852e2009-09-05 21:47:34 +000022796fi
cristy8b350f62009-11-15 23:12:43 +000022797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022798$as_echo "$ac_cv_func_fork_works" >&6; }
22799
22800else
22801 ac_cv_func_fork_works=$ac_cv_func_fork
22802fi
22803if test "x$ac_cv_func_fork_works" = xcross; then
22804 case $host in
22805 *-*-amigaos* | *-*-msdosdjgpp*)
22806 # Override, as these systems have only a dummy fork() stub
22807 ac_cv_func_fork_works=no
22808 ;;
22809 *)
22810 ac_cv_func_fork_works=yes
22811 ;;
22812 esac
cristy8b350f62009-11-15 23:12:43 +000022813 { $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 +000022814$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22815fi
22816ac_cv_func_vfork_works=$ac_cv_func_vfork
22817if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000022818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000022819$as_echo_n "checking for working vfork... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022820if test "${ac_cv_func_vfork_works+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022821 $as_echo_n "(cached) " >&6
22822else
cristy8b350f62009-11-15 23:12:43 +000022823 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022824 ac_cv_func_vfork_works=cross
22825else
cristy8b350f62009-11-15 23:12:43 +000022826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022827/* end confdefs.h. */
22828/* Thanks to Paul Eggert for this test. */
22829$ac_includes_default
22830#include <sys/wait.h>
22831#ifdef HAVE_VFORK_H
22832# include <vfork.h>
22833#endif
22834/* On some sparc systems, changes by the child to local and incoming
22835 argument registers are propagated back to the parent. The compiler
22836 is told about this with #include <vfork.h>, but some compilers
22837 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22838 static variable whose address is put into a register that is
22839 clobbered by the vfork. */
22840static void
22841#ifdef __cplusplus
22842sparc_address_test (int arg)
22843# else
22844sparc_address_test (arg) int arg;
22845#endif
22846{
22847 static pid_t child;
22848 if (!child) {
22849 child = vfork ();
22850 if (child < 0) {
22851 perror ("vfork");
22852 _exit(2);
22853 }
22854 if (!child) {
22855 arg = getpid();
22856 write(-1, "", 0);
22857 _exit (arg);
22858 }
22859 }
22860}
22861
22862int
22863main ()
22864{
22865 pid_t parent = getpid ();
22866 pid_t child;
22867
22868 sparc_address_test (0);
22869
22870 child = vfork ();
22871
22872 if (child == 0) {
22873 /* Here is another test for sparc vfork register problems. This
22874 test uses lots of local variables, at least as many local
22875 variables as main has allocated so far including compiler
22876 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22877 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22878 reuse the register of parent for one of the local variables,
22879 since it will think that parent can't possibly be used any more
22880 in this routine. Assigning to the local variable will thus
22881 munge parent in the parent process. */
22882 pid_t
22883 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22884 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22885 /* Convince the compiler that p..p7 are live; otherwise, it might
22886 use the same hardware register for all 8 local variables. */
22887 if (p != p1 || p != p2 || p != p3 || p != p4
22888 || p != p5 || p != p6 || p != p7)
22889 _exit(1);
22890
22891 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22892 from child file descriptors. If the child closes a descriptor
22893 before it execs or exits, this munges the parent's descriptor
22894 as well. Test for this by closing stdout in the child. */
22895 _exit(close(fileno(stdout)) != 0);
22896 } else {
22897 int status;
22898 struct stat st;
22899
22900 while (wait(&status) != child)
22901 ;
22902 return (
22903 /* Was there some problem with vforking? */
22904 child < 0
22905
22906 /* Did the child fail? (This shouldn't happen.) */
22907 || status
22908
22909 /* Did the vfork/compiler bug occur? */
22910 || parent != getpid()
22911
22912 /* Did the file descriptor bug occur? */
22913 || fstat(fileno(stdout), &st) != 0
22914 );
22915 }
22916}
22917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022918if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022919 ac_cv_func_vfork_works=yes
22920else
cristy8b350f62009-11-15 23:12:43 +000022921 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000022922fi
cristy8b350f62009-11-15 23:12:43 +000022923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22924 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022925fi
22926
cristy3ed852e2009-09-05 21:47:34 +000022927fi
cristy8b350f62009-11-15 23:12:43 +000022928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000022929$as_echo "$ac_cv_func_vfork_works" >&6; }
22930
22931fi;
22932if test "x$ac_cv_func_fork_works" = xcross; then
22933 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000022934 { $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 +000022935$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22936fi
22937
22938if test "x$ac_cv_func_vfork_works" = xyes; then
22939
cristy8b350f62009-11-15 23:12:43 +000022940$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022941
22942else
22943
cristy8b350f62009-11-15 23:12:43 +000022944$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022945
22946fi
22947if test "x$ac_cv_func_fork_works" = xyes; then
22948
cristy8b350f62009-11-15 23:12:43 +000022949$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022950
22951fi
22952
cristy8b350f62009-11-15 23:12:43 +000022953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022954$as_echo_n "checking for working memcmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022955if test "${ac_cv_func_memcmp_working+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022956 $as_echo_n "(cached) " >&6
22957else
cristy8b350f62009-11-15 23:12:43 +000022958 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 ac_cv_func_memcmp_working=no
22960else
cristy8b350f62009-11-15 23:12:43 +000022961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022962/* end confdefs.h. */
22963$ac_includes_default
22964int
22965main ()
22966{
22967
22968 /* Some versions of memcmp are not 8-bit clean. */
22969 char c0 = '\100', c1 = '\200', c2 = '\201';
22970 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22971 return 1;
22972
22973 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22974 or more and with at least one buffer not starting on a 4-byte boundary.
22975 William Lewis provided this test program. */
22976 {
22977 char foo[21];
22978 char bar[21];
22979 int i;
22980 for (i = 0; i < 4; i++)
22981 {
22982 char *a = foo + i;
22983 char *b = bar + i;
22984 strcpy (a, "--------01111111");
22985 strcpy (b, "--------10000000");
22986 if (memcmp (a, b, 16) >= 0)
22987 return 1;
22988 }
22989 return 0;
22990 }
22991
22992 ;
22993 return 0;
22994}
22995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022996if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022997 ac_cv_func_memcmp_working=yes
22998else
cristy8b350f62009-11-15 23:12:43 +000022999 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023000fi
cristy8b350f62009-11-15 23:12:43 +000023001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23002 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023003fi
23004
cristy3ed852e2009-09-05 21:47:34 +000023005fi
cristy8b350f62009-11-15 23:12:43 +000023006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023007$as_echo "$ac_cv_func_memcmp_working" >&6; }
23008test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23009 *" memcmp.$ac_objext "* ) ;;
23010 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23011 ;;
23012esac
23013
23014
cristy3ed852e2009-09-05 21:47:34 +000023015for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023016do :
23017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23018ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23019eval as_val=\$$as_ac_Header
23020 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023021 cat >>confdefs.h <<_ACEOF
23022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23023_ACEOF
23024
23025fi
23026
23027done
23028
cristy8b350f62009-11-15 23:12:43 +000023029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023030$as_echo_n "checking types of arguments for select... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023031if test "${ac_cv_func_select_args+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023032 $as_echo_n "(cached) " >&6
23033else
23034 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23035 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23036 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023038/* end confdefs.h. */
23039$ac_includes_default
23040#ifdef HAVE_SYS_SELECT_H
23041# include <sys/select.h>
23042#endif
23043#ifdef HAVE_SYS_SOCKET_H
23044# include <sys/socket.h>
23045#endif
23046
23047int
23048main ()
23049{
23050extern int select ($ac_arg1,
23051 $ac_arg234, $ac_arg234, $ac_arg234,
23052 $ac_arg5);
23053 ;
23054 return 0;
23055}
23056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023057if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023058 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023059fi
cristy3ed852e2009-09-05 21:47:34 +000023060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061 done
23062 done
23063done
23064# Provide a safe default value.
23065: ${ac_cv_func_select_args='int,int *,struct timeval *'}
23066
23067fi
cristy8b350f62009-11-15 23:12:43 +000023068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023069$as_echo "$ac_cv_func_select_args" >&6; }
23070ac_save_IFS=$IFS; IFS=','
23071set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23072IFS=$ac_save_IFS
23073shift
23074
23075cat >>confdefs.h <<_ACEOF
23076#define SELECT_TYPE_ARG1 $1
23077_ACEOF
23078
23079
23080cat >>confdefs.h <<_ACEOF
23081#define SELECT_TYPE_ARG234 ($2)
23082_ACEOF
23083
23084
23085cat >>confdefs.h <<_ACEOF
23086#define SELECT_TYPE_ARG5 ($3)
23087_ACEOF
23088
23089rm -f conftest*
23090
cristy8b350f62009-11-15 23:12:43 +000023091if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023092 $as_echo_n "(cached) " >&6
23093else
23094 ac_cv_func_setvbuf_reversed=no
23095fi
23096
23097
cristy8b350f62009-11-15 23:12:43 +000023098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023099$as_echo_n "checking return type of signal handlers... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023100if test "${ac_cv_type_signal+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023101 $as_echo_n "(cached) " >&6
23102else
cristy8b350f62009-11-15 23:12:43 +000023103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023104/* end confdefs.h. */
23105#include <sys/types.h>
23106#include <signal.h>
23107
23108int
23109main ()
23110{
23111return *(signal (0, 0)) (0) == 1;
23112 ;
23113 return 0;
23114}
23115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023117 ac_cv_type_signal=int
23118else
cristy8b350f62009-11-15 23:12:43 +000023119 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023120fi
cristy3ed852e2009-09-05 21:47:34 +000023121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122fi
cristy8b350f62009-11-15 23:12:43 +000023123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023124$as_echo "$ac_cv_type_signal" >&6; }
23125
23126cat >>confdefs.h <<_ACEOF
23127#define RETSIGTYPE $ac_cv_type_signal
23128_ACEOF
23129
23130
cristy8b350f62009-11-15 23:12:43 +000023131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023132$as_echo_n "checking for working strtod... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023133if test "${ac_cv_func_strtod+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023134 $as_echo_n "(cached) " >&6
23135else
cristy8b350f62009-11-15 23:12:43 +000023136 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023137 ac_cv_func_strtod=no
23138else
cristy8b350f62009-11-15 23:12:43 +000023139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023140/* end confdefs.h. */
23141
23142$ac_includes_default
23143#ifndef strtod
23144double strtod ();
23145#endif
23146int
23147main()
23148{
23149 {
23150 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23151 char *string = " +69";
23152 char *term;
23153 double value;
23154 value = strtod (string, &term);
23155 if (value != 69 || term != (string + 4))
23156 return 1;
23157 }
23158
23159 {
23160 /* Under Solaris 2.4, strtod returns the wrong value for the
23161 terminating character under some conditions. */
23162 char *string = "NaN";
23163 char *term;
23164 strtod (string, &term);
23165 if (term != string && *(term - 1) == 0)
23166 return 1;
23167 }
23168 return 0;
23169}
23170
23171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023172if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023173 ac_cv_func_strtod=yes
23174else
cristy8b350f62009-11-15 23:12:43 +000023175 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023176fi
cristy8b350f62009-11-15 23:12:43 +000023177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23178 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023179fi
23180
cristy3ed852e2009-09-05 21:47:34 +000023181fi
cristy8b350f62009-11-15 23:12:43 +000023182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023183$as_echo "$ac_cv_func_strtod" >&6; }
23184if test $ac_cv_func_strtod = no; then
23185 case " $LIBOBJS " in
23186 *" strtod.$ac_objext "* ) ;;
23187 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23188 ;;
23189esac
23190
cristy8b350f62009-11-15 23:12:43 +000023191ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23192if test "x$ac_cv_func_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023193
cristy3ed852e2009-09-05 21:47:34 +000023194fi
23195
cristy3ed852e2009-09-05 21:47:34 +000023196if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023198$as_echo_n "checking for pow in -lm... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023199if test "${ac_cv_lib_m_pow+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023200 $as_echo_n "(cached) " >&6
23201else
23202 ac_check_lib_save_LIBS=$LIBS
23203LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023205/* end confdefs.h. */
23206
23207/* Override any GCC internal prototype to avoid an error.
23208 Use char because int might match the return type of a GCC
23209 builtin and then its argument prototype would still apply. */
23210#ifdef __cplusplus
23211extern "C"
23212#endif
23213char pow ();
23214int
23215main ()
23216{
23217return pow ();
23218 ;
23219 return 0;
23220}
23221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023222if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023223 ac_cv_lib_m_pow=yes
23224else
cristy8b350f62009-11-15 23:12:43 +000023225 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023226fi
cristy8b350f62009-11-15 23:12:43 +000023227rm -f core conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023229LIBS=$ac_check_lib_save_LIBS
23230fi
cristy8b350f62009-11-15 23:12:43 +000023231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023232$as_echo "$ac_cv_lib_m_pow" >&6; }
cristy8b350f62009-11-15 23:12:43 +000023233if test "x$ac_cv_lib_m_pow" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023234 POW_LIB=-lm
23235else
cristy8b350f62009-11-15 23:12:43 +000023236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023237$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23238fi
23239
23240fi
23241
23242fi
23243
cristy3ed852e2009-09-05 21:47:34 +000023244for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023245do :
23246 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23247if test "x$ac_cv_func_vprintf" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023248 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023249#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023250_ACEOF
23251
cristy8b350f62009-11-15 23:12:43 +000023252ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23253if test "x$ac_cv_func__doprnt" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023254
cristy8b350f62009-11-15 23:12:43 +000023255$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023256
23257fi
23258
23259fi
23260done
23261
23262
23263
cristy161b9262010-03-20 19:34:32 +000023264#
23265# Find math library
23266#
23267MATH_LIBS=''
23268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23269$as_echo_n "checking for sqrt in -lm... " >&6; }
23270if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272else
23273 ac_check_lib_save_LIBS=$LIBS
23274LIBS="-lm $LIBS"
23275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23276/* end confdefs.h. */
23277
23278/* Override any GCC internal prototype to avoid an error.
23279 Use char because int might match the return type of a GCC
23280 builtin and then its argument prototype would still apply. */
23281#ifdef __cplusplus
23282extern "C"
23283#endif
23284char sqrt ();
23285int
23286main ()
23287{
23288return sqrt ();
23289 ;
23290 return 0;
23291}
23292_ACEOF
23293if ac_fn_c_try_link "$LINENO"; then :
23294 ac_cv_lib_m_sqrt=yes
23295else
23296 ac_cv_lib_m_sqrt=no
23297fi
23298rm -f core conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
23300LIBS=$ac_check_lib_save_LIBS
23301fi
23302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23303$as_echo "$ac_cv_lib_m_sqrt" >&6; }
23304if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23305 MATH_LIBS="-lm"
23306fi
23307
23308LIBS="$MATH_LIBS $LIBS"
23309
23310
cristy56ed31c2010-03-22 00:46:21 +000023311for 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 +000023312do :
23313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23315eval as_val=\$$as_ac_var
23316 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023317 cat >>confdefs.h <<_ACEOF
23318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23319_ACEOF
23320
23321fi
23322done
23323
23324
cristye43a45e2009-09-28 14:49:00 +000023325#
23326# Check for clock_gettime().
23327#
cristy8b350f62009-11-15 23:12:43 +000023328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023329$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023330if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023331 $as_echo_n "(cached) " >&6
23332else
23333 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023335/* end confdefs.h. */
23336
23337/* Override any GCC internal prototype to avoid an error.
23338 Use char because int might match the return type of a GCC
23339 builtin and then its argument prototype would still apply. */
23340#ifdef __cplusplus
23341extern "C"
23342#endif
23343char clock_gettime ();
23344int
23345main ()
23346{
23347return clock_gettime ();
23348 ;
23349 return 0;
23350}
23351_ACEOF
23352for ac_lib in '' rt; do
23353 if test -z "$ac_lib"; then
23354 ac_res="none required"
23355 else
23356 ac_res=-l$ac_lib
23357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23358 fi
cristy8b350f62009-11-15 23:12:43 +000023359 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023360 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000023361fi
cristy8b350f62009-11-15 23:12:43 +000023362rm -f core conftest.err conftest.$ac_objext \
23363 conftest$ac_exeext
23364 if test "${ac_cv_search_clock_gettime+set}" = set; then :
cristye43a45e2009-09-28 14:49:00 +000023365 break
23366fi
23367done
cristy8b350f62009-11-15 23:12:43 +000023368if test "${ac_cv_search_clock_gettime+set}" = set; then :
23369
cristye43a45e2009-09-28 14:49:00 +000023370else
23371 ac_cv_search_clock_gettime=no
23372fi
23373rm conftest.$ac_ext
23374LIBS=$ac_func_search_save_LIBS
23375fi
cristy8b350f62009-11-15 23:12:43 +000023376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023377$as_echo "$ac_cv_search_clock_gettime" >&6; }
23378ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000023379if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000023380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23381
23382
cristy8b350f62009-11-15 23:12:43 +000023383$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023384
cristy8b350f62009-11-15 23:12:43 +000023385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000023386$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023388/* end confdefs.h. */
23389#include <time.h>
23390int
23391main ()
23392{
23393clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000023394 ;
23395 return 0;
23396}
23397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023398if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000023399
cristy8b350f62009-11-15 23:12:43 +000023400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000023401$as_echo "yes" >&6; }
23402
cristy8b350f62009-11-15 23:12:43 +000023403$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000023404
23405
23406else
cristy8b350f62009-11-15 23:12:43 +000023407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000023408$as_echo "no" >&6; }
23409
23410fi
cristye43a45e2009-09-28 14:49:00 +000023411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412
23413else
23414
cristy8b350f62009-11-15 23:12:43 +000023415 for ac_func in gettimeofday ftime
23416do :
23417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23418ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23419eval as_val=\$$as_ac_var
23420 if test "x$as_val" = x""yes; then :
cristye43a45e2009-09-28 14:49:00 +000023421 cat >>confdefs.h <<_ACEOF
23422#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23423_ACEOF
23424 break
23425fi
23426done
23427
23428
23429
23430fi
23431
23432
cristy3ed852e2009-09-05 21:47:34 +000023433########
23434#
23435# Check for function prototypes
23436#
23437########
23438
cristy8b350f62009-11-15 23:12:43 +000023439ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000023440#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023441"
23442if test "x$ac_cv_have_decl_pread" = x""yes; then :
23443 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023444else
cristy8b350f62009-11-15 23:12:43 +000023445 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023446fi
23447
cristy3ed852e2009-09-05 21:47:34 +000023448cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023449#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023451ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000023452#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000023453"
23454if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23455 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023456else
cristy8b350f62009-11-15 23:12:43 +000023457 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023458fi
23459
cristy3ed852e2009-09-05 21:47:34 +000023460cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023461#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023462_ACEOF
23463
23464
cristy8b350f62009-11-15 23:12:43 +000023465ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000023466#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000023467"
23468if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23469 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023470else
cristy8b350f62009-11-15 23:12:43 +000023471 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023472fi
23473
cristy3ed852e2009-09-05 21:47:34 +000023474cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023475#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023476_ACEOF
23477
23478
cristy8b350f62009-11-15 23:12:43 +000023479ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000023480#include <stdio.h>
23481#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000023482"
23483if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23484 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000023485else
cristy8b350f62009-11-15 23:12:43 +000023486 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000023487fi
23488
cristy3ed852e2009-09-05 21:47:34 +000023489cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023490#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000023491_ACEOF
23492
23493
cristy3ed852e2009-09-05 21:47:34 +000023494########
23495#
23496# C++ Support Tests (For Magick++)
23497#
23498########
23499have_magick_plus_plus='no'
23500if test "$with_magick_plus_plus" = 'yes'; then
23501 OLIBS="$LIBS"
23502 LIBS=''
23503 ac_ext=cpp
23504ac_cpp='$CXXCPP $CPPFLAGS'
23505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23508
23509
23510 # Full set of headers used...
23511 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23512 # functional iomanip iosfwd iostream iterator list string strstream utility
23513 ac_ext=cpp
23514ac_cpp='$CXXCPP $CPPFLAGS'
23515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23518
23519 ac_ext=cpp
23520ac_cpp='$CXXCPP $CPPFLAGS'
23521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23524if test -z "$CXX"; then
23525 if test -n "$CCC"; then
23526 CXX=$CCC
23527 else
23528 if test -n "$ac_tool_prefix"; then
23529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23530 do
23531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23532set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023534$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023535if test "${ac_cv_prog_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023536 $as_echo_n "(cached) " >&6
23537else
23538 if test -n "$CXX"; then
23539 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23540else
23541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23542for as_dir in $PATH
23543do
23544 IFS=$as_save_IFS
23545 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23548 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023550 break 2
23551 fi
23552done
cristy8b350f62009-11-15 23:12:43 +000023553 done
cristy3ed852e2009-09-05 21:47:34 +000023554IFS=$as_save_IFS
23555
23556fi
23557fi
23558CXX=$ac_cv_prog_CXX
23559if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo "$CXX" >&6; }
23562else
cristy8b350f62009-11-15 23:12:43 +000023563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023564$as_echo "no" >&6; }
23565fi
23566
23567
23568 test -n "$CXX" && break
23569 done
23570fi
23571if test -z "$CXX"; then
23572 ac_ct_CXX=$CXX
23573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23574do
23575 # Extract the first word of "$ac_prog", so it can be a program name with args.
23576set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023579if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023580 $as_echo_n "(cached) " >&6
23581else
23582 if test -n "$ac_ct_CXX"; then
23583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23584else
23585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23586for as_dir in $PATH
23587do
23588 IFS=$as_save_IFS
23589 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000023590 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000023591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23592 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000023593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000023594 break 2
23595 fi
23596done
cristy8b350f62009-11-15 23:12:43 +000023597 done
cristy3ed852e2009-09-05 21:47:34 +000023598IFS=$as_save_IFS
23599
23600fi
23601fi
23602ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23603if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000023604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo "$ac_ct_CXX" >&6; }
23606else
cristy8b350f62009-11-15 23:12:43 +000023607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000023608$as_echo "no" >&6; }
23609fi
23610
23611
23612 test -n "$ac_ct_CXX" && break
23613done
23614
23615 if test "x$ac_ct_CXX" = x; then
23616 CXX="g++"
23617 else
23618 case $cross_compiling:$ac_tool_warned in
23619yes:)
cristy8b350f62009-11-15 23:12:43 +000023620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000023621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23622ac_tool_warned=yes ;;
23623esac
23624 CXX=$ac_ct_CXX
23625 fi
23626fi
23627
23628 fi
23629fi
23630# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000023631$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632set X $ac_compile
23633ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000023634for ac_option in --version -v -V -qversion; do
23635 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000023636case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23639esac
cristy8b350f62009-11-15 23:12:43 +000023640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23641$as_echo "$ac_try_echo"; } >&5
23642 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000023643 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000023644 if test -s conftest.err; then
23645 sed '10a\
23646... rest of stderr output deleted ...
23647 10q' conftest.err >conftest.er1
23648 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000023649 fi
cristycd4c5312009-11-22 01:19:08 +000023650 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000023651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }
23653done
cristy3ed852e2009-09-05 21:47:34 +000023654
cristy8b350f62009-11-15 23:12:43 +000023655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000023656$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023657if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023658 $as_echo_n "(cached) " >&6
23659else
cristy8b350f62009-11-15 23:12:43 +000023660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023661/* end confdefs.h. */
23662
23663int
23664main ()
23665{
23666#ifndef __GNUC__
23667 choke me
23668#endif
23669
23670 ;
23671 return 0;
23672}
23673_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023674if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023675 ac_compiler_gnu=yes
23676else
cristy8b350f62009-11-15 23:12:43 +000023677 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000023678fi
cristy3ed852e2009-09-05 21:47:34 +000023679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23681
23682fi
cristy8b350f62009-11-15 23:12:43 +000023683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000023684$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23685if test $ac_compiler_gnu = yes; then
23686 GXX=yes
23687else
23688 GXX=
23689fi
23690ac_test_CXXFLAGS=${CXXFLAGS+set}
23691ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000023692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023693$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023694if test "${ac_cv_prog_cxx_g+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023695 $as_echo_n "(cached) " >&6
23696else
23697 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23698 ac_cxx_werror_flag=yes
23699 ac_cv_prog_cxx_g=no
23700 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023702/* end confdefs.h. */
23703
23704int
23705main ()
23706{
23707
23708 ;
23709 return 0;
23710}
23711_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023712if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023713 ac_cv_prog_cxx_g=yes
23714else
cristy8b350f62009-11-15 23:12:43 +000023715 CXXFLAGS=""
23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023717/* end confdefs.h. */
23718
23719int
23720main ()
23721{
23722
23723 ;
23724 return 0;
23725}
23726_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023727if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023728
cristy8b350f62009-11-15 23:12:43 +000023729else
23730 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000023731 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000023732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023733/* end confdefs.h. */
23734
23735int
23736main ()
23737{
23738
23739 ;
23740 return 0;
23741}
23742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023743if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023744 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000023745fi
cristy3ed852e2009-09-05 21:47:34 +000023746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747fi
cristy3ed852e2009-09-05 21:47:34 +000023748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749fi
cristy3ed852e2009-09-05 21:47:34 +000023750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23752fi
cristy8b350f62009-11-15 23:12:43 +000023753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000023754$as_echo "$ac_cv_prog_cxx_g" >&6; }
23755if test "$ac_test_CXXFLAGS" = set; then
23756 CXXFLAGS=$ac_save_CXXFLAGS
23757elif test $ac_cv_prog_cxx_g = yes; then
23758 if test "$GXX" = yes; then
23759 CXXFLAGS="-g -O2"
23760 else
23761 CXXFLAGS="-g"
23762 fi
23763else
23764 if test "$GXX" = yes; then
23765 CXXFLAGS="-O2"
23766 else
23767 CXXFLAGS=
23768 fi
23769fi
23770ac_ext=cpp
23771ac_cpp='$CXXCPP $CPPFLAGS'
23772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23775
23776depcc="$CXX" am_compiler_list=
23777
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo_n "checking dependency style of $depcc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023780if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023781 $as_echo_n "(cached) " >&6
23782else
23783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23784 # We make a subdir and do the tests there. Otherwise we can end up
23785 # making bogus files that we don't know about and never remove. For
23786 # instance it was reported that on HP-UX the gcc test will end up
23787 # making a dummy file named `D' -- because `-MD' means `put the output
23788 # in D'.
23789 mkdir conftest.dir
23790 # Copy depcomp to subdir because otherwise we won't find it if we're
23791 # using a relative directory.
23792 cp "$am_depcomp" conftest.dir
23793 cd conftest.dir
23794 # We will build objects and dependencies in a subdirectory because
23795 # it helps to detect inapplicable dependency modes. For instance
23796 # both Tru64's cc and ICC support -MD to output dependencies as a
23797 # side effect of compilation, but ICC will put the dependencies in
23798 # the current directory while Tru64 will put them in the object
23799 # directory.
23800 mkdir sub
23801
23802 am_cv_CXX_dependencies_compiler_type=none
23803 if test "$am_compiler_list" = ""; then
23804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23805 fi
23806 am__universal=false
23807 case " $depcc " in #(
23808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23809 esac
23810
23811 for depmode in $am_compiler_list; do
23812 # Setup a source with many dependencies, because some compilers
23813 # like to wrap large dependency lists on column 80 (with \), and
23814 # we should not choose a depcomp mode which is confused by this.
23815 #
23816 # We need to recreate these files for each test, as the compiler may
23817 # overwrite some of them when testing with obscure command lines.
23818 # This happens at least with the AIX C compiler.
23819 : > sub/conftest.c
23820 for i in 1 2 3 4 5 6; do
23821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23823 # Solaris 8's {/usr,}/bin/sh.
23824 touch sub/conftst$i.h
23825 done
23826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23827
23828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23829 # mode. It turns out that the SunPro C++ compiler does not properly
23830 # handle `-M -o', and we need to detect this. Also, some Intel
23831 # versions had trouble with output in subdirs
23832 am__obj=sub/conftest.${OBJEXT-o}
23833 am__minus_obj="-o $am__obj"
23834 case $depmode in
23835 gcc)
23836 # This depmode causes a compiler race in universal mode.
23837 test "$am__universal" = false || continue
23838 ;;
23839 nosideeffect)
23840 # after this tag, mechanisms are not by side-effect, so they'll
23841 # only be used when explicitly requested
23842 if test "x$enable_dependency_tracking" = xyes; then
23843 continue
23844 else
23845 break
23846 fi
23847 ;;
23848 msvisualcpp | msvcmsys)
23849 # This compiler won't grok `-c -o', but also, the minuso test has
23850 # not run yet. These depmodes are late enough in the game, and
23851 # so weak that their functioning should not be impacted.
23852 am__obj=conftest.${OBJEXT-o}
23853 am__minus_obj=
23854 ;;
23855 none) break ;;
23856 esac
23857 if depmode=$depmode \
23858 source=sub/conftest.c object=$am__obj \
23859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23861 >/dev/null 2>conftest.err &&
23862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23866 # icc doesn't choke on unknown options, it will just issue warnings
23867 # or remarks (even with -Werror). So we grep stderr for any message
23868 # that says an option was ignored or not supported.
23869 # When given -MP, icc 7.0 and 7.1 complain thusly:
23870 # icc: Command line warning: ignoring option '-M'; no argument required
23871 # The diagnosis changed in icc 8.0:
23872 # icc: Command line remark: option '-MP' not supported
23873 if (grep 'ignoring option' conftest.err ||
23874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23875 am_cv_CXX_dependencies_compiler_type=$depmode
23876 break
23877 fi
23878 fi
23879 done
23880
23881 cd ..
23882 rm -rf conftest.dir
23883else
23884 am_cv_CXX_dependencies_compiler_type=none
23885fi
23886
23887fi
cristy8b350f62009-11-15 23:12:43 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023889$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23890CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23891
23892 if
23893 test "x$enable_dependency_tracking" != xno \
23894 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23895 am__fastdepCXX_TRUE=
23896 am__fastdepCXX_FALSE='#'
23897else
23898 am__fastdepCXX_TRUE='#'
23899 am__fastdepCXX_FALSE=
23900fi
23901
23902
cristy8b350f62009-11-15 23:12:43 +000023903 { $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 +000023904$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023905if test "${ax_cv_cxx_bool+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023906 $as_echo_n "(cached) " >&6
23907else
23908
23909 ac_ext=cpp
23910ac_cpp='$CXXCPP $CPPFLAGS'
23911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23914
cristy8b350f62009-11-15 23:12:43 +000023915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023916/* end confdefs.h. */
23917
23918int f(int x){return 1;}
23919int f(char x){return 1;}
23920int f(bool x){return 1;}
23921
23922int
23923main ()
23924{
23925bool b = true; return f(b);
23926 ;
23927 return 0;
23928}
23929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023930if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023931 ax_cv_cxx_bool=yes
cristy3ed852e2009-09-05 21:47:34 +000023932else
cristy964cb7f2010-04-25 23:18:00 +000023933 ax_cv_cxx_bool=no
cristy3ed852e2009-09-05 21:47:34 +000023934fi
cristy3ed852e2009-09-05 21:47:34 +000023935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936 ac_ext=cpp
23937ac_cpp='$CXXCPP $CPPFLAGS'
23938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23941
23942
23943fi
cristy964cb7f2010-04-25 23:18:00 +000023944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23945$as_echo "$ax_cv_cxx_bool" >&6; }
23946if test "$ax_cv_cxx_bool" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023947
cristy8b350f62009-11-15 23:12:43 +000023948$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023949
23950fi
23951
cristy8b350f62009-11-15 23:12:43 +000023952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
cristy3ed852e2009-09-05 21:47:34 +000023953$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristy964cb7f2010-04-25 23:18:00 +000023954if test "${ax_cv_cxx_namespaces+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023955 $as_echo_n "(cached) " >&6
23956else
23957
23958 ac_ext=cpp
23959ac_cpp='$CXXCPP $CPPFLAGS'
23960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23963
cristy8b350f62009-11-15 23:12:43 +000023964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023965/* end confdefs.h. */
23966namespace Outer { namespace Inner { int i = 0; }}
23967int
23968main ()
23969{
23970using namespace Outer::Inner; return i;
23971 ;
23972 return 0;
23973}
23974_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023975if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000023976 ax_cv_cxx_namespaces=yes
cristy3ed852e2009-09-05 21:47:34 +000023977else
cristy964cb7f2010-04-25 23:18:00 +000023978 ax_cv_cxx_namespaces=no
cristy3ed852e2009-09-05 21:47:34 +000023979fi
cristy3ed852e2009-09-05 21:47:34 +000023980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23981 ac_ext=cpp
23982ac_cpp='$CXXCPP $CPPFLAGS'
23983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23986
23987
23988fi
cristy964cb7f2010-04-25 23:18:00 +000023989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23990$as_echo "$ax_cv_cxx_namespaces" >&6; }
23991if test "$ax_cv_cxx_namespaces" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023992
cristy8b350f62009-11-15 23:12:43 +000023993$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023994
23995fi
23996
cristy964cb7f2010-04-25 23:18:00 +000023997
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23999$as_echo_n "checking if g++ supports namespace std... " >&6; }
24000if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024001 $as_echo_n "(cached) " >&6
24002else
24003
cristy964cb7f2010-04-25 23:18:00 +000024004 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024005ac_cpp='$CXXCPP $CPPFLAGS'
24006ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24009
cristy964cb7f2010-04-25 23:18:00 +000024010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024011/* end confdefs.h. */
24012#include <iostream>
cristy964cb7f2010-04-25 23:18:00 +000024013 std::istream& is = std::cin;
cristy3ed852e2009-09-05 21:47:34 +000024014int
24015main ()
24016{
cristy964cb7f2010-04-25 23:18:00 +000024017
cristy3ed852e2009-09-05 21:47:34 +000024018 ;
24019 return 0;
24020}
24021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024022if ac_fn_cxx_try_compile "$LINENO"; then :
cristy964cb7f2010-04-25 23:18:00 +000024023 ax_cv_cxx_have_std_namespace=yes
cristy3ed852e2009-09-05 21:47:34 +000024024else
cristy964cb7f2010-04-25 23:18:00 +000024025 ax_cv_cxx_have_std_namespace=no
cristy3ed852e2009-09-05 21:47:34 +000024026fi
cristy3ed852e2009-09-05 21:47:34 +000024027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy964cb7f2010-04-25 23:18:00 +000024028 ac_ext=cpp
cristy3ed852e2009-09-05 21:47:34 +000024029ac_cpp='$CXXCPP $CPPFLAGS'
24030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24033
24034
24035fi
cristy964cb7f2010-04-25 23:18:00 +000024036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24037$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24038 if test "$ax_cv_cxx_have_std_namespace" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024039
cristy964cb7f2010-04-25 23:18:00 +000024040$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024041
cristy964cb7f2010-04-25 23:18:00 +000024042 fi
cristy3ed852e2009-09-05 21:47:34 +000024043
cristy8b350f62009-11-15 23:12:43 +000024044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
cristy3ed852e2009-09-05 21:47:34 +000024045$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024046if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024047 $as_echo_n "(cached) " >&6
24048else
24049
24050
24051 ac_ext=cpp
24052ac_cpp='$CXXCPP $CPPFLAGS'
24053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24056
cristy8b350f62009-11-15 23:12:43 +000024057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024058/* end confdefs.h. */
24059#include <iostream>
24060#include <map>
24061#include <iomanip>
24062#include <cmath>
24063#ifdef HAVE_NAMESPACES
24064using namespace std;
24065#endif
24066int
24067main ()
24068{
24069return 0;
24070 ;
24071 return 0;
24072}
24073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024074if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024075 ac_cv_cxx_have_std_libs=yes
24076else
cristy8b350f62009-11-15 23:12:43 +000024077 ac_cv_cxx_have_std_libs=no
cristy3ed852e2009-09-05 21:47:34 +000024078fi
cristy3ed852e2009-09-05 21:47:34 +000024079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24080 ac_ext=cpp
24081ac_cpp='$CXXCPP $CPPFLAGS'
24082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24085
24086
24087fi
cristy8b350f62009-11-15 23:12:43 +000024088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
cristy3ed852e2009-09-05 21:47:34 +000024089$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24090if test "$ac_cv_cxx_have_std_libs" = yes; then
24091
cristy8b350f62009-11-15 23:12:43 +000024092$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024093
24094fi
24095
cristy8b350f62009-11-15 23:12:43 +000024096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
cristy3ed852e2009-09-05 21:47:34 +000024097$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024098if test "${ac_cv_cxx_have_lstring+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024099 $as_echo_n "(cached) " >&6
24100else
24101
24102 ac_ext=cpp
24103ac_cpp='$CXXCPP $CPPFLAGS'
24104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24107
cristy8b350f62009-11-15 23:12:43 +000024108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024109/* end confdefs.h. */
24110const wchar_t* s=L"wide string";
24111_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024112if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024113 ac_cv_cxx_have_lstring=yes
24114else
cristy8b350f62009-11-15 23:12:43 +000024115 ac_cv_cxx_have_lstring=no
cristy3ed852e2009-09-05 21:47:34 +000024116fi
cristy3ed852e2009-09-05 21:47:34 +000024117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 ac_ext=cpp
24119ac_cpp='$CXXCPP $CPPFLAGS'
24120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24123
24124
24125fi
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo "$ac_cv_cxx_have_lstring" >&6; }
24128if test "$ac_cv_cxx_have_lstring" = yes; then
24129
cristy8b350f62009-11-15 23:12:43 +000024130$as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024131
24132fi
24133
24134
24135 OPENMP_CXXFLAGS=
24136 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024137if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024138 enableval=$enable_openmp;
24139fi
24140
24141 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24143$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024144if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 $as_echo_n "(cached) " >&6
24146else
cristy8b350f62009-11-15 23:12:43 +000024147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24148/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024149
24150#ifndef _OPENMP
24151 choke me
24152#endif
24153#include <omp.h>
24154int main () { return omp_get_num_threads (); }
24155
24156_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024157if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024158 ac_cv_prog_cxx_openmp='none needed'
24159else
cristy8b350f62009-11-15 23:12:43 +000024160 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024161 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24162 ac_save_CXXFLAGS=$CXXFLAGS
24163 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024166
24167#ifndef _OPENMP
24168 choke me
24169#endif
24170#include <omp.h>
24171int main () { return omp_get_num_threads (); }
24172
24173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024174if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024175 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024176fi
cristy8b350f62009-11-15 23:12:43 +000024177rm -f core conftest.err conftest.$ac_objext \
24178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024179 CXXFLAGS=$ac_save_CXXFLAGS
24180 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24181 break
24182 fi
24183 done
24184fi
cristy8b350f62009-11-15 23:12:43 +000024185rm -f core conftest.err conftest.$ac_objext \
24186 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024187fi
cristy8b350f62009-11-15 23:12:43 +000024188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024189$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24190 case $ac_cv_prog_cxx_openmp in #(
24191 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024192 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024193 *)
cristy8b350f62009-11-15 23:12:43 +000024194 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024195 esac
24196 fi
24197
24198
24199 ac_ext=c
24200ac_cpp='$CPP $CPPFLAGS'
24201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24203ac_compiler_gnu=$ac_cv_c_compiler_gnu
24204
24205
cristy8b350f62009-11-15 23:12:43 +000024206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24208 if \
cristy964cb7f2010-04-25 23:18:00 +000024209 test $ax_cv_cxx_bool = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024210 test $ac_cv_cxx_have_lstring = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024211 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024212 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024213 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024214 have_magick_plus_plus='yes'
24215 else
24216 have_magick_plus_plus='no (failed tests)'
24217 fi
cristy8b350f62009-11-15 23:12:43 +000024218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024219$as_echo "$have_magick_plus_plus" >&6; }
24220 LIBS="$OLIBS"
24221fi
24222 if test "$have_magick_plus_plus" = 'yes'; then
24223 WITH_MAGICK_PLUS_PLUS_TRUE=
24224 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24225else
24226 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24227 WITH_MAGICK_PLUS_PLUS_FALSE=
24228fi
24229
24230
24231# Only check for delegate libraries in subdirectories if requested.
24232if test "$enable_delegate_build" != 'no'; then
24233 # Check for delegate sub-directories and add -I & -L options as required.
24234 # This presumes that delegates are installed as detailed in the ImageMagick
24235 # README. If delegates are installed in a standard location where the
24236 # compiler will automatically find them then these options should not be
24237 # required.
24238
24239 #
24240 # Most delegates have includes in the same directory as the library, but not all...
24241 #
24242 # Includes
cristy5850e4b2010-01-08 14:28:24 +000024243 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 +000024244 if test -d "$builddir/$dir"; then
24245 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24246 else
24247 if test -d "$srcdirfull/$dir"; then
24248 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24249 fi
24250 fi
24251 done
24252
24253 # Libraries
cristy5850e4b2010-01-08 14:28:24 +000024254 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 +000024255 if test -d "$builddir/$dir/.libs"; then
24256 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24257 else
24258 if test -d "$srcdirfull/$dir/.libs"; then
24259 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24260 fi
24261 fi
24262 if test -d "$builddir/$dir"; then
24263 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24264 else
24265 if test -d "$srcdirfull/$dir"; then
24266 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24267 fi
24268 fi
24269 done
24270fi
24271
24272# Assume that delegate headers reside under same directory as ImageMagick
24273# installation prefix.
24274MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24275
24276#
24277# Find the X11 RGB database
24278#
cristy8b350f62009-11-15 23:12:43 +000024279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024280$as_echo_n "checking for X11 configure files... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024281if test "${im_cv_x_configure+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024282 $as_echo_n "(cached) " >&6
24283else
24284 # Look for the header file in a standard set of common directories.
24285# Check X11 before X11Rn because it is often a symlink to the current release.
24286 for ac_dir in \
24287 /lib/usr/lib/X11 \
24288 /usr/X11/lib \
24289 /usr/X11R4/lib \
24290 /usr/X11R5/lib \
24291 /usr/X11R6/lib \
24292 /usr/X11R7/lib \
24293 /usr/X386/lib \
24294 /usr/XFree86/lib/X11 \
24295 /usr/athena/lib \
24296 /usr/lib \
24297 /usr/lib/X11 \
24298 /usr/lib/X11R4 \
24299 /usr/lib/X11R5 \
24300 /usr/lib/X11R6 \
24301 /usr/lib/X11R7 \
24302 /usr/local/X11/lib \
24303 /usr/local/X11R4/lib \
24304 /usr/local/X11R5/lib \
24305 /usr/local/X11R6/lib \
24306 /usr/local/lib \
24307 /usr/local/lib/X11 \
24308 /usr/local/lib/X11R4 \
24309 /usr/local/lib/X11R5 \
24310 /usr/local/lib/X11R6 \
24311 /usr/local/lib/X11R7 \
24312 /usr/local/x11r5/lib \
24313 /usr/lpp/Xamples/lib \
24314 /usr/openwin/lib \
24315 /usr/openwin/share/lib \
24316 /usr/unsupported/lib \
24317 /usr/x386/lib \
24318 ; do
24319 if test -f "$ac_dir/X11/rgb.txt"; then
24320 im_cv_x_configure="$ac_dir/X11/"
24321 break
24322 elif test -f "$ac_dir/rgb.txt"; then
24323 im_cv_x_configure="$ac_dir/"
24324 break
24325 fi
24326
24327 done
24328fi
cristy8b350f62009-11-15 23:12:43 +000024329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024330$as_echo "$im_cv_x_configure" >&6; }
24331X11_CONFIGURE_PATH="$im_cv_x_configure"
24332case "${build_os}" in
24333 mingw* )
24334 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24335 ;;
24336esac
24337
24338cat >>confdefs.h <<_ACEOF
24339#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24340_ACEOF
24341
24342
24343#
24344# Find OpenMP library
24345#
24346GOMP_LIBS=''
24347if test "$enable_openmp" != 'no'; then
24348 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024350$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024351if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024352 $as_echo_n "(cached) " >&6
24353else
24354 ac_check_lib_save_LIBS=$LIBS
24355LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024357/* end confdefs.h. */
24358
24359/* Override any GCC internal prototype to avoid an error.
24360 Use char because int might match the return type of a GCC
24361 builtin and then its argument prototype would still apply. */
24362#ifdef __cplusplus
24363extern "C"
24364#endif
24365char GOMP_parallel_start ();
24366int
24367main ()
24368{
24369return GOMP_parallel_start ();
24370 ;
24371 return 0;
24372}
24373_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024374if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024375 ac_cv_lib_gomp_GOMP_parallel_start=yes
24376else
cristy8b350f62009-11-15 23:12:43 +000024377 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024378fi
cristy8b350f62009-11-15 23:12:43 +000024379rm -f core conftest.err conftest.$ac_objext \
24380 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024381LIBS=$ac_check_lib_save_LIBS
24382fi
cristy8b350f62009-11-15 23:12:43 +000024383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024384$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024385if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024386 GOMP_LIBS="-lgomp"
24387fi
24388 # gcc
24389 else
cristy8b350f62009-11-15 23:12:43 +000024390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024391$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024392if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024393 $as_echo_n "(cached) " >&6
24394else
24395 ac_check_lib_save_LIBS=$LIBS
24396LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024398/* end confdefs.h. */
24399
24400/* Override any GCC internal prototype to avoid an error.
24401 Use char because int might match the return type of a GCC
24402 builtin and then its argument prototype would still apply. */
24403#ifdef __cplusplus
24404extern "C"
24405#endif
24406char sunw_mp_register_warn ();
24407int
24408main ()
24409{
24410return sunw_mp_register_warn ();
24411 ;
24412 return 0;
24413}
24414_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024415if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024416 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24417else
cristy8b350f62009-11-15 23:12:43 +000024418 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000024419fi
cristy8b350f62009-11-15 23:12:43 +000024420rm -f core conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024422LIBS=$ac_check_lib_save_LIBS
24423fi
cristy8b350f62009-11-15 23:12:43 +000024424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000024425$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024426if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024427 GOMP_LIBS="-lmtsk"
24428fi
24429 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000024430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024431$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024432if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024433 $as_echo_n "(cached) " >&6
24434else
24435 ac_check_lib_save_LIBS=$LIBS
24436LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024438/* end confdefs.h. */
24439
24440/* Override any GCC internal prototype to avoid an error.
24441 Use char because int might match the return type of a GCC
24442 builtin and then its argument prototype would still apply. */
24443#ifdef __cplusplus
24444extern "C"
24445#endif
24446char _xlsmpFlush ();
24447int
24448main ()
24449{
24450return _xlsmpFlush ();
24451 ;
24452 return 0;
24453}
24454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024456 ac_cv_lib_xlsmp__xlsmpFlush=yes
24457else
cristy8b350f62009-11-15 23:12:43 +000024458 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000024459fi
cristy8b350f62009-11-15 23:12:43 +000024460rm -f core conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024462LIBS=$ac_check_lib_save_LIBS
24463fi
cristy8b350f62009-11-15 23:12:43 +000024464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000024465$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024466if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024467 GOMP_LIBS="-lxlsmp"
24468fi
24469 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000024470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024471$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024472if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024473 $as_echo_n "(cached) " >&6
24474else
24475 ac_check_lib_save_LIBS=$LIBS
24476LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024478/* end confdefs.h. */
24479
24480/* Override any GCC internal prototype to avoid an error.
24481 Use char because int might match the return type of a GCC
24482 builtin and then its argument prototype would still apply. */
24483#ifdef __cplusplus
24484extern "C"
24485#endif
24486char mp_destroy ();
24487int
24488main ()
24489{
24490return mp_destroy ();
24491 ;
24492 return 0;
24493}
24494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024496 ac_cv_lib_mp_mp_destroy=yes
24497else
cristy8b350f62009-11-15 23:12:43 +000024498 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy8b350f62009-11-15 23:12:43 +000024500rm -f core conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024502LIBS=$ac_check_lib_save_LIBS
24503fi
cristy8b350f62009-11-15 23:12:43 +000024504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000024505$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024506if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 GOMP_LIBS="-lmp"
24508fi
24509 # SGI IRIX 6.5 MIPSpro C/C++
24510 fi
24511 LIBS="$GOMP_LIBS $LIBS"
24512fi
24513
24514
24515#
24516# Find Posix threads library
24517#
24518THREAD_LIBS=''
24519if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24520
24521 if test "x$PTHREAD_LIBS" = "x"; then
24522 case "${host_cpu}-${host_os}" in
24523 *-freebsd*)
24524
24525
24526
24527ac_ext=c
24528ac_cpp='$CPP $CPPFLAGS'
24529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24531ac_compiler_gnu=$ac_cv_c_compiler_gnu
24532
24533magick_pthread_lib_ok=no
24534
24535LIB=-lc_r
24536save_LIBS="$LIBS"
24537LIBS="$LIBS $LIB"
24538
cristy8b350f62009-11-15 23:12:43 +000024539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024540$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024542/* end confdefs.h. */
24543#include <pthread.h>
24544int
24545main ()
24546{
24547 pthread_t th;
24548 pthread_join(th, 0);
24549 pthread_attr_init(0);
24550 pthread_cleanup_push(0, 0);
24551 pthread_create(0,0,0,0);
24552 pthread_cleanup_pop(0);
24553 ;
24554 return 0;
24555}
24556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024557if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024558 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024559fi
cristy8b350f62009-11-15 23:12:43 +000024560rm -f core conftest.err conftest.$ac_objext \
24561 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024562
cristy8b350f62009-11-15 23:12:43 +000024563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024564$as_echo "${magick_pthread_lib_ok}" >&6; }
24565if test "$magick_pthread_lib_ok" = yes
24566then
24567 PTHREAD_LIBS=-lc_r
24568 :
24569else
24570
24571 :
24572fi
24573
24574LIBS="$save_LIBS"
24575
24576ac_ext=c
24577ac_cpp='$CPP $CPPFLAGS'
24578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24580ac_compiler_gnu=$ac_cv_c_compiler_gnu
24581
24582 ;;
24583 esac
24584 fi
24585
24586 for lib in pthread pthreads; do
24587 if test "x$PTHREAD_LIBS" = "x"; then
24588
24589
24590
24591ac_ext=c
24592ac_cpp='$CPP $CPPFLAGS'
24593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24595ac_compiler_gnu=$ac_cv_c_compiler_gnu
24596
24597magick_pthread_lib_ok=no
24598
24599LIB=-l$lib
24600save_LIBS="$LIBS"
24601LIBS="$LIBS $LIB"
24602
cristy8b350f62009-11-15 23:12:43 +000024603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024604$as_echo_n "checking for the pthreads library $LIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024606/* end confdefs.h. */
24607#include <pthread.h>
24608int
24609main ()
24610{
24611 pthread_t th;
24612 pthread_join(th, 0);
24613 pthread_attr_init(0);
24614 pthread_cleanup_push(0, 0);
24615 pthread_create(0,0,0,0);
24616 pthread_cleanup_pop(0);
24617 ;
24618 return 0;
24619}
24620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024622 magick_pthread_lib_ok=yes
cristy3ed852e2009-09-05 21:47:34 +000024623fi
cristy8b350f62009-11-15 23:12:43 +000024624rm -f core conftest.err conftest.$ac_objext \
24625 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024626
cristy8b350f62009-11-15 23:12:43 +000024627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
cristy3ed852e2009-09-05 21:47:34 +000024628$as_echo "${magick_pthread_lib_ok}" >&6; }
24629if test "$magick_pthread_lib_ok" = yes
24630then
24631 PTHREAD_LIBS=-l$lib
24632 :
24633else
24634
24635 :
24636fi
24637
24638LIBS="$save_LIBS"
24639
24640ac_ext=c
24641ac_cpp='$CPP $CPPFLAGS'
24642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24644ac_compiler_gnu=$ac_cv_c_compiler_gnu
24645
24646
24647 fi
24648 done
24649
24650 THREAD_LIBS="$PTHREAD_LIBS"
24651 LIBS="$LIBS $THREAD_LIBS"
24652fi
24653
24654
24655#
24656# Check for umem.
24657#
24658have_umem='no'
24659UMEM_LIBS=''
24660if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000024661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000024662$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024664$as_echo "" >&6; }
24665 failed=0
24666 passed=0
cristy8b350f62009-11-15 23:12:43 +000024667 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24668if test "x$ac_cv_header_umem_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024669 passed=`expr $passed + 1`
24670else
24671 failed=`expr $failed + 1`
24672fi
24673
24674
cristy8b350f62009-11-15 23:12:43 +000024675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024676$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024677if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024678 $as_echo_n "(cached) " >&6
24679else
24680 ac_check_lib_save_LIBS=$LIBS
24681LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024683/* end confdefs.h. */
24684
24685/* Override any GCC internal prototype to avoid an error.
24686 Use char because int might match the return type of a GCC
24687 builtin and then its argument prototype would still apply. */
24688#ifdef __cplusplus
24689extern "C"
24690#endif
24691char umem_alloc ();
24692int
24693main ()
24694{
24695return umem_alloc ();
24696 ;
24697 return 0;
24698}
24699_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024701 ac_cv_lib_umem_umem_alloc=yes
24702else
cristy8b350f62009-11-15 23:12:43 +000024703 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000024704fi
cristy8b350f62009-11-15 23:12:43 +000024705rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024707LIBS=$ac_check_lib_save_LIBS
24708fi
cristy8b350f62009-11-15 23:12:43 +000024709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024710$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024711if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024712 passed=`expr $passed + 1`
24713else
24714 failed=`expr $failed + 1`
24715fi
24716
cristy8b350f62009-11-15 23:12:43 +000024717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000024718$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024719if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024720 $as_echo_n "(cached) " >&6
24721else
24722 ac_check_lib_save_LIBS=$LIBS
24723LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024725/* end confdefs.h. */
24726
24727/* Override any GCC internal prototype to avoid an error.
24728 Use char because int might match the return type of a GCC
24729 builtin and then its argument prototype would still apply. */
24730#ifdef __cplusplus
24731extern "C"
24732#endif
24733char umem_free ();
24734int
24735main ()
24736{
24737return umem_free ();
24738 ;
24739 return 0;
24740}
24741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024742if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024743 ac_cv_lib_umem_umem_free=yes
24744else
cristy8b350f62009-11-15 23:12:43 +000024745 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000024746fi
cristy8b350f62009-11-15 23:12:43 +000024747rm -f core conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024749LIBS=$ac_check_lib_save_LIBS
24750fi
cristy8b350f62009-11-15 23:12:43 +000024751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000024752$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024753if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024754 passed=`expr $passed + 1`
24755else
24756 failed=`expr $failed + 1`
24757fi
24758
cristy8b350f62009-11-15 23:12:43 +000024759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000024760$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24761 if test $passed -gt 0; then
24762 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000024763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000024764$as_echo "no -- some components failed test" >&6; }
24765 have_umem='no (failed tests)'
24766 else
24767 UMEM_LIBS='-lumem'
24768 LIBS="$UMEM_LIBS $LIBS"
24769
cristy8b350f62009-11-15 23:12:43 +000024770$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024771
cristy8b350f62009-11-15 23:12:43 +000024772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000024773$as_echo "yes" >&6; }
24774 have_umem='yes'
24775 fi
24776 else
cristy8b350f62009-11-15 23:12:43 +000024777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024778$as_echo "no" >&6; }
24779 fi
24780fi
24781 if test "$have_umem" = 'yes'; then
24782 HasUMEM_TRUE=
24783 HasUMEM_FALSE='#'
24784else
24785 HasUMEM_TRUE='#'
24786 HasUMEM_FALSE=
24787fi
24788
24789
24790
24791#
24792# Add support for ccmalloc memory debugging library if requested
24793#
24794have_ccmalloc='no'
24795CCMALLOC_LIBS=''
24796if test "$enable_ccmalloc" = 'yes'; then
24797 # Extract the first word of "ccmalloc", so it can be a program name with args.
24798set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024800$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024801if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024802 $as_echo_n "(cached) " >&6
24803else
24804 case $CCMALLOCDelegate in
24805 [\\/]* | ?:[\\/]*)
24806 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24807 ;;
24808 *)
24809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24810for as_dir in $PATH
24811do
24812 IFS=$as_save_IFS
24813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24816 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000024817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024818 break 2
24819 fi
24820done
cristy8b350f62009-11-15 23:12:43 +000024821 done
cristy3ed852e2009-09-05 21:47:34 +000024822IFS=$as_save_IFS
24823
24824 ;;
24825esac
24826fi
24827CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24828if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000024829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000024830$as_echo "$CCMALLOCDelegate" >&6; }
24831else
cristy8b350f62009-11-15 23:12:43 +000024832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024833$as_echo "no" >&6; }
24834fi
24835
24836
24837 if test -n "$CCMALLOCDelegate"; then
24838 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24839 OLIBS="$LIBS"
24840 # Assume that gcc is used with ccmalloc.
24841 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000024842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024843$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024844if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024845 $as_echo_n "(cached) " >&6
24846else
24847 ac_check_lib_save_LIBS=$LIBS
24848LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024850/* end confdefs.h. */
24851
24852/* Override any GCC internal prototype to avoid an error.
24853 Use char because int might match the return type of a GCC
24854 builtin and then its argument prototype would still apply. */
24855#ifdef __cplusplus
24856extern "C"
24857#endif
24858char ccmalloc_malloc ();
24859int
24860main ()
24861{
24862return ccmalloc_malloc ();
24863 ;
24864 return 0;
24865}
24866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024868 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24869else
cristy8b350f62009-11-15 23:12:43 +000024870 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000024871fi
cristy8b350f62009-11-15 23:12:43 +000024872rm -f core conftest.err conftest.$ac_objext \
24873 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024874LIBS=$ac_check_lib_save_LIBS
24875fi
cristy8b350f62009-11-15 23:12:43 +000024876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024877$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024878if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24880fi
24881
24882 if test -n "$CCMALLOC_LIBS"; then
24883 LIBS="$OLIBS"
24884 LIBS="$LIBS $CCMALLOC_LIBS"
24885 have_ccmalloc='yes'
24886 else
24887 LIBS="$OLIBS"
24888 fi
24889 fi
24890fi
24891
24892#
24893# Add support for efence memory debugging library if requested
24894#
24895if test "$enable_efence" = 'yes'; then
24896 EFENCE_LIBS='-lefence'
24897 LIBS="$EFENCE_LIBS $LIBS"
24898fi
24899
cristy3ed852e2009-09-05 21:47:34 +000024900
24901#
24902# Check for BZLIB
24903#
24904
24905
24906# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000024907if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 withval=$with_bzlib; with_bzlib=$withval
24909else
24910 with_bzlib='yes'
24911fi
24912
24913
24914if test "$with_bzlib" != 'yes'; then
24915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24916fi
24917
24918have_bzlib='no'
24919if test "$with_bzlib" != 'no'; then
24920 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000024921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000024922$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000024924$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo "" >&6; }
24927 failed=0
24928 passed=0
24929 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000024930 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24931if test "x$ac_cv_header_bzlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024932 passed=`expr $passed + 1`
24933else
24934 failed=`expr $failed + 1`
24935fi
24936
24937
cristy8b350f62009-11-15 23:12:43 +000024938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024939$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024940if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024941 $as_echo_n "(cached) " >&6
24942else
24943 ac_check_lib_save_LIBS=$LIBS
24944LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024946/* end confdefs.h. */
24947
24948/* Override any GCC internal prototype to avoid an error.
24949 Use char because int might match the return type of a GCC
24950 builtin and then its argument prototype would still apply. */
24951#ifdef __cplusplus
24952extern "C"
24953#endif
24954char BZ2_bzDecompress ();
24955int
24956main ()
24957{
24958return BZ2_bzDecompress ();
24959 ;
24960 return 0;
24961}
24962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024964 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24965else
cristy8b350f62009-11-15 23:12:43 +000024966 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000024967fi
cristy8b350f62009-11-15 23:12:43 +000024968rm -f core conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024970LIBS=$ac_check_lib_save_LIBS
24971fi
cristy8b350f62009-11-15 23:12:43 +000024972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000024973$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000024974if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024975 found_libbz=`expr $found_libbz + 1`
24976fi
24977
24978 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000024979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000024980$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024981if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 $as_echo_n "(cached) " >&6
24983else
24984 ac_check_lib_save_LIBS=$LIBS
24985LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024987/* end confdefs.h. */
24988
24989/* Override any GCC internal prototype to avoid an error.
24990 Use char because int might match the return type of a GCC
24991 builtin and then its argument prototype would still apply. */
24992#ifdef __cplusplus
24993extern "C"
24994#endif
24995char _imp__BZ2_decompress ();
24996int
24997main ()
24998{
24999return _imp__BZ2_decompress ();
25000 ;
25001 return 0;
25002}
25003_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025004if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25006else
cristy8b350f62009-11-15 23:12:43 +000025007 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025008fi
cristy8b350f62009-11-15 23:12:43 +000025009rm -f core conftest.err conftest.$ac_objext \
25010 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025011LIBS=$ac_check_lib_save_LIBS
25012fi
cristy8b350f62009-11-15 23:12:43 +000025013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025014$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025015if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025016 found_libbz=`expr $found_libbz + 1`
25017fi
25018
25019 fi
25020 if test $found_libbz -gt 0; then
25021 passed=`expr $passed + 1`
25022 else
25023 failed=`expr $failed + 1`
25024 fi
cristy8b350f62009-11-15 23:12:43 +000025025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025026$as_echo_n "checking if BZLIB package is complete... " >&6; }
25027 if test $passed -gt 0; then
25028 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025030$as_echo "no -- some components failed test" >&6; }
25031 have_bzlib='no (failed tests)'
25032 else
25033 BZLIB_LIBS='-lbz2'
25034 LIBS="$BZLIB_LIBS $LIBS"
25035
cristy8b350f62009-11-15 23:12:43 +000025036$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025037
cristy8b350f62009-11-15 23:12:43 +000025038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025039$as_echo "yes" >&6; }
25040 have_bzlib='yes'
25041 fi
25042 else
cristy8b350f62009-11-15 23:12:43 +000025043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025044$as_echo "no" >&6; }
25045 fi
25046fi
25047 if test "$have_bzlib" = 'yes'; then
25048 BZLIB_DELEGATE_TRUE=
25049 BZLIB_DELEGATE_FALSE='#'
25050else
25051 BZLIB_DELEGATE_TRUE='#'
25052 BZLIB_DELEGATE_FALSE=
25053fi
25054
25055
25056
25057#
25058# Find the X11 include and library directories.
25059#
25060IPC_LIBS=''
25061X11_LIBS=''
25062XEXT_LIBS=''
25063XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025065$as_echo_n "checking for X... " >&6; }
25066
25067
25068# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025069if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025070 withval=$with_x;
25071fi
25072
25073# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25074if test "x$with_x" = xno; then
25075 # The user explicitly disabled X.
25076 have_x=disabled
25077else
25078 case $x_includes,$x_libraries in #(
cristy8b350f62009-11-15 23:12:43 +000025079 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025081 $as_echo_n "(cached) " >&6
25082else
25083 # One or both of the vars are not set, and there is no cached value.
25084ac_x_includes=no ac_x_libraries=no
25085rm -f -r conftest.dir
25086if mkdir conftest.dir; then
25087 cd conftest.dir
25088 cat >Imakefile <<'_ACEOF'
25089incroot:
25090 @echo incroot='${INCROOT}'
25091usrlibdir:
25092 @echo usrlibdir='${USRLIBDIR}'
25093libdir:
25094 @echo libdir='${LIBDIR}'
25095_ACEOF
25096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25098 for ac_var in incroot usrlibdir libdir; do
25099 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25100 done
25101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25102 for ac_extension in a so sl dylib la dll; do
25103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25105 ac_im_usrlibdir=$ac_im_libdir; break
25106 fi
25107 done
25108 # Screen out bogus values from the imake configuration. They are
25109 # bogus both because they are the default anyway, and because
25110 # using them would break gcc on systems where it needs fixed includes.
25111 case $ac_im_incroot in
25112 /usr/include) ac_x_includes= ;;
25113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25114 esac
25115 case $ac_im_usrlibdir in
25116 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25118 esac
25119 fi
25120 cd ..
25121 rm -f -r conftest.dir
25122fi
25123
25124# Standard set of common directories for X headers.
25125# Check X11 before X11Rn because it is often a symlink to the current release.
25126ac_x_header_dirs='
25127/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025128/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025129/usr/X11R6/include
25130/usr/X11R5/include
25131/usr/X11R4/include
25132
25133/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025134/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025135/usr/include/X11R6
25136/usr/include/X11R5
25137/usr/include/X11R4
25138
25139/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025140/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025141/usr/local/X11R6/include
25142/usr/local/X11R5/include
25143/usr/local/X11R4/include
25144
25145/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025146/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025147/usr/local/include/X11R6
25148/usr/local/include/X11R5
25149/usr/local/include/X11R4
25150
25151/usr/X386/include
25152/usr/x386/include
25153/usr/XFree86/include/X11
25154
25155/usr/include
25156/usr/local/include
25157/usr/unsupported/include
25158/usr/athena/include
25159/usr/local/x11r5/include
25160/usr/lpp/Xamples/include
25161
25162/usr/openwin/include
25163/usr/openwin/share/include'
25164
25165if test "$ac_x_includes" = no; then
25166 # Guess where to find include files, by looking for Xlib.h.
25167 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025169/* end confdefs.h. */
25170#include <X11/Xlib.h>
25171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025172if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025173 # We can compile using X headers with no special include directory.
25174ac_x_includes=
25175else
cristyc7083c12009-10-14 03:16:55 +000025176 for ac_dir in $ac_x_header_dirs; do
25177 if test -r "$ac_dir/X11/Xlib.h"; then
25178 ac_x_includes=$ac_dir
25179 break
25180 fi
25181done
25182fi
cristyc7083c12009-10-14 03:16:55 +000025183rm -f conftest.err conftest.$ac_ext
25184fi # $ac_x_includes = no
25185
25186if test "$ac_x_libraries" = no; then
25187 # Check for the libraries.
25188 # See if we find them without any special options.
25189 # Don't add to $LIBS permanently.
25190 ac_save_LIBS=$LIBS
25191 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025193/* end confdefs.h. */
25194#include <X11/Xlib.h>
25195int
25196main ()
25197{
25198XrmInitialize ()
25199 ;
25200 return 0;
25201}
25202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025203if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025204 LIBS=$ac_save_LIBS
25205# We can link X programs with no special library path.
25206ac_x_libraries=
25207else
cristy8b350f62009-11-15 23:12:43 +000025208 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025209for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25210do
25211 # Don't even attempt the hair of trying to link an X program!
25212 for ac_extension in a so sl dylib la dll; do
25213 if test -r "$ac_dir/libX11.$ac_extension"; then
25214 ac_x_libraries=$ac_dir
25215 break 2
25216 fi
25217 done
25218done
25219fi
cristy8b350f62009-11-15 23:12:43 +000025220rm -f core conftest.err conftest.$ac_objext \
25221 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025222fi # $ac_x_libraries = no
25223
25224case $ac_x_includes,$ac_x_libraries in #(
25225 no,* | *,no | *\'*)
25226 # Didn't find X, or a directory has "'" in its name.
25227 ac_cv_have_x="have_x=no";; #(
25228 *)
25229 # Record where we found X for the cache.
25230 ac_cv_have_x="have_x=yes\
25231 ac_x_includes='$ac_x_includes'\
25232 ac_x_libraries='$ac_x_libraries'"
25233esac
25234fi
25235;; #(
25236 *) have_x=yes;;
25237 esac
25238 eval "$ac_cv_have_x"
25239fi # $with_x != no
25240
25241if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025243$as_echo "$have_x" >&6; }
25244 no_x=yes
25245else
25246 # If each of the values was on the command line, it overrides each guess.
25247 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25248 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25249 # Update the cache value to reflect the command line values.
25250 ac_cv_have_x="have_x=yes\
25251 ac_x_includes='$x_includes'\
25252 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025254$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25255fi
25256
cristy3ed852e2009-09-05 21:47:34 +000025257if test "$no_x" = yes; then
25258 # Not all programs may use this symbol, but it does not hurt to define it.
25259
cristy8b350f62009-11-15 23:12:43 +000025260$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025261
25262 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25263else
25264 if test -n "$x_includes"; then
25265 X_CFLAGS="$X_CFLAGS -I$x_includes"
25266 fi
25267
25268 # It would also be nice to do this for all -L options, not just this one.
25269 if test -n "$x_libraries"; then
25270 X_LIBS="$X_LIBS -L$x_libraries"
25271 # For Solaris; some versions of Sun CC require a space after -R and
25272 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025274$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25275 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25276 ac_xsave_c_werror_flag=$ac_c_werror_flag
25277 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025279/* end confdefs.h. */
25280
25281int
25282main ()
25283{
25284
25285 ;
25286 return 0;
25287}
25288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025289if ac_fn_c_try_link "$LINENO"; then :
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo "no" >&6; }
25292 X_LIBS="$X_LIBS -R$x_libraries"
25293else
cristy8b350f62009-11-15 23:12:43 +000025294 LIBS="$ac_xsave_LIBS -R $x_libraries"
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025296/* end confdefs.h. */
25297
25298int
25299main ()
25300{
25301
25302 ;
25303 return 0;
25304}
25305_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025306if ac_fn_c_try_link "$LINENO"; then :
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025308$as_echo "yes" >&6; }
25309 X_LIBS="$X_LIBS -R $x_libraries"
25310else
cristy8b350f62009-11-15 23:12:43 +000025311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025312$as_echo "neither works" >&6; }
25313fi
cristy8b350f62009-11-15 23:12:43 +000025314rm -f core conftest.err conftest.$ac_objext \
25315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025316fi
cristy8b350f62009-11-15 23:12:43 +000025317rm -f core conftest.err conftest.$ac_objext \
25318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025319 ac_c_werror_flag=$ac_xsave_c_werror_flag
25320 LIBS=$ac_xsave_LIBS
25321 fi
25322
25323 # Check for system-dependent libraries X programs must link with.
25324 # Do this before checking for the system-independent R6 libraries
25325 # (-lICE), since we may need -lsocket or whatever for X linking.
25326
25327 if test "$ISC" = yes; then
25328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25329 else
25330 # Martyn Johnson says this is needed for Ultrix, if the X
25331 # libraries were built with DECnet support. And Karl Berry says
25332 # the Alpha needs dnet_stub (dnet does not exist).
25333 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025335/* end confdefs.h. */
25336
25337/* Override any GCC internal prototype to avoid an error.
25338 Use char because int might match the return type of a GCC
25339 builtin and then its argument prototype would still apply. */
25340#ifdef __cplusplus
25341extern "C"
25342#endif
25343char XOpenDisplay ();
25344int
25345main ()
25346{
25347return XOpenDisplay ();
25348 ;
25349 return 0;
25350}
25351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025353
cristy8b350f62009-11-15 23:12:43 +000025354else
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025356$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025357if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025358 $as_echo_n "(cached) " >&6
25359else
25360 ac_check_lib_save_LIBS=$LIBS
25361LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025363/* end confdefs.h. */
25364
25365/* Override any GCC internal prototype to avoid an error.
25366 Use char because int might match the return type of a GCC
25367 builtin and then its argument prototype would still apply. */
25368#ifdef __cplusplus
25369extern "C"
25370#endif
25371char dnet_ntoa ();
25372int
25373main ()
25374{
25375return dnet_ntoa ();
25376 ;
25377 return 0;
25378}
25379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025380if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025381 ac_cv_lib_dnet_dnet_ntoa=yes
25382else
cristy8b350f62009-11-15 23:12:43 +000025383 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025384fi
cristy8b350f62009-11-15 23:12:43 +000025385rm -f core conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025387LIBS=$ac_check_lib_save_LIBS
25388fi
cristy8b350f62009-11-15 23:12:43 +000025389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025390$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025391if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25393fi
25394
25395 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000025396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025398if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025399 $as_echo_n "(cached) " >&6
25400else
25401 ac_check_lib_save_LIBS=$LIBS
25402LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025404/* end confdefs.h. */
25405
25406/* Override any GCC internal prototype to avoid an error.
25407 Use char because int might match the return type of a GCC
25408 builtin and then its argument prototype would still apply. */
25409#ifdef __cplusplus
25410extern "C"
25411#endif
25412char dnet_ntoa ();
25413int
25414main ()
25415{
25416return dnet_ntoa ();
25417 ;
25418 return 0;
25419}
25420_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025421if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25423else
cristy8b350f62009-11-15 23:12:43 +000025424 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025425fi
cristy8b350f62009-11-15 23:12:43 +000025426rm -f core conftest.err conftest.$ac_objext \
25427 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025428LIBS=$ac_check_lib_save_LIBS
25429fi
cristy8b350f62009-11-15 23:12:43 +000025430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025431$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025432if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25434fi
25435
25436 fi
25437fi
cristy8b350f62009-11-15 23:12:43 +000025438rm -f core conftest.err conftest.$ac_objext \
25439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025440 LIBS="$ac_xsave_LIBS"
25441
25442 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25443 # to get the SysV transport functions.
25444 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25445 # needs -lnsl.
25446 # The nsl library prevents programs from opening the X display
25447 # on Irix 5.2, according to T.E. Dickey.
25448 # The functions gethostbyname, getservbyname, and inet_addr are
25449 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000025450 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25451if test "x$ac_cv_func_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025452
cristy3ed852e2009-09-05 21:47:34 +000025453fi
25454
cristy3ed852e2009-09-05 21:47:34 +000025455 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000025457$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025458if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025459 $as_echo_n "(cached) " >&6
25460else
25461 ac_check_lib_save_LIBS=$LIBS
25462LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025464/* end confdefs.h. */
25465
25466/* Override any GCC internal prototype to avoid an error.
25467 Use char because int might match the return type of a GCC
25468 builtin and then its argument prototype would still apply. */
25469#ifdef __cplusplus
25470extern "C"
25471#endif
25472char gethostbyname ();
25473int
25474main ()
25475{
25476return gethostbyname ();
25477 ;
25478 return 0;
25479}
25480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025481if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025482 ac_cv_lib_nsl_gethostbyname=yes
25483else
cristy8b350f62009-11-15 23:12:43 +000025484 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025485fi
cristy8b350f62009-11-15 23:12:43 +000025486rm -f core conftest.err conftest.$ac_objext \
25487 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025488LIBS=$ac_check_lib_save_LIBS
25489fi
cristy8b350f62009-11-15 23:12:43 +000025490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025491$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025492if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025493 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25494fi
25495
25496 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000025497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000025498$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025499if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025500 $as_echo_n "(cached) " >&6
25501else
25502 ac_check_lib_save_LIBS=$LIBS
25503LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025505/* end confdefs.h. */
25506
25507/* Override any GCC internal prototype to avoid an error.
25508 Use char because int might match the return type of a GCC
25509 builtin and then its argument prototype would still apply. */
25510#ifdef __cplusplus
25511extern "C"
25512#endif
25513char gethostbyname ();
25514int
25515main ()
25516{
25517return gethostbyname ();
25518 ;
25519 return 0;
25520}
25521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025523 ac_cv_lib_bsd_gethostbyname=yes
25524else
cristy8b350f62009-11-15 23:12:43 +000025525 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000025526fi
cristy8b350f62009-11-15 23:12:43 +000025527rm -f core conftest.err conftest.$ac_objext \
25528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025529LIBS=$ac_check_lib_save_LIBS
25530fi
cristy8b350f62009-11-15 23:12:43 +000025531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000025532$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025533if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025534 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25535fi
25536
25537 fi
25538 fi
25539
25540 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25541 # socket/setsockopt and other routines are undefined under SCO ODT
25542 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25543 # on later versions), says Simon Leinen: it contains gethostby*
25544 # variants that don't use the name server (or something). -lsocket
25545 # must be given before -lnsl if both are needed. We assume that
25546 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000025547 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25548if test "x$ac_cv_func_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025549
cristy3ed852e2009-09-05 21:47:34 +000025550fi
25551
cristy3ed852e2009-09-05 21:47:34 +000025552 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000025553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000025554$as_echo_n "checking for connect in -lsocket... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025555if test "${ac_cv_lib_socket_connect+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025556 $as_echo_n "(cached) " >&6
25557else
25558 ac_check_lib_save_LIBS=$LIBS
25559LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025561/* end confdefs.h. */
25562
25563/* Override any GCC internal prototype to avoid an error.
25564 Use char because int might match the return type of a GCC
25565 builtin and then its argument prototype would still apply. */
25566#ifdef __cplusplus
25567extern "C"
25568#endif
25569char connect ();
25570int
25571main ()
25572{
25573return connect ();
25574 ;
25575 return 0;
25576}
25577_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025578if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025579 ac_cv_lib_socket_connect=yes
25580else
cristy8b350f62009-11-15 23:12:43 +000025581 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000025582fi
cristy8b350f62009-11-15 23:12:43 +000025583rm -f core conftest.err conftest.$ac_objext \
25584 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025585LIBS=$ac_check_lib_save_LIBS
25586fi
cristy8b350f62009-11-15 23:12:43 +000025587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000025588$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025589if test "x$ac_cv_lib_socket_connect" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025590 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25591fi
25592
25593 fi
25594
25595 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000025596 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25597if test "x$ac_cv_func_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025598
cristy3ed852e2009-09-05 21:47:34 +000025599fi
25600
cristy3ed852e2009-09-05 21:47:34 +000025601 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000025602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000025603$as_echo_n "checking for remove in -lposix... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025604if test "${ac_cv_lib_posix_remove+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025605 $as_echo_n "(cached) " >&6
25606else
25607 ac_check_lib_save_LIBS=$LIBS
25608LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025610/* end confdefs.h. */
25611
25612/* Override any GCC internal prototype to avoid an error.
25613 Use char because int might match the return type of a GCC
25614 builtin and then its argument prototype would still apply. */
25615#ifdef __cplusplus
25616extern "C"
25617#endif
25618char remove ();
25619int
25620main ()
25621{
25622return remove ();
25623 ;
25624 return 0;
25625}
25626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025628 ac_cv_lib_posix_remove=yes
25629else
cristy8b350f62009-11-15 23:12:43 +000025630 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000025631fi
cristy8b350f62009-11-15 23:12:43 +000025632rm -f core conftest.err conftest.$ac_objext \
25633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025634LIBS=$ac_check_lib_save_LIBS
25635fi
cristy8b350f62009-11-15 23:12:43 +000025636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025638if test "x$ac_cv_lib_posix_remove" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25640fi
25641
25642 fi
25643
25644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000025645 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25646if test "x$ac_cv_func_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025647
cristy3ed852e2009-09-05 21:47:34 +000025648fi
25649
cristy3ed852e2009-09-05 21:47:34 +000025650 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000025651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025652$as_echo_n "checking for shmat in -lipc... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025653if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025654 $as_echo_n "(cached) " >&6
25655else
25656 ac_check_lib_save_LIBS=$LIBS
25657LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025659/* end confdefs.h. */
25660
25661/* Override any GCC internal prototype to avoid an error.
25662 Use char because int might match the return type of a GCC
25663 builtin and then its argument prototype would still apply. */
25664#ifdef __cplusplus
25665extern "C"
25666#endif
25667char shmat ();
25668int
25669main ()
25670{
25671return shmat ();
25672 ;
25673 return 0;
25674}
25675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025676if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025677 ac_cv_lib_ipc_shmat=yes
25678else
cristy8b350f62009-11-15 23:12:43 +000025679 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000025680fi
cristy8b350f62009-11-15 23:12:43 +000025681rm -f core conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025683LIBS=$ac_check_lib_save_LIBS
25684fi
cristy8b350f62009-11-15 23:12:43 +000025685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000025686$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025687if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25689fi
25690
25691 fi
25692 fi
25693
25694 # Check for libraries that X11R6 Xt/Xaw programs need.
25695 ac_save_LDFLAGS=$LDFLAGS
25696 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25697 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25698 # check for ICE first), but we must link in the order -lSM -lICE or
25699 # we get undefined symbols. So assume we have SM if we have ICE.
25700 # These have to be linked with before -lX11, unlike the other
25701 # libraries we check for below, so use a different variable.
25702 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000025703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000025704$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025705if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025706 $as_echo_n "(cached) " >&6
25707else
25708 ac_check_lib_save_LIBS=$LIBS
25709LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025711/* end confdefs.h. */
25712
25713/* Override any GCC internal prototype to avoid an error.
25714 Use char because int might match the return type of a GCC
25715 builtin and then its argument prototype would still apply. */
25716#ifdef __cplusplus
25717extern "C"
25718#endif
25719char IceConnectionNumber ();
25720int
25721main ()
25722{
25723return IceConnectionNumber ();
25724 ;
25725 return 0;
25726}
25727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025728if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025729 ac_cv_lib_ICE_IceConnectionNumber=yes
25730else
cristy8b350f62009-11-15 23:12:43 +000025731 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000025732fi
cristy8b350f62009-11-15 23:12:43 +000025733rm -f core conftest.err conftest.$ac_objext \
25734 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025735LIBS=$ac_check_lib_save_LIBS
25736fi
cristy8b350f62009-11-15 23:12:43 +000025737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000025738$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025739if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025740 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25741fi
25742
25743 LDFLAGS=$ac_save_LDFLAGS
25744
25745fi
25746
25747if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025749$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000025751$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo "" >&6; }
25754 LDFLAGS="$LDFLAGS $X_LIBS"
25755 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25756 LIBS="$X11_LIBS $LIBS"
25757 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25758
25759
cristy8b350f62009-11-15 23:12:43 +000025760$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025761
25762 #
25763 # Check for X11 shared memory extension
25764 #
25765 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000025766 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25767if test "x$ac_cv_func_shmctl" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025768 have_shmctl='yes'
25769fi
25770
25771 if test "$have_shmctl" != 'yes'; then
25772 PERSIST_LIBS=$LIBS
25773 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000025774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025775/* end confdefs.h. */
25776
25777/* Override any GCC internal prototype to avoid an error.
25778 Use char because int might match the return type of a GCC
25779 builtin and then its argument prototype would still apply. */
25780#ifdef __cplusplus
25781extern "C"
25782#endif
25783char shmctl ();
25784int
25785main ()
25786{
25787return shmctl ();
25788 ;
25789 return 0;
25790}
25791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025792if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025793 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000025794fi
cristy8b350f62009-11-15 23:12:43 +000025795rm -f core conftest.err conftest.$ac_objext \
25796 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025797 LIBS=$PERSIST_LIBS
25798 fi
25799
25800 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025802$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025803if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025804 $as_echo_n "(cached) " >&6
25805else
25806 ac_check_lib_save_LIBS=$LIBS
25807LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025809/* end confdefs.h. */
25810
25811/* Override any GCC internal prototype to avoid an error.
25812 Use char because int might match the return type of a GCC
25813 builtin and then its argument prototype would still apply. */
25814#ifdef __cplusplus
25815extern "C"
25816#endif
25817char XShmAttach ();
25818int
25819main ()
25820{
25821return XShmAttach ();
25822 ;
25823 return 0;
25824}
25825_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025826if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025827 ac_cv_lib_Xext_XShmAttach=yes
25828else
cristy8b350f62009-11-15 23:12:43 +000025829 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000025830fi
cristy8b350f62009-11-15 23:12:43 +000025831rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025833LIBS=$ac_check_lib_save_LIBS
25834fi
cristy8b350f62009-11-15 23:12:43 +000025835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000025836$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025837if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025838 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025839$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025840
25841fi
25842
25843 fi
25844
25845 #
25846 # Check for X11 shape extension
25847 #
cristy8b350f62009-11-15 23:12:43 +000025848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025849$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025850if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025851 $as_echo_n "(cached) " >&6
25852else
25853 ac_check_lib_save_LIBS=$LIBS
25854LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025856/* end confdefs.h. */
25857
25858/* Override any GCC internal prototype to avoid an error.
25859 Use char because int might match the return type of a GCC
25860 builtin and then its argument prototype would still apply. */
25861#ifdef __cplusplus
25862extern "C"
25863#endif
25864char XShapeCombineMask ();
25865int
25866main ()
25867{
25868return XShapeCombineMask ();
25869 ;
25870 return 0;
25871}
25872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025873if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025874 ac_cv_lib_Xext_XShapeCombineMask=yes
25875else
cristy8b350f62009-11-15 23:12:43 +000025876 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000025877fi
cristy8b350f62009-11-15 23:12:43 +000025878rm -f core conftest.err conftest.$ac_objext \
25879 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025880LIBS=$ac_check_lib_save_LIBS
25881fi
cristy8b350f62009-11-15 23:12:43 +000025882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000025883$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025884if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025885 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000025886$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025887
25888fi
25889
cristy8b350f62009-11-15 23:12:43 +000025890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000025891$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025892if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025893 $as_echo_n "(cached) " >&6
25894else
25895 ac_check_lib_save_LIBS=$LIBS
25896LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025898/* end confdefs.h. */
25899
25900/* Override any GCC internal prototype to avoid an error.
25901 Use char because int might match the return type of a GCC
25902 builtin and then its argument prototype would still apply. */
25903#ifdef __cplusplus
25904extern "C"
25905#endif
25906char XtSetEventDispatcher ();
25907int
25908main ()
25909{
25910return XtSetEventDispatcher ();
25911 ;
25912 return 0;
25913}
25914_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025915if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025916 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000025919fi
cristy8b350f62009-11-15 23:12:43 +000025920rm -f core conftest.err conftest.$ac_objext \
25921 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922LIBS=$ac_check_lib_save_LIBS
25923fi
cristy8b350f62009-11-15 23:12:43 +000025924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000025925$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025926if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025927 XT_LIBS='-lXt'
25928fi
25929
25930 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25931fi
25932if test "$no_x" != 'yes'; then
25933 have_x='yes'
25934else
25935 have_x='no'
25936fi
25937 if test "$have_x" = 'yes'; then
25938 X11_DELEGATE_TRUE=
25939 X11_DELEGATE_FALSE='#'
25940else
25941 X11_DELEGATE_TRUE='#'
25942 X11_DELEGATE_FALSE=
25943fi
25944
25945
25946
25947
25948
25949#
25950# Check for ZLIB
25951#
25952
25953# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000025954if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025955 withval=$with_zlib; with_zlib=$withval
25956else
25957 with_zlib='yes'
25958fi
25959
25960
25961if test "$with_zlib" != 'yes'; then
25962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25963fi
25964
25965have_zlib='no'
25966ZLIB_LIBS=''
25967if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025969$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025973$as_echo "" >&6; }
25974 ZLIB_LIBS=''
25975 failed=0
25976 passed=0
cristy8b350f62009-11-15 23:12:43 +000025977 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25978if test "x$ac_cv_header_zconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025979 passed=`expr $passed + 1`
25980else
25981 failed=`expr $failed + 1`
25982fi
25983
25984
cristy8b350f62009-11-15 23:12:43 +000025985 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25986if test "x$ac_cv_header_zlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 passed=`expr $passed + 1`
25988else
25989 failed=`expr $failed + 1`
25990fi
25991
25992
cristy8b350f62009-11-15 23:12:43 +000025993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000025994$as_echo_n "checking for compress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025995if test "${ac_cv_lib_z_compress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025996 $as_echo_n "(cached) " >&6
25997else
25998 ac_check_lib_save_LIBS=$LIBS
25999LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026001/* end confdefs.h. */
26002
26003/* Override any GCC internal prototype to avoid an error.
26004 Use char because int might match the return type of a GCC
26005 builtin and then its argument prototype would still apply. */
26006#ifdef __cplusplus
26007extern "C"
26008#endif
26009char compress ();
26010int
26011main ()
26012{
26013return compress ();
26014 ;
26015 return 0;
26016}
26017_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026018if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026019 ac_cv_lib_z_compress=yes
26020else
cristy8b350f62009-11-15 23:12:43 +000026021 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026022fi
cristy8b350f62009-11-15 23:12:43 +000026023rm -f core conftest.err conftest.$ac_objext \
26024 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026025LIBS=$ac_check_lib_save_LIBS
26026fi
cristy8b350f62009-11-15 23:12:43 +000026027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo "$ac_cv_lib_z_compress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026029if test "x$ac_cv_lib_z_compress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026030 passed=`expr $passed + 1`
26031else
26032 failed=`expr $failed + 1`
26033fi
26034
cristy8b350f62009-11-15 23:12:43 +000026035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026036$as_echo_n "checking for uncompress in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026037if test "${ac_cv_lib_z_uncompress+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026038 $as_echo_n "(cached) " >&6
26039else
26040 ac_check_lib_save_LIBS=$LIBS
26041LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026043/* end confdefs.h. */
26044
26045/* Override any GCC internal prototype to avoid an error.
26046 Use char because int might match the return type of a GCC
26047 builtin and then its argument prototype would still apply. */
26048#ifdef __cplusplus
26049extern "C"
26050#endif
26051char uncompress ();
26052int
26053main ()
26054{
26055return uncompress ();
26056 ;
26057 return 0;
26058}
26059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026061 ac_cv_lib_z_uncompress=yes
26062else
cristy8b350f62009-11-15 23:12:43 +000026063 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026064fi
cristy8b350f62009-11-15 23:12:43 +000026065rm -f core conftest.err conftest.$ac_objext \
26066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026067LIBS=$ac_check_lib_save_LIBS
26068fi
cristy8b350f62009-11-15 23:12:43 +000026069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026070$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026071if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026072 passed=`expr $passed + 1`
26073else
26074 failed=`expr $failed + 1`
26075fi
26076
cristy8b350f62009-11-15 23:12:43 +000026077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026078$as_echo_n "checking for deflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026079if test "${ac_cv_lib_z_deflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026080 $as_echo_n "(cached) " >&6
26081else
26082 ac_check_lib_save_LIBS=$LIBS
26083LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026085/* end confdefs.h. */
26086
26087/* Override any GCC internal prototype to avoid an error.
26088 Use char because int might match the return type of a GCC
26089 builtin and then its argument prototype would still apply. */
26090#ifdef __cplusplus
26091extern "C"
26092#endif
26093char deflate ();
26094int
26095main ()
26096{
26097return deflate ();
26098 ;
26099 return 0;
26100}
26101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026103 ac_cv_lib_z_deflate=yes
26104else
cristy8b350f62009-11-15 23:12:43 +000026105 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026106fi
cristy8b350f62009-11-15 23:12:43 +000026107rm -f core conftest.err conftest.$ac_objext \
26108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026109LIBS=$ac_check_lib_save_LIBS
26110fi
cristy8b350f62009-11-15 23:12:43 +000026111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026112$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026113if test "x$ac_cv_lib_z_deflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026114 passed=`expr $passed + 1`
26115else
26116 failed=`expr $failed + 1`
26117fi
26118
cristy8b350f62009-11-15 23:12:43 +000026119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026120$as_echo_n "checking for inflate in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026121if test "${ac_cv_lib_z_inflate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026122 $as_echo_n "(cached) " >&6
26123else
26124 ac_check_lib_save_LIBS=$LIBS
26125LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026127/* end confdefs.h. */
26128
26129/* Override any GCC internal prototype to avoid an error.
26130 Use char because int might match the return type of a GCC
26131 builtin and then its argument prototype would still apply. */
26132#ifdef __cplusplus
26133extern "C"
26134#endif
26135char inflate ();
26136int
26137main ()
26138{
26139return inflate ();
26140 ;
26141 return 0;
26142}
26143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026144if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026145 ac_cv_lib_z_inflate=yes
26146else
cristy8b350f62009-11-15 23:12:43 +000026147 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026148fi
cristy8b350f62009-11-15 23:12:43 +000026149rm -f core conftest.err conftest.$ac_objext \
26150 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026151LIBS=$ac_check_lib_save_LIBS
26152fi
cristy8b350f62009-11-15 23:12:43 +000026153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026154$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026155if test "x$ac_cv_lib_z_inflate" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026156 passed=`expr $passed + 1`
26157else
26158 failed=`expr $failed + 1`
26159fi
26160
cristy8b350f62009-11-15 23:12:43 +000026161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026162$as_echo_n "checking for gzseek in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026163if test "${ac_cv_lib_z_gzseek+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026164 $as_echo_n "(cached) " >&6
26165else
26166 ac_check_lib_save_LIBS=$LIBS
26167LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026169/* end confdefs.h. */
26170
26171/* Override any GCC internal prototype to avoid an error.
26172 Use char because int might match the return type of a GCC
26173 builtin and then its argument prototype would still apply. */
26174#ifdef __cplusplus
26175extern "C"
26176#endif
26177char gzseek ();
26178int
26179main ()
26180{
26181return gzseek ();
26182 ;
26183 return 0;
26184}
26185_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026186if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026187 ac_cv_lib_z_gzseek=yes
26188else
cristy8b350f62009-11-15 23:12:43 +000026189 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026190fi
cristy8b350f62009-11-15 23:12:43 +000026191rm -f core conftest.err conftest.$ac_objext \
26192 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026193LIBS=$ac_check_lib_save_LIBS
26194fi
cristy8b350f62009-11-15 23:12:43 +000026195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026197if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026198 passed=`expr $passed + 1`
26199else
26200 failed=`expr $failed + 1`
26201fi
26202
cristy8b350f62009-11-15 23:12:43 +000026203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026204$as_echo_n "checking for gztell in -lz... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026205if test "${ac_cv_lib_z_gztell+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026206 $as_echo_n "(cached) " >&6
26207else
26208 ac_check_lib_save_LIBS=$LIBS
26209LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026211/* end confdefs.h. */
26212
26213/* Override any GCC internal prototype to avoid an error.
26214 Use char because int might match the return type of a GCC
26215 builtin and then its argument prototype would still apply. */
26216#ifdef __cplusplus
26217extern "C"
26218#endif
26219char gztell ();
26220int
26221main ()
26222{
26223return gztell ();
26224 ;
26225 return 0;
26226}
26227_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026228if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026229 ac_cv_lib_z_gztell=yes
26230else
cristy8b350f62009-11-15 23:12:43 +000026231 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026232fi
cristy8b350f62009-11-15 23:12:43 +000026233rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026235LIBS=$ac_check_lib_save_LIBS
26236fi
cristy8b350f62009-11-15 23:12:43 +000026237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026238$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026239if test "x$ac_cv_lib_z_gztell" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026240 passed=`expr $passed + 1`
26241else
26242 failed=`expr $failed + 1`
26243fi
26244
cristy8b350f62009-11-15 23:12:43 +000026245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo_n "checking if ZLIB package is complete... " >&6; }
26247 if test $passed -gt 0; then
26248 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026250$as_echo "no -- some components failed test" >&6; }
26251 have_zlib='no (failed tests)'
26252 else
26253 ZLIB_LIBS='-lz'
26254 LIBS="$ZLIB_LIBS $LIBS"
26255
cristy8b350f62009-11-15 23:12:43 +000026256$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026257
cristy8b350f62009-11-15 23:12:43 +000026258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026259$as_echo "yes" >&6; }
26260 have_zlib='yes'
26261 fi
26262 else
cristy8b350f62009-11-15 23:12:43 +000026263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026264$as_echo "no" >&6; }
26265 fi
26266fi
26267 if test "$have_zlib" = 'yes'; then
26268 ZLIB_DELEGATE_TRUE=
26269 ZLIB_DELEGATE_FALSE='#'
26270else
26271 ZLIB_DELEGATE_TRUE='#'
26272 ZLIB_DELEGATE_FALSE=
26273fi
26274
26275
26276
26277#
26278# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26279#
26280LIB_DL=''
26281if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026283$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026284if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026285 $as_echo_n "(cached) " >&6
26286else
26287 ac_check_lib_save_LIBS=$LIBS
26288LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026290/* end confdefs.h. */
26291
26292/* Override any GCC internal prototype to avoid an error.
26293 Use char because int might match the return type of a GCC
26294 builtin and then its argument prototype would still apply. */
26295#ifdef __cplusplus
26296extern "C"
26297#endif
26298char dlopen ();
26299int
26300main ()
26301{
26302return dlopen ();
26303 ;
26304 return 0;
26305}
26306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026308 ac_cv_lib_dl_dlopen=yes
26309else
cristy8b350f62009-11-15 23:12:43 +000026310 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026311fi
cristy8b350f62009-11-15 23:12:43 +000026312rm -f core conftest.err conftest.$ac_objext \
26313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026314LIBS=$ac_check_lib_save_LIBS
26315fi
cristy8b350f62009-11-15 23:12:43 +000026316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026317$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026318if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026319 LIB_DL='-ldl'
26320fi
26321
26322 LIBS="$LIB_DL $LIBS"
26323fi
26324
26325
26326
26327#
26328# Check for Autotrace delegate library.
26329#
26330
26331# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026332if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026333 withval=$with_autotrace; with_autotrace=$withval
26334else
26335 with_autotrace='no'
26336fi
26337
26338
26339if test "$with_autotrace" != 'yes'; then
26340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26341fi
26342
26343have_autotrace='no'
26344AUTOTRACE_CFLAGS=""
26345AUTOTRACE_LIBS=""
26346AUTOTRACE_PKG=""
26347if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026349$as_echo "-------------------------------------------------------------" >&6; }
26350
26351pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000026352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026353$as_echo_n "checking for AUTOTRACE... " >&6; }
26354
26355if test -n "$AUTOTRACE_CFLAGS"; then
26356 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26357 elif test -n "$PKG_CONFIG"; then
26358 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026360 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26361 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26363 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026364 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26365else
26366 pkg_failed=yes
26367fi
26368 else
26369 pkg_failed=untried
26370fi
26371if test -n "$AUTOTRACE_LIBS"; then
26372 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26373 elif test -n "$PKG_CONFIG"; then
26374 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000026375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000026376 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26377 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26379 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000026380 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26381else
26382 pkg_failed=yes
26383fi
26384 else
26385 pkg_failed=untried
26386fi
26387
26388
26389
26390if test $pkg_failed = yes; then
26391
26392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26393 _pkg_short_errors_supported=yes
26394else
26395 _pkg_short_errors_supported=no
26396fi
26397 if test $_pkg_short_errors_supported = yes; then
26398 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26399 else
26400 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26401 fi
26402 # Put the nasty error message in config.log where it belongs
26403 echo "$AUTOTRACE_PKG_ERRORS" >&5
26404
cristy8b350f62009-11-15 23:12:43 +000026405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026406$as_echo "no" >&6; }
26407 have_autotrace=no
26408elif test $pkg_failed = untried; then
26409 have_autotrace=no
26410else
26411 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26412 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
cristy8b350f62009-11-15 23:12:43 +000026413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026414$as_echo "yes" >&6; }
26415 have_autotrace=yes
26416fi
cristy8b350f62009-11-15 23:12:43 +000026417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026418$as_echo "" >&6; }
26419fi
26420
26421if test "$have_autotrace" = 'yes'; then
26422 failed=0
26423
cristy8b350f62009-11-15 23:12:43 +000026424$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026425
26426 if test "$with_modules" = 'no'; then
26427 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26428 fi
26429fi
26430
26431 if test "$have_autotrace" = 'yes'; then
26432 AUTOTRACE_DELEGATE_TRUE=
26433 AUTOTRACE_DELEGATE_FALSE='#'
26434else
26435 AUTOTRACE_DELEGATE_TRUE='#'
26436 AUTOTRACE_DELEGATE_FALSE=
26437fi
26438
26439
26440
26441
26442
26443#
26444# Check for Display Postscript delegate library.
26445#
26446
26447# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000026448if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026449 withval=$with_dps; with_dps=$withval
26450else
26451 with_dps='yes'
26452fi
26453
26454
26455if test "$with_dps" != 'yes'; then
26456 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26457fi
26458
26459have_dps='no'
26460DPS_LIBS=''
26461if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026463$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000026465$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026467$as_echo "" >&6; }
26468 failed=0
26469 passed=0
26470 PERSIST_CPPFLAGS="$CPPFLAGS"
26471 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000026472 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26473if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026474 passed=`expr $passed + 1`
26475else
26476 failed=`expr $failed + 1`
26477fi
26478
26479
26480 # DPS issues:
26481 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26482 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26483 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26484 # ImageMagick itself doesn't use -lXt.
26485 have_libdps='no'
26486 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000026487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026489if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026490 $as_echo_n "(cached) " >&6
26491else
26492 ac_check_lib_save_LIBS=$LIBS
26493LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026495/* end confdefs.h. */
26496
26497/* Override any GCC internal prototype to avoid an error.
26498 Use char because int might match the return type of a GCC
26499 builtin and then its argument prototype would still apply. */
26500#ifdef __cplusplus
26501extern "C"
26502#endif
26503char DPSInitialize ();
26504int
26505main ()
26506{
26507return DPSInitialize ();
26508 ;
26509 return 0;
26510}
26511_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026512if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026513 ac_cv_lib_dps_DPSInitialize=yes
26514else
cristy8b350f62009-11-15 23:12:43 +000026515 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026516fi
cristy8b350f62009-11-15 23:12:43 +000026517rm -f core conftest.err conftest.$ac_objext \
26518 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026519LIBS=$ac_check_lib_save_LIBS
26520fi
cristy8b350f62009-11-15 23:12:43 +000026521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026523if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026524 have_libdps='yes'
26525else
26526 have_libdps='no'
26527fi
26528
26529 if test "$have_libdps" != 'yes'; then
26530 # Unset cache variable so we can try again.
26531 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000026533$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026534if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026535 $as_echo_n "(cached) " >&6
26536else
26537 ac_check_lib_save_LIBS=$LIBS
26538LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026540/* end confdefs.h. */
26541
26542/* Override any GCC internal prototype to avoid an error.
26543 Use char because int might match the return type of a GCC
26544 builtin and then its argument prototype would still apply. */
26545#ifdef __cplusplus
26546extern "C"
26547#endif
26548char DPSInitialize ();
26549int
26550main ()
26551{
26552return DPSInitialize ();
26553 ;
26554 return 0;
26555}
26556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026557if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026558 ac_cv_lib_dps_DPSInitialize=yes
26559else
cristy8b350f62009-11-15 23:12:43 +000026560 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000026561fi
cristy8b350f62009-11-15 23:12:43 +000026562rm -f core conftest.err conftest.$ac_objext \
26563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026564LIBS=$ac_check_lib_save_LIBS
26565fi
cristy8b350f62009-11-15 23:12:43 +000026566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000026567$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026568if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026569 have_libdps='yes'
26570else
26571 have_libdps='no'
26572fi
26573
26574 if test "$have_libdps" = 'yes'; then
26575 LIBDPS_XT='-lXt'
26576 fi
26577 fi
26578 if test "$have_libdps" = 'yes'; then
26579 passed=`expr $passed + 1`
26580 else
26581 failed=`expr $failed + 1`
26582 fi
cristy8b350f62009-11-15 23:12:43 +000026583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026584$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026585if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 $as_echo_n "(cached) " >&6
26587else
26588 ac_check_lib_save_LIBS=$LIBS
26589LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026591/* end confdefs.h. */
26592
26593/* Override any GCC internal prototype to avoid an error.
26594 Use char because int might match the return type of a GCC
26595 builtin and then its argument prototype would still apply. */
26596#ifdef __cplusplus
26597extern "C"
26598#endif
26599char XDPSPixelsPerPoint ();
26600int
26601main ()
26602{
26603return XDPSPixelsPerPoint ();
26604 ;
26605 return 0;
26606}
26607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026609 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26610else
cristy8b350f62009-11-15 23:12:43 +000026611 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000026612fi
cristy8b350f62009-11-15 23:12:43 +000026613rm -f core conftest.err conftest.$ac_objext \
26614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026615LIBS=$ac_check_lib_save_LIBS
26616fi
cristy8b350f62009-11-15 23:12:43 +000026617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000026618$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026619if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026620 passed=`expr $passed + 1`
26621else
26622 failed=`expr $failed + 1`
26623fi
26624
cristy8b350f62009-11-15 23:12:43 +000026625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo_n "checking if DPS package is complete... " >&6; }
26627 if test $passed -gt 0; then
26628 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026630$as_echo "no -- some components failed test" >&6; }
26631 have_dps='no (failed tests)'
26632 CPPFLAGS="$PERSIST_CPPFLAGS"
26633 else
26634 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26635 LIBS="$DPS_LIBS $LIBS"
26636
cristy8b350f62009-11-15 23:12:43 +000026637$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026638
cristy8b350f62009-11-15 23:12:43 +000026639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026640$as_echo "yes" >&6; }
26641 have_dps='yes'
26642 fi
26643 else
cristy8b350f62009-11-15 23:12:43 +000026644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026645$as_echo "no" >&6; }
26646 CPPFLAGS=$PERSIST_CPPFLAGS
26647 fi
26648fi
26649 if test "$have_dps" = 'yes'; then
26650 DPS_DELEGATE_TRUE=
26651 DPS_DELEGATE_FALSE='#'
26652else
26653 DPS_DELEGATE_TRUE='#'
26654 DPS_DELEGATE_FALSE=
26655fi
26656
26657
26658
26659
26660#
26661# Check for DJVU delegate library.
26662#
26663
26664# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000026665if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026666 withval=$with_djvu; with_djvu=$withval
26667else
26668 with_djvu='yes'
26669fi
26670
26671
26672if test "$with_djvu" != 'yes'; then
26673 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26674fi
26675
26676have_djvu='no'
26677DJVU_LIBS=''
26678if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026680$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000026682$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026684$as_echo "" >&6; }
26685 failed=0
26686 passed=0
cristy8b350f62009-11-15 23:12:43 +000026687 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26688if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026689 passed=`expr $passed + 1`
26690else
26691 failed=`expr $failed + 1`
26692fi
26693
26694
cristy8b350f62009-11-15 23:12:43 +000026695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000026696$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026697if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026698 $as_echo_n "(cached) " >&6
26699else
26700 ac_check_lib_save_LIBS=$LIBS
26701LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026703/* end confdefs.h. */
26704
26705/* Override any GCC internal prototype to avoid an error.
26706 Use char because int might match the return type of a GCC
26707 builtin and then its argument prototype would still apply. */
26708#ifdef __cplusplus
26709extern "C"
26710#endif
26711char ddjvu_context_create ();
26712int
26713main ()
26714{
26715return ddjvu_context_create ();
26716 ;
26717 return 0;
26718}
26719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26722else
cristy8b350f62009-11-15 23:12:43 +000026723 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000026724fi
cristy8b350f62009-11-15 23:12:43 +000026725rm -f core conftest.err conftest.$ac_objext \
26726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026727LIBS=$ac_check_lib_save_LIBS
26728fi
cristy8b350f62009-11-15 23:12:43 +000026729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026731if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026732 passed=`expr $passed + 1`
26733else
26734 failed=`expr $failed + 1`
26735fi
26736
cristy8b350f62009-11-15 23:12:43 +000026737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026738$as_echo_n "checking if DJVU package is complete... " >&6; }
26739 if test $passed -gt 0; then
26740 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026742$as_echo "no -- some components failed test" >&6; }
26743 have_djvu='no (failed tests)'
26744 else
26745 DJVU_LIBS='-ldjvulibre'
26746 LIBS="$DJVU_LIBS $LIBS"
26747
cristy8b350f62009-11-15 23:12:43 +000026748$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026749
cristy8b350f62009-11-15 23:12:43 +000026750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo "yes" >&6; }
26752 have_djvu='yes'
26753 fi
26754 else
cristy8b350f62009-11-15 23:12:43 +000026755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026756$as_echo "no" >&6; }
26757 fi
26758fi
26759 if test "$have_djvu" = 'yes'; then
26760 DJVU_DELEGATE_TRUE=
26761 DJVU_DELEGATE_FALSE='#'
26762else
26763 DJVU_DELEGATE_TRUE='#'
26764 DJVU_DELEGATE_FALSE=
26765fi
26766
26767
26768
26769
26770#
cristy430a7312010-01-21 20:44:04 +000026771# Set DejaVu font directory.
26772#
26773
26774# Check whether --with-dejavu-font-dir was given.
26775if test "${with_dejavu_font_dir+set}" = set; then :
26776 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26777else
26778 with_dejavu_font_dir='default'
26779fi
26780
26781
26782if test "$with_dejavu_font_dir" != 'default'; then
26783 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26784fi
26785
26786
26787#
cristy3ed852e2009-09-05 21:47:34 +000026788# Check for FFTW delegate library.
26789#
26790
26791# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000026792if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026793 withval=$with_fftw; with_fftw=$withval
26794else
26795 with_fftw='yes'
26796fi
26797
26798
26799if test "$with_fftw" != 'yes'; then
26800 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26801fi
26802
26803have_fftw='no'
26804FFTW_LIBS=''
26805if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026807$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo "" >&6; }
26812 failed=0
26813 passed=0
cristy8b350f62009-11-15 23:12:43 +000026814 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26815if test "x$ac_cv_header_fftw3_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026816 passed=`expr $passed + 1`
26817else
26818 failed=`expr $failed + 1`
26819fi
26820
26821
cristy8b350f62009-11-15 23:12:43 +000026822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026824if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026825 $as_echo_n "(cached) " >&6
26826else
26827 ac_check_lib_save_LIBS=$LIBS
26828LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026830/* end confdefs.h. */
26831
26832/* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26835#ifdef __cplusplus
26836extern "C"
26837#endif
26838char fftw_execute ();
26839int
26840main ()
26841{
26842return fftw_execute ();
26843 ;
26844 return 0;
26845}
26846_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026847if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026848 ac_cv_lib_fftw3_fftw_execute=yes
26849else
cristy8b350f62009-11-15 23:12:43 +000026850 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000026851fi
cristy8b350f62009-11-15 23:12:43 +000026852rm -f core conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026854LIBS=$ac_check_lib_save_LIBS
26855fi
cristy8b350f62009-11-15 23:12:43 +000026856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026858if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026859 passed=`expr $passed + 1`
26860else
26861 failed=`expr $failed + 1`
26862fi
26863
cristy8b350f62009-11-15 23:12:43 +000026864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026865$as_echo_n "checking if FFTW package is complete... " >&6; }
26866 if test $passed -gt 0; then
26867 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026869$as_echo "no -- some components failed test" >&6; }
26870 have_fftw='no (failed tests)'
26871 else
26872 FFTW_LIBS='-lfftw3'
26873 LIBS="$FFTW_LIBS $LIBS"
26874
cristy8b350f62009-11-15 23:12:43 +000026875$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026876
cristy8b350f62009-11-15 23:12:43 +000026877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026878$as_echo "yes" >&6; }
26879 have_fftw='yes'
26880 fi
26881 else
cristy8b350f62009-11-15 23:12:43 +000026882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026883$as_echo "no" >&6; }
26884 fi
26885fi
26886 if test "$have_fftw" = 'yes'; then
26887 FFTW_DELEGATE_TRUE=
26888 FFTW_DELEGATE_FALSE='#'
26889else
26890 FFTW_DELEGATE_TRUE='#'
26891 FFTW_DELEGATE_FALSE=
26892fi
26893
26894
26895
26896
26897#
26898# Check for FlashPIX delegate library.
26899#
26900
26901# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000026902if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026903 withval=$with_fpx; with_fpx=$withval
26904else
26905 with_fpx='yes'
26906fi
26907
26908
26909if test "$with_fpx" != 'yes'; then
26910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26911fi
26912
26913have_fpx='no'
26914FPX_LIBS=''
26915if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026917$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026919$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026921$as_echo "" >&6; }
26922 failed=0
26923 passed=0
26924 ac_ext=cpp
26925ac_cpp='$CXXCPP $CPPFLAGS'
26926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26929
26930
cristy8b350f62009-11-15 23:12:43 +000026931ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26932if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026933 passed=`expr $passed + 1`
26934else
26935 failed=`expr $failed + 1`
26936fi
26937
26938
cristy8b350f62009-11-15 23:12:43 +000026939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000026940$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026941if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026942 $as_echo_n "(cached) " >&6
26943else
26944 ac_check_lib_save_LIBS=$LIBS
26945LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026947/* end confdefs.h. */
26948
26949/* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955char FPX_OpenImageByFilename ();
26956int
26957main ()
26958{
26959return FPX_OpenImageByFilename ();
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026965 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26966else
cristy8b350f62009-11-15 23:12:43 +000026967 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000026968fi
cristy8b350f62009-11-15 23:12:43 +000026969rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026971LIBS=$ac_check_lib_save_LIBS
26972fi
cristy8b350f62009-11-15 23:12:43 +000026973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000026974$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026975if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026976 passed=`expr $passed + 1`
26977else
26978 failed=`expr $failed + 1`
26979fi
26980
26981 ac_ext=c
26982ac_cpp='$CPP $CPPFLAGS'
26983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26985ac_compiler_gnu=$ac_cv_c_compiler_gnu
26986
cristy8b350f62009-11-15 23:12:43 +000026987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026988$as_echo_n "checking if FlashPIX package is complete... " >&6; }
26989 if test $passed -gt 0; then
26990 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026992$as_echo "no -- some components failed test" >&6; }
26993 have_fpx='no (failed tests)'
26994 else
26995 FPX_LIBS='-lfpx'
26996
cristy8b350f62009-11-15 23:12:43 +000026997$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026998
cristy8b350f62009-11-15 23:12:43 +000026999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027000$as_echo "yes" >&6; }
27001 have_fpx='yes'
27002 PERLMAINCC="$CXX"
27003 fi
27004 else
cristy8b350f62009-11-15 23:12:43 +000027005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "no" >&6; }
27007 fi
27008fi
27009 if test "$have_fpx" = 'yes'; then
27010 FPX_DELEGATE_TRUE=
27011 FPX_DELEGATE_FALSE='#'
27012else
27013 FPX_DELEGATE_TRUE='#'
27014 FPX_DELEGATE_FALSE=
27015fi
27016
27017
27018
27019
27020#
27021# Check for fontconfig delegate library.
27022#
27023
27024# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027025if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027026 withval=$with_fontconfig; with_fontconfig=$withval
27027else
27028 with_fontconfig=$have_x
27029fi
27030
27031
27032if test "$with_fontconfig" != 'yes'; then
27033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27034fi
27035
27036have_fontconfig='no'
27037FONTCONFIG_CFLAGS=""
27038FONTCONFIG_LIBS=""
27039FONTCONFIG_PKG=""
27040if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027042$as_echo "-------------------------------------------------------------" >&6; }
27043
27044pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027046$as_echo_n "checking for FONTCONFIG... " >&6; }
27047
27048if test -n "$FONTCONFIG_CFLAGS"; then
27049 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27050 elif test -n "$PKG_CONFIG"; then
27051 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027053 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27054 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27056 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027057 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27058else
27059 pkg_failed=yes
27060fi
27061 else
27062 pkg_failed=untried
27063fi
27064if test -n "$FONTCONFIG_LIBS"; then
27065 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27066 elif test -n "$PKG_CONFIG"; then
27067 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027069 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27070 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27072 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027073 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27074else
27075 pkg_failed=yes
27076fi
27077 else
27078 pkg_failed=untried
27079fi
27080
27081
27082
27083if test $pkg_failed = yes; then
27084
27085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27086 _pkg_short_errors_supported=yes
27087else
27088 _pkg_short_errors_supported=no
27089fi
27090 if test $_pkg_short_errors_supported = yes; then
27091 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27092 else
27093 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27094 fi
27095 # Put the nasty error message in config.log where it belongs
27096 echo "$FONTCONFIG_PKG_ERRORS" >&5
27097
cristy8b350f62009-11-15 23:12:43 +000027098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027099$as_echo "no" >&6; }
27100 have_fontconfig=no
27101elif test $pkg_failed = untried; then
27102 have_fontconfig=no
27103else
27104 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27105 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "yes" >&6; }
27108 have_fontconfig=yes
27109fi
cristy8b350f62009-11-15 23:12:43 +000027110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027111$as_echo "" >&6; }
27112fi
27113
27114if test "$have_fontconfig" = 'yes'; then
27115
cristy8b350f62009-11-15 23:12:43 +000027116$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027117
cristyd09bcf92010-03-25 03:04:45 +000027118 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027119 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027120 fi
cristy3ed852e2009-09-05 21:47:34 +000027121fi
27122
27123 if test "$have_fontconfig" = 'yes'; then
27124 FONTCONFIG_DELEGATE_TRUE=
27125 FONTCONFIG_DELEGATE_FALSE='#'
27126else
27127 FONTCONFIG_DELEGATE_TRUE='#'
27128 FONTCONFIG_DELEGATE_FALSE=
27129fi
27130
27131
27132
27133
27134
27135#
27136# Check for freetype delegate library.
27137#
27138
27139# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027140if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027141 withval=$with_freetype; with_freetype=$withval
27142else
27143 with_freetype='yes'
27144fi
27145
27146
27147
27148if test "$with_freetype" != 'yes'; then
27149 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27150fi
27151
27152have_freetype='no'
27153FREETYPE_LIBS=''
27154if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027156$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027160$as_echo "" >&6; }
27161 failed=0
27162 passed=0
cristy66291112009-10-03 22:44:36 +000027163 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027164 PERSIST_CPPFLAGS="$CPPFLAGS"
27165 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27166 :
27167 else
27168 freetype_config=''
27169 for ac_prog in freetype-config
27170do
27171 # Extract the first word of "$ac_prog", so it can be a program name with args.
27172set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027175if test "${ac_cv_prog_freetype_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 $as_echo_n "(cached) " >&6
27177else
27178 if test -n "$freetype_config"; then
27179 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27180else
27181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27182for as_dir in $PATH
27183do
27184 IFS=$as_save_IFS
27185 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027186 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27188 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027190 break 2
27191 fi
27192done
cristy8b350f62009-11-15 23:12:43 +000027193 done
cristy3ed852e2009-09-05 21:47:34 +000027194IFS=$as_save_IFS
27195
27196fi
27197fi
27198freetype_config=$ac_cv_prog_freetype_config
27199if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$freetype_config" >&6; }
27202else
cristy8b350f62009-11-15 23:12:43 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027204$as_echo "no" >&6; }
27205fi
27206
27207
27208 test -n "$freetype_config" && break
27209done
27210 if test -n "$freetype_config"; then
27211 freetype_cflags=`$freetype_config --cflags`
27212 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027213 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027214 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27215 fi
27216 fi
27217
27218 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027220$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027221if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027222 $as_echo_n "(cached) " >&6
27223else
27224 ac_check_lib_save_LIBS=$LIBS
27225LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027227/* end confdefs.h. */
27228
27229/* Override any GCC internal prototype to avoid an error.
27230 Use char because int might match the return type of a GCC
27231 builtin and then its argument prototype would still apply. */
27232#ifdef __cplusplus
27233extern "C"
27234#endif
27235char FT_Init_FreeType ();
27236int
27237main ()
27238{
27239return FT_Init_FreeType ();
27240 ;
27241 return 0;
27242}
27243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027245 ac_cv_lib_freetype_FT_Init_FreeType=yes
27246else
cristy8b350f62009-11-15 23:12:43 +000027247 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027248fi
cristy8b350f62009-11-15 23:12:43 +000027249rm -f core conftest.err conftest.$ac_objext \
27250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027251LIBS=$ac_check_lib_save_LIBS
27252fi
cristy8b350f62009-11-15 23:12:43 +000027253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027254$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027255if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027256 FREETYPE_LIBS='-lfreetype'
27257fi
27258
27259 if test "$FREETYPE_LIBS" != ''; then
27260 passed=`expr $passed + 1`
27261 else
27262 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027263 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027264 fi
27265 fi
27266
cristy8b350f62009-11-15 23:12:43 +000027267 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27268if test "x$ac_cv_header_ft2build_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 FT2BUILD_H='#include <ft2build.h>'
27270else
27271 ft2build=''
27272fi
27273
27274
cristy8b350f62009-11-15 23:12:43 +000027275 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27276"
27277if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027278 have_freetype_h='yes'
27279else
27280 have_freetype_h='no'
27281fi
27282
27283
27284 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27285 passed=`expr $passed + 1`
27286 else
27287 failed=`expr $failed + 1`
27288 CPPFLAGS="$PERSIST_CPPFLAGS"
27289 fi
27290
cristy8b350f62009-11-15 23:12:43 +000027291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027292$as_echo_n "checking if FreeType package is complete... " >&6; }
27293 if test $passed -gt 0; then
27294 if test $failed -gt 0; then
27295 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027297$as_echo "no -- some components failed test" >&6; }
27298 have_freetype='no (failed tests)'
27299 else
27300 LIBS="$FREETYPE_LIBS $LIBS"
27301
cristy8b350f62009-11-15 23:12:43 +000027302$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027303
27304 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27305
cristy8b350f62009-11-15 23:12:43 +000027306$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027307
27308 fi
cristy8b350f62009-11-15 23:12:43 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo "yes" >&6; }
27311 have_freetype='yes'
27312 fi
27313 else
cristy8b350f62009-11-15 23:12:43 +000027314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027315$as_echo "no" >&6; }
27316 fi
27317fi
27318 if test "$have_freetype" = 'yes'; then
27319 FREETYPE_DELEGATE_TRUE=
27320 FREETYPE_DELEGATE_FALSE='#'
27321else
27322 FREETYPE_DELEGATE_TRUE='#'
27323 FREETYPE_DELEGATE_FALSE=
27324fi
27325
27326
27327
27328
27329
27330#
27331# Check for Ghostscript library or framework.
27332#
27333# Test for iapi.h & test for gsapi_new_instance in -lgs
27334# or -framework Ghostscript
27335
27336
27337# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027338if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 withval=$with_gslib; with_gslib=$withval
27340else
27341 with_gslib='no'
27342fi
27343
27344
cristyb7931f12009-09-25 10:22:21 +000027345gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027346if test "$with_gslib" != 'yes'; then
27347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27348fi
27349
27350have_gslib='no'
27351GS_LIBS=''
27352if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027354$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027356$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027359 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027360 failed=0
27361 passed=0
cristy8b350f62009-11-15 23:12:43 +000027362 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27363if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027364 passed=`expr $passed + 1`
27365else
27366 failed=`expr $failed + 1`
27367fi
27368
27369
cristy8b350f62009-11-15 23:12:43 +000027370 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27371if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027372 passed=`expr $passed + 1`
27373else
27374 failed=`expr $failed + 1`
27375fi
27376
27377
cristy8b350f62009-11-15 23:12:43 +000027378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
cristy3ed852e2009-09-05 21:47:34 +000027379$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027380if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027381 $as_echo_n "(cached) " >&6
27382else
27383 ac_check_framework_save_LIBS=$LIBS
27384LIBS="-framework Ghostscript $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027386/* end confdefs.h. */
27387
27388/* Override any GCC internal prototype to avoid an error.
27389 Use char because int might match the return type of a GCC
27390 builtin and then its argument prototype would still apply. */
27391#ifdef __cplusplus
27392extern "C"
27393#endif
27394char gsapi_new_instance ();
27395int
27396main ()
27397{
27398return gsapi_new_instance ();
27399 ;
27400 return 0;
27401}
27402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027404 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27405else
cristy8b350f62009-11-15 23:12:43 +000027406 ac_cv_framework_Ghostscript_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027407fi
cristy8b350f62009-11-15 23:12:43 +000027408rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027410LIBS=$ac_check_framework_save_LIBS
27411fi
cristy8b350f62009-11-15 23:12:43 +000027412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027413$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027414if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027415 framework=`expr $framework + 1`
27416else
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027419if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027420 $as_echo_n "(cached) " >&6
27421else
27422 ac_check_lib_save_LIBS=$LIBS
27423LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027425/* end confdefs.h. */
27426
27427/* Override any GCC internal prototype to avoid an error.
27428 Use char because int might match the return type of a GCC
27429 builtin and then its argument prototype would still apply. */
27430#ifdef __cplusplus
27431extern "C"
27432#endif
27433char gsapi_new_instance ();
27434int
27435main ()
27436{
27437return gsapi_new_instance ();
27438 ;
27439 return 0;
27440}
27441_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027442if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027443 ac_cv_lib_gs_gsapi_new_instance=yes
27444else
cristy8b350f62009-11-15 23:12:43 +000027445 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000027446fi
cristy8b350f62009-11-15 23:12:43 +000027447rm -f core conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027449LIBS=$ac_check_lib_save_LIBS
27450fi
cristy8b350f62009-11-15 23:12:43 +000027451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000027452$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027453if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027454 passed=`expr $passed + 1`
27455else
27456 failed=`expr $failed + 1`
27457fi
27458
27459fi
cristy8b350f62009-11-15 23:12:43 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo_n "checking if Ghostscript package is complete... " >&6; }
27462 if test $passed -gt 0; then
27463 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027465$as_echo "no -- some components failed test" >&6; }
27466 have_gslib='no (failed tests)'
27467 else
27468 if test $framework -gt 0; then
27469 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000027470 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo "yes, using framework." >&6; }
27473 else
cristy8b350f62009-11-15 23:12:43 +000027474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000027475$as_echo "yes, using library." >&6; }
27476 GS_LIBS='-lgs'
27477 fi
27478 LIBS="$GS_LIBS $LIBS"
27479
cristy8b350f62009-11-15 23:12:43 +000027480$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027481
27482 have_gslib='yes'
27483 fi
27484 else
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo "no" >&6; }
27487 fi
27488fi
27489 if test "$have_gslib" = 'yes'; then
27490 GS_DELEGATE_TRUE=
27491 GS_DELEGATE_FALSE='#'
27492else
27493 GS_DELEGATE_TRUE='#'
27494 GS_DELEGATE_FALSE=
27495fi
27496
27497
27498
27499# Set default font search path
27500
27501# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000027502if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027503 withval=$with_fontpath; with_fontpath=$withval
27504else
27505 with_fontpath=''
27506fi
27507
27508
27509if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27510 with_fontpath=''
27511else
27512
27513cat >>confdefs.h <<_ACEOF
27514#define MAGICK_FONT_PATH "$with_fontpath"
27515_ACEOF
27516
27517fi
27518if test "$with_fontpath=" != ''; then
27519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27520fi
27521
27522# Set Ghostscript font directory
27523
27524# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000027525if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027526 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27527else
27528 with_gs_font_dir='default'
27529fi
27530
27531
27532if test "$with_gs_font_dir" != 'default'; then
27533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27534fi
27535
27536
27537#
27538# Check for GVC delegate library.
27539#
27540
27541# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000027542if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027543 withval=$with_gvc; with_gvc=$withval
27544else
27545 with_gvc='yes'
27546fi
27547
27548
27549if test "$with_gvc" != 'yes'; then
27550 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27551fi
27552
27553GVC_PKG=""
27554if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027556$as_echo "-------------------------------------------------------------" >&6; }
27557
27558pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000027559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
cristy3ed852e2009-09-05 21:47:34 +000027560$as_echo_n "checking for GVC... " >&6; }
27561
27562if test -n "$GVC_CFLAGS"; then
27563 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27564 elif test -n "$PKG_CONFIG"; then
27565 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027567 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27568 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27570 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027571 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27572else
27573 pkg_failed=yes
27574fi
27575 else
27576 pkg_failed=untried
27577fi
27578if test -n "$GVC_LIBS"; then
27579 pkg_cv_GVC_LIBS="$GVC_LIBS"
27580 elif test -n "$PKG_CONFIG"; then
27581 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000027582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000027583 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27584 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000027585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000027587 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27588else
27589 pkg_failed=yes
27590fi
27591 else
27592 pkg_failed=untried
27593fi
27594
27595
27596
27597if test $pkg_failed = yes; then
27598
27599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27600 _pkg_short_errors_supported=yes
27601else
27602 _pkg_short_errors_supported=no
27603fi
27604 if test $_pkg_short_errors_supported = yes; then
27605 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27606 else
27607 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27608 fi
27609 # Put the nasty error message in config.log where it belongs
27610 echo "$GVC_PKG_ERRORS" >&5
27611
cristy8b350f62009-11-15 23:12:43 +000027612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027613$as_echo "no" >&6; }
27614 have_gvc=no
27615elif test $pkg_failed = untried; then
27616 have_gvc=no
27617else
27618 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27619 GVC_LIBS=$pkg_cv_GVC_LIBS
cristy8b350f62009-11-15 23:12:43 +000027620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027621$as_echo "yes" >&6; }
27622 have_gvc=yes
27623fi
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027625$as_echo "" >&6; }
27626fi
27627
27628if test "$have_gvc" = 'yes'; then
27629
cristy8b350f62009-11-15 23:12:43 +000027630$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027631
27632 if test "$with_modules" = 'no'; then
27633 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27634 fi
27635fi
27636
27637 if test "$have_gvc" = 'yes'; then
27638 GVC_DELEGATE_TRUE=
27639 GVC_DELEGATE_FALSE='#'
27640else
27641 GVC_DELEGATE_TRUE='#'
27642 GVC_DELEGATE_FALSE=
27643fi
27644
27645
27646
27647
27648
27649#
27650# Check for JBIG delegate library.
27651#
27652
27653
27654# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000027655if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027656 withval=$with_jbig; with_jbig=$withval
27657else
27658 with_jbig='yes'
27659fi
27660
27661
27662have_jbig='no'
27663JBIG_LIBS=''
27664if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027666$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027668$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027670$as_echo "" >&6; }
27671 failed=0
27672 passed=0
cristy8b350f62009-11-15 23:12:43 +000027673 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27674if test "x$ac_cv_header_jbig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027675 passed=`expr $passed + 1`
27676else
27677 failed=`expr $failed + 1`
27678fi
27679
27680
cristy8b350f62009-11-15 23:12:43 +000027681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027683if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 $as_echo_n "(cached) " >&6
27685else
27686 ac_check_lib_save_LIBS=$LIBS
27687LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027689/* end confdefs.h. */
27690
27691/* Override any GCC internal prototype to avoid an error.
27692 Use char because int might match the return type of a GCC
27693 builtin and then its argument prototype would still apply. */
27694#ifdef __cplusplus
27695extern "C"
27696#endif
27697char jbg_dec_init ();
27698int
27699main ()
27700{
27701return jbg_dec_init ();
27702 ;
27703 return 0;
27704}
27705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027707 ac_cv_lib_jbig_jbg_dec_init=yes
27708else
cristy8b350f62009-11-15 23:12:43 +000027709 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000027710fi
cristy8b350f62009-11-15 23:12:43 +000027711rm -f core conftest.err conftest.$ac_objext \
27712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027713LIBS=$ac_check_lib_save_LIBS
27714fi
cristy8b350f62009-11-15 23:12:43 +000027715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000027716$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027717if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027718 passed=`expr $passed + 1`
27719else
27720 failed=`expr $failed + 1`
27721fi
27722
cristy8b350f62009-11-15 23:12:43 +000027723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo_n "checking if JBIG package is complete... " >&6; }
27725 if test $passed -gt 0; then
27726 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027728$as_echo "no -- some components failed test" >&6; }
27729 have_jbig='no (failed tests)'
27730 else
27731 JBIG_LIBS='-ljbig'
27732 LIBS="$JBIG_LIBS $LIBS"
27733
cristy8b350f62009-11-15 23:12:43 +000027734$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027735
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo "yes" >&6; }
27738 have_jbig='yes'
27739 fi
27740 else
cristy8b350f62009-11-15 23:12:43 +000027741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027742$as_echo "no" >&6; }
27743 fi
27744fi
27745 if test "$have_jbig" = 'yes'; then
27746 JBIG_DELEGATE_TRUE=
27747 JBIG_DELEGATE_FALSE='#'
27748else
27749 JBIG_DELEGATE_TRUE='#'
27750 JBIG_DELEGATE_FALSE=
27751fi
27752
27753
27754
27755
27756#
27757# Check for JPEG delegate library.
27758#
27759
27760# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000027761if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027762 withval=$with_jpeg; with_jpeg=$withval
27763else
27764 with_jpeg='yes'
27765fi
27766
27767
27768if test "$with_jpeg" != 'yes'; then
27769 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27770fi
27771
27772have_jpeg='no'
27773JPEG_LIBS=''
27774if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027776$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000027778$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027780$as_echo "" >&6; }
27781 failed=0
27782 passed=0
cristy8b350f62009-11-15 23:12:43 +000027783 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27784if test "x$ac_cv_header_jconfig_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027785 passed=`expr $passed + 1`
27786else
27787 failed=`expr $failed + 1`
27788fi
27789
27790
cristy8b350f62009-11-15 23:12:43 +000027791 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27792if test "x$ac_cv_header_jerror_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 passed=`expr $passed + 1`
27794else
27795 failed=`expr $failed + 1`
27796fi
27797
27798
cristy8b350f62009-11-15 23:12:43 +000027799 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27800if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027801 passed=`expr $passed + 1`
27802else
27803 failed=`expr $failed + 1`
27804fi
27805
27806
cristy8b350f62009-11-15 23:12:43 +000027807 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27808if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027809 passed=`expr $passed + 1`
27810else
27811 failed=`expr $failed + 1`
27812fi
27813
27814
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027817if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 $as_echo_n "(cached) " >&6
27819else
27820 ac_check_lib_save_LIBS=$LIBS
27821LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823/* end confdefs.h. */
27824
27825/* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27828#ifdef __cplusplus
27829extern "C"
27830#endif
27831char jpeg_read_header ();
27832int
27833main ()
27834{
27835return jpeg_read_header ();
27836 ;
27837 return 0;
27838}
27839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 ac_cv_lib_jpeg_jpeg_read_header=yes
27842else
cristy8b350f62009-11-15 23:12:43 +000027843 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000027844fi
cristy8b350f62009-11-15 23:12:43 +000027845rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027847LIBS=$ac_check_lib_save_LIBS
27848fi
cristy8b350f62009-11-15 23:12:43 +000027849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027851if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 passed=`expr $passed + 1`
27853else
27854 failed=`expr $failed + 1`
27855fi
27856
27857
27858# Test for compatible JPEG library
27859if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027862if test "${ac_cv_jpeg_version_ok+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 $as_echo_n "(cached) " >&6
27864else
cristy8b350f62009-11-15 23:12:43 +000027865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027866/* end confdefs.h. */
27867#include <stdio.h>
27868#include <stdlib.h>
27869#include <jpeglib.h>
27870
27871int
27872main ()
27873{
27874
27875#if JPEG_LIB_VERSION < 62
27876#error IJG JPEG library must be version 6b or newer!
27877#endif
27878return 0;
27879
27880 ;
27881 return 0;
27882}
27883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027884if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27886else
cristy8b350f62009-11-15 23:12:43 +000027887 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000027888fi
cristy3ed852e2009-09-05 21:47:34 +000027889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27890fi
cristy8b350f62009-11-15 23:12:43 +000027891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000027892$as_echo "$ac_cv_jpeg_version_ok" >&6; }
27893fi
cristy8b350f62009-11-15 23:12:43 +000027894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo_n "checking if JPEG package is complete... " >&6; }
27896 if test $passed -gt 0; then
27897 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo "no -- some components failed test" >&6; }
27900 have_jpeg='no (failed tests)'
27901 else
27902 JPEG_LIBS='-ljpeg'
27903 LIBS="$JPEG_LIBS $LIBS"
27904
cristy8b350f62009-11-15 23:12:43 +000027905$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027906
cristy8b350f62009-11-15 23:12:43 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027908$as_echo "yes" >&6; }
27909 have_jpeg='yes'
27910 fi
27911 else
cristy8b350f62009-11-15 23:12:43 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027913$as_echo "no" >&6; }
27914 fi
27915fi
27916 if test "$have_jpeg" = 'yes'; then
27917 JPEG_DELEGATE_TRUE=
27918 JPEG_DELEGATE_FALSE='#'
27919else
27920 JPEG_DELEGATE_TRUE='#'
27921 JPEG_DELEGATE_FALSE=
27922fi
27923
27924
27925
27926
27927#
27928# Check for JPEG Version 2 delegate library.
27929#
27930
27931# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000027932if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027933 withval=$with_jp2; with_jp2=$withval
27934else
27935 with_jp2='yes'
27936fi
27937
27938
27939if test "$with_jp2" != 'yes'; then
27940 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27941fi
27942
27943have_jp2='no'
27944JP2_LIBS=''
27945if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027947$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027951$as_echo "" >&6; }
27952 failed=0
27953 passed=0
cristy8b350f62009-11-15 23:12:43 +000027954 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27955if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027956 passed=`expr $passed + 1`
27957else
27958 failed=`expr $failed + 1`
27959fi
27960
27961
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027964if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027965 $as_echo_n "(cached) " >&6
27966else
27967 ac_check_lib_save_LIBS=$LIBS
27968LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970/* end confdefs.h. */
27971
27972/* Override any GCC internal prototype to avoid an error.
27973 Use char because int might match the return type of a GCC
27974 builtin and then its argument prototype would still apply. */
27975#ifdef __cplusplus
27976extern "C"
27977#endif
27978char jas_stream_fopen ();
27979int
27980main ()
27981{
27982return jas_stream_fopen ();
27983 ;
27984 return 0;
27985}
27986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027988 ac_cv_lib_jasper_jas_stream_fopen=yes
27989else
cristy8b350f62009-11-15 23:12:43 +000027990 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000027991fi
cristy8b350f62009-11-15 23:12:43 +000027992rm -f core conftest.err conftest.$ac_objext \
27993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027994LIBS=$ac_check_lib_save_LIBS
27995fi
cristy8b350f62009-11-15 23:12:43 +000027996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027997$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027998if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 passed=`expr $passed + 1`
28000else
28001 failed=`expr $failed + 1`
28002fi
28003
cristy8b350f62009-11-15 23:12:43 +000028004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028005$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28006 if test $passed -gt 0; then
28007 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028009$as_echo "no -- some components failed test" >&6; }
28010 have_jp2='no (failed tests)'
28011 else
28012 JP2_LIBS='-ljasper'
28013 LIBS="$JP2_LIBS $LIBS"
28014
cristy8b350f62009-11-15 23:12:43 +000028015$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028016
cristy8b350f62009-11-15 23:12:43 +000028017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028018$as_echo "yes" >&6; }
28019 have_jp2='yes'
28020 fi
28021 else
cristy8b350f62009-11-15 23:12:43 +000028022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo "no" >&6; }
28024 fi
28025fi
28026 if test "$have_jp2" = 'yes'; then
28027 JP2_DELEGATE_TRUE=
28028 JP2_DELEGATE_FALSE='#'
28029else
28030 JP2_DELEGATE_TRUE='#'
28031 JP2_DELEGATE_FALSE=
28032fi
28033
28034
28035
28036
28037#
28038# Check for LCMS delegate library.
28039#
28040
28041# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028042if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028043 withval=$with_lcms; with_lcms=$withval
28044else
28045 with_lcms='yes'
28046fi
28047
28048
28049if test "$with_lcms" != 'yes'; then
28050 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28051fi
28052
28053have_lcms='no'
28054LCMS_LIBS=''
28055if test "$with_lcms" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo_n "checking for LCMS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028061$as_echo "" >&6; }
28062 failed=0
28063 passed=0
28064 have_lcms_header='no'
cristyd09bcf92010-03-25 03:04:45 +000028065 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28066if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28067 have_lcms_header='yes'
28068fi
28069
28070
28071 if test "$have_lcms_header" = 'yes'; then
28072 passed=`expr $passed + 1`
28073
28074$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28075
28076 else
28077 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
28078if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
28079 have_lcms_header='yes'
28080fi
28081
28082
28083 if test "$have_lcms_header" = 'yes'; then
28084 passed=`expr $passed + 1`
28085
28086$as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
28087
28088 else
28089 failed=`expr $failed + 1`
28090 fi
28091 fi
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
28093$as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
28094if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
28095 $as_echo_n "(cached) " >&6
28096else
28097 ac_check_lib_save_LIBS=$LIBS
28098LIBS="-llcms2 $LIBS"
28099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28100/* end confdefs.h. */
28101
28102/* Override any GCC internal prototype to avoid an error.
28103 Use char because int might match the return type of a GCC
28104 builtin and then its argument prototype would still apply. */
28105#ifdef __cplusplus
28106extern "C"
28107#endif
28108char cmsOpenProfileFromMem ();
28109int
28110main ()
28111{
28112return cmsOpenProfileFromMem ();
28113 ;
28114 return 0;
28115}
28116_ACEOF
28117if ac_fn_c_try_link "$LINENO"; then :
28118 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
28119else
28120 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
28121fi
28122rm -f core conftest.err conftest.$ac_objext \
28123 conftest$ac_exeext conftest.$ac_ext
28124LIBS=$ac_check_lib_save_LIBS
28125fi
28126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
28127$as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
28128if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
28129 passed=`expr $passed + 1`
28130else
28131 failed=`expr $failed + 1`
28132fi
28133
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
28135$as_echo_n "checking if LCMS2 package is complete... " >&6; }
28136 if test $passed -gt 0; then
28137 if test $failed -gt 0; then
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28139$as_echo "no -- some components failed test" >&6; }
28140 have_lcms='no (failed tests)'
28141 else
28142 LCMS_LIBS='-llcms2'
28143 LIBS="$LCMS_LIBS $LIBS"
28144
28145$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28146
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28148$as_echo "yes" >&6; }
28149 have_lcms='yes'
28150 fi
28151 else
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28153$as_echo "no" >&6; }
28154 fi
28155fi
28156
28157if test "$with_lcms" != 'no'; then
28158if test "$have_lcms" == 'no'; then
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28160$as_echo "-------------------------------------------------------------" >&6; }
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
28162$as_echo_n "checking for LCMS... " >&6; }
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28164$as_echo "" >&6; }
28165 failed=0
28166 passed=0
28167 have_lcms_header='no'
cristy8b350f62009-11-15 23:12:43 +000028168 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28169if test "x$ac_cv_header_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028170 have_lcms_header='yes'
28171fi
28172
28173
28174 if test "$have_lcms_header" = 'yes'; then
28175 passed=`expr $passed + 1`
28176
cristy8b350f62009-11-15 23:12:43 +000028177$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028178
28179 else
cristy8b350f62009-11-15 23:12:43 +000028180 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28181if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028182 have_lcms_header='yes'
28183fi
28184
28185
28186 if test "$have_lcms_header" = 'yes'; then
28187 passed=`expr $passed + 1`
28188
cristy8b350f62009-11-15 23:12:43 +000028189$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028190
28191 else
28192 failed=`expr $failed + 1`
28193 fi
28194 fi
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028197if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 $as_echo_n "(cached) " >&6
28199else
28200 ac_check_lib_save_LIBS=$LIBS
28201LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028203/* end confdefs.h. */
28204
28205/* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28208#ifdef __cplusplus
28209extern "C"
28210#endif
28211char cmsOpenProfileFromMem ();
28212int
28213main ()
28214{
28215return cmsOpenProfileFromMem ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
28222else
cristy8b350f62009-11-15 23:12:43 +000028223 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
cristy3ed852e2009-09-05 21:47:34 +000028224fi
cristy8b350f62009-11-15 23:12:43 +000028225rm -f core conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028227LIBS=$ac_check_lib_save_LIBS
28228fi
cristy8b350f62009-11-15 23:12:43 +000028229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028231if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028232 passed=`expr $passed + 1`
28233else
28234 failed=`expr $failed + 1`
28235fi
28236
cristy8b350f62009-11-15 23:12:43 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028238$as_echo_n "checking if LCMS package is complete... " >&6; }
28239 if test $passed -gt 0; then
28240 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028242$as_echo "no -- some components failed test" >&6; }
28243 have_lcms='no (failed tests)'
28244 else
28245 LCMS_LIBS='-llcms'
28246 LIBS="$LCMS_LIBS $LIBS"
28247
cristy8b350f62009-11-15 23:12:43 +000028248$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028249
cristy8b350f62009-11-15 23:12:43 +000028250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028251$as_echo "yes" >&6; }
28252 have_lcms='yes'
28253 fi
28254 else
cristy8b350f62009-11-15 23:12:43 +000028255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028256$as_echo "no" >&6; }
28257 fi
28258fi
cristyd09bcf92010-03-25 03:04:45 +000028259fi
cristy3ed852e2009-09-05 21:47:34 +000028260 if test "$have_lcms" = 'yes'; then
28261 LCMS_DELEGATE_TRUE=
28262 LCMS_DELEGATE_FALSE='#'
28263else
28264 LCMS_DELEGATE_TRUE='#'
28265 LCMS_DELEGATE_FALSE=
28266fi
28267
28268
28269
28270
28271#
28272# Check for the LQR (Liquid Rescale) delegate library.
28273#
28274
28275# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028276if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028277 withval=$with_lqr; with_lqr=$withval
28278else
28279 with_lqr='yes'
28280fi
28281
28282
28283if test "$with_lqr" != 'yes'; then
28284 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28285fi
28286
28287have_lqr='no'
28288LQR_CFLAGS=""
28289LQR_LIBS=""
28290LQR_PKG=""
28291if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028293$as_echo "-------------------------------------------------------------" >&6; }
28294
28295pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo_n "checking for LQR... " >&6; }
28298
28299if test -n "$LQR_CFLAGS"; then
28300 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28301 elif test -n "$PKG_CONFIG"; then
28302 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028304 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28305 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28307 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028308 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28309else
28310 pkg_failed=yes
28311fi
28312 else
28313 pkg_failed=untried
28314fi
28315if test -n "$LQR_LIBS"; then
28316 pkg_cv_LQR_LIBS="$LQR_LIBS"
28317 elif test -n "$PKG_CONFIG"; then
28318 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028320 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28321 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28323 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028324 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28325else
28326 pkg_failed=yes
28327fi
28328 else
28329 pkg_failed=untried
28330fi
28331
28332
28333
28334if test $pkg_failed = yes; then
28335
28336if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28337 _pkg_short_errors_supported=yes
28338else
28339 _pkg_short_errors_supported=no
28340fi
28341 if test $_pkg_short_errors_supported = yes; then
28342 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28343 else
28344 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28345 fi
28346 # Put the nasty error message in config.log where it belongs
28347 echo "$LQR_PKG_ERRORS" >&5
28348
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo "no" >&6; }
28351 have_lqr=no
28352elif test $pkg_failed = untried; then
28353 have_lqr=no
28354else
28355 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28356 LQR_LIBS=$pkg_cv_LQR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028358$as_echo "yes" >&6; }
28359 have_lqr=yes
28360fi
cristy8b350f62009-11-15 23:12:43 +000028361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028362$as_echo "" >&6; }
28363fi
28364
28365if test "$have_lqr" = 'yes'; then
28366
cristy8b350f62009-11-15 23:12:43 +000028367$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028368
28369 CFLAGS="$LQR_CFLAGS $CFLAGS"
28370fi
28371
28372 if test "$have_lqr" = 'yes'; then
28373 LQR_DELEGATE_TRUE=
28374 LQR_DELEGATE_FALSE='#'
28375else
28376 LQR_DELEGATE_TRUE='#'
28377 LQR_DELEGATE_FALSE=
28378fi
28379
28380
28381
28382
28383
28384#
28385# Check for the OpenEXR delegate library.
28386#
28387
28388# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000028389if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028390 withval=$with_openexr; with_openexr=$withval
28391else
28392 with_openexr='yes'
28393fi
28394
28395
28396if test "$with_openexr" != 'yes'; then
28397 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28398fi
28399
28400have_openexr='no'
28401OPENEXR_CFLAGS=""
28402OPENEXR_LIBS=""
28403OPENEXR_PKG=""
28404if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028406$as_echo "-------------------------------------------------------------" >&6; }
28407
28408pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
cristy3ed852e2009-09-05 21:47:34 +000028410$as_echo_n "checking for OPENEXR... " >&6; }
28411
28412if test -n "$OPENEXR_CFLAGS"; then
28413 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28414 elif test -n "$PKG_CONFIG"; then
28415 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028417 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28418 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028421 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28422else
28423 pkg_failed=yes
28424fi
28425 else
28426 pkg_failed=untried
28427fi
28428if test -n "$OPENEXR_LIBS"; then
28429 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28430 elif test -n "$PKG_CONFIG"; then
28431 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028433 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28434 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28436 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028437 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28438else
28439 pkg_failed=yes
28440fi
28441 else
28442 pkg_failed=untried
28443fi
28444
28445
28446
28447if test $pkg_failed = yes; then
28448
28449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28450 _pkg_short_errors_supported=yes
28451else
28452 _pkg_short_errors_supported=no
28453fi
28454 if test $_pkg_short_errors_supported = yes; then
28455 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28456 else
28457 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28458 fi
28459 # Put the nasty error message in config.log where it belongs
28460 echo "$OPENEXR_PKG_ERRORS" >&5
28461
cristy8b350f62009-11-15 23:12:43 +000028462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028463$as_echo "no" >&6; }
28464 have_openexr=no
28465elif test $pkg_failed = untried; then
28466 have_openexr=no
28467else
28468 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28469 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
cristy8b350f62009-11-15 23:12:43 +000028470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028471$as_echo "yes" >&6; }
28472 have_openexr=yes
28473fi
cristy8b350f62009-11-15 23:12:43 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028475$as_echo "" >&6; }
28476fi
28477
28478if test "$have_openexr" = 'yes'; then
28479
cristy8b350f62009-11-15 23:12:43 +000028480$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028481
28482 if test "$with_modules" = 'no'; then
28483 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28484 fi
28485fi
28486
28487 if test "$have_openexr" = 'yes'; then
28488 OPENEXR_DELEGATE_TRUE=
28489 OPENEXR_DELEGATE_FALSE='#'
28490else
28491 OPENEXR_DELEGATE_TRUE='#'
28492 OPENEXR_DELEGATE_FALSE=
28493fi
28494
28495
28496
28497
28498
28499#
28500# Check for PNG delegate library.
28501#
28502
28503# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000028504if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028505 withval=$with_png; with_png=$withval
28506else
28507 with_png='yes'
28508fi
28509
28510
28511if test "$with_png" != 'yes'; then
28512 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28513fi
28514
28515have_png='no'
28516PNG_LIBS=''
28517if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028523$as_echo "" >&6; }
28524 failed=0
28525 passed=0
cristy8b350f62009-11-15 23:12:43 +000028526 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28527if test "x$ac_cv_header_png_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028528 passed=`expr $passed + 1`
28529else
28530 failed=`expr $failed + 1`
28531fi
28532
28533
cristy8b350f62009-11-15 23:12:43 +000028534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000028535$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028536if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028537 $as_echo_n "(cached) " >&6
28538else
28539 ac_check_lib_save_LIBS=$LIBS
28540LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028542/* end confdefs.h. */
28543
28544/* Override any GCC internal prototype to avoid an error.
28545 Use char because int might match the return type of a GCC
28546 builtin and then its argument prototype would still apply. */
28547#ifdef __cplusplus
28548extern "C"
28549#endif
28550char png_get_io_ptr ();
28551int
28552main ()
28553{
28554return png_get_io_ptr ();
28555 ;
28556 return 0;
28557}
28558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028560 ac_cv_lib_png_png_get_io_ptr=yes
28561else
cristy8b350f62009-11-15 23:12:43 +000028562 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000028563fi
cristy8b350f62009-11-15 23:12:43 +000028564rm -f core conftest.err conftest.$ac_objext \
28565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028566LIBS=$ac_check_lib_save_LIBS
28567fi
cristy8b350f62009-11-15 23:12:43 +000028568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000028569$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028570if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028571 passed=`expr $passed + 1`
28572else
28573 failed=`expr $failed + 1`
28574fi
28575
cristy8b350f62009-11-15 23:12:43 +000028576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo_n "checking if PNG package is complete... " >&6; }
28578 if test $passed -gt 0; then
28579 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028581$as_echo "no -- some components failed test" >&6; }
28582 have_png='no (failed tests)'
28583 else
28584 PNG_LIBS='-lpng'
28585 LIBS="$PNG_LIBS $LIBS"
28586
cristy8b350f62009-11-15 23:12:43 +000028587$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028588
cristy8b350f62009-11-15 23:12:43 +000028589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028590$as_echo "yes" >&6; }
28591 have_png='yes'
28592 fi
28593 else
cristy8b350f62009-11-15 23:12:43 +000028594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo "no" >&6; }
28596 fi
28597fi
28598 if test "$have_png" = 'yes'; then
28599 PNG_DELEGATE_TRUE=
28600 PNG_DELEGATE_FALSE='#'
28601else
28602 PNG_DELEGATE_TRUE='#'
28603 PNG_DELEGATE_FALSE=
28604fi
28605
28606
28607
28608
28609#
28610# Check for RSVG delegate library.
28611#
28612
28613# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000028614if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028615 withval=$with_rsvg; with_rsvg=$withval
28616else
28617 with_rsvg=$have_x
28618fi
28619
28620
28621if test "$with_rsvg" != 'yes'; then
28622 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28623fi
28624
28625have_rsvg='no'
28626have_cairo='no'
28627RSVG_CFLAGS=""
28628RSVG_LIBS=""
28629RSVG_PKG=""
28630if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028632$as_echo "-------------------------------------------------------------" >&6; }
28633
28634pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028636$as_echo_n "checking for RSVG... " >&6; }
28637
28638if test -n "$RSVG_CFLAGS"; then
28639 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28640 elif test -n "$PKG_CONFIG"; then
28641 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028642 { { $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 +000028643 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28644 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28646 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028647 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28648else
28649 pkg_failed=yes
28650fi
28651 else
28652 pkg_failed=untried
28653fi
28654if test -n "$RSVG_LIBS"; then
28655 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28656 elif test -n "$PKG_CONFIG"; then
28657 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028658 { { $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 +000028659 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28660 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28662 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028663 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28664else
28665 pkg_failed=yes
28666fi
28667 else
28668 pkg_failed=untried
28669fi
28670
28671
28672
28673if test $pkg_failed = yes; then
28674
28675if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28676 _pkg_short_errors_supported=yes
28677else
28678 _pkg_short_errors_supported=no
28679fi
28680 if test $_pkg_short_errors_supported = yes; then
28681 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28682 else
28683 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28684 fi
28685 # Put the nasty error message in config.log where it belongs
28686 echo "$RSVG_PKG_ERRORS" >&5
28687
cristy8b350f62009-11-15 23:12:43 +000028688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028689$as_echo "no" >&6; }
28690 have_rsvg=no
28691elif test $pkg_failed = untried; then
28692 have_rsvg=no
28693else
28694 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28695 RSVG_LIBS=$pkg_cv_RSVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028697$as_echo "yes" >&6; }
28698 have_rsvg=yes
28699fi
cristy8b350f62009-11-15 23:12:43 +000028700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028701$as_echo "" >&6; }
28702
28703pkg_failed=no
cristy8b350f62009-11-15 23:12:43 +000028704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028705$as_echo_n "checking for CAIRO_SVG... " >&6; }
28706
28707if test -n "$CAIRO_SVG_CFLAGS"; then
28708 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28709 elif test -n "$PKG_CONFIG"; then
28710 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028712 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28713 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28715 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028716 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28717else
28718 pkg_failed=yes
28719fi
28720 else
28721 pkg_failed=untried
28722fi
28723if test -n "$CAIRO_SVG_LIBS"; then
28724 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28725 elif test -n "$PKG_CONFIG"; then
28726 if test -n "$PKG_CONFIG" && \
cristy8b350f62009-11-15 23:12:43 +000028727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
cristy3ed852e2009-09-05 21:47:34 +000028728 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28729 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28731 test $ac_status = 0; }; then
cristy3ed852e2009-09-05 21:47:34 +000028732 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28733else
28734 pkg_failed=yes
28735fi
28736 else
28737 pkg_failed=untried
28738fi
28739
28740
28741
28742if test $pkg_failed = yes; then
28743
28744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28745 _pkg_short_errors_supported=yes
28746else
28747 _pkg_short_errors_supported=no
28748fi
28749 if test $_pkg_short_errors_supported = yes; then
28750 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28751 else
28752 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28753 fi
28754 # Put the nasty error message in config.log where it belongs
28755 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28756
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; }
28759 have_cairo=no
28760elif test $pkg_failed = untried; then
28761 have_cairo=no
28762else
28763 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28764 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
cristy8b350f62009-11-15 23:12:43 +000028765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028766$as_echo "yes" >&6; }
28767 have_cairo=yes
28768fi
cristy8b350f62009-11-15 23:12:43 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028770$as_echo "" >&6; }
28771fi
28772
28773if test "$have_rsvg" = 'yes'; then
28774
cristy8b350f62009-11-15 23:12:43 +000028775$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028776
28777 if test "$with_modules" = 'no'; then
28778 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28779 fi
28780fi
28781
28782if test "$have_cairo" = 'yes'; then
28783
cristy8b350f62009-11-15 23:12:43 +000028784$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028785
28786 if test "$with_modules" = 'no'; then
28787 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28788 fi
28789fi
28790
28791 if test "$have_rsvg" = 'yes'; then
28792 RSVG_DELEGATE_TRUE=
28793 RSVG_DELEGATE_FALSE='#'
28794else
28795 RSVG_DELEGATE_TRUE='#'
28796 RSVG_DELEGATE_FALSE=
28797fi
28798
28799 if test "$have_cairo" = 'yes'; then
28800 CAIRO_DELEGATE_TRUE=
28801 CAIRO_DELEGATE_FALSE='#'
28802else
28803 CAIRO_DELEGATE_TRUE='#'
28804 CAIRO_DELEGATE_FALSE=
28805fi
28806
28807
28808
28809
28810
28811#
28812# Check for TIFF delegate library.
28813#
28814
28815# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000028816if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 withval=$with_tiff; with_tiff=$withval
28818else
28819 with_tiff='yes'
28820fi
28821
28822
28823if test "$with_tiff" != 'yes'; then
28824 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28825fi
28826
28827have_tiff='no'
28828TIFF_LIBS=''
28829if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028831$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000028833$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028835$as_echo "" >&6; }
28836 failed=0
28837 passed=0
cristy8b350f62009-11-15 23:12:43 +000028838 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28839if test "x$ac_cv_header_tiff_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028840 passed=`expr $passed + 1`
28841else
28842 failed=`expr $failed + 1`
28843fi
28844
28845
cristy8b350f62009-11-15 23:12:43 +000028846 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28847if test "x$ac_cv_header_tiffio_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028848 passed=`expr $passed + 1`
28849else
28850 failed=`expr $failed + 1`
28851fi
28852
28853
cristy8b350f62009-11-15 23:12:43 +000028854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028855$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028856if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028857 $as_echo_n "(cached) " >&6
28858else
28859 ac_check_lib_save_LIBS=$LIBS
28860LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028862/* end confdefs.h. */
28863
28864/* Override any GCC internal prototype to avoid an error.
28865 Use char because int might match the return type of a GCC
28866 builtin and then its argument prototype would still apply. */
28867#ifdef __cplusplus
28868extern "C"
28869#endif
28870char TIFFOpen ();
28871int
28872main ()
28873{
28874return TIFFOpen ();
28875 ;
28876 return 0;
28877}
28878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028880 ac_cv_lib_tiff_TIFFOpen=yes
28881else
cristy8b350f62009-11-15 23:12:43 +000028882 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028883fi
cristy8b350f62009-11-15 23:12:43 +000028884rm -f core conftest.err conftest.$ac_objext \
28885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028886LIBS=$ac_check_lib_save_LIBS
28887fi
cristy8b350f62009-11-15 23:12:43 +000028888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028889$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028890if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028891 passed=`expr $passed + 1`
28892else
28893 failed=`expr $failed + 1`
28894fi
28895
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028898if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028899 $as_echo_n "(cached) " >&6
28900else
28901 ac_check_lib_save_LIBS=$LIBS
28902LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028904/* end confdefs.h. */
28905
28906/* Override any GCC internal prototype to avoid an error.
28907 Use char because int might match the return type of a GCC
28908 builtin and then its argument prototype would still apply. */
28909#ifdef __cplusplus
28910extern "C"
28911#endif
28912char TIFFClientOpen ();
28913int
28914main ()
28915{
28916return TIFFClientOpen ();
28917 ;
28918 return 0;
28919}
28920_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028921if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028922 ac_cv_lib_tiff_TIFFClientOpen=yes
28923else
cristy8b350f62009-11-15 23:12:43 +000028924 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000028925fi
cristy8b350f62009-11-15 23:12:43 +000028926rm -f core conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928LIBS=$ac_check_lib_save_LIBS
28929fi
cristy8b350f62009-11-15 23:12:43 +000028930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028931$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028932if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028933 passed=`expr $passed + 1`
28934else
28935 failed=`expr $failed + 1`
28936fi
28937
cristy8b350f62009-11-15 23:12:43 +000028938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028939$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028940if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028941 $as_echo_n "(cached) " >&6
28942else
28943 ac_check_lib_save_LIBS=$LIBS
28944LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028946/* end confdefs.h. */
28947
28948/* Override any GCC internal prototype to avoid an error.
28949 Use char because int might match the return type of a GCC
28950 builtin and then its argument prototype would still apply. */
28951#ifdef __cplusplus
28952extern "C"
28953#endif
28954char TIFFIsByteSwapped ();
28955int
28956main ()
28957{
28958return TIFFIsByteSwapped ();
28959 ;
28960 return 0;
28961}
28962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028964 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28965else
cristy8b350f62009-11-15 23:12:43 +000028966 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000028967fi
cristy8b350f62009-11-15 23:12:43 +000028968rm -f core conftest.err conftest.$ac_objext \
28969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028970LIBS=$ac_check_lib_save_LIBS
28971fi
cristy8b350f62009-11-15 23:12:43 +000028972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000028973$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028974if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000028975 passed=`expr $passed + 1`
28976else
28977 failed=`expr $failed + 1`
28978fi
28979
cristy8b350f62009-11-15 23:12:43 +000028980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000028981$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028982if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028983 $as_echo_n "(cached) " >&6
28984else
28985 ac_check_lib_save_LIBS=$LIBS
28986LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028988/* end confdefs.h. */
28989
28990/* Override any GCC internal prototype to avoid an error.
28991 Use char because int might match the return type of a GCC
28992 builtin and then its argument prototype would still apply. */
28993#ifdef __cplusplus
28994extern "C"
28995#endif
28996char TIFFReadRGBATile ();
28997int
28998main ()
28999{
29000return TIFFReadRGBATile ();
29001 ;
29002 return 0;
29003}
29004_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029005if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029006 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29007else
cristy8b350f62009-11-15 23:12:43 +000029008 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029009fi
cristy8b350f62009-11-15 23:12:43 +000029010rm -f core conftest.err conftest.$ac_objext \
29011 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029012LIBS=$ac_check_lib_save_LIBS
29013fi
cristy8b350f62009-11-15 23:12:43 +000029014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029015$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029016if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029017 passed=`expr $passed + 1`
29018else
29019 failed=`expr $failed + 1`
29020fi
29021
cristy8b350f62009-11-15 23:12:43 +000029022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029023$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029024if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029025 $as_echo_n "(cached) " >&6
29026else
29027 ac_check_lib_save_LIBS=$LIBS
29028LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029030/* end confdefs.h. */
29031
29032/* Override any GCC internal prototype to avoid an error.
29033 Use char because int might match the return type of a GCC
29034 builtin and then its argument prototype would still apply. */
29035#ifdef __cplusplus
29036extern "C"
29037#endif
29038char TIFFReadRGBAStrip ();
29039int
29040main ()
29041{
29042return TIFFReadRGBAStrip ();
29043 ;
29044 return 0;
29045}
29046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029048 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29049else
cristy8b350f62009-11-15 23:12:43 +000029050 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029051fi
cristy8b350f62009-11-15 23:12:43 +000029052rm -f core conftest.err conftest.$ac_objext \
29053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029054LIBS=$ac_check_lib_save_LIBS
29055fi
cristy8b350f62009-11-15 23:12:43 +000029056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029057$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029058if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029059 passed=`expr $passed + 1`
29060else
29061 failed=`expr $failed + 1`
29062fi
29063
cristy8b350f62009-11-15 23:12:43 +000029064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029065$as_echo_n "checking if TIFF package is complete... " >&6; }
29066 if test $passed -gt 0; then
29067 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029069$as_echo "no -- some components failed test" >&6; }
29070 have_tiff='no (failed tests)'
29071 else
29072 TIFF_LIBS='-ltiff'
29073 LIBS="$TIFF_LIBS $LIBS"
29074
cristy8b350f62009-11-15 23:12:43 +000029075$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029076
cristy8b350f62009-11-15 23:12:43 +000029077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029078$as_echo "yes" >&6; }
29079 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029080 for ac_header in tiffconf.h
29081do :
29082 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29083if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029084 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029085#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029086_ACEOF
29087
29088fi
29089
29090done
29091
cristy8b350f62009-11-15 23:12:43 +000029092 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029093 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29094 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029095do :
29096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29097ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29098eval as_val=\$$as_ac_var
29099 if test "x$as_val" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029100 cat >>confdefs.h <<_ACEOF
29101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29102_ACEOF
29103
29104fi
29105done
29106
29107 fi
29108 else
cristy8b350f62009-11-15 23:12:43 +000029109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029110$as_echo "no" >&6; }
29111 fi
29112fi
29113 if test "$have_tiff" = 'yes'; then
29114 TIFF_DELEGATE_TRUE=
29115 TIFF_DELEGATE_FALSE='#'
29116else
29117 TIFF_DELEGATE_TRUE='#'
29118 TIFF_DELEGATE_FALSE=
29119fi
29120
29121
29122
29123
29124#
29125# Set Windows font directory.
29126#
29127
29128# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029129if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029130 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29131else
29132 with_windows_font_dir=''
29133fi
29134
29135if test "$with_windows_font_dir" != '' ; then
29136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29137fi
29138
29139
29140#
29141# Check for WMF delegate library.
29142#
29143
29144# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029145if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029146 withval=$with_wmf; with_wmf=$withval
29147else
cristy8d63d1d2010-01-06 20:38:37 +000029148 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029149fi
29150
29151
29152if test "$with_wmf" != 'yes'; then
29153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29154fi
29155
29156have_wmf='no'
29157WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029158if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029160$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029162$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029164$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029165 failed=0
29166 passed=0
29167 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29168if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29169 passed=`expr $passed + 1`
29170else
29171 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029172fi
29173
29174
cristy735e8942010-04-02 20:32:57 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29176$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29177if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029178 $as_echo_n "(cached) " >&6
29179else
29180 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029181LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029183/* end confdefs.h. */
29184
29185/* Override any GCC internal prototype to avoid an error.
29186 Use char because int might match the return type of a GCC
29187 builtin and then its argument prototype would still apply. */
29188#ifdef __cplusplus
29189extern "C"
29190#endif
cristy735e8942010-04-02 20:32:57 +000029191char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029192int
29193main ()
29194{
cristy735e8942010-04-02 20:32:57 +000029195return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029196 ;
29197 return 0;
29198}
29199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029200if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029201 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000029202else
cristy735e8942010-04-02 20:32:57 +000029203 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000029204fi
cristy8b350f62009-11-15 23:12:43 +000029205rm -f core conftest.err conftest.$ac_objext \
29206 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029207LIBS=$ac_check_lib_save_LIBS
29208fi
cristy735e8942010-04-02 20:32:57 +000029209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29210$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29211if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29212 passed=`expr $passed + 1`
29213else
29214 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029215fi
29216
cristy735e8942010-04-02 20:32:57 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29218$as_echo_n "checking if WMF package is complete... " >&6; }
29219 if test $passed -gt 0; then
29220 if test $failed -gt 0; then
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29222$as_echo "no -- some components failed test" >&6; }
29223 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000029224 else
cristy735e8942010-04-02 20:32:57 +000029225 WMF_LIBS='-lwmf -lwmflite'
29226 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029227
cristy8b350f62009-11-15 23:12:43 +000029228$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029229
cristy735e8942010-04-02 20:32:57 +000029230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029231$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000029232 have_wmf='yes'
29233 fi
cristy3ed852e2009-09-05 21:47:34 +000029234 else
cristy8b350f62009-11-15 23:12:43 +000029235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029236$as_echo "no" >&6; }
29237 fi
29238fi
29239 if test "$have_wmf" = 'yes'; then
29240 WMF_DELEGATE_TRUE=
29241 WMF_DELEGATE_FALSE='#'
29242else
29243 WMF_DELEGATE_TRUE='#'
29244 WMF_DELEGATE_FALSE=
29245fi
29246
29247
29248
29249
29250
cristy735e8942010-04-02 20:32:57 +000029251
cristy3ed852e2009-09-05 21:47:34 +000029252#
29253# Check for XML delegate library.
29254#
29255
29256# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000029257if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029258 withval=$with_xml; with_xml=$withval
29259else
29260 with_xml=$have_x
29261fi
29262
29263
29264if test "$with_xml" != 'yes' ; then
29265 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29266fi
29267
29268have_xml='no'
29269XML_LIBS=''
29270if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029272$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000029274$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo "" >&6; }
29277 PERSIST_LDFLAGS=$LDFLAGS
29278 PERSIST_CPPFLAGS=$CPPFLAGS
29279 xml2_config=''
29280 for ac_prog in xml2-config
29281do
29282 # Extract the first word of "$ac_prog", so it can be a program name with args.
29283set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029285$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029286if test "${ac_cv_prog_xml2_config+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029287 $as_echo_n "(cached) " >&6
29288else
29289 if test -n "$xml2_config"; then
29290 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29291else
29292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29293for as_dir in $PATH
29294do
29295 IFS=$as_save_IFS
29296 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029297 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29299 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000029300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029301 break 2
29302 fi
29303done
cristy8b350f62009-11-15 23:12:43 +000029304 done
cristy3ed852e2009-09-05 21:47:34 +000029305IFS=$as_save_IFS
29306
29307fi
29308fi
29309xml2_config=$ac_cv_prog_xml2_config
29310if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000029311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000029312$as_echo "$xml2_config" >&6; }
29313else
cristy8b350f62009-11-15 23:12:43 +000029314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029315$as_echo "no" >&6; }
29316fi
29317
29318
29319 test -n "$xml2_config" && break
29320done
29321 if test -n "$xml2_config"; then
29322 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29323 # the shared library installed under /usr/lib, whereas the package
29324 # installs itself under $prefix/libxml and $prefix/lib.
29325 xml2_prefix=`xml2-config --prefix`
29326 if test -d "${xml2_prefix}/include/libxml2"; then
29327 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29328 fi
29329 if test "${xml2_prefix}" != '/usr'; then
29330 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29331 fi
29332 fi
29333 failed=0
29334 passed=0
cristy8b350f62009-11-15 23:12:43 +000029335 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29336if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029337 passed=`expr $passed + 1`
29338else
29339 failed=`expr $failed + 1`
29340fi
29341
29342
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029345if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029346 $as_echo_n "(cached) " >&6
29347else
29348 ac_check_lib_save_LIBS=$LIBS
29349LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029351/* end confdefs.h. */
29352
29353/* Override any GCC internal prototype to avoid an error.
29354 Use char because int might match the return type of a GCC
29355 builtin and then its argument prototype would still apply. */
29356#ifdef __cplusplus
29357extern "C"
29358#endif
29359char xmlParseExternalEntity ();
29360int
29361main ()
29362{
29363return xmlParseExternalEntity ();
29364 ;
29365 return 0;
29366}
29367_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029368if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029369 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29370else
cristy8b350f62009-11-15 23:12:43 +000029371 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000029372fi
cristy8b350f62009-11-15 23:12:43 +000029373rm -f core conftest.err conftest.$ac_objext \
29374 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029375LIBS=$ac_check_lib_save_LIBS
29376fi
cristy8b350f62009-11-15 23:12:43 +000029377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000029378$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029379if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 passed=`expr $passed + 1`
29381else
29382 failed=`expr $failed + 1`
29383fi
29384
cristy8b350f62009-11-15 23:12:43 +000029385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029386$as_echo_n "checking if XML package is complete... " >&6; }
29387 if test $passed -gt 0; then
29388 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029390$as_echo "no -- some components failed test" >&6; }
29391 have_xml='no (failed tests)'
29392 LDFLAGS="$PERSIST_LDFLAGS"
29393 CPPFLAGS="$PERSIST_CPPFLAGS"
29394 else
29395 XML_LIBS='-lxml2'
29396 LIBS="$XML_LIBS $LIBS"
29397
cristy8b350f62009-11-15 23:12:43 +000029398$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029399
cristy8b350f62009-11-15 23:12:43 +000029400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029401$as_echo "yes" >&6; }
29402 have_xml='yes'
29403 fi
29404 else
cristy8b350f62009-11-15 23:12:43 +000029405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029406$as_echo "no" >&6; }
29407 fi
29408fi
29409 if test "$have_xml" = 'yes'; then
29410 XML_DELEGATE_TRUE=
29411 XML_DELEGATE_FALSE='#'
29412else
29413 XML_DELEGATE_TRUE='#'
29414 XML_DELEGATE_FALSE=
29415fi
29416
29417
29418
29419
29420# Substitute compiler name to build/link PerlMagick
29421#
29422
29423
29424#
29425# Configure install Paths
29426#
29427
29428# Subdirectory under lib to place ImageMagick lib files
29429LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29430
29431cat >>confdefs.h <<_ACEOF
29432#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29433_ACEOF
29434
29435
29436# Path to ImageMagick bin directory
29437EXECUTABLE_PATH="${BIN_DIR}"
29438DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29439case "${build_os}" in
29440 mingw* )
29441 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29442 ;;
29443esac
29444
29445cat >>confdefs.h <<_ACEOF
29446#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29447_ACEOF
29448
29449
29450
29451# Path to ImageMagick lib
29452LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29453DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29454case "${build_os}" in
29455 mingw* )
29456 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29457 ;;
29458esac
29459
29460cat >>confdefs.h <<_ACEOF
29461#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29462_ACEOF
29463
29464
29465
29466# Subdirectory under lib to place ImageMagick configuration files
29467CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29468
29469cat >>confdefs.h <<_ACEOF
29470#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29471_ACEOF
29472
29473CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29474DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29475case "${build_os}" in
29476 mingw* )
29477 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29478 ;;
29479esac
29480
29481cat >>confdefs.h <<_ACEOF
29482#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29483_ACEOF
29484
29485
29486
29487#
29488# Subdirectory under lib to place ImageMagick coder module files
29489CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29490
29491cat >>confdefs.h <<_ACEOF
29492#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29493_ACEOF
29494
29495CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29496DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29497case "${build_os}" in
29498 mingw* )
29499 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29500 ;;
29501esac
29502
29503cat >>confdefs.h <<_ACEOF
29504#define CODER_PATH "$DEFINE_CODER_PATH"
29505_ACEOF
29506
29507
29508
29509#
29510# Subdirectory under lib to place ImageMagick filter module files
29511FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29512
29513cat >>confdefs.h <<_ACEOF
29514#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29515_ACEOF
29516
29517FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29518DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29519case "${build_os}" in
29520 mingw* )
29521 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29522 ;;
29523esac
29524
29525cat >>confdefs.h <<_ACEOF
29526#define FILTER_PATH "$DEFINE_FILTER_PATH"
29527_ACEOF
29528
29529
29530
29531#
29532# Path to ImageMagick documentation files
29533DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29534DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29535DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29536case "${build_os}" in
29537 mingw* )
29538 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29539 ;;
29540esac
29541
29542cat >>confdefs.h <<_ACEOF
29543#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29544_ACEOF
29545
29546
29547
29548#
29549# Path to ImageMagick share files
29550SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29551SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29552DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29553case "${build_os}" in
29554 mingw* )
29555 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29556 ;;
29557esac
29558
29559cat >>confdefs.h <<_ACEOF
29560#define SHARE_PATH "$DEFINE_SHARE_PATH"
29561_ACEOF
29562
29563
29564
29565# Subdirectory under share to place ImageMagick configuration files
29566SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29567
29568cat >>confdefs.h <<_ACEOF
29569#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29570_ACEOF
29571
29572SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29573DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29574case "${build_os}" in
29575 mingw* )
29576 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29577 ;;
29578esac
29579
29580cat >>confdefs.h <<_ACEOF
29581#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29582_ACEOF
29583
29584
29585
29586#
29587# program_transform_name is formed for use in a Makefile, so create a
29588# modified version for use in a shell script.
29589configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29590
29591# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000029592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029593$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029595$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029597$as_echo "" >&6; }
29598AutotraceDecodeDelegateDefault='autotrace'
29599AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000029600BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000029601BZIPDelegateDefault='bzip2'
29602BrowseDelegateDefault='xdg-open'
29603CGMDecodeDelegateDefault='ralcgm'
29604CatDelegateDefault='cat'
29605DNGDecodeDelegateDefault='ufraw-batch'
29606GVCDecodeDelegateDefault='dot'
29607DVIDecodeDelegateDefault='dvips'
29608EchoDelegateDefault='echo'
29609EditorDelegateDefault='xterm'
29610FIGDecodeDelegateDefault='fig2dev'
29611ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29612DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29613MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29614GnuplotDecodeDelegateDefault='gnuplot'
29615HDRDecodeDelegateDefault='ra_pfm'
29616HPGLDecodeDelegateDefault='hp2xx'
29617HTMLDecodeDelegateDefault='html2ps'
29618ILBMDecodeDelegateDefault='ilbmtoppm'
29619ILBMEncodeDelegateDefault='ppmtoilbm'
29620LPDelegateDefault='lp'
29621LPRDelegateDefault='lpr'
29622LZWDecodeDelegateDefault='uncompress'
29623LZWEncodeDelegateDefault='compress'
29624LaunchDelegateDefault='gimp'
29625MANDelegateDefault='groff'
29626MPEGDecodeDelegateDefault='ffmpeg'
29627MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000029628MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000029629MVDelegateDefault='mv'
29630PCLDelegateDefault='pcl6'
29631PGPDecodeDelegateDefault='pgpv'
29632POVDelegateDefault='povray'
29633if test "$native_win32_build" = 'yes'; then
29634 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000029635elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029636 PSDelegateDefault='gsc'
29637else
29638 PSDelegateDefault='gs'
29639fi
29640RLEEncodeDelegateDefault='rawtorle'
29641RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000029642RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000029643SCANDecodeDelegateDefault='scanimage'
29644TXTDelegateDefault='enscript'
29645WMFDecodeDelegateDefault='wmf2eps'
29646WWWDecodeDelegateDefault='curl'
29647XPSDelegateDefault='gxps'
29648ZipDelegateDefault='gzip'
29649
29650# Search for delegates
29651# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29652set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029655if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029656 $as_echo_n "(cached) " >&6
29657else
29658 case $AutotraceDecodeDelegate in
29659 [\\/]* | ?:[\\/]*)
29660 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29661 ;;
29662 *)
29663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29664for as_dir in $PATH
29665do
29666 IFS=$as_save_IFS
29667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29670 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672 break 2
29673 fi
29674done
cristy8b350f62009-11-15 23:12:43 +000029675 done
cristy3ed852e2009-09-05 21:47:34 +000029676IFS=$as_save_IFS
29677
29678 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29679 ;;
29680esac
29681fi
29682AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29683if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029685$as_echo "$AutotraceDecodeDelegate" >&6; }
29686else
cristy8b350f62009-11-15 23:12:43 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688$as_echo "no" >&6; }
29689fi
29690
29691
29692# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29693set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029695$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029696if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029697 $as_echo_n "(cached) " >&6
29698else
29699 case $AVIDecodeDelegate in
29700 [\\/]* | ?:[\\/]*)
29701 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29702 ;;
29703 *)
29704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29705for as_dir in $PATH
29706do
29707 IFS=$as_save_IFS
29708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29711 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029713 break 2
29714 fi
29715done
cristy8b350f62009-11-15 23:12:43 +000029716 done
cristy3ed852e2009-09-05 21:47:34 +000029717IFS=$as_save_IFS
29718
29719 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29720 ;;
29721esac
29722fi
29723AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29724if test -n "$AVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029726$as_echo "$AVIDecodeDelegate" >&6; }
29727else
cristy8b350f62009-11-15 23:12:43 +000029728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029729$as_echo "no" >&6; }
29730fi
29731
29732
29733# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29734set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029736$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029737if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 $as_echo_n "(cached) " >&6
29739else
29740 case $BlenderDecodeDelegate in
29741 [\\/]* | ?:[\\/]*)
29742 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29743 ;;
29744 *)
29745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29746for as_dir in $PATH
29747do
29748 IFS=$as_save_IFS
29749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29752 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029754 break 2
29755 fi
29756done
cristy8b350f62009-11-15 23:12:43 +000029757 done
cristy3ed852e2009-09-05 21:47:34 +000029758IFS=$as_save_IFS
29759
29760 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29761 ;;
29762esac
29763fi
29764BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29765if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029767$as_echo "$BlenderDecodeDelegate" >&6; }
29768else
cristy8b350f62009-11-15 23:12:43 +000029769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029770$as_echo "no" >&6; }
29771fi
29772
29773
29774# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29775set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029777$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029778if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029779 $as_echo_n "(cached) " >&6
29780else
29781 case $BZIPDelegate in
29782 [\\/]* | ?:[\\/]*)
29783 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29784 ;;
29785 *)
29786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29787for as_dir in $PATH
29788do
29789 IFS=$as_save_IFS
29790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29793 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029795 break 2
29796 fi
29797done
cristy8b350f62009-11-15 23:12:43 +000029798 done
cristy3ed852e2009-09-05 21:47:34 +000029799IFS=$as_save_IFS
29800
29801 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29802 ;;
29803esac
29804fi
29805BZIPDelegate=$ac_cv_path_BZIPDelegate
29806if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029808$as_echo "$BZIPDelegate" >&6; }
29809else
cristy8b350f62009-11-15 23:12:43 +000029810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029811$as_echo "no" >&6; }
29812fi
29813
29814
29815# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29816set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029818$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029819if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029820 $as_echo_n "(cached) " >&6
29821else
29822 case $BrowseDelegate in
29823 [\\/]* | ?:[\\/]*)
29824 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29825 ;;
29826 *)
29827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29828for as_dir in $PATH
29829do
29830 IFS=$as_save_IFS
29831 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029832 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29834 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029836 break 2
29837 fi
29838done
cristy8b350f62009-11-15 23:12:43 +000029839 done
cristy3ed852e2009-09-05 21:47:34 +000029840IFS=$as_save_IFS
29841
29842 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29843 ;;
29844esac
29845fi
29846BrowseDelegate=$ac_cv_path_BrowseDelegate
29847if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029849$as_echo "$BrowseDelegate" >&6; }
29850else
cristy8b350f62009-11-15 23:12:43 +000029851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029852$as_echo "no" >&6; }
29853fi
29854
29855
29856# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29857set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029859$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029860if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029861 $as_echo_n "(cached) " >&6
29862else
29863 case $CGMDecodeDelegate in
29864 [\\/]* | ?:[\\/]*)
29865 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29866 ;;
29867 *)
29868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29869for as_dir in $PATH
29870do
29871 IFS=$as_save_IFS
29872 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029873 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29875 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029877 break 2
29878 fi
29879done
cristy8b350f62009-11-15 23:12:43 +000029880 done
cristy3ed852e2009-09-05 21:47:34 +000029881IFS=$as_save_IFS
29882
29883 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29884 ;;
29885esac
29886fi
29887CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29888if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029890$as_echo "$CGMDecodeDelegate" >&6; }
29891else
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo "no" >&6; }
29894fi
29895
29896
29897# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29898set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029900$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029901if test "${ac_cv_path_CatDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029902 $as_echo_n "(cached) " >&6
29903else
29904 case $CatDelegate in
29905 [\\/]* | ?:[\\/]*)
29906 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29907 ;;
29908 *)
29909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29910for as_dir in $PATH
29911do
29912 IFS=$as_save_IFS
29913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29916 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029918 break 2
29919 fi
29920done
cristy8b350f62009-11-15 23:12:43 +000029921 done
cristy3ed852e2009-09-05 21:47:34 +000029922IFS=$as_save_IFS
29923
29924 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29925 ;;
29926esac
29927fi
29928CatDelegate=$ac_cv_path_CatDelegate
29929if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029931$as_echo "$CatDelegate" >&6; }
29932else
cristy8b350f62009-11-15 23:12:43 +000029933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029934$as_echo "no" >&6; }
29935fi
29936
29937
29938# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29939set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029941$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029942if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029943 $as_echo_n "(cached) " >&6
29944else
29945 case $DNGDecodeDelegate in
29946 [\\/]* | ?:[\\/]*)
29947 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29948 ;;
29949 *)
29950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29951for as_dir in $PATH
29952do
29953 IFS=$as_save_IFS
29954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29957 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029959 break 2
29960 fi
29961done
cristy8b350f62009-11-15 23:12:43 +000029962 done
cristy3ed852e2009-09-05 21:47:34 +000029963IFS=$as_save_IFS
29964
29965 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29966 ;;
29967esac
29968fi
29969DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29970if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029972$as_echo "$DNGDecodeDelegate" >&6; }
29973else
cristy8b350f62009-11-15 23:12:43 +000029974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029975$as_echo "no" >&6; }
29976fi
29977
29978
29979# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29980set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029983if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029984 $as_echo_n "(cached) " >&6
29985else
29986 case $GVCDecodeDelegate in
29987 [\\/]* | ?:[\\/]*)
29988 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29989 ;;
29990 *)
29991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29992for as_dir in $PATH
29993do
29994 IFS=$as_save_IFS
29995 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029996 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000029997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29998 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030000 break 2
30001 fi
30002done
cristy8b350f62009-11-15 23:12:43 +000030003 done
cristy3ed852e2009-09-05 21:47:34 +000030004IFS=$as_save_IFS
30005
30006 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30007 ;;
30008esac
30009fi
30010GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30011if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030013$as_echo "$GVCDecodeDelegate" >&6; }
30014else
cristy8b350f62009-11-15 23:12:43 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016$as_echo "no" >&6; }
30017fi
30018
30019
30020# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30021set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030024if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030025 $as_echo_n "(cached) " >&6
30026else
30027 case $DVIDecodeDelegate in
30028 [\\/]* | ?:[\\/]*)
30029 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30030 ;;
30031 *)
30032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30033for as_dir in $PATH
30034do
30035 IFS=$as_save_IFS
30036 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030037 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30039 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030041 break 2
30042 fi
30043done
cristy8b350f62009-11-15 23:12:43 +000030044 done
cristy3ed852e2009-09-05 21:47:34 +000030045IFS=$as_save_IFS
30046
30047 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30048 ;;
30049esac
30050fi
30051DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30052if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030054$as_echo "$DVIDecodeDelegate" >&6; }
30055else
cristy8b350f62009-11-15 23:12:43 +000030056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057$as_echo "no" >&6; }
30058fi
30059
30060
30061# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30062set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030064$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030065if test "${ac_cv_path_EchoDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030066 $as_echo_n "(cached) " >&6
30067else
30068 case $EchoDelegate in
30069 [\\/]* | ?:[\\/]*)
30070 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30071 ;;
30072 *)
30073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30074for as_dir in $PATH
30075do
30076 IFS=$as_save_IFS
30077 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030078 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30080 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030082 break 2
30083 fi
30084done
cristy8b350f62009-11-15 23:12:43 +000030085 done
cristy3ed852e2009-09-05 21:47:34 +000030086IFS=$as_save_IFS
30087
30088 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30089 ;;
30090esac
30091fi
30092EchoDelegate=$ac_cv_path_EchoDelegate
30093if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030095$as_echo "$EchoDelegate" >&6; }
30096else
cristy8b350f62009-11-15 23:12:43 +000030097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030098$as_echo "no" >&6; }
30099fi
30100
30101
30102# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30103set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030105$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030106if test "${ac_cv_path_EditorDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030107 $as_echo_n "(cached) " >&6
30108else
30109 case $EditorDelegate in
30110 [\\/]* | ?:[\\/]*)
30111 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30112 ;;
30113 *)
30114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30115for as_dir in $PATH
30116do
30117 IFS=$as_save_IFS
30118 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030119 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30121 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030123 break 2
30124 fi
30125done
cristy8b350f62009-11-15 23:12:43 +000030126 done
cristy3ed852e2009-09-05 21:47:34 +000030127IFS=$as_save_IFS
30128
30129 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30130 ;;
30131esac
30132fi
30133EditorDelegate=$ac_cv_path_EditorDelegate
30134if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030136$as_echo "$EditorDelegate" >&6; }
30137else
cristy8b350f62009-11-15 23:12:43 +000030138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030139$as_echo "no" >&6; }
30140fi
30141
30142
30143# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30144set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030146$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030147if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030148 $as_echo_n "(cached) " >&6
30149else
30150 case $FIGDecodeDelegate in
30151 [\\/]* | ?:[\\/]*)
30152 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30153 ;;
30154 *)
30155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30156for as_dir in $PATH
30157do
30158 IFS=$as_save_IFS
30159 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030160 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30162 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030164 break 2
30165 fi
30166done
cristy8b350f62009-11-15 23:12:43 +000030167 done
cristy3ed852e2009-09-05 21:47:34 +000030168IFS=$as_save_IFS
30169
30170 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30171 ;;
30172esac
30173fi
30174FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30175if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030177$as_echo "$FIGDecodeDelegate" >&6; }
30178else
cristy8b350f62009-11-15 23:12:43 +000030179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030180$as_echo "no" >&6; }
30181fi
30182
30183
30184# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30185set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030187$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030188if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030189 $as_echo_n "(cached) " >&6
30190else
30191 case $ConvertDelegate in
30192 [\\/]* | ?:[\\/]*)
30193 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30194 ;;
30195 *)
30196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30197for as_dir in $PATH
30198do
30199 IFS=$as_save_IFS
30200 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030201 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30203 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030205 break 2
30206 fi
30207done
cristy8b350f62009-11-15 23:12:43 +000030208 done
cristy3ed852e2009-09-05 21:47:34 +000030209IFS=$as_save_IFS
30210
30211 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30212 ;;
30213esac
30214fi
30215ConvertDelegate=$ac_cv_path_ConvertDelegate
30216if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030218$as_echo "$ConvertDelegate" >&6; }
30219else
cristy8b350f62009-11-15 23:12:43 +000030220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030221$as_echo "no" >&6; }
30222fi
30223
30224
30225# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30226set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030228$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030229if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030230 $as_echo_n "(cached) " >&6
30231else
30232 case $DisplayDelegate in
30233 [\\/]* | ?:[\\/]*)
30234 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30235 ;;
30236 *)
30237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30238for as_dir in $PATH
30239do
30240 IFS=$as_save_IFS
30241 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030242 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30244 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030246 break 2
30247 fi
30248done
cristy8b350f62009-11-15 23:12:43 +000030249 done
cristy3ed852e2009-09-05 21:47:34 +000030250IFS=$as_save_IFS
30251
30252 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30253 ;;
30254esac
30255fi
30256DisplayDelegate=$ac_cv_path_DisplayDelegate
30257if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030259$as_echo "$DisplayDelegate" >&6; }
30260else
cristy8b350f62009-11-15 23:12:43 +000030261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030262$as_echo "no" >&6; }
30263fi
30264
30265
30266# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30267set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030270if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030271 $as_echo_n "(cached) " >&6
30272else
30273 case $MogrifyDelegate in
30274 [\\/]* | ?:[\\/]*)
30275 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30276 ;;
30277 *)
30278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30279for as_dir in $PATH
30280do
30281 IFS=$as_save_IFS
30282 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030283 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30285 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030287 break 2
30288 fi
30289done
cristy8b350f62009-11-15 23:12:43 +000030290 done
cristy3ed852e2009-09-05 21:47:34 +000030291IFS=$as_save_IFS
30292
30293 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30294 ;;
30295esac
30296fi
30297MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30298if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030300$as_echo "$MogrifyDelegate" >&6; }
30301else
cristy8b350f62009-11-15 23:12:43 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030303$as_echo "no" >&6; }
30304fi
30305
30306
30307# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30308set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030310$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030311if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030312 $as_echo_n "(cached) " >&6
30313else
30314 case $GnuplotDecodeDelegate in
30315 [\\/]* | ?:[\\/]*)
30316 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30317 ;;
30318 *)
30319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30320for as_dir in $PATH
30321do
30322 IFS=$as_save_IFS
30323 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030324 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30326 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030328 break 2
30329 fi
30330done
cristy8b350f62009-11-15 23:12:43 +000030331 done
cristy3ed852e2009-09-05 21:47:34 +000030332IFS=$as_save_IFS
30333
30334 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30335 ;;
30336esac
30337fi
30338GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30339if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030341$as_echo "$GnuplotDecodeDelegate" >&6; }
30342else
cristy8b350f62009-11-15 23:12:43 +000030343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030344$as_echo "no" >&6; }
30345fi
30346
30347
30348# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30349set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030352if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030353 $as_echo_n "(cached) " >&6
30354else
30355 case $HDRDecodeDelegate in
30356 [\\/]* | ?:[\\/]*)
30357 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30358 ;;
30359 *)
30360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30361for as_dir in $PATH
30362do
30363 IFS=$as_save_IFS
30364 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030365 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30367 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030369 break 2
30370 fi
30371done
cristy8b350f62009-11-15 23:12:43 +000030372 done
cristy3ed852e2009-09-05 21:47:34 +000030373IFS=$as_save_IFS
30374
30375 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30376 ;;
30377esac
30378fi
30379HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30380if test -n "$HDRDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030382$as_echo "$HDRDecodeDelegate" >&6; }
30383else
cristy8b350f62009-11-15 23:12:43 +000030384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030385$as_echo "no" >&6; }
30386fi
30387
30388
30389# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30390set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030392$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030393if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030394 $as_echo_n "(cached) " >&6
30395else
30396 case $HPGLDecodeDelegate in
30397 [\\/]* | ?:[\\/]*)
30398 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30399 ;;
30400 *)
30401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30402for as_dir in $PATH
30403do
30404 IFS=$as_save_IFS
30405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30408 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030410 break 2
30411 fi
30412done
cristy8b350f62009-11-15 23:12:43 +000030413 done
cristy3ed852e2009-09-05 21:47:34 +000030414IFS=$as_save_IFS
30415
30416 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30417 ;;
30418esac
30419fi
30420HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30421if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030423$as_echo "$HPGLDecodeDelegate" >&6; }
30424else
cristy8b350f62009-11-15 23:12:43 +000030425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030426$as_echo "no" >&6; }
30427fi
30428
30429
30430# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30431set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030433$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030434if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030435 $as_echo_n "(cached) " >&6
30436else
30437 case $HTMLDecodeDelegate in
30438 [\\/]* | ?:[\\/]*)
30439 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30440 ;;
30441 *)
30442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30443for as_dir in $PATH
30444do
30445 IFS=$as_save_IFS
30446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30449 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030451 break 2
30452 fi
30453done
cristy8b350f62009-11-15 23:12:43 +000030454 done
cristy3ed852e2009-09-05 21:47:34 +000030455IFS=$as_save_IFS
30456
30457 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30458 ;;
30459esac
30460fi
30461HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30462if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030464$as_echo "$HTMLDecodeDelegate" >&6; }
30465else
cristy8b350f62009-11-15 23:12:43 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030467$as_echo "no" >&6; }
30468fi
30469
30470
30471# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30472set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030474$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030475if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030476 $as_echo_n "(cached) " >&6
30477else
30478 case $ILBMDecodeDelegate in
30479 [\\/]* | ?:[\\/]*)
30480 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30481 ;;
30482 *)
30483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30484for as_dir in $PATH
30485do
30486 IFS=$as_save_IFS
30487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30490 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030492 break 2
30493 fi
30494done
cristy8b350f62009-11-15 23:12:43 +000030495 done
cristy3ed852e2009-09-05 21:47:34 +000030496IFS=$as_save_IFS
30497
30498 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30499 ;;
30500esac
30501fi
30502ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30503if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030505$as_echo "$ILBMDecodeDelegate" >&6; }
30506else
cristy8b350f62009-11-15 23:12:43 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030508$as_echo "no" >&6; }
30509fi
30510
30511
30512# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30513set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030515$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030516if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030517 $as_echo_n "(cached) " >&6
30518else
30519 case $ILBMEncodeDelegate in
30520 [\\/]* | ?:[\\/]*)
30521 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30522 ;;
30523 *)
30524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30525for as_dir in $PATH
30526do
30527 IFS=$as_save_IFS
30528 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030529 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30531 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030533 break 2
30534 fi
30535done
cristy8b350f62009-11-15 23:12:43 +000030536 done
cristy3ed852e2009-09-05 21:47:34 +000030537IFS=$as_save_IFS
30538
30539 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30540 ;;
30541esac
30542fi
30543ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30544if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030546$as_echo "$ILBMEncodeDelegate" >&6; }
30547else
cristy8b350f62009-11-15 23:12:43 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030549$as_echo "no" >&6; }
30550fi
30551
30552
30553# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30554set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030556$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030557if test "${ac_cv_path_LPDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030558 $as_echo_n "(cached) " >&6
30559else
30560 case $LPDelegate in
30561 [\\/]* | ?:[\\/]*)
30562 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30563 ;;
30564 *)
30565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30566for as_dir in $PATH
30567do
30568 IFS=$as_save_IFS
30569 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030570 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30572 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030574 break 2
30575 fi
30576done
cristy8b350f62009-11-15 23:12:43 +000030577 done
cristy3ed852e2009-09-05 21:47:34 +000030578IFS=$as_save_IFS
30579
30580 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30581 ;;
30582esac
30583fi
30584LPDelegate=$ac_cv_path_LPDelegate
30585if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030587$as_echo "$LPDelegate" >&6; }
30588else
cristy8b350f62009-11-15 23:12:43 +000030589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030590$as_echo "no" >&6; }
30591fi
30592
30593
30594# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30595set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030598if test "${ac_cv_path_LPRDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030599 $as_echo_n "(cached) " >&6
30600else
30601 case $LPRDelegate in
30602 [\\/]* | ?:[\\/]*)
30603 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30604 ;;
30605 *)
30606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30607for as_dir in $PATH
30608do
30609 IFS=$as_save_IFS
30610 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030611 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30613 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030615 break 2
30616 fi
30617done
cristy8b350f62009-11-15 23:12:43 +000030618 done
cristy3ed852e2009-09-05 21:47:34 +000030619IFS=$as_save_IFS
30620
30621 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30622 ;;
30623esac
30624fi
30625LPRDelegate=$ac_cv_path_LPRDelegate
30626if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030628$as_echo "$LPRDelegate" >&6; }
30629else
cristy8b350f62009-11-15 23:12:43 +000030630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030631$as_echo "no" >&6; }
30632fi
30633
30634
30635# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30636set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030638$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030639if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030640 $as_echo_n "(cached) " >&6
30641else
30642 case $LZWDecodeDelegate in
30643 [\\/]* | ?:[\\/]*)
30644 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30645 ;;
30646 *)
30647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30648for as_dir in $PATH
30649do
30650 IFS=$as_save_IFS
30651 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30654 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030656 break 2
30657 fi
30658done
cristy8b350f62009-11-15 23:12:43 +000030659 done
cristy3ed852e2009-09-05 21:47:34 +000030660IFS=$as_save_IFS
30661
30662 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30663 ;;
30664esac
30665fi
30666LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30667if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030669$as_echo "$LZWDecodeDelegate" >&6; }
30670else
cristy8b350f62009-11-15 23:12:43 +000030671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030672$as_echo "no" >&6; }
30673fi
30674
30675
30676# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30677set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030679$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030680if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030681 $as_echo_n "(cached) " >&6
30682else
30683 case $LZWEncodeDelegate in
30684 [\\/]* | ?:[\\/]*)
30685 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30686 ;;
30687 *)
30688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30689for as_dir in $PATH
30690do
30691 IFS=$as_save_IFS
30692 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30695 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030697 break 2
30698 fi
30699done
cristy8b350f62009-11-15 23:12:43 +000030700 done
cristy3ed852e2009-09-05 21:47:34 +000030701IFS=$as_save_IFS
30702
30703 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30704 ;;
30705esac
30706fi
30707LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30708if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030710$as_echo "$LZWEncodeDelegate" >&6; }
30711else
cristy8b350f62009-11-15 23:12:43 +000030712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030713$as_echo "no" >&6; }
30714fi
30715
30716
30717# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30718set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030720$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030721if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030722 $as_echo_n "(cached) " >&6
30723else
30724 case $LaunchDelegate in
30725 [\\/]* | ?:[\\/]*)
30726 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30727 ;;
30728 *)
30729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30730for as_dir in $PATH
30731do
30732 IFS=$as_save_IFS
30733 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30736 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030738 break 2
30739 fi
30740done
cristy8b350f62009-11-15 23:12:43 +000030741 done
cristy3ed852e2009-09-05 21:47:34 +000030742IFS=$as_save_IFS
30743
30744 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30745 ;;
30746esac
30747fi
30748LaunchDelegate=$ac_cv_path_LaunchDelegate
30749if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030751$as_echo "$LaunchDelegate" >&6; }
30752else
cristy8b350f62009-11-15 23:12:43 +000030753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030754$as_echo "no" >&6; }
30755fi
30756
30757
30758# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30759set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030761$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030762if test "${ac_cv_path_MANDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030763 $as_echo_n "(cached) " >&6
30764else
30765 case $MANDelegate in
30766 [\\/]* | ?:[\\/]*)
30767 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30768 ;;
30769 *)
30770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30771for as_dir in $PATH
30772do
30773 IFS=$as_save_IFS
30774 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030775 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30777 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030779 break 2
30780 fi
30781done
cristy8b350f62009-11-15 23:12:43 +000030782 done
cristy3ed852e2009-09-05 21:47:34 +000030783IFS=$as_save_IFS
30784
30785 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30786 ;;
30787esac
30788fi
30789MANDelegate=$ac_cv_path_MANDelegate
30790if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030792$as_echo "$MANDelegate" >&6; }
30793else
cristy8b350f62009-11-15 23:12:43 +000030794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030795$as_echo "no" >&6; }
30796fi
30797
30798
30799# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30800set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030802$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030803if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030804 $as_echo_n "(cached) " >&6
30805else
30806 case $MPEGDecodeDelegate in
30807 [\\/]* | ?:[\\/]*)
30808 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30809 ;;
30810 *)
30811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30812for as_dir in $PATH
30813do
30814 IFS=$as_save_IFS
30815 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030816 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30818 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030820 break 2
30821 fi
30822done
cristy8b350f62009-11-15 23:12:43 +000030823 done
cristy3ed852e2009-09-05 21:47:34 +000030824IFS=$as_save_IFS
30825
30826 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30827 ;;
30828esac
30829fi
30830MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30831if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030833$as_echo "$MPEGDecodeDelegate" >&6; }
30834else
cristy8b350f62009-11-15 23:12:43 +000030835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030836$as_echo "no" >&6; }
30837fi
30838
30839
30840# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30841set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030843$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030844if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030845 $as_echo_n "(cached) " >&6
30846else
30847 case $MPEGEncodeDelegate in
30848 [\\/]* | ?:[\\/]*)
30849 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30850 ;;
30851 *)
30852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30853for as_dir in $PATH
30854do
30855 IFS=$as_save_IFS
30856 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030857 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30859 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030861 break 2
30862 fi
30863done
cristy8b350f62009-11-15 23:12:43 +000030864 done
cristy3ed852e2009-09-05 21:47:34 +000030865IFS=$as_save_IFS
30866
30867 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30868 ;;
30869esac
30870fi
30871MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30872if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030874$as_echo "$MPEGEncodeDelegate" >&6; }
30875else
cristy8b350f62009-11-15 23:12:43 +000030876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030877$as_echo "no" >&6; }
30878fi
30879
30880
cristy935c86e2010-06-05 23:50:07 +000030881# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30882set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30884$as_echo_n "checking for $ac_word... " >&6; }
30885if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30886 $as_echo_n "(cached) " >&6
30887else
30888 case $MrSIDDecodeDelegate in
30889 [\\/]* | ?:[\\/]*)
30890 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30891 ;;
30892 *)
30893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30894for as_dir in $PATH
30895do
30896 IFS=$as_save_IFS
30897 test -z "$as_dir" && as_dir=.
30898 for ac_exec_ext in '' $ac_executable_extensions; do
30899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30900 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30902 break 2
30903 fi
30904done
30905 done
30906IFS=$as_save_IFS
30907
30908 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30909 ;;
30910esac
30911fi
30912MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30913if test -n "$MrSIDDecodeDelegate"; then
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30915$as_echo "$MrSIDDecodeDelegate" >&6; }
30916else
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30918$as_echo "no" >&6; }
30919fi
30920
30921
cristy3ed852e2009-09-05 21:47:34 +000030922# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30923set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030925$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030926if test "${ac_cv_path_MVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030927 $as_echo_n "(cached) " >&6
30928else
30929 case $MVDelegate in
30930 [\\/]* | ?:[\\/]*)
30931 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30932 ;;
30933 *)
30934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30935for as_dir in $PATH
30936do
30937 IFS=$as_save_IFS
30938 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030939 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30941 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030943 break 2
30944 fi
30945done
cristy8b350f62009-11-15 23:12:43 +000030946 done
cristy3ed852e2009-09-05 21:47:34 +000030947IFS=$as_save_IFS
30948
30949 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30950 ;;
30951esac
30952fi
30953MVDelegate=$ac_cv_path_MVDelegate
30954if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030956$as_echo "$MVDelegate" >&6; }
30957else
cristy8b350f62009-11-15 23:12:43 +000030958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030959$as_echo "no" >&6; }
30960fi
30961
30962
30963# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30964set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030966$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030967if test "${ac_cv_path_PCLDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030968 $as_echo_n "(cached) " >&6
30969else
30970 case $PCLDelegate in
30971 [\\/]* | ?:[\\/]*)
30972 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30973 ;;
30974 *)
30975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30976for as_dir in $PATH
30977do
30978 IFS=$as_save_IFS
30979 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30982 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030984 break 2
30985 fi
30986done
cristy8b350f62009-11-15 23:12:43 +000030987 done
cristy3ed852e2009-09-05 21:47:34 +000030988IFS=$as_save_IFS
30989
30990 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30991 ;;
30992esac
30993fi
30994PCLDelegate=$ac_cv_path_PCLDelegate
30995if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030997$as_echo "$PCLDelegate" >&6; }
30998else
cristy8b350f62009-11-15 23:12:43 +000030999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031000$as_echo "no" >&6; }
31001fi
31002
31003
31004# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31005set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031007$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031008if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031009 $as_echo_n "(cached) " >&6
31010else
31011 case $PGPDecodeDelegate in
31012 [\\/]* | ?:[\\/]*)
31013 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31014 ;;
31015 *)
31016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31017for as_dir in $PATH
31018do
31019 IFS=$as_save_IFS
31020 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31023 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031025 break 2
31026 fi
31027done
cristy8b350f62009-11-15 23:12:43 +000031028 done
cristy3ed852e2009-09-05 21:47:34 +000031029IFS=$as_save_IFS
31030
31031 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31032 ;;
31033esac
31034fi
31035PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31036if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031038$as_echo "$PGPDecodeDelegate" >&6; }
31039else
cristy8b350f62009-11-15 23:12:43 +000031040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031041$as_echo "no" >&6; }
31042fi
31043
31044
31045# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31046set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031048$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031049if test "${ac_cv_path_POVDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031050 $as_echo_n "(cached) " >&6
31051else
31052 case $POVDelegate in
31053 [\\/]* | ?:[\\/]*)
31054 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31055 ;;
31056 *)
31057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31058for as_dir in $PATH
31059do
31060 IFS=$as_save_IFS
31061 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031062 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31064 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031066 break 2
31067 fi
31068done
cristy8b350f62009-11-15 23:12:43 +000031069 done
cristy3ed852e2009-09-05 21:47:34 +000031070IFS=$as_save_IFS
31071
31072 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31073 ;;
31074esac
31075fi
31076POVDelegate=$ac_cv_path_POVDelegate
31077if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031079$as_echo "$POVDelegate" >&6; }
31080else
cristy8b350f62009-11-15 23:12:43 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031082$as_echo "no" >&6; }
31083fi
31084
31085
31086for ac_prog in gsx gsc "$PSDelegateDefault"
31087do
31088 # Extract the first word of "$ac_prog", so it can be a program name with args.
31089set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031091$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031092if test "${ac_cv_path_PSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031093 $as_echo_n "(cached) " >&6
31094else
31095 case $PSDelegate in
31096 [\\/]* | ?:[\\/]*)
31097 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31098 ;;
31099 *)
31100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31101for as_dir in $PATH
31102do
31103 IFS=$as_save_IFS
31104 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031105 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31107 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031109 break 2
31110 fi
31111done
cristy8b350f62009-11-15 23:12:43 +000031112 done
cristy3ed852e2009-09-05 21:47:34 +000031113IFS=$as_save_IFS
31114
31115 ;;
31116esac
31117fi
31118PSDelegate=$ac_cv_path_PSDelegate
31119if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031121$as_echo "$PSDelegate" >&6; }
31122else
cristy8b350f62009-11-15 23:12:43 +000031123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031124$as_echo "no" >&6; }
31125fi
31126
31127
31128 test -n "$PSDelegate" && break
31129done
31130test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31131
31132# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31133set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031135$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031136if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031137 $as_echo_n "(cached) " >&6
31138else
31139 case $RLEEncodeDelegate in
31140 [\\/]* | ?:[\\/]*)
31141 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31142 ;;
31143 *)
31144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31145for as_dir in $PATH
31146do
31147 IFS=$as_save_IFS
31148 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031149 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31151 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031153 break 2
31154 fi
31155done
cristy8b350f62009-11-15 23:12:43 +000031156 done
cristy3ed852e2009-09-05 21:47:34 +000031157IFS=$as_save_IFS
31158
31159 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31160 ;;
31161esac
31162fi
31163RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31164if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031166$as_echo "$RLEEncodeDelegate" >&6; }
31167else
cristy8b350f62009-11-15 23:12:43 +000031168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031169$as_echo "no" >&6; }
31170fi
31171
31172
31173# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31174set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031176$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031177if test "${ac_cv_path_RMDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031178 $as_echo_n "(cached) " >&6
31179else
31180 case $RMDelegate in
31181 [\\/]* | ?:[\\/]*)
31182 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31183 ;;
31184 *)
31185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31186for as_dir in $PATH
31187do
31188 IFS=$as_save_IFS
31189 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031190 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31192 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031194 break 2
31195 fi
31196done
cristy8b350f62009-11-15 23:12:43 +000031197 done
cristy3ed852e2009-09-05 21:47:34 +000031198IFS=$as_save_IFS
31199
31200 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31201 ;;
31202esac
31203fi
31204RMDelegate=$ac_cv_path_RMDelegate
31205if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031207$as_echo "$RMDelegate" >&6; }
31208else
cristy8b350f62009-11-15 23:12:43 +000031209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031210$as_echo "no" >&6; }
31211fi
31212
31213
cristy4689cf02010-02-17 21:15:45 +000031214# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31215set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31217$as_echo_n "checking for $ac_word... " >&6; }
31218if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31219 $as_echo_n "(cached) " >&6
31220else
31221 case $RSVGDecodeDelegate in
31222 [\\/]* | ?:[\\/]*)
31223 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31224 ;;
31225 *)
31226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31227for as_dir in $PATH
31228do
31229 IFS=$as_save_IFS
31230 test -z "$as_dir" && as_dir=.
31231 for ac_exec_ext in '' $ac_executable_extensions; do
31232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31233 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31235 break 2
31236 fi
31237done
31238 done
31239IFS=$as_save_IFS
31240
31241 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31242 ;;
31243esac
31244fi
31245RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31246if test -n "$RSVGDecodeDelegate"; then
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31248$as_echo "$RSVGDecodeDelegate" >&6; }
31249else
31250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31251$as_echo "no" >&6; }
31252fi
31253
31254
cristy3ed852e2009-09-05 21:47:34 +000031255# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31256set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031258$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031259if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031260 $as_echo_n "(cached) " >&6
31261else
31262 case $SCANDecodeDelegate in
31263 [\\/]* | ?:[\\/]*)
31264 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31265 ;;
31266 *)
31267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31268for as_dir in $PATH
31269do
31270 IFS=$as_save_IFS
31271 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031272 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31274 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031276 break 2
31277 fi
31278done
cristy8b350f62009-11-15 23:12:43 +000031279 done
cristy3ed852e2009-09-05 21:47:34 +000031280IFS=$as_save_IFS
31281
31282 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31283 ;;
31284esac
31285fi
31286SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31287if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031289$as_echo "$SCANDecodeDelegate" >&6; }
31290else
cristy8b350f62009-11-15 23:12:43 +000031291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031292$as_echo "no" >&6; }
31293fi
31294
31295
31296# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31297set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031299$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031300if test "${ac_cv_path_TXTDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031301 $as_echo_n "(cached) " >&6
31302else
31303 case $TXTDelegate in
31304 [\\/]* | ?:[\\/]*)
31305 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31306 ;;
31307 *)
31308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31309for as_dir in $PATH
31310do
31311 IFS=$as_save_IFS
31312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31315 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031317 break 2
31318 fi
31319done
cristy8b350f62009-11-15 23:12:43 +000031320 done
cristy3ed852e2009-09-05 21:47:34 +000031321IFS=$as_save_IFS
31322
31323 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31324 ;;
31325esac
31326fi
31327TXTDelegate=$ac_cv_path_TXTDelegate
31328if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031330$as_echo "$TXTDelegate" >&6; }
31331else
cristy8b350f62009-11-15 23:12:43 +000031332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031333$as_echo "no" >&6; }
31334fi
31335
31336
31337# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31338set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031340$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031341if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031342 $as_echo_n "(cached) " >&6
31343else
31344 case $WMFDecodeDelegate in
31345 [\\/]* | ?:[\\/]*)
31346 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31347 ;;
31348 *)
31349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31350for as_dir in $PATH
31351do
31352 IFS=$as_save_IFS
31353 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31356 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031358 break 2
31359 fi
31360done
cristy8b350f62009-11-15 23:12:43 +000031361 done
cristy3ed852e2009-09-05 21:47:34 +000031362IFS=$as_save_IFS
31363
31364 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31365 ;;
31366esac
31367fi
31368WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31369if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031371$as_echo "$WMFDecodeDelegate" >&6; }
31372else
cristy8b350f62009-11-15 23:12:43 +000031373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031374$as_echo "no" >&6; }
31375fi
31376
31377
31378# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31379set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031381$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031382if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031383 $as_echo_n "(cached) " >&6
31384else
31385 case $WWWDecodeDelegate in
31386 [\\/]* | ?:[\\/]*)
31387 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31388 ;;
31389 *)
31390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31391for as_dir in $PATH
31392do
31393 IFS=$as_save_IFS
31394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31397 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031399 break 2
31400 fi
31401done
cristy8b350f62009-11-15 23:12:43 +000031402 done
cristy3ed852e2009-09-05 21:47:34 +000031403IFS=$as_save_IFS
31404
31405 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31406 ;;
31407esac
31408fi
31409WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31410if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031412$as_echo "$WWWDecodeDelegate" >&6; }
31413else
cristy8b350f62009-11-15 23:12:43 +000031414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031415$as_echo "no" >&6; }
31416fi
31417
31418
31419# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31420set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031422$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031423if test "${ac_cv_path_XPSDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031424 $as_echo_n "(cached) " >&6
31425else
31426 case $XPSDelegate in
31427 [\\/]* | ?:[\\/]*)
31428 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31429 ;;
31430 *)
31431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31432for as_dir in $PATH
31433do
31434 IFS=$as_save_IFS
31435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31438 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031440 break 2
31441 fi
31442done
cristy8b350f62009-11-15 23:12:43 +000031443 done
cristy3ed852e2009-09-05 21:47:34 +000031444IFS=$as_save_IFS
31445
31446 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31447 ;;
31448esac
31449fi
31450XPSDelegate=$ac_cv_path_XPSDelegate
31451if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031453$as_echo "$XPSDelegate" >&6; }
31454else
cristy8b350f62009-11-15 23:12:43 +000031455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031456$as_echo "no" >&6; }
31457fi
31458
31459
31460# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31461set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031463$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031464if test "${ac_cv_path_ZipDelegate+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031465 $as_echo_n "(cached) " >&6
31466else
31467 case $ZipDelegate in
31468 [\\/]* | ?:[\\/]*)
31469 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31470 ;;
31471 *)
31472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31473for as_dir in $PATH
31474do
31475 IFS=$as_save_IFS
31476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31479 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031481 break 2
31482 fi
31483done
cristy8b350f62009-11-15 23:12:43 +000031484 done
cristy3ed852e2009-09-05 21:47:34 +000031485IFS=$as_save_IFS
31486
31487 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31488 ;;
31489esac
31490fi
31491ZipDelegate=$ac_cv_path_ZipDelegate
31492if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031494$as_echo "$ZipDelegate" >&6; }
31495else
cristy8b350f62009-11-15 23:12:43 +000031496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031497$as_echo "no" >&6; }
31498fi
31499
31500
31501
31502# Prefer lpr to lp; lp needs options tacked on.
31503if test "$LPRDelegate" != no; then
31504 PrintDelegate="$LPRDelegate"
31505else
31506 PrintDelegate="$LPDelegate -c -s"
31507fi
31508
31509
31510# Installed ImageMagick utiltity paths
31511ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31512DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31513MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31514
31515# Set delegate booleans
31516have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31517have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31518have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31519have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31520have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31521have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000031522have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000031523have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31524have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31525have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31526have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31527have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31528
31529#
31530# Test for font directories
31531#
31532type_include_files=''
31533
cristy430a7312010-01-21 20:44:04 +000031534# Dejavu fonts.
31535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31536$as_echo_n "checking for Dejavu fonts directory... " >&6; }
31537dejavu_font_dir=''
31538if test "${with_dejavu_font_dir}" != 'default'; then
31539 dejavu_font_dir="${with_dejavu_font_dir}/"
31540else
31541 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31542 if test -f "${font_dir}DejaVuSerif.ttf"; then
31543 dejavu_font_dir="${font_dir}"
31544 break 1
31545 fi
31546 done
31547fi
31548if test "${dejavu_font_dir}x" != 'x'; then
31549 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31551$as_echo "$dejavu_font_dir" >&6; }
31552else
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31554$as_echo "not found!" >&6; };
31555fi
31556
31557
cristy3ed852e2009-09-05 21:47:34 +000031558# Windows
31559windows_font_dir=''
31560if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31561 windows_font_dir="${with_windows_font_dir}/"
31562fi
cristy430a7312010-01-21 20:44:04 +000031563if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031564 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31565 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31566 fi
31567 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31568 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31569 fi
31570 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31571 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31572 fi
31573fi
cristy430a7312010-01-21 20:44:04 +000031574if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000031575 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31576fi
31577
31578
31579# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000031580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000031581$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31582ghostscript_font_dir=''
31583if test "${with_gs_font_dir}" != 'default'; then
31584 ghostscript_font_dir="${with_gs_font_dir}/"
31585else
31586 if test "${native_win32_build}" = 'yes'; then
31587 # Native Windows Build
31588 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31589 if test -f "${font_dir}a010013l.pfb"; then
31590 ghostscript_font_dir="$font_dir"
31591 break 1
31592 fi
31593 done
31594 if test "${PSDelegate}" != 'gswin32c'; then
31595 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31596 fi
31597 else
31598 # Linux / Mac OS X / Unix Build
31599 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
31600 if test -f "${font_dir}a010013l.pfb"; then
31601 ghostscript_font_dir="${font_dir}"
31602 break 1
31603 fi
31604 done
31605 if test "${ghostscript_font_dir}x" = 'x'; then
31606 if test "$PSDelegate" != 'gs'; then
31607 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31608 fi
31609 fi
31610 fi
31611fi
31612if test "${ghostscript_font_dir}x" != 'x'; then
31613 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000031614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000031615$as_echo "$ghostscript_font_dir" >&6; }
31616else
cristy8b350f62009-11-15 23:12:43 +000031617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000031618$as_echo "not found!" >&6; };
31619fi
31620
31621case "${build_os}" in
31622 mingw* )
31623 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31624 ;;
31625esac
31626
31627
31628
31629#
31630# Handle case where user doesn't want frozen paths
31631#
31632if test "$with_frozenpaths" != 'yes'; then
31633 # Re-set delegate definitions to default (no paths)
31634 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31635 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31636 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31637 BZIPDelegate="$BZIPDelegateDefault"
31638 BrowseDelegate="$BrowseDelegateDefault"
31639 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31640 CatDelegate="$CatDelegateDefault"
31641 ConvertDelegate="$ConvertDelegateDefault"
31642 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31643 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31644 EchoDelegate="$EchoDelegateDefault"
31645 EditorDelegate="$EditorDelegateDefault"
31646 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31647 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31648 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31649 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31650 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31651 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31652 LPDelegate="$LPDelegateDefault"
31653 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31654 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31655 LaunchDelegate="$LaunchDelegateDefault"
31656 MANDelegate="$MANDelegateDefault"
31657 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31658 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031659 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000031660 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31661 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031662 PCLDelegate="$PCLDelegateDefault"
31663 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31664 POVDelegate="$POVDelegateDefault"
31665 PSDelegate="$PSDelegateDefault"
31666 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31667 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31668 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000031669 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000031670 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31671 ShowImageDelegate="$ShowImageDelegateDefault"
31672 TXTDelegate="$TXTDelegateDefault"
31673 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31674 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31675 XPSDelegate="$XPSDelegateDefault"
31676 ZipDelegate="$ZipDelegateDefault"
31677fi
31678
31679# Delegate substitutions
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
cristy935c86e2010-06-05 23:50:07 +000031722
cristy3ed852e2009-09-05 21:47:34 +000031723#
31724# RPM support.
31725#
31726RPM=''
31727for ac_prog in gnutar gtar tar
31728do
31729 # Extract the first word of "$ac_prog", so it can be a program name with args.
31730set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031732$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031733if test "${ac_cv_prog_TAR+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031734 $as_echo_n "(cached) " >&6
31735else
31736 if test -n "$TAR"; then
31737 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31738else
31739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31740for as_dir in $PATH
31741do
31742 IFS=$as_save_IFS
31743 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31746 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031748 break 2
31749 fi
31750done
cristy8b350f62009-11-15 23:12:43 +000031751 done
cristy3ed852e2009-09-05 21:47:34 +000031752IFS=$as_save_IFS
31753
31754fi
31755fi
31756TAR=$ac_cv_prog_TAR
31757if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000031758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000031759$as_echo "$TAR" >&6; }
31760else
cristy8b350f62009-11-15 23:12:43 +000031761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031762$as_echo "no" >&6; }
31763fi
31764
31765
31766 test -n "$TAR" && break
31767done
31768
31769for ac_prog in perl
31770do
31771 # Extract the first word of "$ac_prog", so it can be a program name with args.
31772set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031774$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031775if test "${ac_cv_prog_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031776 $as_echo_n "(cached) " >&6
31777else
31778 if test -n "$PERL"; then
31779 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31780else
31781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31782for as_dir in $PATH
31783do
31784 IFS=$as_save_IFS
31785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31788 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031790 break 2
31791 fi
31792done
cristy8b350f62009-11-15 23:12:43 +000031793 done
cristy3ed852e2009-09-05 21:47:34 +000031794IFS=$as_save_IFS
31795
31796fi
31797fi
31798PERL=$ac_cv_prog_PERL
31799if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000031800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000031801$as_echo "$PERL" >&6; }
31802else
cristy8b350f62009-11-15 23:12:43 +000031803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031804$as_echo "no" >&6; }
31805fi
31806
31807
31808 test -n "$PERL" && break
31809done
31810
31811for ac_prog in rpmbuild rpm
31812do
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031816$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031817if test "${ac_cv_prog_RPM+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031818 $as_echo_n "(cached) " >&6
31819else
31820 if test -n "$RPM"; then
31821 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31822else
31823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31824for as_dir in $PATH
31825do
31826 IFS=$as_save_IFS
31827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031828 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31830 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031832 break 2
31833 fi
31834done
cristy8b350f62009-11-15 23:12:43 +000031835 done
cristy3ed852e2009-09-05 21:47:34 +000031836IFS=$as_save_IFS
31837
31838fi
31839fi
31840RPM=$ac_cv_prog_RPM
31841if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000031842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000031843$as_echo "$RPM" >&6; }
31844else
cristy8b350f62009-11-15 23:12:43 +000031845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031846$as_echo "no" >&6; }
31847fi
31848
31849
31850 test -n "$RPM" && break
31851done
31852
31853
31854ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31855
31856
31857AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31858
31859
31860AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31861
31862
31863AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31864
31865
31866 if test "x$RPM" != "x" ; then
31867 RPM_DELEGATE_TRUE=
31868 RPM_DELEGATE_FALSE='#'
31869else
31870 RPM_DELEGATE_TRUE='#'
31871 RPM_DELEGATE_FALSE=
31872fi
31873
31874
31875#
31876# 7ZIP support (http://p7zip.sourceforge.net/)
31877#
31878P7ZIP=''
31879for ac_prog in 7za
31880do
31881 # Extract the first word of "$ac_prog", so it can be a program name with args.
31882set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031884$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031885if test "${ac_cv_prog_P7ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031886 $as_echo_n "(cached) " >&6
31887else
31888 if test -n "$P7ZIP"; then
31889 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31890else
31891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31892for as_dir in $PATH
31893do
31894 IFS=$as_save_IFS
31895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31898 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031900 break 2
31901 fi
31902done
cristy8b350f62009-11-15 23:12:43 +000031903 done
cristy3ed852e2009-09-05 21:47:34 +000031904IFS=$as_save_IFS
31905
31906fi
31907fi
31908P7ZIP=$ac_cv_prog_P7ZIP
31909if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo "$P7ZIP" >&6; }
31912else
cristy8b350f62009-11-15 23:12:43 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031914$as_echo "no" >&6; }
31915fi
31916
31917
31918 test -n "$P7ZIP" && break
31919done
31920
31921
31922 if test "x$P7ZIP" != "x" ; then
31923 P7ZIP_DELEGATE_TRUE=
31924 P7ZIP_DELEGATE_FALSE='#'
31925else
31926 P7ZIP_DELEGATE_TRUE='#'
31927 P7ZIP_DELEGATE_FALSE=
31928fi
31929
31930
31931#
31932# ZIP support (http://www.info-zip.org/Zip.html)
31933#
31934ZIP=''
31935for ac_prog in zip
31936do
31937 # Extract the first word of "$ac_prog", so it can be a program name with args.
31938set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000031941if test "${ac_cv_prog_ZIP+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031942 $as_echo_n "(cached) " >&6
31943else
31944 if test -n "$ZIP"; then
31945 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31946else
31947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31948for as_dir in $PATH
31949do
31950 IFS=$as_save_IFS
31951 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31954 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000031955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031956 break 2
31957 fi
31958done
cristy8b350f62009-11-15 23:12:43 +000031959 done
cristy3ed852e2009-09-05 21:47:34 +000031960IFS=$as_save_IFS
31961
31962fi
31963fi
31964ZIP=$ac_cv_prog_ZIP
31965if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000031966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000031967$as_echo "$ZIP" >&6; }
31968else
cristy8b350f62009-11-15 23:12:43 +000031969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031970$as_echo "no" >&6; }
31971fi
31972
31973
31974 test -n "$ZIP" && break
31975done
31976
31977
31978 if test "x$ZIP" != "x" ; then
31979 ZIP_DELEGATE_TRUE=
31980 ZIP_DELEGATE_FALSE='#'
31981else
31982 ZIP_DELEGATE_TRUE='#'
31983 ZIP_DELEGATE_FALSE=
31984fi
31985
31986
31987#
31988# GhostPCL related configuration.
31989#
31990PCLColorDevice=ppmraw
31991PCLCMYKDevice=bmpsep8
31992PCLMonoDevice=pbmraw
31993if test -z "$PCLVersion"; then
31994 PCLVersion='unknown'
31995fi
31996if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000031997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000031998$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032000$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032002$as_echo "" >&6; }
32003 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo_n "checking for pcl color device... " >&6; }
32006 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32007 :
32008 else
32009 PCLColorDevice=ppmraw
32010 fi
cristy8b350f62009-11-15 23:12:43 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032012$as_echo "$PCLColorDevice" >&6; }
32013
32014 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032016$as_echo_n "checking for pcl CMYK device... " >&6; }
32017 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32018 :
32019 else
32020 PCLCMYKDevice=$PCLColorDevice
32021 fi
cristy8b350f62009-11-15 23:12:43 +000032022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032023$as_echo "$PCLCMYKDevice" >&6; }
32024
32025 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032027$as_echo_n "checking for pcl mono device... " >&6; }
32028 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32029 :
32030 else
32031 PCLMonoDevice=$PCLColorDevice
32032 fi
cristy8b350f62009-11-15 23:12:43 +000032033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032034$as_echo "$PCLMonoDevice" >&6; }
32035fi
32036
32037
32038
32039
32040
32041
32042#
32043# GhostXPS related configuration.
32044#
32045XPSColorDevice=ppmraw
32046XPSCMYKDevice=bmpsep8
32047XPSMonoDevice=pbmraw
32048if test -z "$XPSVersion"; then
32049 XPSVersion='unknown'
32050fi
32051if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032055$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032057$as_echo "" >&6; }
32058 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo_n "checking for xps color device... " >&6; }
32061 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32062 :
32063 else
32064 XPSColorDevice=ppmraw
32065 fi
cristy8b350f62009-11-15 23:12:43 +000032066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032067$as_echo "$XPSColorDevice" >&6; }
32068
32069 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032071$as_echo_n "checking for xps CMYK device... " >&6; }
32072 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32073 :
32074 else
32075 XPSCMYKDevice=$XPSColorDevice
32076 fi
cristy8b350f62009-11-15 23:12:43 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032078$as_echo "$XPSCMYKDevice" >&6; }
32079
32080 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032082$as_echo_n "checking for xps mono device... " >&6; }
32083 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32084 :
32085 else
32086 XPSMonoDevice=$XPSColorDevice
32087 fi
cristy8b350f62009-11-15 23:12:43 +000032088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032089$as_echo "$XPSMonoDevice" >&6; }
32090fi
32091
32092
32093
32094
32095
32096
32097#
32098# Ghostscript related configuration.
32099#
32100if test "$have_png" = 'yes'; then
32101 GSAlphaDevice=pngalpha
32102else
32103 GSAlphaDevice=pnmraw
32104fi
32105GSColorDevice=pnmraw
32106GSCMYKDevice=pam
32107GSMonoDevice=pbmraw
32108GSPDFDevice=pdfwrite
32109GSPSDevice=pswrite
32110GSEPSDevice=epswrite
32111GSVersion='unknown'
32112if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032114$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032116$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032118$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for Ghostscript version... " >&6; }
32121 if GSVersion=`$PSDelegate --version`; then
32122 :
32123 else
32124 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32125 fi
cristy8b350f62009-11-15 23:12:43 +000032126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "$GSVersion" >&6; }
32128
32129 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032131$as_echo_n "checking for gs alpha device... " >&6; }
32132 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32133 :
32134 else
32135 GSAlphaDevice=pnmraw
32136 fi
cristy8b350f62009-11-15 23:12:43 +000032137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo "$GSAlphaDevice" >&6; }
32139
32140 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032142$as_echo_n "checking for gs color device... " >&6; }
32143 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32144 :
32145 else
32146 GSColorDevice=pnmraw
32147 fi
cristy8b350f62009-11-15 23:12:43 +000032148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032149$as_echo "$GSColorDevice" >&6; }
32150
32151 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032153$as_echo_n "checking for gs CMYK device... " >&6; }
32154 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32155 :
32156 else
32157 GSCMYKDevice=bmpsep8
32158 fi
cristy8b350f62009-11-15 23:12:43 +000032159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032160$as_echo "$GSCMYKDevice" >&6; }
32161
32162 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032164$as_echo_n "checking for gs mono device... " >&6; }
32165 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32166 :
32167 else
32168 GSMonoDevice=$GSColorDevice
32169 fi
cristy8b350f62009-11-15 23:12:43 +000032170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032171$as_echo "$GSMonoDevice" >&6; }
32172
32173 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032175$as_echo_n "checking for gs PDF writing device... " >&6; }
32176 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32177 :
32178 else
32179 GSPDFDevice=nodevice
32180 fi
cristy8b350f62009-11-15 23:12:43 +000032181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032182$as_echo "$GSPDFDevice" >&6; }
32183
32184 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032186$as_echo_n "checking for gs PS writing device... " >&6; }
32187 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32188 :
32189 else
32190 GSPSDevice=nodevice
32191 fi
cristy8b350f62009-11-15 23:12:43 +000032192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032193$as_echo "$GSPSDevice" >&6; }
32194
32195 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197$as_echo_n "checking for gs EPS writing device... " >&6; }
32198 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32199 :
32200 else
32201 GSEPSDevice=nodevice
32202 fi
cristy8b350f62009-11-15 23:12:43 +000032203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032204$as_echo "$GSEPSDevice" >&6; }
32205fi
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216#
32217# PerlMagick-related configuration
32218#
32219
32220# Look for PERL if PerlMagick requested
32221# If name/path of desired PERL interpreter is specified, look for that one first
32222have_perl='no'
32223if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000032224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032225$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032227$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032229$as_echo "" >&6; }
32230 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000032232$as_echo_n "checking for perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032233if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032234 $as_echo_n "(cached) " >&6
32235else
32236 ac_cv_path_PERL="$with_perl"
32237fi
cristy8b350f62009-11-15 23:12:43 +000032238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032239$as_echo "$ac_cv_path_PERL" >&6; };
32240 PERL=$ac_cv_path_PERL
32241 have_perl="$ac_cv_path_PERL"
32242 else
32243 for ac_prog in perl perl5
32244do
32245 # Extract the first word of "$ac_prog", so it can be a program name with args.
32246set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032248$as_echo_n "checking for $ac_word... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032249if test "${ac_cv_path_PERL+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032250 $as_echo_n "(cached) " >&6
32251else
32252 case $PERL in
32253 [\\/]* | ?:[\\/]*)
32254 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32255 ;;
32256 *)
32257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32258for as_dir in $PATH
32259do
32260 IFS=$as_save_IFS
32261 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032262 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32264 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032266 break 2
32267 fi
32268done
cristy8b350f62009-11-15 23:12:43 +000032269 done
cristy3ed852e2009-09-05 21:47:34 +000032270IFS=$as_save_IFS
32271
32272 ;;
32273esac
32274fi
32275PERL=$ac_cv_path_PERL
32276if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278$as_echo "$PERL" >&6; }
32279else
cristy8b350f62009-11-15 23:12:43 +000032280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032281$as_echo "no" >&6; }
32282fi
32283
32284
32285 test -n "$PERL" && break
32286done
32287 if test "$ac_cv_path_PERL"; then
32288 have_perl="$ac_cv_path_PERL"
32289 fi
32290 fi
32291fi
32292
cristy949301e2010-01-06 01:38:40 +000032293if test "$with_perl" != 'yes' ; then
32294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32295fi
32296
32297PERL_SUPPORTS_DESTDIR='no'
32298
cristy3ed852e2009-09-05 21:47:34 +000032299with_perl_static='no'
32300with_perl_dynamic='no'
32301if test "$have_perl" != 'no'; then
32302 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32303 with_perl_static='yes'
32304 fi
32305 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32306 with_perl_dynamic='yes'
32307 fi
32308 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy964cb7f2010-04-25 23:18:00 +000032309
32310
32311
32312
32313 if test -n "$PERL"; then :
32314
32315 ax_perl_version="5.8.1"
32316
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32318$as_echo_n "checking for perl version... " >&6; }
32319
32320 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32321
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32323$as_echo "$perl_version" >&6; }
32324
32325 PERL_VERSION=$perl_version
32326
32327
32328
32329
32330
32331 # Used to indicate true or false condition
32332 ax_compare_version=false
32333
32334 # Convert the two version strings to be compared into a format that
32335 # allows a simple string comparison. The end result is that a version
32336 # string of the form 1.12.5-r617 will be converted to the form
32337 # 0001001200050617. In other words, each number is zero padded to four
32338 # digits, and non digits are removed.
32339
32340 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32341 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32342 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32343 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32344 -e 's/[^0-9]//g'`
32345
32346
32347 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32348 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32349 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32350 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32351 -e 's/[^0-9]//g'`
32352
32353
32354 ax_compare_version=`echo "x$ax_compare_version_A
32355x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32356
32357
32358
32359 if test "$ax_compare_version" = "true" ; then
32360
32361 :
32362 PERL_SUPPORTS_DESTDIR='yes'
32363
32364 else
32365 :
32366 PERL_SUPPORTS_DESTDIR='no'
32367
cristy3ed852e2009-09-05 21:47:34 +000032368 fi
cristy3ed852e2009-09-05 21:47:34 +000032369
cristy964cb7f2010-04-25 23:18:00 +000032370
cristy3ed852e2009-09-05 21:47:34 +000032371else
cristy3ed852e2009-09-05 21:47:34 +000032372
cristy964cb7f2010-04-25 23:18:00 +000032373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32374$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32375 PERL_SUPPORTS_DESTDIR='no'
cristy3ed852e2009-09-05 21:47:34 +000032376
32377fi
32378
cristy3ed852e2009-09-05 21:47:34 +000032379fi
32380 if test "$have_perl" != 'no'; then
32381 WITH_PERL_TRUE=
32382 WITH_PERL_FALSE='#'
32383else
32384 WITH_PERL_TRUE='#'
32385 WITH_PERL_FALSE=
32386fi
32387
32388 if test $with_perl_static = 'yes'; then
32389 WITH_PERL_STATIC_TRUE=
32390 WITH_PERL_STATIC_FALSE='#'
32391else
32392 WITH_PERL_STATIC_TRUE='#'
32393 WITH_PERL_STATIC_FALSE=
32394fi
32395
32396 if test $with_perl_dynamic = 'yes'; then
32397 WITH_PERL_DYNAMIC_TRUE=
32398 WITH_PERL_DYNAMIC_FALSE='#'
32399else
32400 WITH_PERL_DYNAMIC_TRUE='#'
32401 WITH_PERL_DYNAMIC_FALSE=
32402fi
32403
32404
32405
32406# Determine path to pick up MagickCore library from for use with building PerlMagick
32407MAGICKCORE_PATH="${LIB_DIR}"
32408if test $with_perl_static = 'yes'; then
32409 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32410 libtool_objdir=$objdir
32411
32412 # Linker search path to library, followed by -lMagickCore
32413 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32414fi
32415
32416
32417# Create a simple string containing format names for all delegate libraries
32418DELEGATES=''
32419if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32420if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32421if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32422if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32423if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32424if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32425if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32426if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32427if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32428if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32429if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32430if test "$have_jpeg" = 'yes'; then
32431 DELEGATES="$DELEGATES jpeg";
32432 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32433fi
32434if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32435if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32436if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32437if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32438if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32439if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32440if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32441if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32442if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32443if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32444if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32445if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32446
32447
32448
32449#
32450# Handle special compiler flags
32451#
32452
32453# Add '-p' if prof source profiling support enabled
32454if test "$enable_prof" = 'yes'; then
32455 CFLAGS="-p $CFLAGS"
32456 CXXFLAGS="-p $CXXFLAGS"
32457 LDFLAGS="-p $LDFLAGS"
32458fi
32459
32460# Add '-pg' if gprof source profiling support enabled
32461if test "$enable_gprof" = 'yes'; then
32462 CFLAGS="-pg $CFLAGS"
32463 CXXFLAGS="-pg $CXXFLAGS"
32464 LDFLAGS="-pg $LDFLAGS"
32465fi
32466
32467# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32468# This is a gcc-specific feature
32469if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032471$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032472if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032473 $as_echo_n "(cached) " >&6
32474else
32475 ac_check_lib_save_LIBS=$LIBS
32476LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032478/* end confdefs.h. */
32479
32480/* Override any GCC internal prototype to avoid an error.
32481 Use char because int might match the return type of a GCC
32482 builtin and then its argument prototype would still apply. */
32483#ifdef __cplusplus
32484extern "C"
32485#endif
32486char _gcov_init ();
32487int
32488main ()
32489{
32490return _gcov_init ();
32491 ;
32492 return 0;
32493}
32494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032496 ac_cv_lib_gcov__gcov_init=yes
32497else
cristy8b350f62009-11-15 23:12:43 +000032498 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032499fi
cristy8b350f62009-11-15 23:12:43 +000032500rm -f core conftest.err conftest.$ac_objext \
32501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032502LIBS=$ac_check_lib_save_LIBS
32503fi
cristy8b350f62009-11-15 23:12:43 +000032504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032505$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032506if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032507 cat >>confdefs.h <<_ACEOF
32508#define HAVE_LIBGCOV 1
32509_ACEOF
32510
32511 LIBS="-lgcov $LIBS"
32512
32513fi
32514
cristy8b350f62009-11-15 23:12:43 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000032516$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032517if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032518 $as_echo_n "(cached) " >&6
32519else
32520 ac_check_lib_save_LIBS=$LIBS
32521LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032523/* end confdefs.h. */
32524
32525/* Override any GCC internal prototype to avoid an error.
32526 Use char because int might match the return type of a GCC
32527 builtin and then its argument prototype would still apply. */
32528#ifdef __cplusplus
32529extern "C"
32530#endif
32531char __gcov_init ();
32532int
32533main ()
32534{
32535return __gcov_init ();
32536 ;
32537 return 0;
32538}
32539_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032540if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032541 ac_cv_lib_gcov___gcov_init=yes
32542else
cristy8b350f62009-11-15 23:12:43 +000032543 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000032544fi
cristy8b350f62009-11-15 23:12:43 +000032545rm -f core conftest.err conftest.$ac_objext \
32546 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032547LIBS=$ac_check_lib_save_LIBS
32548fi
cristy8b350f62009-11-15 23:12:43 +000032549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032550$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032551if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
cristy3ed852e2009-09-05 21:47:34 +000032552 cat >>confdefs.h <<_ACEOF
32553#define HAVE_LIBGCOV 1
32554_ACEOF
32555
32556 LIBS="-lgcov $LIBS"
32557
32558fi
32559
32560 case "$target_os" in
32561 darwin*)
32562 OSX_GCOV_LDFLAG="-Wl,-single_module"
32563 ;;
32564 *)
32565 OSX_GCOV_LDFLAG=""
32566 ;;
32567 esac
32568
32569 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32570 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32571 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32572fi
32573
32574#
32575# Build library dependency list for libMagickCore
32576#
32577
32578MAGICK_LIBLTDL='' # Libltdl for build
32579MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32580MAGICK_LTDLDEPS='' # extra libltdl dependencies
32581if test "$with_ltdl" != 'no'
32582then
32583 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32584 MAGICK_API_LIBLTDL='-lltdl'
32585 fi
32586 MAGICK_LIBLTDL=${LIBLTDL}
32587 MAGICK_LTDLDEPS=${LTDLDEPS}
32588fi
32589
32590
32591
32592if test "$with_modules" != 'no'; then
cristy2e8b51d2009-10-17 18:26:15 +000032593 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 +000032594else
cristy2e8b51d2009-10-17 18:26:15 +000032595 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 +000032596fi
32597
32598
32599#
32600# Remove extraneous spaces from output variables (asthetic)
32601#
32602X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32603X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32604X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32605X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32606
32607CC=`echo $CC | sed -e 's/ */ /g'`
32608CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32609CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32610CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32611DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32612DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32613LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32614TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32615MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32616#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32617
32618# Pass only user-provided LIBS as "global" libraries
32619LIBS=$USER_LIBS
32620
32621#AC_SUBST(CPPFLAGS)
32622
32623#AC_SUBST(LDFLAGS)
32624#AC_SUBST(X_PRE_LIBS)
32625#AC_SUBST(X_LIBS)
32626#AC_SUBST(X_EXTRA_LIBS)
32627
32628MAGICK_CFLAGS=$CFLAGS
32629MAGICK_CXXFLAGS="$CXXFLAGS"
32630MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32631MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32632MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32633MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32634
32635
32636
32637
32638
32639
32640
32641
32642# Set configured scripts to executable.
32643ac_config_commands="$ac_config_commands default"
32644
32645ac_config_commands="$ac_config_commands MagickCore-config.in"
32646
32647ac_config_commands="$ac_config_commands Magick-config.in"
32648
32649ac_config_commands="$ac_config_commands MagickWand-config.in"
32650
32651ac_config_commands="$ac_config_commands Wand-config.in"
32652
32653ac_config_commands="$ac_config_commands Magick++-config.in"
32654
32655ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32656
32657
cristy8b350f62009-11-15 23:12:43 +000032658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032659$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000032661$as_echo "Update ImageMagick configuration" >&6; }
32662cat >confcache <<\_ACEOF
32663# This file is a shell script that caches the results of configure
32664# tests run on this system so they can be shared between configure
32665# scripts and configure runs, see configure's option --config-cache.
32666# It is not useful on other systems. If it contains results you don't
32667# want to keep, you may remove or edit it.
32668#
32669# config.status only pays attention to the cache file if you give it
32670# the --recheck option to rerun configure.
32671#
32672# `ac_cv_env_foo' variables (set or unset) will be overridden when
32673# loading this file, other *unset* `ac_cv_foo' will be assigned the
32674# following values.
32675
32676_ACEOF
32677
32678# The following way of writing the cache mishandles newlines in values,
32679# but we know of no workaround that is simple, portable, and efficient.
32680# So, we kill variables containing newlines.
32681# Ultrix sh set writes to stderr and can't be redirected directly,
32682# and sets the high bit in the cache file unless we assign to the vars.
32683(
32684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32685 eval ac_val=\$$ac_var
32686 case $ac_val in #(
32687 *${as_nl}*)
32688 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000032689 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000032690$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32691 esac
32692 case $ac_var in #(
32693 _ | IFS | as_nl) ;; #(
32694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000032695 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000032696 esac ;;
32697 esac
32698 done
32699
32700 (set) 2>&1 |
32701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32702 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000032703 # `set' does not quote correctly, so add quotes: double-quote
32704 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000032705 sed -n \
32706 "s/'/'\\\\''/g;
32707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32708 ;; #(
32709 *)
32710 # `set' quotes correctly as required by POSIX, so do not add quotes.
32711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32712 ;;
32713 esac |
32714 sort
32715) |
32716 sed '
32717 /^ac_cv_env_/b end
32718 t clear
32719 :clear
32720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32721 t end
32722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32723 :end' >>confcache
32724if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32725 if test -w "$cache_file"; then
32726 test "x$cache_file" != "x/dev/null" &&
cristy8b350f62009-11-15 23:12:43 +000032727 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032728$as_echo "$as_me: updating cache $cache_file" >&6;}
32729 cat confcache >$cache_file
32730 else
cristy8b350f62009-11-15 23:12:43 +000032731 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000032732$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32733 fi
32734fi
32735rm -f confcache
32736
32737test "x$prefix" = xNONE && prefix=$ac_default_prefix
32738# Let make expand exec_prefix.
32739test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32740
32741DEFS=-DHAVE_CONFIG_H
32742
32743ac_libobjs=
32744ac_ltlibobjs=
32745for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32746 # 1. Remove the extension, and $U if already installed.
32747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32750 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000032751 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32752 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000032753done
32754LIBOBJS=$ac_libobjs
32755
32756LTLIBOBJS=$ac_ltlibobjs
32757
32758
32759 if test -n "$EXEEXT"; then
32760 am__EXEEXT_TRUE=
32761 am__EXEEXT_FALSE='#'
32762else
32763 am__EXEEXT_TRUE='#'
32764 am__EXEEXT_FALSE=
32765fi
32766
32767if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032768 as_fn_error "conditional \"AMDEP\" was never defined.
32769Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032770fi
32771if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032772 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32773Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032774fi
cristya0b81c32010-01-22 02:54:33 +000032775if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32776 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32777Usually this means the macro was only invoked conditionally." "$LINENO" 5
32778fi
cristy3ed852e2009-09-05 21:47:34 +000032779if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032780 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32781Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032782fi
32783if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032784 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32785Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032786fi
32787if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032788 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32789Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032790fi
32791if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032792 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32793Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032794fi
32795if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032796 as_fn_error "conditional \"USING_CL\" was never defined.
32797Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032798fi
cristy18304f92009-11-22 15:48:26 +000032799if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32800 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32801Usually this means the macro was only invoked conditionally." "$LINENO" 5
32802fi
cristy3ed852e2009-09-05 21:47:34 +000032803if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032804 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32805Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032806fi
32807if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032808 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32809Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032810fi
32811LT_CONFIG_H=config/config.h
32812
32813 _ltdl_libobjs=
32814 _ltdl_ltlibobjs=
32815 if test -n "$_LT_LIBOBJS"; then
32816 # Remove the extension.
32817 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32818 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32819 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32820 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32821 done
32822 fi
32823 ltdl_LIBOBJS=$_ltdl_libobjs
32824
32825 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32826
32827
cristyfa112112010-01-04 17:48:07 +000032828if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32829 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32830Usually this means the macro was only invoked conditionally." "$LINENO" 5
32831fi
cristy3ed852e2009-09-05 21:47:34 +000032832if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032833 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32834Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032835fi
32836if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032837 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32838Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032839fi
32840if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032841 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32842Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032843fi
32844
32845if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032846 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32847Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032848fi
32849if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032850 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32851Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032852fi
32853if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032854 as_fn_error "conditional \"HasUMEM\" was never defined.
32855Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032856fi
32857if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032858 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32859Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032860fi
32861if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032862 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32863Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032864fi
32865if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032866 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32867Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032868fi
32869if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032870 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32871Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032872fi
32873if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032874 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32875Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032876fi
32877if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032878 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32879Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032880fi
32881if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032882 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32883Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032884fi
32885if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032886 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32887Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032888fi
32889if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032890 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32891Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032892fi
32893if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032894 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32895Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032896fi
32897if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032898 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32899Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032900fi
32901if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032902 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32903Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032904fi
32905if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032906 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32907Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032908fi
32909if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032910 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32911Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032912fi
32913if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032914 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32915Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032916fi
32917if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032918 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32919Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032920fi
32921if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032922 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32923Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032924fi
32925if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032926 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32927Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032928fi
32929if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032930 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32931Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032932fi
32933if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032934 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32935Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032936fi
32937if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032938 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32939Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032940fi
32941if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032942 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32943Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032944fi
32945if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032946 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32947Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032948fi
32949if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032950 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32951Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032952fi
32953if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032954 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32955Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032956fi
32957if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032958 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32959Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032960fi
32961if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032962 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32963Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032964fi
32965if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032966 as_fn_error "conditional \"WITH_PERL\" was never defined.
32967Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032968fi
32969if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032970 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32971Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032972fi
32973if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy8b350f62009-11-15 23:12:43 +000032974 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32975Usually this means the macro was only invoked conditionally." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000032976fi
32977
32978: ${CONFIG_STATUS=./config.status}
32979ac_write_fail=0
32980ac_clean_files_save=$ac_clean_files
32981ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000032982{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032983$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032984as_write_fail=0
32985cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000032986#! $SHELL
32987# Generated by $as_me.
32988# Run this file to recreate the current configuration.
32989# Compiler output produced by configure, useful for debugging
32990# configure, is in config.log if it exists.
32991
32992debug=false
32993ac_cs_recheck=false
32994ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000032995
cristy8b350f62009-11-15 23:12:43 +000032996SHELL=\${CONFIG_SHELL-$SHELL}
32997export SHELL
32998_ASEOF
32999cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33000## -------------------- ##
33001## M4sh Initialization. ##
33002## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033003
33004# Be more Bourne compatible
33005DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033006if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033007 emulate sh
33008 NULLCMD=:
33009 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33010 # is contrary to our usage. Disable this feature.
33011 alias -g '${1+"$@"}'='"$@"'
33012 setopt NO_GLOB_SUBST
33013else
cristy8b350f62009-11-15 23:12:43 +000033014 case `(set -o) 2>/dev/null` in #(
33015 *posix*) :
33016 set -o posix ;; #(
33017 *) :
33018 ;;
cristy3ed852e2009-09-05 21:47:34 +000033019esac
cristy3ed852e2009-09-05 21:47:34 +000033020fi
33021
33022
cristy3ed852e2009-09-05 21:47:34 +000033023as_nl='
33024'
33025export as_nl
33026# Printing a long string crashes Solaris 7 /usr/bin/printf.
33027as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33028as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33029as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033030# Prefer a ksh shell builtin over an external printf program on Solaris,
33031# but without wasting forks for bash or zsh.
33032if test -z "$BASH_VERSION$ZSH_VERSION" \
33033 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33034 as_echo='print -r --'
33035 as_echo_n='print -rn --'
33036elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033037 as_echo='printf %s\n'
33038 as_echo_n='printf %s'
33039else
33040 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33041 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33042 as_echo_n='/usr/ucb/echo -n'
33043 else
33044 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33045 as_echo_n_body='eval
33046 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033047 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033048 *"$as_nl"*)
33049 expr "X$arg" : "X\\(.*\\)$as_nl";
33050 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33051 esac;
33052 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33053 '
33054 export as_echo_n_body
33055 as_echo_n='sh -c $as_echo_n_body as_echo'
33056 fi
33057 export as_echo_body
33058 as_echo='sh -c $as_echo_body as_echo'
33059fi
33060
33061# The user is always right.
33062if test "${PATH_SEPARATOR+set}" != set; then
33063 PATH_SEPARATOR=:
33064 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33065 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33066 PATH_SEPARATOR=';'
33067 }
33068fi
33069
cristy3ed852e2009-09-05 21:47:34 +000033070
33071# IFS
33072# We need space, tab and new line, in precisely that order. Quoting is
33073# there to prevent editors from complaining about space-tab.
33074# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33075# splitting by setting IFS to empty value.)
33076IFS=" "" $as_nl"
33077
33078# Find who we are. Look in the path if we contain no directory separator.
cristy8b350f62009-11-15 23:12:43 +000033079case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033080 *[\\/]* ) as_myself=$0 ;;
33081 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33082for as_dir in $PATH
33083do
33084 IFS=$as_save_IFS
33085 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033086 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33087 done
cristy3ed852e2009-09-05 21:47:34 +000033088IFS=$as_save_IFS
33089
33090 ;;
33091esac
33092# We did not find ourselves, most probably we were run as `sh COMMAND'
33093# in which case we are not to be found in the path.
33094if test "x$as_myself" = x; then
33095 as_myself=$0
33096fi
33097if test ! -f "$as_myself"; then
33098 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033099 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033100fi
33101
cristy8b350f62009-11-15 23:12:43 +000033102# Unset variables that we do not need and which cause bugs (e.g. in
33103# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33104# suppresses any "Segmentation fault" message there. '((' could
33105# trigger a bug in pdksh 5.2.14.
33106for as_var in BASH_ENV ENV MAIL MAILPATH
33107do eval test x\${$as_var+set} = xset \
33108 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033109done
33110PS1='$ '
33111PS2='> '
33112PS4='+ '
33113
33114# NLS nuisances.
33115LC_ALL=C
33116export LC_ALL
33117LANGUAGE=C
33118export LANGUAGE
33119
cristy8b350f62009-11-15 23:12:43 +000033120# CDPATH.
33121(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33122
33123
33124# as_fn_error ERROR [LINENO LOG_FD]
33125# ---------------------------------
33126# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33127# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33128# script with status $?, using 1 if that was 0.
33129as_fn_error ()
33130{
33131 as_status=$?; test $as_status -eq 0 && as_status=1
33132 if test "$3"; then
33133 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33134 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33135 fi
33136 $as_echo "$as_me: error: $1" >&2
33137 as_fn_exit $as_status
33138} # as_fn_error
33139
33140
33141# as_fn_set_status STATUS
33142# -----------------------
33143# Set $? to STATUS, without forking.
33144as_fn_set_status ()
33145{
33146 return $1
33147} # as_fn_set_status
33148
33149# as_fn_exit STATUS
33150# -----------------
33151# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33152as_fn_exit ()
33153{
33154 set +e
33155 as_fn_set_status $1
33156 exit $1
33157} # as_fn_exit
33158
33159# as_fn_unset VAR
33160# ---------------
33161# Portably unset VAR.
33162as_fn_unset ()
33163{
33164 { eval $1=; unset $1;}
33165}
33166as_unset=as_fn_unset
33167# as_fn_append VAR VALUE
33168# ----------------------
33169# Append the text in VALUE to the end of the definition contained in VAR. Take
33170# advantage of any shell optimizations that allow amortized linear growth over
33171# repeated appends, instead of the typical quadratic growth present in naive
33172# implementations.
33173if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33174 eval 'as_fn_append ()
33175 {
33176 eval $1+=\$2
33177 }'
33178else
33179 as_fn_append ()
33180 {
33181 eval $1=\$$1\$2
33182 }
33183fi # as_fn_append
33184
33185# as_fn_arith ARG...
33186# ------------------
33187# Perform arithmetic evaluation on the ARGs, and store the result in the
33188# global $as_val. Take advantage of shells that can avoid forks. The arguments
33189# must be portable across $(()) and expr.
33190if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33191 eval 'as_fn_arith ()
33192 {
33193 as_val=$(( $* ))
33194 }'
33195else
33196 as_fn_arith ()
33197 {
33198 as_val=`expr "$@" || test $? -eq 1`
33199 }
33200fi # as_fn_arith
33201
33202
cristy3ed852e2009-09-05 21:47:34 +000033203if expr a : '\(a\)' >/dev/null 2>&1 &&
33204 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33205 as_expr=expr
33206else
33207 as_expr=false
33208fi
33209
33210if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33211 as_basename=basename
33212else
33213 as_basename=false
33214fi
33215
cristy8b350f62009-11-15 23:12:43 +000033216if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33217 as_dirname=dirname
33218else
33219 as_dirname=false
33220fi
cristy3ed852e2009-09-05 21:47:34 +000033221
cristy3ed852e2009-09-05 21:47:34 +000033222as_me=`$as_basename -- "$0" ||
33223$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33224 X"$0" : 'X\(//\)$' \| \
33225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33226$as_echo X/"$0" |
33227 sed '/^.*\/\([^/][^/]*\)\/*$/{
33228 s//\1/
33229 q
33230 }
33231 /^X\/\(\/\/\)$/{
33232 s//\1/
33233 q
33234 }
33235 /^X\/\(\/\).*/{
33236 s//\1/
33237 q
33238 }
33239 s/.*/./; q'`
33240
cristy8b350f62009-11-15 23:12:43 +000033241# Avoid depending upon Character Ranges.
33242as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33243as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33244as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33245as_cr_digits='0123456789'
33246as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000033247
33248ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000033249case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000033250-n*)
cristy8b350f62009-11-15 23:12:43 +000033251 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000033252 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000033253 xy) ECHO_C='\c';;
33254 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33255 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000033256 esac;;
33257*)
33258 ECHO_N='-n';;
33259esac
cristy3ed852e2009-09-05 21:47:34 +000033260
33261rm -f conf$$ conf$$.exe conf$$.file
33262if test -d conf$$.dir; then
33263 rm -f conf$$.dir/conf$$.file
33264else
33265 rm -f conf$$.dir
33266 mkdir conf$$.dir 2>/dev/null
33267fi
33268if (echo >conf$$.file) 2>/dev/null; then
33269 if ln -s conf$$.file conf$$ 2>/dev/null; then
33270 as_ln_s='ln -s'
33271 # ... but there are two gotchas:
33272 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33273 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33274 # In both cases, we have to default to `cp -p'.
33275 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33276 as_ln_s='cp -p'
33277 elif ln conf$$.file conf$$ 2>/dev/null; then
33278 as_ln_s=ln
33279 else
33280 as_ln_s='cp -p'
33281 fi
33282else
33283 as_ln_s='cp -p'
33284fi
33285rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33286rmdir conf$$.dir 2>/dev/null
33287
cristy8b350f62009-11-15 23:12:43 +000033288
33289# as_fn_mkdir_p
33290# -------------
33291# Create "$as_dir" as a directory, including parents if necessary.
33292as_fn_mkdir_p ()
33293{
33294
33295 case $as_dir in #(
33296 -*) as_dir=./$as_dir;;
33297 esac
33298 test -d "$as_dir" || eval $as_mkdir_p || {
33299 as_dirs=
33300 while :; do
33301 case $as_dir in #(
33302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33303 *) as_qdir=$as_dir;;
33304 esac
33305 as_dirs="'$as_qdir' $as_dirs"
33306 as_dir=`$as_dirname -- "$as_dir" ||
33307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33308 X"$as_dir" : 'X\(//\)[^/]' \| \
33309 X"$as_dir" : 'X\(//\)$' \| \
33310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33311$as_echo X"$as_dir" |
33312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33313 s//\1/
33314 q
33315 }
33316 /^X\(\/\/\)[^/].*/{
33317 s//\1/
33318 q
33319 }
33320 /^X\(\/\/\)$/{
33321 s//\1/
33322 q
33323 }
33324 /^X\(\/\).*/{
33325 s//\1/
33326 q
33327 }
33328 s/.*/./; q'`
33329 test -d "$as_dir" && break
33330 done
33331 test -z "$as_dirs" || eval "mkdir $as_dirs"
33332 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33333
33334
33335} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000033336if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000033337 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000033338else
33339 test -d ./-p && rmdir ./-p
33340 as_mkdir_p=false
33341fi
33342
33343if test -x / >/dev/null 2>&1; then
33344 as_test_x='test -x'
33345else
33346 if ls -dL / >/dev/null 2>&1; then
33347 as_ls_L_option=L
33348 else
33349 as_ls_L_option=
33350 fi
33351 as_test_x='
33352 eval sh -c '\''
33353 if test -d "$1"; then
33354 test -d "$1/.";
33355 else
cristy8b350f62009-11-15 23:12:43 +000033356 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000033357 -*)set "./$1";;
33358 esac;
cristy8b350f62009-11-15 23:12:43 +000033359 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000033360 ???[sx]*):;;*)false;;esac;fi
33361 '\'' sh
33362 '
33363fi
33364as_executable_p=$as_test_x
33365
33366# Sed expression to map a string onto a valid CPP name.
33367as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33368
33369# Sed expression to map a string onto a valid variable name.
33370as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33371
33372
33373exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000033374## ----------------------------------- ##
33375## Main body of $CONFIG_STATUS script. ##
33376## ----------------------------------- ##
33377_ASEOF
33378test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033379
cristy8b350f62009-11-15 23:12:43 +000033380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33381# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000033382# report actual input values of CONFIG_FILES etc. instead of their
33383# values after options handling.
33384ac_log="
cristy664b8d72010-05-17 13:53:36 +000033385This file was extended by ImageMagick $as_me 6.6.2, which was
cristycd4c5312009-11-22 01:19:08 +000033386generated by GNU Autoconf 2.65. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000033387
33388 CONFIG_FILES = $CONFIG_FILES
33389 CONFIG_HEADERS = $CONFIG_HEADERS
33390 CONFIG_LINKS = $CONFIG_LINKS
33391 CONFIG_COMMANDS = $CONFIG_COMMANDS
33392 $ $0 $@
33393
33394on `(hostname || uname -n) 2>/dev/null | sed 1q`
33395"
33396
33397_ACEOF
33398
33399case $ac_config_files in *"
33400"*) set x $ac_config_files; shift; ac_config_files=$*;;
33401esac
33402
33403case $ac_config_headers in *"
33404"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33405esac
33406
33407
33408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33409# Files that config.status was made for.
33410config_files="$ac_config_files"
33411config_headers="$ac_config_headers"
33412config_commands="$ac_config_commands"
33413
33414_ACEOF
33415
33416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33417ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000033418\`$as_me' instantiates files and other configuration actions
33419from templates according to the current configuration. Unless the files
33420and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000033421
cristy8b350f62009-11-15 23:12:43 +000033422Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000033423
33424 -h, --help print this help, then exit
33425 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000033426 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000033427 -q, --quiet, --silent
33428 do not print progress messages
33429 -d, --debug don't remove temporary files
33430 --recheck update $as_me by reconfiguring in the same conditions
33431 --file=FILE[:TEMPLATE]
33432 instantiate the configuration file FILE
33433 --header=FILE[:TEMPLATE]
33434 instantiate the configuration header FILE
33435
33436Configuration files:
33437$config_files
33438
33439Configuration headers:
33440$config_headers
33441
33442Configuration commands:
33443$config_commands
33444
cristy8b350f62009-11-15 23:12:43 +000033445Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000033446
33447_ACEOF
33448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000033449ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000033450ac_cs_version="\\
cristy664b8d72010-05-17 13:53:36 +000033451ImageMagick config.status 6.6.2
cristycd4c5312009-11-22 01:19:08 +000033452configured by $0, generated by GNU Autoconf 2.65,
33453 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000033454
cristy8b350f62009-11-15 23:12:43 +000033455Copyright (C) 2009 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000033456This config.status script is free software; the Free Software Foundation
33457gives unlimited permission to copy, distribute and modify it."
33458
33459ac_pwd='$ac_pwd'
33460srcdir='$srcdir'
33461INSTALL='$INSTALL'
33462MKDIR_P='$MKDIR_P'
33463AWK='$AWK'
33464test -n "\$AWK" || AWK=awk
33465_ACEOF
33466
33467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33468# The default lists apply if the user does not specify any file.
33469ac_need_defaults=:
33470while test $# != 0
33471do
33472 case $1 in
33473 --*=*)
33474 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33475 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33476 ac_shift=:
33477 ;;
33478 *)
33479 ac_option=$1
33480 ac_optarg=$2
33481 ac_shift=shift
33482 ;;
33483 esac
33484
33485 case $ac_option in
33486 # Handling of the options.
33487 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33488 ac_cs_recheck=: ;;
33489 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33490 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000033491 --config | --confi | --conf | --con | --co | --c )
33492 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000033493 --debug | --debu | --deb | --de | --d | -d )
33494 debug=: ;;
33495 --file | --fil | --fi | --f )
33496 $ac_shift
33497 case $ac_optarg in
33498 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33499 esac
cristy8b350f62009-11-15 23:12:43 +000033500 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033501 ac_need_defaults=false;;
33502 --header | --heade | --head | --hea )
33503 $ac_shift
33504 case $ac_optarg in
33505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33506 esac
cristy8b350f62009-11-15 23:12:43 +000033507 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000033508 ac_need_defaults=false;;
33509 --he | --h)
33510 # Conflict between --help and --header
cristy8b350f62009-11-15 23:12:43 +000033511 as_fn_error "ambiguous option: \`$1'
33512Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000033513 --help | --hel | -h )
33514 $as_echo "$ac_cs_usage"; exit ;;
33515 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33516 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33517 ac_cs_silent=: ;;
33518
33519 # This is an error.
cristy8b350f62009-11-15 23:12:43 +000033520 -*) as_fn_error "unrecognized option: \`$1'
33521Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000033522
cristy8b350f62009-11-15 23:12:43 +000033523 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000033524 ac_need_defaults=false ;;
33525
33526 esac
33527 shift
33528done
33529
33530ac_configure_extra_args=
33531
33532if $ac_cs_silent; then
33533 exec 6>/dev/null
33534 ac_configure_extra_args="$ac_configure_extra_args --silent"
33535fi
33536
33537_ACEOF
33538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33539if \$ac_cs_recheck; then
33540 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33541 shift
33542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33543 CONFIG_SHELL='$SHELL'
33544 export CONFIG_SHELL
33545 exec "\$@"
33546fi
33547
33548_ACEOF
33549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33550exec 5>>config.log
33551{
33552 echo
33553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33554## Running $as_me. ##
33555_ASBOX
33556 $as_echo "$ac_log"
33557} >&5
33558
33559_ACEOF
33560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33561#
33562# INIT-COMMANDS
33563#
33564PACKAGE="$PACKAGE"
33565AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33566
33567
33568# The HP-UX ksh and POSIX shell print the target directory to stdout
33569# if CDPATH is set.
33570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33571
33572sed_quote_subst='$sed_quote_subst'
33573double_quote_subst='$double_quote_subst'
33574delay_variable_subst='$delay_variable_subst'
cristy18304f92009-11-22 15:48:26 +000033575SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33576Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33577GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33578EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33579FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33580LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33581macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33582macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33583AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33584DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33585OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33586enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33587enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33588pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33589enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33590host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33591host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33592host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33593build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33594build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33595build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33596NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33597LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33598max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33599ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33600exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33601lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33602lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33603lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33604reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33605reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33606deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33607file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33608AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33609AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33610STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33611RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33612old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33613old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33614old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33615CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33616CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33617compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33618GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33619lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33620lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33621lt_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"`'
33622lt_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"`'
33623objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33624SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33625ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33626MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33627lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33628lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33629lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33630lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33631lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33632need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33633DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33634NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33635LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33636OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33637OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33638libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33639shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33640extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33641archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33642enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33643export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33644whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33645compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33646old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33647old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33648archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33649archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33650module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33651module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33652with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33653allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33654no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33655hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33656hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33657hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33658hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33659hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33660hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33661hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33662hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33663inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33664link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33665fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33666always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33667export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33668exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33669include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33670prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33671file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33672variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33673need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33674need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33675version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33676runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33677shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33678shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33679libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33680library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33681soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33682postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33683postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33684finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33685finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33686hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33687sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33688sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33689hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33690enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33691enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33692enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33693old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33694striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33695compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33696predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33697postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33698predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33699postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33700compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33701LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33702old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33703compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33704GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33705lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33706lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33707lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33708lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33709lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33710archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33711enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33712export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33713whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33714compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33715old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33716old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33717archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33718archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33719module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33720module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33721with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33722allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33723no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33724hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33725hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33726hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33727hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33728hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33729hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33730hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33731hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33732inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33733link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33734fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33735always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33736export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33737exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33738include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33739prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33740file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33741hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33742compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33743predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33744postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33745predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33746postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33747compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
cristy3ed852e2009-09-05 21:47:34 +000033748
33749LTCC='$LTCC'
33750LTCFLAGS='$LTCFLAGS'
33751compiler='$compiler_DEFAULT'
33752
33753# Quote evaled strings.
33754for var in SED \
33755GREP \
33756EGREP \
33757FGREP \
33758LD \
33759NM \
33760LN_S \
33761lt_SP2NL \
33762lt_NL2SP \
33763reload_flag \
33764deplibs_check_method \
33765file_magic_cmd \
33766AR \
33767AR_FLAGS \
33768STRIP \
33769RANLIB \
33770CC \
33771CFLAGS \
33772compiler \
33773lt_cv_sys_global_symbol_pipe \
33774lt_cv_sys_global_symbol_to_cdecl \
33775lt_cv_sys_global_symbol_to_c_name_address \
33776lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristy18304f92009-11-22 15:48:26 +000033777SHELL \
33778ECHO \
cristy3ed852e2009-09-05 21:47:34 +000033779lt_prog_compiler_no_builtin_flag \
33780lt_prog_compiler_wl \
33781lt_prog_compiler_pic \
33782lt_prog_compiler_static \
33783lt_cv_prog_compiler_c_o \
33784need_locks \
33785DSYMUTIL \
33786NMEDIT \
33787LIPO \
33788OTOOL \
33789OTOOL64 \
33790shrext_cmds \
33791export_dynamic_flag_spec \
33792whole_archive_flag_spec \
33793compiler_needs_object \
33794with_gnu_ld \
33795allow_undefined_flag \
33796no_undefined_flag \
33797hardcode_libdir_flag_spec \
33798hardcode_libdir_flag_spec_ld \
33799hardcode_libdir_separator \
33800fix_srcfile_path \
33801exclude_expsyms \
33802include_expsyms \
33803file_list_spec \
33804variables_saved_for_relink \
33805libname_spec \
33806library_names_spec \
33807soname_spec \
33808finish_eval \
33809old_striplib \
33810striplib \
33811compiler_lib_search_dirs \
33812predep_objects \
33813postdep_objects \
33814predeps \
33815postdeps \
33816compiler_lib_search_path \
33817LD_CXX \
33818compiler_CXX \
33819lt_prog_compiler_no_builtin_flag_CXX \
33820lt_prog_compiler_wl_CXX \
33821lt_prog_compiler_pic_CXX \
33822lt_prog_compiler_static_CXX \
33823lt_cv_prog_compiler_c_o_CXX \
33824export_dynamic_flag_spec_CXX \
33825whole_archive_flag_spec_CXX \
33826compiler_needs_object_CXX \
33827with_gnu_ld_CXX \
33828allow_undefined_flag_CXX \
33829no_undefined_flag_CXX \
33830hardcode_libdir_flag_spec_CXX \
33831hardcode_libdir_flag_spec_ld_CXX \
33832hardcode_libdir_separator_CXX \
33833fix_srcfile_path_CXX \
33834exclude_expsyms_CXX \
33835include_expsyms_CXX \
33836file_list_spec_CXX \
33837compiler_lib_search_dirs_CXX \
33838predep_objects_CXX \
33839postdep_objects_CXX \
33840predeps_CXX \
33841postdeps_CXX \
33842compiler_lib_search_path_CXX; do
cristy18304f92009-11-22 15:48:26 +000033843 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033844 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy3ed852e2009-09-05 21:47:34 +000033846 ;;
33847 *)
33848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33849 ;;
33850 esac
33851done
33852
33853# Double-quote double-evaled strings.
33854for var in reload_cmds \
33855old_postinstall_cmds \
33856old_postuninstall_cmds \
33857old_archive_cmds \
33858extract_expsyms_cmds \
33859old_archive_from_new_cmds \
33860old_archive_from_expsyms_cmds \
33861archive_cmds \
33862archive_expsym_cmds \
33863module_cmds \
33864module_expsym_cmds \
33865export_symbols_cmds \
33866prelink_cmds \
33867postinstall_cmds \
33868postuninstall_cmds \
33869finish_cmds \
33870sys_lib_search_path_spec \
33871sys_lib_dlsearch_path_spec \
33872old_archive_cmds_CXX \
33873old_archive_from_new_cmds_CXX \
33874old_archive_from_expsyms_cmds_CXX \
33875archive_cmds_CXX \
33876archive_expsym_cmds_CXX \
33877module_cmds_CXX \
33878module_expsym_cmds_CXX \
33879export_symbols_cmds_CXX \
33880prelink_cmds_CXX; do
cristy18304f92009-11-22 15:48:26 +000033881 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
cristy3ed852e2009-09-05 21:47:34 +000033882 *[\\\\\\\`\\"\\\$]*)
cristy18304f92009-11-22 15:48:26 +000033883 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 +000033884 ;;
33885 *)
33886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33887 ;;
33888 esac
33889done
33890
cristy18304f92009-11-22 15:48:26 +000033891# Fix-up fallback echo if it was mangled by the above quoting rules.
33892case \$lt_ECHO in
33893*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33894 ;;
33895esac
33896
cristy3ed852e2009-09-05 21:47:34 +000033897ac_aux_dir='$ac_aux_dir'
33898xsi_shell='$xsi_shell'
33899lt_shell_append='$lt_shell_append'
33900
33901# See if we are running on zsh, and set the options which allow our
33902# commands through without removal of \ escapes INIT.
33903if test -n "\${ZSH_VERSION+set}" ; then
33904 setopt NO_GLOB_SUBST
33905fi
33906
33907
33908 PACKAGE='$PACKAGE'
33909 VERSION='$VERSION'
33910 TIMESTAMP='$TIMESTAMP'
33911 RM='$RM'
33912 ofile='$ofile'
33913
33914
33915
33916
33917
33918
33919_ACEOF
33920
33921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33922
33923# Handling of arguments.
33924for ac_config_target in $ac_config_targets
33925do
33926 case $ac_config_target in
33927 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33928 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33929 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33930 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33931 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33932 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33933 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000033934 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000033935 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33936 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33937 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33938 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33939 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33940 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33941 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33942 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33943 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33944 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33945 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33946 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33948 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33949 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33950 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33951 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33952 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33953 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33954 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33955 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33956 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33957 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33958 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33959 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33960 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33961 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33962 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33963 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33964 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33965 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33966 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33967 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33968 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33969 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33970 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33971 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33972 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33973 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33974 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33975 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33976 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33977
cristy8b350f62009-11-15 23:12:43 +000033978 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000033979 esac
33980done
33981
33982
33983# If the user did not use the arguments to specify the items to instantiate,
33984# then the envvar interface is used. Set only those that are not.
33985# We use the long form for the default assignment because of an extremely
33986# bizarre bug on SunOS 4.1.3.
33987if $ac_need_defaults; then
33988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33991fi
33992
33993# Have a temporary directory for convenience. Make it in the build tree
33994# simply because there is no reason against having it here, and in addition,
33995# creating and moving files from /tmp can sometimes cause problems.
33996# Hook for its removal unless debugging.
33997# Note that there is a small window in which the directory will not be cleaned:
33998# after its creation but before its name has been assigned to `$tmp'.
33999$debug ||
34000{
34001 tmp=
34002 trap 'exit_status=$?
34003 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34004' 0
cristy8b350f62009-11-15 23:12:43 +000034005 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034006}
34007# Create a (secure) tmp directory for tmp files.
34008
34009{
34010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34011 test -n "$tmp" && test -d "$tmp"
34012} ||
34013{
34014 tmp=./conf$$-$RANDOM
34015 (umask 077 && mkdir "$tmp")
cristy8b350f62009-11-15 23:12:43 +000034016} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034017
34018# Set up the scripts for CONFIG_FILES section.
34019# No need to generate them if there are no CONFIG_FILES.
34020# This happens for instance with `./config.status config.h'.
34021if test -n "$CONFIG_FILES"; then
34022
34023
cristy8b350f62009-11-15 23:12:43 +000034024ac_cr=`echo X | tr X '\015'`
34025# On cygwin, bash can eat \r inside `` if the user requested igncr.
34026# But we know of no other shell where ac_cr would be empty at this
34027# point, so we can use a bashism as a fallback.
34028if test "x$ac_cr" = x; then
34029 eval ac_cr=\$\'\\r\'
34030fi
cristy3ed852e2009-09-05 21:47:34 +000034031ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34032if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy8b350f62009-11-15 23:12:43 +000034033 ac_cs_awk_cr='\r'
cristy3ed852e2009-09-05 21:47:34 +000034034else
34035 ac_cs_awk_cr=$ac_cr
34036fi
34037
34038echo 'BEGIN {' >"$tmp/subs1.awk" &&
34039_ACEOF
34040
34041
34042{
34043 echo "cat >conf$$subs.awk <<_ACEOF" &&
34044 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34045 echo "_ACEOF"
34046} >conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034048ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34049ac_delim='%!_!# '
34050for ac_last_try in false false false false false :; do
34051 . ./conf$$subs.sh ||
cristy8b350f62009-11-15 23:12:43 +000034052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034053
34054 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34055 if test $ac_delim_n = $ac_delim_num; then
34056 break
34057 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034059 else
34060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34061 fi
34062done
34063rm -f conf$$subs.sh
34064
34065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34066cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34067_ACEOF
34068sed -n '
34069h
34070s/^/S["/; s/!.*/"]=/
34071p
34072g
34073s/^[^!]*!//
34074:repl
34075t repl
34076s/'"$ac_delim"'$//
34077t delim
34078:nl
34079h
cristycd4c5312009-11-22 01:19:08 +000034080s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034081t more1
34082s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34083p
34084n
34085b repl
34086:more1
34087s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34088p
34089g
34090s/.\{148\}//
34091t nl
34092:delim
34093h
cristycd4c5312009-11-22 01:19:08 +000034094s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034095t more2
34096s/["\\]/\\&/g; s/^/"/; s/$/"/
34097p
34098b
34099:more2
34100s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34101p
34102g
34103s/.\{148\}//
34104t delim
34105' <conf$$subs.awk | sed '
34106/^[^""]/{
34107 N
34108 s/\n//
34109}
34110' >>$CONFIG_STATUS || ac_write_fail=1
34111rm -f conf$$subs.awk
34112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34113_ACAWK
34114cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34115 for (key in S) S_is_set[key] = 1
34116 FS = ""
34117
34118}
34119{
34120 line = $ 0
34121 nfields = split(line, field, "@")
34122 substed = 0
34123 len = length(field[1])
34124 for (i = 2; i < nfields; i++) {
34125 key = field[i]
34126 keylen = length(key)
34127 if (S_is_set[key]) {
34128 value = S[key]
34129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34130 len += length(value) + length(field[++i])
34131 substed = 1
34132 } else
34133 len += 1 + keylen
34134 }
34135
34136 print line
34137}
34138
34139_ACAWK
34140_ACEOF
34141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34142if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34143 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34144else
34145 cat
34146fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cristy8b350f62009-11-15 23:12:43 +000034147 || as_fn_error "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034148_ACEOF
34149
34150# VPATH may cause trouble with some makes, so we remove $(srcdir),
34151# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34152# trailing colons and then remove the whole line if VPATH becomes empty
34153# (actually we leave an empty line to preserve line numbers).
34154if test "x$srcdir" = x.; then
34155 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34156s/:*\$(srcdir):*/:/
34157s/:*\${srcdir}:*/:/
34158s/:*@srcdir@:*/:/
34159s/^\([^=]*=[ ]*\):*/\1/
34160s/:*$//
34161s/^[^=]*=[ ]*$//
34162}'
34163fi
34164
34165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34166fi # test -n "$CONFIG_FILES"
34167
34168# Set up the scripts for CONFIG_HEADERS section.
34169# No need to generate them if there are no CONFIG_HEADERS.
34170# This happens for instance with `./config.status Makefile'.
34171if test -n "$CONFIG_HEADERS"; then
34172cat >"$tmp/defines.awk" <<\_ACAWK ||
34173BEGIN {
34174_ACEOF
34175
34176# Transform confdefs.h into an awk script `defines.awk', embedded as
34177# here-document in config.status, that substitutes the proper values into
34178# config.h.in to produce config.h.
34179
34180# Create a delimiter string that does not exist in confdefs.h, to ease
34181# handling of long lines.
34182ac_delim='%!_!# '
34183for ac_last_try in false false :; do
34184 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34185 if test -z "$ac_t"; then
34186 break
34187 elif $ac_last_try; then
cristy8b350f62009-11-15 23:12:43 +000034188 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034189 else
34190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34191 fi
34192done
34193
34194# For the awk script, D is an array of macro values keyed by name,
34195# likewise P contains macro parameters if any. Preserve backslash
34196# newline sequences.
34197
34198ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34199sed -n '
34200s/.\{148\}/&'"$ac_delim"'/g
34201t rset
34202:rset
34203s/^[ ]*#[ ]*define[ ][ ]*/ /
34204t def
34205d
34206:def
34207s/\\$//
34208t bsnl
34209s/["\\]/\\&/g
34210s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34211D["\1"]=" \3"/p
34212s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34213d
34214:bsnl
34215s/["\\]/\\&/g
34216s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34217D["\1"]=" \3\\\\\\n"\\/p
34218t cont
34219s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34220t cont
34221d
34222:cont
34223n
34224s/.\{148\}/&'"$ac_delim"'/g
34225t clear
34226:clear
34227s/\\$//
34228t bsnlc
34229s/["\\]/\\&/g; s/^/"/; s/$/"/p
34230d
34231:bsnlc
34232s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34233b cont
34234' <confdefs.h | sed '
34235s/'"$ac_delim"'/"\\\
34236"/g' >>$CONFIG_STATUS || ac_write_fail=1
34237
34238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34239 for (key in D) D_is_set[key] = 1
34240 FS = ""
34241}
34242/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34243 line = \$ 0
34244 split(line, arg, " ")
34245 if (arg[1] == "#") {
34246 defundef = arg[2]
34247 mac1 = arg[3]
34248 } else {
34249 defundef = substr(arg[1], 2)
34250 mac1 = arg[2]
34251 }
34252 split(mac1, mac2, "(") #)
34253 macro = mac2[1]
34254 prefix = substr(line, 1, index(line, defundef) - 1)
34255 if (D_is_set[macro]) {
34256 # Preserve the white space surrounding the "#".
34257 print prefix "define", macro P[macro] D[macro]
34258 next
34259 } else {
34260 # Replace #undef with comments. This is necessary, for example,
34261 # in the case of _POSIX_SOURCE, which is predefined and required
34262 # on some systems where configure will not decide to define it.
34263 if (defundef == "undef") {
34264 print "/*", prefix defundef, macro, "*/"
34265 next
34266 }
34267 }
34268}
34269{ print }
34270_ACAWK
34271_ACEOF
34272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy8b350f62009-11-15 23:12:43 +000034273 as_fn_error "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034274fi # test -n "$CONFIG_HEADERS"
34275
34276
34277eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34278shift
34279for ac_tag
34280do
34281 case $ac_tag in
34282 :[FHLC]) ac_mode=$ac_tag; continue;;
34283 esac
34284 case $ac_mode$ac_tag in
34285 :[FHL]*:*);;
cristy8b350f62009-11-15 23:12:43 +000034286 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034287 :[FH]-) ac_tag=-:-;;
34288 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34289 esac
34290 ac_save_IFS=$IFS
34291 IFS=:
34292 set x $ac_tag
34293 IFS=$ac_save_IFS
34294 shift
34295 ac_file=$1
34296 shift
34297
34298 case $ac_mode in
34299 :L) ac_source=$1;;
34300 :[FH])
34301 ac_file_inputs=
34302 for ac_f
34303 do
34304 case $ac_f in
34305 -) ac_f="$tmp/stdin";;
34306 *) # Look for the file first in the build tree, then in the source tree
34307 # (if the path is not absolute). The absolute path cannot be DOS-style,
34308 # because $ac_f cannot contain `:'.
34309 test -f "$ac_f" ||
34310 case $ac_f in
34311 [\\/$]*) false;;
34312 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34313 esac ||
cristy8b350f62009-11-15 23:12:43 +000034314 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034315 esac
34316 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000034317 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000034318 done
34319
34320 # Let's still pretend it is `configure' which instantiates (i.e., don't
34321 # use $as_me), people would be surprised to read:
34322 # /* config.h. Generated by config.status. */
34323 configure_input='Generated from '`
34324 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34325 `' by configure.'
34326 if test x"$ac_file" != x-; then
34327 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000034328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000034329$as_echo "$as_me: creating $ac_file" >&6;}
34330 fi
34331 # Neutralize special characters interpreted by sed in replacement strings.
34332 case $configure_input in #(
34333 *\&* | *\|* | *\\* )
34334 ac_sed_conf_input=`$as_echo "$configure_input" |
34335 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34336 *) ac_sed_conf_input=$configure_input;;
34337 esac
34338
34339 case $ac_tag in
34340 *:-:* | *:-) cat >"$tmp/stdin" \
cristy8b350f62009-11-15 23:12:43 +000034341 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000034342 esac
34343 ;;
34344 esac
34345
34346 ac_dir=`$as_dirname -- "$ac_file" ||
34347$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34348 X"$ac_file" : 'X\(//\)[^/]' \| \
34349 X"$ac_file" : 'X\(//\)$' \| \
34350 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34351$as_echo X"$ac_file" |
34352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34353 s//\1/
34354 q
34355 }
34356 /^X\(\/\/\)[^/].*/{
34357 s//\1/
34358 q
34359 }
34360 /^X\(\/\/\)$/{
34361 s//\1/
34362 q
34363 }
34364 /^X\(\/\).*/{
34365 s//\1/
34366 q
34367 }
34368 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034369 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034370 ac_builddir=.
34371
34372case "$ac_dir" in
34373.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34374*)
34375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34376 # A ".." for each directory in $ac_dir_suffix.
34377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34378 case $ac_top_builddir_sub in
34379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34381 esac ;;
34382esac
34383ac_abs_top_builddir=$ac_pwd
34384ac_abs_builddir=$ac_pwd$ac_dir_suffix
34385# for backward compatibility:
34386ac_top_builddir=$ac_top_build_prefix
34387
34388case $srcdir in
34389 .) # We are building in place.
34390 ac_srcdir=.
34391 ac_top_srcdir=$ac_top_builddir_sub
34392 ac_abs_top_srcdir=$ac_pwd ;;
34393 [\\/]* | ?:[\\/]* ) # Absolute name.
34394 ac_srcdir=$srcdir$ac_dir_suffix;
34395 ac_top_srcdir=$srcdir
34396 ac_abs_top_srcdir=$srcdir ;;
34397 *) # Relative name.
34398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34399 ac_top_srcdir=$ac_top_build_prefix$srcdir
34400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34401esac
34402ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34403
34404
34405 case $ac_mode in
34406 :F)
34407 #
34408 # CONFIG_FILE
34409 #
34410
34411 case $INSTALL in
34412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34414 esac
34415 ac_MKDIR_P=$MKDIR_P
34416 case $MKDIR_P in
34417 [\\/$]* | ?:[\\/]* ) ;;
34418 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34419 esac
34420_ACEOF
34421
34422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34423# If the template does not know about datarootdir, expand it.
34424# FIXME: This hack should be removed a few years after 2.60.
34425ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000034426ac_sed_dataroot='
34427/datarootdir/ {
34428 p
34429 q
34430}
34431/@datadir@/p
34432/@docdir@/p
34433/@infodir@/p
34434/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000034435/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000034436case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34437*datarootdir*) ac_datarootdir_seen=yes;;
34438*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34441_ACEOF
34442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34443 ac_datarootdir_hack='
34444 s&@datadir@&$datadir&g
34445 s&@docdir@&$docdir&g
34446 s&@infodir@&$infodir&g
34447 s&@localedir@&$localedir&g
34448 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000034449 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000034450esac
34451_ACEOF
34452
34453# Neutralize VPATH when `$srcdir' = `.'.
34454# Shell code in configure.ac might set extrasub.
34455# FIXME: do we really want to maintain this feature?
34456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34457ac_sed_extra="$ac_vpsub
34458$extrasub
34459_ACEOF
34460cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34461:t
34462/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34463s|@configure_input@|$ac_sed_conf_input|;t t
34464s&@top_builddir@&$ac_top_builddir_sub&;t t
34465s&@top_build_prefix@&$ac_top_build_prefix&;t t
34466s&@srcdir@&$ac_srcdir&;t t
34467s&@abs_srcdir@&$ac_abs_srcdir&;t t
34468s&@top_srcdir@&$ac_top_srcdir&;t t
34469s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34470s&@builddir@&$ac_builddir&;t t
34471s&@abs_builddir@&$ac_abs_builddir&;t t
34472s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34473s&@INSTALL@&$ac_INSTALL&;t t
34474s&@MKDIR_P@&$ac_MKDIR_P&;t t
34475$ac_datarootdir_hack
34476"
34477eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cristy8b350f62009-11-15 23:12:43 +000034478 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034479
34480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000034483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy3ed852e2009-09-05 21:47:34 +000034484which seems to be undefined. Please make sure it is defined." >&5
34485$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34486which seems to be undefined. Please make sure it is defined." >&2;}
34487
34488 rm -f "$tmp/stdin"
34489 case $ac_file in
34490 -) cat "$tmp/out" && rm -f "$tmp/out";;
34491 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34492 esac \
cristy8b350f62009-11-15 23:12:43 +000034493 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034494 ;;
34495 :H)
34496 #
34497 # CONFIG_HEADER
34498 #
34499 if test x"$ac_file" != x-; then
34500 {
34501 $as_echo "/* $configure_input */" \
34502 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34503 } >"$tmp/config.h" \
cristy8b350f62009-11-15 23:12:43 +000034504 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034505 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034507$as_echo "$as_me: $ac_file is unchanged" >&6;}
34508 else
34509 rm -f "$ac_file"
34510 mv "$tmp/config.h" "$ac_file" \
cristy8b350f62009-11-15 23:12:43 +000034511 || as_fn_error "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034512 fi
34513 else
34514 $as_echo "/* $configure_input */" \
34515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cristy8b350f62009-11-15 23:12:43 +000034516 || as_fn_error "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034517 fi
34518# Compute "$ac_file"'s index in $config_headers.
34519_am_arg="$ac_file"
34520_am_stamp_count=1
34521for _am_header in $config_headers :; do
34522 case $_am_header in
34523 $_am_arg | $_am_arg:* )
34524 break ;;
34525 * )
34526 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34527 esac
34528done
34529echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34530$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34531 X"$_am_arg" : 'X\(//\)[^/]' \| \
34532 X"$_am_arg" : 'X\(//\)$' \| \
34533 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34534$as_echo X"$_am_arg" |
34535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34536 s//\1/
34537 q
34538 }
34539 /^X\(\/\/\)[^/].*/{
34540 s//\1/
34541 q
34542 }
34543 /^X\(\/\/\)$/{
34544 s//\1/
34545 q
34546 }
34547 /^X\(\/\).*/{
34548 s//\1/
34549 q
34550 }
34551 s/.*/./; q'`/stamp-h$_am_stamp_count
34552 ;;
34553
cristy8b350f62009-11-15 23:12:43 +000034554 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000034555$as_echo "$as_me: executing $ac_file commands" >&6;}
34556 ;;
34557 esac
34558
34559
34560 case $ac_file$ac_mode in
34561 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34562ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34563ac_prefix_conf_PKG=`echo MagickCore`
34564ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34565ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34566ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34567if test ".$ac_prefix_conf_INP" = "."; then
34568 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34569 case "$ac_file" in
34570 *.h) ac_prefix_conf_INP=$ac_file ;;
34571 *)
34572 esac
34573 test ".$ac_prefix_conf_INP" != "." && break
34574 done
34575fi
34576if test ".$ac_prefix_conf_INP" = "."; then
34577 case "$ac_prefix_conf_OUT" in
34578 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34579 ;;
34580 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34581 ;;
34582 *) ac_prefix_conf_INP=config.h
34583 ;;
34584 esac
34585fi
34586if test -z "$ac_prefix_conf_PKG" ; then
cristy8b350f62009-11-15 23:12:43 +000034587 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034588else
34589 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34590 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34591 fi fi
cristy8b350f62009-11-15 23:12:43 +000034592 { $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 +000034593$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34594 if test -f $ac_prefix_conf_INP ; then
34595 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34596 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034597 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34598 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034599 echo "#endif/" >>conftest.prefix
cristy964cb7f2010-04-25 23:18:00 +000034600 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34601 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
cristy3ed852e2009-09-05 21:47:34 +000034602 echo "#endif/" >> conftest.prefix
34603 # now executing _script on _DEF input to create _OUT output file
34604 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34605 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34606 echo ' ' >>$tmp/pconfig.h
34607 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34608
34609 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34610 echo ' ' >>$tmp/pconfig.h
34611 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34612 echo "#endif" >>$tmp/pconfig.h
34613 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34616 else
34617 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34618$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34619 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34620 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34621 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34622$as_echo X"$ac_prefix_conf_OUT" |
34623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34624 s//\1/
34625 q
34626 }
34627 /^X\(\/\/\)[^/].*/{
34628 s//\1/
34629 q
34630 }
34631 /^X\(\/\/\)$/{
34632 s//\1/
34633 q
34634 }
34635 /^X\(\/\).*/{
34636 s//\1/
34637 q
34638 }
34639 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034640 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034641 rm -f "$ac_prefix_conf_OUT"
34642 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34643 fi
34644 cp conftest.prefix _configs.sed
34645 else
cristy8b350f62009-11-15 23:12:43 +000034646 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 +000034647 fi
34648 rm -f conftest.*
34649fi
34650 ;;
34651 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34652 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34653 # are listed without --file. Let's play safe and only enable the eval
34654 # if we detect the quoting.
34655 case $CONFIG_FILES in
34656 *\'*) eval set x "$CONFIG_FILES" ;;
34657 *) set x $CONFIG_FILES ;;
34658 esac
34659 shift
34660 for mf
34661 do
34662 # Strip MF so we end up with the name of the file.
34663 mf=`echo "$mf" | sed -e 's/:.*$//'`
34664 # Check whether this is an Automake generated Makefile or not.
34665 # We used to match only the files named `Makefile.in', but
34666 # some people rename them; so instead we look at the file content.
34667 # Grep'ing the first line is not enough: some people post-process
34668 # each Makefile.in and add a new line on top of each file to say so.
34669 # Grep'ing the whole file is not good either: AIX grep has a line
34670 # limit of 2048, but all sed's we know have understand at least 4000.
34671 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34672 dirpart=`$as_dirname -- "$mf" ||
34673$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34674 X"$mf" : 'X\(//\)[^/]' \| \
34675 X"$mf" : 'X\(//\)$' \| \
34676 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34677$as_echo X"$mf" |
34678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34679 s//\1/
34680 q
34681 }
34682 /^X\(\/\/\)[^/].*/{
34683 s//\1/
34684 q
34685 }
34686 /^X\(\/\/\)$/{
34687 s//\1/
34688 q
34689 }
34690 /^X\(\/\).*/{
34691 s//\1/
34692 q
34693 }
34694 s/.*/./; q'`
34695 else
34696 continue
34697 fi
34698 # Extract the definition of DEPDIR, am__include, and am__quote
34699 # from the Makefile without running `make'.
34700 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34701 test -z "$DEPDIR" && continue
34702 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34703 test -z "am__include" && continue
34704 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34705 # When using ansi2knr, U may be empty or an underscore; expand it
34706 U=`sed -n 's/^U = //p' < "$mf"`
34707 # Find all dependency output files, they are included files with
34708 # $(DEPDIR) in their names. We invoke sed twice because it is the
34709 # simplest approach to changing $(DEPDIR) to its actual value in the
34710 # expansion.
34711 for file in `sed -n "
34712 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34713 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34714 # Make sure the directory exists.
34715 test -f "$dirpart/$file" && continue
34716 fdir=`$as_dirname -- "$file" ||
34717$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34718 X"$file" : 'X\(//\)[^/]' \| \
34719 X"$file" : 'X\(//\)$' \| \
34720 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34721$as_echo X"$file" |
34722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34723 s//\1/
34724 q
34725 }
34726 /^X\(\/\/\)[^/].*/{
34727 s//\1/
34728 q
34729 }
34730 /^X\(\/\/\)$/{
34731 s//\1/
34732 q
34733 }
34734 /^X\(\/\).*/{
34735 s//\1/
34736 q
34737 }
34738 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000034739 as_dir=$dirpart/$fdir; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034740 # echo "creating $dirpart/$file"
34741 echo '# dummy' > "$dirpart/$file"
34742 done
34743 done
34744}
34745 ;;
34746 "libtool":C)
34747
34748 # See if we are running on zsh, and set the options which allow our
34749 # commands through without removal of \ escapes.
34750 if test -n "${ZSH_VERSION+set}" ; then
34751 setopt NO_GLOB_SUBST
34752 fi
34753
34754 cfgfile="${ofile}T"
34755 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34756 $RM "$cfgfile"
34757
34758 cat <<_LT_EOF >> "$cfgfile"
34759#! $SHELL
34760
34761# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34762# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34764# NOTE: Changes made to this file will be lost: look at ltmain.sh.
34765#
34766# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy18304f92009-11-22 15:48:26 +000034767# 2006, 2007, 2008 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034768# Written by Gordon Matzigkeit, 1996
34769#
34770# This file is part of GNU Libtool.
34771#
34772# GNU Libtool is free software; you can redistribute it and/or
34773# modify it under the terms of the GNU General Public License as
34774# published by the Free Software Foundation; either version 2 of
34775# the License, or (at your option) any later version.
34776#
34777# As a special exception to the GNU General Public License,
34778# if you distribute this file as part of a program or library that
34779# is built using GNU Libtool, you may include this file under the
34780# same distribution terms that you use for the rest of that program.
34781#
34782# GNU Libtool is distributed in the hope that it will be useful,
34783# but WITHOUT ANY WARRANTY; without even the implied warranty of
34784# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34785# GNU General Public License for more details.
34786#
34787# You should have received a copy of the GNU General Public License
34788# along with GNU Libtool; see the file COPYING. If not, a copy
34789# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34790# obtained by writing to the Free Software Foundation, Inc.,
34791# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34792
34793
34794# The names of the tagged configurations supported by this script.
34795available_tags="CXX "
34796
34797# ### BEGIN LIBTOOL CONFIG
34798
34799# A sed program that does not truncate output.
34800SED=$lt_SED
34801
34802# Sed that helps us avoid accidentally triggering echo(1) options like -n.
34803Xsed="\$SED -e 1s/^X//"
34804
34805# A grep program that handles long lines.
34806GREP=$lt_GREP
34807
34808# An ERE matcher.
34809EGREP=$lt_EGREP
34810
34811# A literal string matcher.
34812FGREP=$lt_FGREP
34813
34814# Which release of libtool.m4 was used?
34815macro_version=$macro_version
34816macro_revision=$macro_revision
34817
34818# Assembler program.
cristy18304f92009-11-22 15:48:26 +000034819AS=$AS
cristy3ed852e2009-09-05 21:47:34 +000034820
34821# DLL creation program.
cristy18304f92009-11-22 15:48:26 +000034822DLLTOOL=$DLLTOOL
cristy3ed852e2009-09-05 21:47:34 +000034823
34824# Object dumper program.
cristy18304f92009-11-22 15:48:26 +000034825OBJDUMP=$OBJDUMP
cristy3ed852e2009-09-05 21:47:34 +000034826
34827# Whether or not to build shared libraries.
34828build_libtool_libs=$enable_shared
34829
34830# Whether or not to build static libraries.
34831build_old_libs=$enable_static
34832
34833# What type of objects to build.
34834pic_mode=$pic_mode
34835
34836# Whether or not to optimize for fast installation.
34837fast_install=$enable_fast_install
34838
34839# The host system.
34840host_alias=$host_alias
34841host=$host
34842host_os=$host_os
34843
34844# The build system.
34845build_alias=$build_alias
34846build=$build
34847build_os=$build_os
34848
34849# A BSD- or MS-compatible name lister.
34850NM=$lt_NM
34851
34852# Whether we need soft or hard links.
34853LN_S=$lt_LN_S
34854
34855# What is the maximum length of a command?
34856max_cmd_len=$max_cmd_len
34857
34858# Object file suffix (normally "o").
34859objext=$ac_objext
34860
34861# Executable file suffix (normally "").
34862exeext=$exeext
34863
34864# whether the shell understands "unset".
34865lt_unset=$lt_unset
34866
34867# turn spaces into newlines.
34868SP2NL=$lt_lt_SP2NL
34869
34870# turn newlines into spaces.
34871NL2SP=$lt_lt_NL2SP
34872
cristy18304f92009-11-22 15:48:26 +000034873# How to create reloadable object files.
34874reload_flag=$lt_reload_flag
34875reload_cmds=$lt_reload_cmds
34876
cristy3ed852e2009-09-05 21:47:34 +000034877# Method to check whether dependent libraries are shared objects.
34878deplibs_check_method=$lt_deplibs_check_method
34879
34880# Command to use when deplibs_check_method == "file_magic".
34881file_magic_cmd=$lt_file_magic_cmd
34882
34883# The archiver.
34884AR=$lt_AR
34885AR_FLAGS=$lt_AR_FLAGS
34886
34887# A symbol stripping program.
34888STRIP=$lt_STRIP
34889
34890# Commands used to install an old-style archive.
34891RANLIB=$lt_RANLIB
34892old_postinstall_cmds=$lt_old_postinstall_cmds
34893old_postuninstall_cmds=$lt_old_postuninstall_cmds
34894
34895# A C compiler.
34896LTCC=$lt_CC
34897
34898# LTCC compiler flags.
34899LTCFLAGS=$lt_CFLAGS
34900
34901# Take the output of nm and produce a listing of raw symbols and C names.
34902global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34903
34904# Transform the output of nm in a proper C declaration.
34905global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34906
34907# Transform the output of nm in a C name address pair.
34908global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34909
34910# Transform the output of nm in a C name address pair when lib prefix is needed.
34911global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34912
34913# The name of the directory that contains temporary libtool files.
34914objdir=$objdir
34915
cristy18304f92009-11-22 15:48:26 +000034916# Shell to use when invoking shell scripts.
34917SHELL=$lt_SHELL
34918
34919# An echo program that does not interpret backslashes.
34920ECHO=$lt_ECHO
34921
cristy3ed852e2009-09-05 21:47:34 +000034922# Used to examine libraries when file_magic_cmd begins with "file".
34923MAGIC_CMD=$MAGIC_CMD
34924
34925# Must we lock files when doing compilation?
34926need_locks=$lt_need_locks
34927
34928# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34929DSYMUTIL=$lt_DSYMUTIL
34930
34931# Tool to change global to local symbols on Mac OS X.
34932NMEDIT=$lt_NMEDIT
34933
34934# Tool to manipulate fat objects and archives on Mac OS X.
34935LIPO=$lt_LIPO
34936
34937# ldd/readelf like tool for Mach-O binaries on Mac OS X.
34938OTOOL=$lt_OTOOL
34939
34940# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34941OTOOL64=$lt_OTOOL64
34942
34943# Old archive suffix (normally "a").
34944libext=$libext
34945
34946# Shared library suffix (normally ".so").
34947shrext_cmds=$lt_shrext_cmds
34948
34949# The commands to extract the exported symbol list from a shared archive.
34950extract_expsyms_cmds=$lt_extract_expsyms_cmds
34951
34952# Variables whose values should be saved in libtool wrapper scripts and
34953# restored at link time.
34954variables_saved_for_relink=$lt_variables_saved_for_relink
34955
34956# Do we need the "lib" prefix for modules?
34957need_lib_prefix=$need_lib_prefix
34958
34959# Do we need a version for libraries?
34960need_version=$need_version
34961
34962# Library versioning type.
34963version_type=$version_type
34964
34965# Shared library runtime path variable.
34966runpath_var=$runpath_var
34967
34968# Shared library path variable.
34969shlibpath_var=$shlibpath_var
34970
34971# Is shlibpath searched before the hard-coded library search path?
34972shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34973
34974# Format of library name prefix.
34975libname_spec=$lt_libname_spec
34976
34977# List of archive names. First name is the real one, the rest are links.
34978# The last name is the one that the linker finds with -lNAME
34979library_names_spec=$lt_library_names_spec
34980
34981# The coded name of the library, if different from the real name.
34982soname_spec=$lt_soname_spec
34983
34984# Command to use after installation of a shared archive.
34985postinstall_cmds=$lt_postinstall_cmds
34986
34987# Command to use after uninstallation of a shared archive.
34988postuninstall_cmds=$lt_postuninstall_cmds
34989
34990# Commands used to finish a libtool library installation in a directory.
34991finish_cmds=$lt_finish_cmds
34992
34993# As "finish_cmds", except a single script fragment to be evaled but
34994# not shown.
34995finish_eval=$lt_finish_eval
34996
34997# Whether we should hardcode library paths into libraries.
34998hardcode_into_libs=$hardcode_into_libs
34999
35000# Compile-time system search path for libraries.
35001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35002
35003# Run-time system search path for libraries.
35004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35005
35006# Whether dlopen is supported.
35007dlopen_support=$enable_dlopen
35008
35009# Whether dlopen of programs is supported.
35010dlopen_self=$enable_dlopen_self
35011
35012# Whether dlopen of statically linked programs is supported.
35013dlopen_self_static=$enable_dlopen_self_static
35014
35015# Commands to strip libraries.
35016old_striplib=$lt_old_striplib
35017striplib=$lt_striplib
35018
35019
35020# The linker used to build libraries.
35021LD=$lt_LD
35022
35023# Commands used to build an old-style archive.
35024old_archive_cmds=$lt_old_archive_cmds
35025
35026# A language specific compiler.
35027CC=$lt_compiler
35028
35029# Is the compiler the GNU compiler?
35030with_gcc=$GCC
35031
35032# Compiler flag to turn off builtin functions.
35033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35034
35035# How to pass a linker flag through the compiler.
35036wl=$lt_lt_prog_compiler_wl
35037
35038# Additional compiler flags for building library objects.
35039pic_flag=$lt_lt_prog_compiler_pic
35040
35041# Compiler flag to prevent dynamic linking.
35042link_static_flag=$lt_lt_prog_compiler_static
35043
35044# Does compiler simultaneously support -c and -o options?
35045compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35046
35047# Whether or not to add -lc for building shared libraries.
35048build_libtool_need_lc=$archive_cmds_need_lc
35049
35050# Whether or not to disallow shared libs when runtime libs are static.
35051allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35052
35053# Compiler flag to allow reflexive dlopens.
35054export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35055
35056# Compiler flag to generate shared objects directly from archives.
35057whole_archive_flag_spec=$lt_whole_archive_flag_spec
35058
35059# Whether the compiler copes with passing no objects directly.
35060compiler_needs_object=$lt_compiler_needs_object
35061
35062# Create an old-style archive from a shared archive.
35063old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35064
35065# Create a temporary old-style archive to link instead of a shared archive.
35066old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35067
35068# Commands used to build a shared archive.
35069archive_cmds=$lt_archive_cmds
35070archive_expsym_cmds=$lt_archive_expsym_cmds
35071
35072# Commands used to build a loadable module if different from building
35073# a shared archive.
35074module_cmds=$lt_module_cmds
35075module_expsym_cmds=$lt_module_expsym_cmds
35076
35077# Whether we are building with GNU ld or not.
35078with_gnu_ld=$lt_with_gnu_ld
35079
35080# Flag that allows shared libraries with undefined symbols to be built.
35081allow_undefined_flag=$lt_allow_undefined_flag
35082
35083# Flag that enforces no undefined symbols.
35084no_undefined_flag=$lt_no_undefined_flag
35085
35086# Flag to hardcode \$libdir into a binary during linking.
35087# This must work even if \$libdir does not exist
35088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35089
35090# If ld is used when linking, flag to hardcode \$libdir into a binary
35091# during linking. This must work even if \$libdir does not exist.
35092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35093
35094# Whether we need a single "-rpath" flag with a separated argument.
35095hardcode_libdir_separator=$lt_hardcode_libdir_separator
35096
35097# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35098# DIR into the resulting binary.
35099hardcode_direct=$hardcode_direct
35100
35101# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35102# DIR into the resulting binary and the resulting library dependency is
35103# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35104# library is relocated.
35105hardcode_direct_absolute=$hardcode_direct_absolute
35106
35107# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35108# into the resulting binary.
35109hardcode_minus_L=$hardcode_minus_L
35110
35111# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35112# into the resulting binary.
35113hardcode_shlibpath_var=$hardcode_shlibpath_var
35114
35115# Set to "yes" if building a shared library automatically hardcodes DIR
35116# into the library and all subsequent libraries and executables linked
35117# against it.
35118hardcode_automatic=$hardcode_automatic
35119
35120# Set to yes if linker adds runtime paths of dependent libraries
35121# to runtime path list.
35122inherit_rpath=$inherit_rpath
35123
35124# Whether libtool must link a program against all its dependency libraries.
35125link_all_deplibs=$link_all_deplibs
35126
35127# Fix the shell variable \$srcfile for the compiler.
35128fix_srcfile_path=$lt_fix_srcfile_path
35129
35130# Set to "yes" if exported symbols are required.
35131always_export_symbols=$always_export_symbols
35132
35133# The commands to list exported symbols.
35134export_symbols_cmds=$lt_export_symbols_cmds
35135
35136# Symbols that should not be listed in the preloaded symbols.
35137exclude_expsyms=$lt_exclude_expsyms
35138
35139# Symbols that must always be exported.
35140include_expsyms=$lt_include_expsyms
35141
35142# Commands necessary for linking programs (against libraries) with templates.
35143prelink_cmds=$lt_prelink_cmds
35144
35145# Specify filename containing input files.
35146file_list_spec=$lt_file_list_spec
35147
35148# How to hardcode a shared library path into an executable.
35149hardcode_action=$hardcode_action
35150
35151# The directories searched by this compiler when creating a shared library.
35152compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35153
35154# Dependencies to place before and after the objects being linked to
35155# create a shared library.
35156predep_objects=$lt_predep_objects
35157postdep_objects=$lt_postdep_objects
35158predeps=$lt_predeps
35159postdeps=$lt_postdeps
35160
35161# The library search path used internally by the compiler when linking
35162# a shared library.
35163compiler_lib_search_path=$lt_compiler_lib_search_path
35164
35165# ### END LIBTOOL CONFIG
35166
35167_LT_EOF
35168
35169 case $host_os in
35170 aix3*)
35171 cat <<\_LT_EOF >> "$cfgfile"
35172# AIX sometimes has problems with the GCC collect2 program. For some
35173# reason, if we set the COLLECT_NAMES environment variable, the problems
35174# vanish in a puff of smoke.
35175if test "X${COLLECT_NAMES+set}" != Xset; then
35176 COLLECT_NAMES=
35177 export COLLECT_NAMES
35178fi
35179_LT_EOF
35180 ;;
35181 esac
35182
35183
35184ltmain="$ac_aux_dir/ltmain.sh"
35185
35186
35187 # We use sed instead of cat because bash on DJGPP gets confused if
35188 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35189 # text mode, it properly converts lines to CR/LF. This bash problem
35190 # is reportedly fixed, but why not run on old versions too?
35191 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35192 || (rm -f "$cfgfile"; exit 1)
35193
35194 case $xsi_shell in
35195 yes)
35196 cat << \_LT_EOF >> "$cfgfile"
35197
35198# func_dirname file append nondir_replacement
35199# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35200# otherwise set result to NONDIR_REPLACEMENT.
35201func_dirname ()
35202{
35203 case ${1} in
35204 */*) func_dirname_result="${1%/*}${2}" ;;
35205 * ) func_dirname_result="${3}" ;;
35206 esac
35207}
35208
35209# func_basename file
35210func_basename ()
35211{
35212 func_basename_result="${1##*/}"
35213}
35214
35215# func_dirname_and_basename file append nondir_replacement
35216# perform func_basename and func_dirname in a single function
35217# call:
35218# dirname: Compute the dirname of FILE. If nonempty,
35219# add APPEND to the result, otherwise set result
35220# to NONDIR_REPLACEMENT.
35221# value returned in "$func_dirname_result"
35222# basename: Compute filename of FILE.
35223# value retuned in "$func_basename_result"
35224# Implementation must be kept synchronized with func_dirname
35225# and func_basename. For efficiency, we do not delegate to
35226# those functions but instead duplicate the functionality here.
35227func_dirname_and_basename ()
35228{
35229 case ${1} in
35230 */*) func_dirname_result="${1%/*}${2}" ;;
35231 * ) func_dirname_result="${3}" ;;
35232 esac
35233 func_basename_result="${1##*/}"
35234}
35235
35236# func_stripname prefix suffix name
35237# strip PREFIX and SUFFIX off of NAME.
35238# PREFIX and SUFFIX must not contain globbing or regex special
35239# characters, hashes, percent signs, but SUFFIX may contain a leading
35240# dot (in which case that matches only a dot).
35241func_stripname ()
35242{
35243 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35244 # positional parameters, so assign one to ordinary parameter first.
35245 func_stripname_result=${3}
35246 func_stripname_result=${func_stripname_result#"${1}"}
35247 func_stripname_result=${func_stripname_result%"${2}"}
35248}
35249
35250# func_opt_split
35251func_opt_split ()
35252{
35253 func_opt_split_opt=${1%%=*}
35254 func_opt_split_arg=${1#*=}
35255}
35256
35257# func_lo2o object
35258func_lo2o ()
35259{
35260 case ${1} in
35261 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35262 *) func_lo2o_result=${1} ;;
35263 esac
35264}
35265
35266# func_xform libobj-or-source
35267func_xform ()
35268{
35269 func_xform_result=${1%.*}.lo
35270}
35271
35272# func_arith arithmetic-term...
35273func_arith ()
35274{
35275 func_arith_result=$(( $* ))
35276}
35277
35278# func_len string
35279# STRING may not start with a hyphen.
35280func_len ()
35281{
35282 func_len_result=${#1}
35283}
35284
35285_LT_EOF
35286 ;;
35287 *) # Bourne compatible functions.
35288 cat << \_LT_EOF >> "$cfgfile"
35289
35290# func_dirname file append nondir_replacement
35291# Compute the dirname of FILE. If nonempty, add APPEND to the result,
35292# otherwise set result to NONDIR_REPLACEMENT.
35293func_dirname ()
35294{
35295 # Extract subdirectory from the argument.
cristy18304f92009-11-22 15:48:26 +000035296 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
cristy3ed852e2009-09-05 21:47:34 +000035297 if test "X$func_dirname_result" = "X${1}"; then
35298 func_dirname_result="${3}"
35299 else
35300 func_dirname_result="$func_dirname_result${2}"
35301 fi
35302}
35303
35304# func_basename file
35305func_basename ()
35306{
cristy18304f92009-11-22 15:48:26 +000035307 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
cristy3ed852e2009-09-05 21:47:34 +000035308}
35309
35310
35311# func_stripname prefix suffix name
35312# strip PREFIX and SUFFIX off of NAME.
35313# PREFIX and SUFFIX must not contain globbing or regex special
35314# characters, hashes, percent signs, but SUFFIX may contain a leading
35315# dot (in which case that matches only a dot).
35316# func_strip_suffix prefix name
35317func_stripname ()
35318{
35319 case ${2} in
cristy18304f92009-11-22 15:48:26 +000035320 .*) func_stripname_result=`$ECHO "X${3}" \
35321 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35322 *) func_stripname_result=`$ECHO "X${3}" \
35323 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
cristy3ed852e2009-09-05 21:47:34 +000035324 esac
35325}
35326
35327# sed scripts:
35328my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35329my_sed_long_arg='1s/^-[^=]*=//'
35330
35331# func_opt_split
35332func_opt_split ()
35333{
cristy18304f92009-11-22 15:48:26 +000035334 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35335 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
cristy3ed852e2009-09-05 21:47:34 +000035336}
35337
35338# func_lo2o object
35339func_lo2o ()
35340{
cristy18304f92009-11-22 15:48:26 +000035341 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
cristy3ed852e2009-09-05 21:47:34 +000035342}
35343
35344# func_xform libobj-or-source
35345func_xform ()
35346{
cristy18304f92009-11-22 15:48:26 +000035347 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
cristy3ed852e2009-09-05 21:47:34 +000035348}
35349
35350# func_arith arithmetic-term...
35351func_arith ()
35352{
35353 func_arith_result=`expr "$@"`
35354}
35355
35356# func_len string
35357# STRING may not start with a hyphen.
35358func_len ()
35359{
35360 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35361}
35362
35363_LT_EOF
35364esac
35365
35366case $lt_shell_append in
35367 yes)
35368 cat << \_LT_EOF >> "$cfgfile"
35369
35370# func_append var value
35371# Append VALUE to the end of shell variable VAR.
35372func_append ()
35373{
35374 eval "$1+=\$2"
35375}
35376_LT_EOF
35377 ;;
35378 *)
35379 cat << \_LT_EOF >> "$cfgfile"
35380
35381# func_append var value
35382# Append VALUE to the end of shell variable VAR.
35383func_append ()
35384{
35385 eval "$1=\$$1\$2"
35386}
35387
35388_LT_EOF
35389 ;;
35390 esac
35391
35392
35393 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35394 || (rm -f "$cfgfile"; exit 1)
35395
35396 mv -f "$cfgfile" "$ofile" ||
35397 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35398 chmod +x "$ofile"
35399
35400
35401 cat <<_LT_EOF >> "$ofile"
35402
35403# ### BEGIN LIBTOOL TAG CONFIG: CXX
35404
35405# The linker used to build libraries.
35406LD=$lt_LD_CXX
35407
35408# Commands used to build an old-style archive.
35409old_archive_cmds=$lt_old_archive_cmds_CXX
35410
35411# A language specific compiler.
35412CC=$lt_compiler_CXX
35413
35414# Is the compiler the GNU compiler?
35415with_gcc=$GCC_CXX
35416
35417# Compiler flag to turn off builtin functions.
35418no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35419
35420# How to pass a linker flag through the compiler.
35421wl=$lt_lt_prog_compiler_wl_CXX
35422
35423# Additional compiler flags for building library objects.
35424pic_flag=$lt_lt_prog_compiler_pic_CXX
35425
35426# Compiler flag to prevent dynamic linking.
35427link_static_flag=$lt_lt_prog_compiler_static_CXX
35428
35429# Does compiler simultaneously support -c and -o options?
35430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35431
35432# Whether or not to add -lc for building shared libraries.
35433build_libtool_need_lc=$archive_cmds_need_lc_CXX
35434
35435# Whether or not to disallow shared libs when runtime libs are static.
35436allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35437
35438# Compiler flag to allow reflexive dlopens.
35439export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35440
35441# Compiler flag to generate shared objects directly from archives.
35442whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35443
35444# Whether the compiler copes with passing no objects directly.
35445compiler_needs_object=$lt_compiler_needs_object_CXX
35446
35447# Create an old-style archive from a shared archive.
35448old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35449
35450# Create a temporary old-style archive to link instead of a shared archive.
35451old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35452
35453# Commands used to build a shared archive.
35454archive_cmds=$lt_archive_cmds_CXX
35455archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35456
35457# Commands used to build a loadable module if different from building
35458# a shared archive.
35459module_cmds=$lt_module_cmds_CXX
35460module_expsym_cmds=$lt_module_expsym_cmds_CXX
35461
35462# Whether we are building with GNU ld or not.
35463with_gnu_ld=$lt_with_gnu_ld_CXX
35464
35465# Flag that allows shared libraries with undefined symbols to be built.
35466allow_undefined_flag=$lt_allow_undefined_flag_CXX
35467
35468# Flag that enforces no undefined symbols.
35469no_undefined_flag=$lt_no_undefined_flag_CXX
35470
35471# Flag to hardcode \$libdir into a binary during linking.
35472# This must work even if \$libdir does not exist
35473hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35474
35475# If ld is used when linking, flag to hardcode \$libdir into a binary
35476# during linking. This must work even if \$libdir does not exist.
35477hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35478
35479# Whether we need a single "-rpath" flag with a separated argument.
35480hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35481
35482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35483# DIR into the resulting binary.
35484hardcode_direct=$hardcode_direct_CXX
35485
35486# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35487# DIR into the resulting binary and the resulting library dependency is
35488# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35489# library is relocated.
35490hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35491
35492# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35493# into the resulting binary.
35494hardcode_minus_L=$hardcode_minus_L_CXX
35495
35496# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35497# into the resulting binary.
35498hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35499
35500# Set to "yes" if building a shared library automatically hardcodes DIR
35501# into the library and all subsequent libraries and executables linked
35502# against it.
35503hardcode_automatic=$hardcode_automatic_CXX
35504
35505# Set to yes if linker adds runtime paths of dependent libraries
35506# to runtime path list.
35507inherit_rpath=$inherit_rpath_CXX
35508
35509# Whether libtool must link a program against all its dependency libraries.
35510link_all_deplibs=$link_all_deplibs_CXX
35511
35512# Fix the shell variable \$srcfile for the compiler.
35513fix_srcfile_path=$lt_fix_srcfile_path_CXX
35514
35515# Set to "yes" if exported symbols are required.
35516always_export_symbols=$always_export_symbols_CXX
35517
35518# The commands to list exported symbols.
35519export_symbols_cmds=$lt_export_symbols_cmds_CXX
35520
35521# Symbols that should not be listed in the preloaded symbols.
35522exclude_expsyms=$lt_exclude_expsyms_CXX
35523
35524# Symbols that must always be exported.
35525include_expsyms=$lt_include_expsyms_CXX
35526
35527# Commands necessary for linking programs (against libraries) with templates.
35528prelink_cmds=$lt_prelink_cmds_CXX
35529
35530# Specify filename containing input files.
35531file_list_spec=$lt_file_list_spec_CXX
35532
35533# How to hardcode a shared library path into an executable.
35534hardcode_action=$hardcode_action_CXX
35535
35536# The directories searched by this compiler when creating a shared library.
35537compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35538
35539# Dependencies to place before and after the objects being linked to
35540# create a shared library.
35541predep_objects=$lt_predep_objects_CXX
35542postdep_objects=$lt_postdep_objects_CXX
35543predeps=$lt_predeps_CXX
35544postdeps=$lt_postdeps_CXX
35545
35546# The library search path used internally by the compiler when linking
35547# a shared library.
35548compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35549
35550# ### END LIBTOOL TAG CONFIG: CXX
35551_LT_EOF
35552
35553 ;;
35554 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35555 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35556 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35557 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35558 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35559 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35560
35561 esac
35562done # for ac_tag
35563
35564
cristy8b350f62009-11-15 23:12:43 +000035565as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000035566_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000035567ac_clean_files=$ac_clean_files_save
35568
35569test $ac_write_fail = 0 ||
cristy8b350f62009-11-15 23:12:43 +000035570 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035571
35572
35573# configure is writing to config.log, and then calls config.status.
35574# config.status does its own redirection, appending to config.log.
35575# Unfortunately, on DOS this fails, as config.log is still kept open
35576# by configure, so config.status won't be able to write to it; its
35577# output is simply discarded. So we exec the FD to /dev/null,
35578# effectively closing config.log, so it can be properly (re)opened and
35579# appended to by config.status. When coming back to configure, we
35580# need to make the FD available again.
35581if test "$no_create" != yes; then
35582 ac_cs_success=:
35583 ac_config_status_args=
35584 test "$silent" = yes &&
35585 ac_config_status_args="$ac_config_status_args --quiet"
35586 exec 5>/dev/null
35587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35588 exec 5>>config.log
35589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35590 # would make configure fail if this is the last instruction.
cristy8b350f62009-11-15 23:12:43 +000035591 $ac_cs_success || as_fn_exit $?
cristy3ed852e2009-09-05 21:47:34 +000035592fi
35593if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000035594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000035595$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35596fi
35597
35598
35599rm -f magick-version
35600
cristy430a7312010-01-21 20:44:04 +000035601result_dejavu_font_dir='none'
35602if test "${dejavu_font_dir}x" != 'x'; then
35603 result_dejavu_font_dir=$dejavu_font_dir
35604fi
35605
cristy3ed852e2009-09-05 21:47:34 +000035606result_ghostscript_font_dir='none'
35607if test "${ghostscript_font_dir}x" != 'x'; then
35608 result_ghostscript_font_dir=$ghostscript_font_dir
35609fi
35610
35611result_windows_font_dir='none'
35612if test "${windows_font_dir}x" != 'x'; then
35613 result_windows_font_dir=${windows_font_dir}
35614fi
35615
cristy8b350f62009-11-15 23:12:43 +000035616{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000035617ImageMagick is configured as follows. Please verify that this configuration
35618matches your expectations.
35619
35620Host system type: $host
35621Build system type: $build
35622
35623 Option Value
35624-------------------------------------------------------------------------------
35625Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35626Static libraries --enable-static=$enable_static $libtool_build_static_libs
35627Module support --with-modules=$with_modules $with_modules
35628GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35629Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35630High Dynamic Range Imagery
35631 --enable-hdri=$enable_hdri $enable_hdri
35632
35633Delegate Configuration:
35634BZLIB --with-bzlib=$with_bzlib $have_bzlib
35635Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035636Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035637DJVU --with-djvu=$with_djvu $have_djvu
35638DPS --with-dps=$with_dps $have_dps
35639FFTW --with-fftw=$with_fftw $have_fftw
35640FlashPIX --with-fpx=$with_fpx $have_fpx
35641FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35642FreeType --with-freetype=$with_freetype $have_freetype
35643GhostPCL None $PCLDelegate ($PCLVersion)
35644GhostXPS None $XPSDelegate ($XPSVersion)
35645Ghostscript None $PSDelegate ($GSVersion)
35646Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35647Ghostscript lib --with-gslib=$with_gslib $have_gslib
35648Graphviz --with-gvc=$with_gvc $have_gvc
35649JBIG --with-jbig=$with_jbig $have_jbig
35650JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35651JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35652LCMS --with-lcms=$with_lcms $have_lcms
35653LQR --with-lqr=$with_lqr $have_lqr
35654Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35655OpenEXR --with-openexr=$with_openexr $have_openexr
35656PERL --with-perl=$with_perl $have_perl
35657PNG --with-png=$with_png $have_png
35658RSVG --with-rsvg=$with_rsvg $have_rsvg
35659TIFF --with-tiff=$with_tiff $have_tiff
35660Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35661WMF --with-wmf=$with_wmf $have_wmf
35662X11 --with-x=$with_x $have_x
35663XML --with-xml=$with_xml $have_xml
35664ZLIB --with-zlib=$with_zlib $have_zlib
35665
35666X11 Configuration:
35667 X_CFLAGS = $X_CFLAGS
35668 X_PRE_LIBS = $X_PRE_LIBS
35669 X_LIBS = $X_LIBS
35670 X_EXTRA_LIBS = $X_EXTRA_LIBS
35671
35672Options used to compile and link:
35673 PREFIX = $PREFIX_DIR
35674 EXEC-PREFIX = $EXEC_PREFIX_DIR
35675 VERSION = $PACKAGE_VERSION
35676 CC = $CC
35677 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035678 CPPFLAGS = $MAGICK_CPPFLAGS
35679 PCFLAGS = $MAGICK_PCFLAGS
35680 DEFS = $DEFS
35681 LDFLAGS = $LDFLAGS
35682 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35683 LIBS = $MAGICK_LIBS
35684 CXX = $CXX
35685 CXXFLAGS = $CXXFLAGS
35686" >&5
35687$as_echo "
35688ImageMagick is configured as follows. Please verify that this configuration
35689matches your expectations.
35690
35691Host system type: $host
35692Build system type: $build
35693
35694 Option Value
35695-------------------------------------------------------------------------------
35696Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35697Static libraries --enable-static=$enable_static $libtool_build_static_libs
35698Module support --with-modules=$with_modules $with_modules
35699GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35700Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35701High Dynamic Range Imagery
35702 --enable-hdri=$enable_hdri $enable_hdri
35703
35704Delegate Configuration:
35705BZLIB --with-bzlib=$with_bzlib $have_bzlib
35706Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000035707Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000035708DJVU --with-djvu=$with_djvu $have_djvu
35709DPS --with-dps=$with_dps $have_dps
35710FFTW --with-fftw=$with_fftw $have_fftw
35711FlashPIX --with-fpx=$with_fpx $have_fpx
35712FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35713FreeType --with-freetype=$with_freetype $have_freetype
35714GhostPCL None $PCLDelegate ($PCLVersion)
35715GhostXPS None $XPSDelegate ($XPSVersion)
35716Ghostscript None $PSDelegate ($GSVersion)
35717Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35718Ghostscript lib --with-gslib=$with_gslib $have_gslib
35719Graphviz --with-gvc=$with_gvc $have_gvc
35720JBIG --with-jbig=$with_jbig $have_jbig
35721JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35722JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35723LCMS --with-lcms=$with_lcms $have_lcms
35724LQR --with-lqr=$with_lqr $have_lqr
35725Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35726OpenEXR --with-openexr=$with_openexr $have_openexr
35727PERL --with-perl=$with_perl $have_perl
35728PNG --with-png=$with_png $have_png
35729RSVG --with-rsvg=$with_rsvg $have_rsvg
35730TIFF --with-tiff=$with_tiff $have_tiff
35731Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35732WMF --with-wmf=$with_wmf $have_wmf
35733X11 --with-x=$with_x $have_x
35734XML --with-xml=$with_xml $have_xml
35735ZLIB --with-zlib=$with_zlib $have_zlib
35736
35737X11 Configuration:
35738 X_CFLAGS = $X_CFLAGS
35739 X_PRE_LIBS = $X_PRE_LIBS
35740 X_LIBS = $X_LIBS
35741 X_EXTRA_LIBS = $X_EXTRA_LIBS
35742
35743Options used to compile and link:
35744 PREFIX = $PREFIX_DIR
35745 EXEC-PREFIX = $EXEC_PREFIX_DIR
35746 VERSION = $PACKAGE_VERSION
35747 CC = $CC
35748 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000035749 CPPFLAGS = $MAGICK_CPPFLAGS
35750 PCFLAGS = $MAGICK_PCFLAGS
35751 DEFS = $DEFS
35752 LDFLAGS = $LDFLAGS
35753 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35754 LIBS = $MAGICK_LIBS
35755 CXX = $CXX
35756 CXXFLAGS = $CXXFLAGS
35757" >&6; }